From 1165e4d85a6442939ca451d3432b334f3ef16cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Tigerstr=C3=B6m?= Date: Fri, 13 Sep 2024 18:10:25 +0700 Subject: [PATCH 1/5] proto + app: bump node + protoc & make protos In the next commit, we'll bump our lnd dependency to `v0.18.3-beta`. That version adds explicitly declared optional protos fields with commit https://github.com/lightningnetwork/lnd/commit/3de6c5415a44438632ed29acea2b47fc2f9d413e Optional proto fields are only available in Proto3 after protoc version `3.15+`, and we therefore need to bump our protoc version for the protos generation script to support them. When doing so, we mimic the protobuf-compiler version used in `lnd`, which is `3.21.12`. As protobuf-compiler 3.21.x+ is only available for Node.js base images with Debian 12 (bookworm), we also update our NodeJS base image to version 22.8.0-bookworm. --- Dockerfile | 2 +- app/package.json | 3 +- .../generated/auctioneerrpc/auctioneer_pb.js | 5334 +++-- app/src/types/generated/firewall_pb.js | 481 +- app/src/types/generated/lit-accounts_pb.js | 760 +- app/src/types/generated/lit-autopilot_pb.js | 904 +- app/src/types/generated/lit-sessions_pb.js | 1750 +- app/src/types/generated/lit-status_pb.js | 183 +- app/src/types/generated/lnd_pb.js | 18421 ++++++++++------ app/src/types/generated/loop_pb.js | 3705 ++-- app/src/types/generated/proxy_pb.js | 313 +- .../generated/swapserverrpc/common_pb.js | 132 +- .../generated/swapserverrpc/server_pb.js | 2547 ++- app/src/types/generated/trader_pb.js | 5536 +++-- app/yarn.lock | 576 +- dev.Dockerfile | 2 +- proto/Dockerfile | 6 +- 17 files changed, 25236 insertions(+), 15419 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6afd053d8..037068a83 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Start with a NodeJS base image that also contains yarn. -FROM node:16.14.2-alpine as nodejsbuilder +FROM node:22.8.0-alpine as nodejsbuilder # Pass a tag, branch or a commit using build-arg. This allows a docker image to # be built from a specified Git state. The default image will use the Git tip of diff --git a/app/package.json b/app/package.json index 6b6729f20..7eae3f61f 100644 --- a/app/package.json +++ b/app/package.json @@ -94,7 +94,8 @@ "react-scripts": "^5.0.1", "sass": "1.43.4", "storybook": "7.5.3", - "ts-protoc-gen": "0.12.0", + "ts-protoc-gen": "0.15.0", + "protoc-gen-js": "3.21.2", "typescript": "4.1.6", "webpack": "5.89.0" }, diff --git a/app/src/types/generated/auctioneerrpc/auctioneer_pb.js b/app/src/types/generated/auctioneerrpc/auctioneer_pb.js index 19084131d..094f9189a 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); 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.ReserveAccountRequest, jspb.Message); +goog.inherits(proto.poolrpc.MarketInfo.TierValue, jspb.Message); if (goog.DEBUG && !COMPILED) { - proto.poolrpc.ReserveAccountRequest.displayName = 'proto.poolrpc.ReserveAccountRequest'; + /** + * @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.MarketInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @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,20 +3551,27 @@ 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; @@ -2218,34 +3579,19 @@ proto.poolrpc.ClientAuctionMessage.prototype.hasRecover = 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.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,30 @@ 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 +4459,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 +4577,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 +4595,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 +4627,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 +4773,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 +4815,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 +4857,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 +4899,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 +4941,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 +4973,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 +5029,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 +5128,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,8 +5150,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,8 +5173,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 +5196,30 @@ 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 +5229,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 +5351,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 +5396,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 +5414,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 +5599,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 +5636,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 +5673,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 +5710,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 +5747,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 +5784,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 +5821,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 +5849,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 +5871,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 +6005,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 +6047,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 +6079,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 +6201,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 +6233,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 +6283,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,8 +6346,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 +6365,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 +6386,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 +6404,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 +6464,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 +6504,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,8 +6629,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 +6648,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 +6667,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 +6686,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 +6705,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 +6765,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 +6783,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 +6801,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 +6843,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 +6861,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,8 +6883,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 +6902,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 +6934,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 +7044,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 +7086,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 +7107,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 +7125,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 +7181,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 +7273,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,8 +7295,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 +7315,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 +7334,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 +7366,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 +7500,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 +7542,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 +7574,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 +7720,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 +7738,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 +7780,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 +7799,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 +7827,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 +7849,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 +8057,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 +8075,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 +8117,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 +8159,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 +8201,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 +8219,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 +8237,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 +8256,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 +8316,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 +8334,16 @@ proto.poolrpc.AuctionAccount.prototype.getVersion = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.AuctionAccount} returns this + */ proto.poolrpc.AuctionAccount.prototype.setVersion = function(value) { - jspb.Message.setProto3IntField(this, 10, value); + return 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 - */ -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) { - proto.poolrpc.MatchedOrder.displayName = 'proto.poolrpc.MatchedOrder'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -7019,13 +8355,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 +8373,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 +8490,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 +8509,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 +8528,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 +8547,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 +8579,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 +8692,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 +8728,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 +8760,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 +8873,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 +8909,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 +8941,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 +9109,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 +9127,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 +9145,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 +9187,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 +9205,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 +9223,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 +9244,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 +9262,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 +9286,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 +9555,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 +9573,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 +9591,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 +9609,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 +9651,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 +9693,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 +9735,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 +9777,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 +9796,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 +9815,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 +9833,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 +9851,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 +9893,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 +9954,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 +9991,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 +10041,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 +10055,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 +10226,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 +10262,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 +10280,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 +10298,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 +10316,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 +10402,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 +10551,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 +10587,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 +10605,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 +10623,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 +10641,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 +10673,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 +10795,29 @@ proto.poolrpc.CancelOrder.prototype.getOrderNonce_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ -proto.poolrpc.CancelOrder.prototype.setOrderNonce = 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 + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.CancelOrder} returns this */ -proto.poolrpc.InvalidOrder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.poolrpc.CancelOrder.prototype.setOrderNonce = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; -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 +10827,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 +10980,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 +10998,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 +11016,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 +11048,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 +11161,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 +11221,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 +11253,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 +11363,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 +11405,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 +11426,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 +11444,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 +11605,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 +11627,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 +11749,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 +11767,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 +11785,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 +11827,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 +11846,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 +11865,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 +11884,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 +11903,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 +11922,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 +11982,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 +12001,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 +12020,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 +12052,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 +12186,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 +12228,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 +12260,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 +12382,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 +12414,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 +12524,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 +12542,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 +12574,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 +12653,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 +12675,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 +12745,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 +12763,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 +12869,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 +12887,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 +12906,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,8 +12946,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 +12965,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 +12983,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 +13001,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,8 +13023,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; }; @@ -11691,30 +13042,16 @@ proto.poolrpc.TermsResponse.prototype.getAutoRenewExtensionBlocks = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.poolrpc.TermsResponse} returns this + */ proto.poolrpc.TermsResponse.prototype.setAutoRenewExtensionBlocks = 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.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) { - proto.poolrpc.RelevantBatchRequest.displayName = 'proto.poolrpc.RelevantBatchRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -11726,13 +13063,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 +13081,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 +13215,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 +13257,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 +13297,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 +13315,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 +13387,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 +13414,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 +13524,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 +13566,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 +13585,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 +13604,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,8 +13626,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 +13645,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 +13664,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 +13724,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 +13742,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 +13760,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 +13782,30 @@ 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 +13815,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 +13925,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 +13943,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 +13975,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 +14085,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 +14103,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 +14135,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 +14269,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 +14287,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 +14319,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 +14453,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 +14471,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 +14489,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 +14507,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 +14539,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 +14673,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 +14691,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 +14709,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 +14727,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 +14759,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 +14910,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 +14947,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 +14983,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 +15001,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 +15019,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 +15051,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 +15173,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 + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.BatchSnapshotRequest} returns this */ -proto.poolrpc.MatchedMarketSnapshot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.MatchedMarketSnapshot.repeatedFields_, null); +proto.poolrpc.BatchSnapshotRequest.prototype.setBatchId = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; -goog.inherits(proto.poolrpc.MatchedMarketSnapshot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.MatchedMarketSnapshot.displayName = 'proto.poolrpc.MatchedMarketSnapshot'; -} + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -13871,13 +15194,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 +15212,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 +15326,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 +15345,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 +15363,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 +15384,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 +15402,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 +15498,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 +15610,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 +15652,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 +15694,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 +15712,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 +15731,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 +15750,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 +15768,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 +15810,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 +15828,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 +15846,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 +15868,17 @@ 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 +15890,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 +15908,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 +16030,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 +16081,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 +16215,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 +16233,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 +16254,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 +16272,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 +16374,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 +16393,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 +16425,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 +16559,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 +16577,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 +16598,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 +16616,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 +16718,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 +16737,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 +16769,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 +16848,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 +16859,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 +16877,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 +17015,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 +17037,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 +17147,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 +17165,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 +17184,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 +17203,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 +17222,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 +17241,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 +17260,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 +17279,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 +17298,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 +17317,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 +17349,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 +17398,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,8 +17450,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 e8cdc0ed9..4c9701674 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); 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, ""), groupId: msg.getGroupId_asB64() @@ -185,18 +285,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); }; @@ -233,9 +334,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); }; @@ -248,9 +352,12 @@ 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); }; @@ -287,41 +394,29 @@ proto.litrpc.PrivacyMapConversionRequest.prototype.getGroupId_asU8 = function() }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.PrivacyMapConversionRequest} returns this + */ proto.litrpc.PrivacyMapConversionRequest.prototype.setGroupId = 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.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) { @@ -331,8 +426,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} @@ -429,41 +524,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) { @@ -473,8 +556,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} @@ -488,8 +571,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"), @@ -703,9 +786,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); }; @@ -718,9 +804,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); }; @@ -733,9 +822,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); }; @@ -748,9 +840,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); }; @@ -763,9 +858,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); }; @@ -778,43 +876,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); }; @@ -851,9 +954,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); }; @@ -866,9 +972,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); }; @@ -881,9 +990,12 @@ 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); }; @@ -920,30 +1032,16 @@ proto.litrpc.ListActionsRequest.prototype.getGroupId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.ListActionsRequest} returns this + */ proto.litrpc.ListActionsRequest.prototype.setGroupId = 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.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} @@ -955,13 +1053,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) { @@ -971,8 +1071,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} @@ -1097,9 +1197,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); }; @@ -1113,8 +1216,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([]); }; @@ -1127,9 +1234,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); }; @@ -1142,41 +1252,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) { @@ -1186,8 +1284,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} @@ -1404,9 +1502,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); }; @@ -1419,9 +1520,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); }; @@ -1434,9 +1538,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); }; @@ -1449,9 +1556,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); }; @@ -1464,9 +1574,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); }; @@ -1479,9 +1592,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); }; @@ -1494,9 +1610,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); }; @@ -1509,9 +1628,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); }; @@ -1524,9 +1646,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); }; @@ -1539,9 +1664,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); }; @@ -1578,9 +1706,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 59dca2ba5..3d118ebbd 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); goog.exportSymbol('proto.litrpc.Account', null, global); goog.exportSymbol('proto.litrpc.AccountInfoRequest', null, global); @@ -25,7 +35,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 @@ -41,19 +50,236 @@ 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.AccountInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.AccountInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.AccountInfoRequest.displayName = 'proto.litrpc.AccountInfoRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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) { @@ -63,8 +289,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} @@ -185,9 +411,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); }; @@ -200,9 +429,12 @@ 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); }; @@ -215,41 +447,29 @@ proto.litrpc.CreateAccountRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.CreateAccountRequest} returns this + */ proto.litrpc.CreateAccountRequest.prototype.setLabel = 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.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) { @@ -259,8 +479,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} @@ -372,20 +592,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; @@ -425,30 +652,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} @@ -460,13 +673,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) { @@ -476,8 +691,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} @@ -664,9 +879,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); }; @@ -679,9 +897,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); }; @@ -694,9 +915,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); }; @@ -709,9 +933,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); }; @@ -724,9 +951,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); }; @@ -740,9 +970,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); }; @@ -756,8 +989,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([]); }; @@ -771,9 +1008,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); }; @@ -787,8 +1027,12 @@ 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([]); }; @@ -801,41 +1045,29 @@ proto.litrpc.Account.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Account} returns this + */ proto.litrpc.Account.prototype.setLabel = 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.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) { @@ -845,8 +1077,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} @@ -967,41 +1199,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) { @@ -1011,8 +1231,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} @@ -1157,9 +1377,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); }; @@ -1172,9 +1395,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); }; @@ -1187,41 +1413,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) { @@ -1231,8 +1445,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} @@ -1365,9 +1579,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); }; @@ -1380,9 +1597,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); }; @@ -1395,9 +1615,12 @@ 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); }; @@ -1410,41 +1633,29 @@ proto.litrpc.UpdateAccountRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.UpdateAccountRequest} returns this + */ proto.litrpc.UpdateAccountRequest.prototype.setLabel = 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.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) { @@ -1454,8 +1665,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} @@ -1533,23 +1744,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} @@ -1561,13 +1755,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) { @@ -1577,8 +1773,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} @@ -1679,9 +1875,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); }; @@ -1695,40 +1894,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.AccountInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.AccountInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.AccountInfoRequest.displayName = 'proto.litrpc.AccountInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.AccountInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -1738,8 +1926,8 @@ proto.litrpc.AccountInfoRequest.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.AccountInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -1848,9 +2036,12 @@ proto.litrpc.AccountInfoRequest.prototype.getId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AccountInfoRequest} returns this + */ proto.litrpc.AccountInfoRequest.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1863,41 +2054,29 @@ proto.litrpc.AccountInfoRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AccountInfoRequest} returns this + */ proto.litrpc.AccountInfoRequest.prototype.setLabel = 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.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) { @@ -1907,8 +2086,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} @@ -2017,9 +2196,12 @@ 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); }; @@ -2032,41 +2214,29 @@ proto.litrpc.RemoveAccountRequest.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.RemoveAccountRequest} returns this + */ proto.litrpc.RemoveAccountRequest.prototype.setLabel = 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.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) { @@ -2076,8 +2246,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 0902b8c56..de590d78d 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); 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,13 +325,13 @@ 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), linkedGroupId: msg.getLinkedGroupId_asB64(), privacyFlags: jspb.Message.getFieldWithDefault(msg, 9, "0"), - privacyFlagsSet: jspb.Message.getFieldWithDefault(msg, 10, false) + privacyFlagsSet: jspb.Message.getBooleanFieldWithDefault(msg, 10, false) }; if (includeInstance) { @@ -139,7 +387,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: @@ -272,9 +520,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); }; @@ -287,9 +538,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); }; @@ -302,26 +556,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); }; @@ -338,8 +596,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; }; @@ -353,20 +616,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; @@ -375,18 +645,19 @@ 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); }; @@ -423,9 +694,12 @@ proto.litrpc.AddAutopilotSessionRequest.prototype.getLinkedGroupId_asU8 = functi }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.AddAutopilotSessionRequest} returns this + */ proto.litrpc.AddAutopilotSessionRequest.prototype.setLinkedGroupId = function(value) { - jspb.Message.setProto3BytesField(this, 8, value); + return jspb.Message.setProto3BytesField(this, 8, value); }; @@ -438,58 +712,47 @@ proto.litrpc.AddAutopilotSessionRequest.prototype.getPrivacyFlags = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.AddAutopilotSessionRequest} returns this + */ proto.litrpc.AddAutopilotSessionRequest.prototype.setPrivacyFlags = function(value) { - jspb.Message.setProto3StringIntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; /** * optional bool privacy_flags_set = 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.litrpc.AddAutopilotSessionRequest.prototype.getPrivacyFlagsSet = 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.litrpc.AddAutopilotSessionRequest} returns this + */ proto.litrpc.AddAutopilotSessionRequest.prototype.setPrivacyFlagsSet = 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.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) { @@ -499,8 +762,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} @@ -612,20 +875,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; @@ -665,41 +935,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) { @@ -709,8 +967,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} @@ -788,23 +1046,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} @@ -816,13 +1057,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) { @@ -832,8 +1075,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} @@ -934,9 +1177,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); }; @@ -950,40 +1196,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) { @@ -993,8 +1228,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} @@ -1094,20 +1329,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; @@ -1115,34 +1357,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) { @@ -1152,8 +1379,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} @@ -1231,34 +1458,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) { @@ -1268,8 +1480,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} @@ -1317,7 +1529,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: @@ -1369,40 +1581,30 @@ 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) { @@ -1412,8 +1614,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} @@ -1534,41 +1736,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) { @@ -1578,8 +1768,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} @@ -1657,23 +1847,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} @@ -1685,13 +1858,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) { @@ -1701,8 +1876,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} @@ -1715,7 +1890,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), defaultConfig: jspb.Message.getFieldWithDefault(msg, 6, ""), privacyFlags: jspb.Message.getFieldWithDefault(msg, 7, "0") }; @@ -1765,7 +1940,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: @@ -1873,9 +2048,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); }; @@ -1888,9 +2066,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); }; @@ -1907,8 +2088,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; }; @@ -1922,9 +2108,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); }; @@ -1938,25 +2127,30 @@ 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); }; @@ -1969,9 +2163,12 @@ proto.litrpc.Feature.prototype.getDefaultConfig = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Feature} returns this + */ proto.litrpc.Feature.prototype.setDefaultConfig = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -1984,41 +2181,29 @@ proto.litrpc.Feature.prototype.getPrivacyFlags = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Feature} returns this + */ proto.litrpc.Feature.prototype.setPrivacyFlags = 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.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) { @@ -2028,8 +2213,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} @@ -2037,7 +2222,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) @@ -2161,18 +2346,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); }; @@ -2186,20 +2372,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; @@ -2216,20 +2409,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; @@ -2246,20 +2446,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; @@ -2267,23 +2474,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} @@ -2295,13 +2485,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) { @@ -2311,8 +2503,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} @@ -2424,9 +2616,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); }; @@ -2440,9 +2635,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); }; @@ -2456,8 +2654,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 a3846abd1..677c9b161 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); goog.exportSymbol('proto.litrpc.AddSessionRequest', null, global); goog.exportSymbol('proto.litrpc.AddSessionResponse', null, global); @@ -32,12 +42,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 @@ -53,8 +63,433 @@ 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'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.ChannelConstraint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.ChannelConstraint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.ChannelConstraint.displayName = 'proto.litrpc.ChannelConstraint'; +} + /** * List of repeated fields within this message type. * @private {!Array} @@ -66,13 +501,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) { @@ -82,8 +519,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} @@ -95,7 +532,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, "") @@ -255,9 +692,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); }; @@ -270,9 +710,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); }; @@ -285,9 +728,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); }; @@ -300,26 +746,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); }; @@ -333,9 +783,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); }; @@ -349,8 +802,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([]); }; @@ -361,43 +818,31 @@ proto.litrpc.AddSessionRequest.prototype.clearMacaroonCustomPermissionsList = fu proto.litrpc.AddSessionRequest.prototype.getAccountId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; - - -/** @param {string} value */ -proto.litrpc.AddSessionRequest.prototype.setAccountId = function(value) { - 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 + + +/** + * @param {string} value + * @return {!proto.litrpc.AddSessionRequest} returns this */ -proto.litrpc.MacaroonPermission = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.litrpc.AddSessionRequest.prototype.setAccountId = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; -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) { @@ -407,8 +852,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} @@ -517,9 +962,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); }; @@ -532,41 +980,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) { @@ -576,8 +1012,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} @@ -677,20 +1113,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; @@ -698,34 +1141,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) { @@ -735,8 +1163,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} @@ -750,7 +1178,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(), @@ -859,7 +1287,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: @@ -873,7 +1301,7 @@ proto.litrpc.Session.deserializeBinaryFromReader = function(msg, reader) { case 18: var value = msg.getFeatureConfigsMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); }); break; case 19: @@ -1073,9 +1501,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); }; @@ -1088,9 +1519,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); }; @@ -1103,9 +1537,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); }; @@ -1118,9 +1555,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); }; @@ -1133,9 +1573,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); }; @@ -1148,26 +1591,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); }; @@ -1204,9 +1651,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); }; @@ -1219,9 +1669,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); }; @@ -1258,9 +1711,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); }; @@ -1297,9 +1753,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); }; @@ -1312,9 +1771,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); }; @@ -1328,20 +1790,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; @@ -1357,9 +1826,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); }; @@ -1376,8 +1848,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; }; @@ -1390,9 +1867,12 @@ 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); }; @@ -1429,9 +1909,12 @@ proto.litrpc.Session.prototype.getGroupId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setGroupId = function(value) { - jspb.Message.setProto3BytesField(this, 17, value); + return jspb.Message.setProto3BytesField(this, 17, value); }; @@ -1448,8 +1931,13 @@ proto.litrpc.Session.prototype.getFeatureConfigsMap = function(opt_noLazyCreate) }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.clearFeatureConfigsMap = function() { this.getFeatureConfigsMap().clear(); + return this; }; @@ -1462,30 +1950,16 @@ proto.litrpc.Session.prototype.getPrivacyFlags = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.Session} returns this + */ proto.litrpc.Session.prototype.setPrivacyFlags = function(value) { - jspb.Message.setProto3StringIntField(this, 19, value); + return jspb.Message.setProto3StringIntField(this, 19, value); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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} @@ -1497,13 +1971,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) { @@ -1513,8 +1989,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} @@ -1524,7 +2000,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) { @@ -1627,9 +2103,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); }; @@ -1643,8 +2122,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([]); }; @@ -1657,55 +2140,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) { @@ -1715,8 +2191,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} @@ -1794,23 +2270,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} @@ -1822,13 +2281,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) { @@ -1838,8 +2299,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} @@ -1940,9 +2401,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); }; @@ -1956,40 +2420,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) { @@ -1999,8 +2452,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} @@ -2121,41 +2574,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) { @@ -2165,8 +2606,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} @@ -2244,34 +2685,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) { @@ -2281,8 +2707,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} @@ -2330,7 +2756,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: @@ -2382,29 +2808,17 @@ proto.litrpc.RulesMap.prototype.getRulesMap = function(opt_noLazyCreate) { }; +/** + * 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; }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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'; -} /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all @@ -2442,13 +2856,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) { @@ -2458,8 +2874,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} @@ -2671,20 +3087,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; @@ -2701,20 +3124,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; @@ -2731,20 +3161,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; @@ -2761,20 +3198,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; @@ -2791,20 +3235,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; @@ -2821,20 +3272,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; @@ -2851,20 +3309,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; @@ -2881,20 +3346,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; @@ -2911,20 +3383,27 @@ proto.litrpc.RuleValue.prototype.getChannelConstraint = function() { }; -/** @param {?proto.litrpc.ChannelConstraint|undefined} value */ +/** + * @param {?proto.litrpc.ChannelConstraint|undefined} value + * @return {!proto.litrpc.RuleValue} returns this +*/ proto.litrpc.RuleValue.prototype.setChannelConstraint = function(value) { - jspb.Message.setOneofWrapperField(this, 9, proto.litrpc.RuleValue.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 9, proto.litrpc.RuleValue.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.litrpc.RuleValue} returns this + */ proto.litrpc.RuleValue.prototype.clearChannelConstraint = function() { - this.setChannelConstraint(undefined); + return this.setChannelConstraint(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.litrpc.RuleValue.prototype.hasChannelConstraint = function() { return jspb.Message.getField(this, 9) != null; @@ -2932,34 +3411,19 @@ proto.litrpc.RuleValue.prototype.hasChannelConstraint = 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) { @@ -2969,8 +3433,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} @@ -3084,20 +3548,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; @@ -3114,20 +3585,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; @@ -3135,34 +3613,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) { @@ -3172,8 +3635,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} @@ -3282,9 +3745,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); }; @@ -3297,41 +3763,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) { @@ -3341,8 +3795,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} @@ -3451,9 +3905,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); }; @@ -3466,41 +3923,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) { @@ -3510,8 +3955,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} @@ -3692,9 +4137,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); }; @@ -3707,9 +4155,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); }; @@ -3722,9 +4173,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); }; @@ -3737,9 +4191,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); }; @@ -3752,9 +4209,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); }; @@ -3767,9 +4227,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); }; @@ -3782,9 +4245,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); }; @@ -3797,41 +4263,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) { @@ -3841,8 +4295,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} @@ -3951,9 +4405,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); }; @@ -3966,41 +4423,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) { @@ -4010,8 +4455,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} @@ -4120,9 +4565,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); }; @@ -4135,41 +4583,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) { @@ -4179,8 +4615,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} @@ -4258,23 +4694,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} @@ -4286,13 +4705,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) { @@ -4302,8 +4723,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} @@ -4311,7 +4732,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) { @@ -4349,8 +4770,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(); @@ -4400,44 +4823,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} @@ -4449,13 +4863,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) { @@ -4465,8 +4881,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} @@ -4474,7 +4890,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) { @@ -4563,55 +4979,48 @@ 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([]); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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.ChannelConstraint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.ChannelConstraint, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.ChannelConstraint.displayName = 'proto.litrpc.ChannelConstraint'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.ChannelConstraint.prototype.toObject = function(opt_includeInstance) { @@ -4621,8 +5030,8 @@ proto.litrpc.ChannelConstraint.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.ChannelConstraint} msg The msg instance to transform. * @return {!Object} @@ -4633,8 +5042,8 @@ proto.litrpc.ChannelConstraint.toObject = function(includeInstance, msg) { minCapacitySat: jspb.Message.getFieldWithDefault(msg, 1, "0"), maxCapacitySat: jspb.Message.getFieldWithDefault(msg, 2, "0"), maxPushSat: jspb.Message.getFieldWithDefault(msg, 3, "0"), - privateAllowed: jspb.Message.getFieldWithDefault(msg, 4, false), - publicAllowed: jspb.Message.getFieldWithDefault(msg, 5, false) + privateAllowed: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + publicAllowed: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) }; if (includeInstance) { @@ -4767,9 +5176,12 @@ proto.litrpc.ChannelConstraint.prototype.getMinCapacitySat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ChannelConstraint} returns this + */ proto.litrpc.ChannelConstraint.prototype.setMinCapacitySat = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -4782,9 +5194,12 @@ proto.litrpc.ChannelConstraint.prototype.getMaxCapacitySat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ChannelConstraint} returns this + */ proto.litrpc.ChannelConstraint.prototype.setMaxCapacitySat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -4797,43 +5212,48 @@ proto.litrpc.ChannelConstraint.prototype.getMaxPushSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.ChannelConstraint} returns this + */ proto.litrpc.ChannelConstraint.prototype.setMaxPushSat = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; /** * optional bool private_allowed = 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.ChannelConstraint.prototype.getPrivateAllowed = 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.ChannelConstraint} returns this + */ proto.litrpc.ChannelConstraint.prototype.setPrivateAllowed = function(value) { - jspb.Message.setProto3BooleanField(this, 4, value); + return jspb.Message.setProto3BooleanField(this, 4, value); }; /** * optional bool public_allowed = 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.ChannelConstraint.prototype.getPublicAllowed = 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.ChannelConstraint} returns this + */ proto.litrpc.ChannelConstraint.prototype.setPublicAllowed = function(value) { - jspb.Message.setProto3BooleanField(this, 5, value); + return jspb.Message.setProto3BooleanField(this, 5, value); }; diff --git a/app/src/types/generated/lit-status_pb.js b/app/src/types/generated/lit-status_pb.js index 5ab4e7cd0..b2c540690 100644 --- a/app/src/types/generated/lit-status_pb.js +++ b/app/src/types/generated/lit-status_pb.js @@ -1,23 +1,32 @@ /* eslint-disable */ var proto = { litrpc: {} }; +// source: lit-status.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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); goog.exportSymbol('proto.litrpc.SubServerStatus', null, global); goog.exportSymbol('proto.litrpc.SubServerStatusReq', null, global); goog.exportSymbol('proto.litrpc.SubServerStatusResp', null, global); - /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -33,19 +42,68 @@ proto.litrpc.SubServerStatusReq = function(opt_data) { }; goog.inherits(proto.litrpc.SubServerStatusReq, jspb.Message); if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ proto.litrpc.SubServerStatusReq.displayName = 'proto.litrpc.SubServerStatusReq'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.SubServerStatusResp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.SubServerStatusResp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.SubServerStatusResp.displayName = 'proto.litrpc.SubServerStatusResp'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.SubServerStatus = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.SubServerStatus, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.SubServerStatus.displayName = 'proto.litrpc.SubServerStatus'; +} + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.SubServerStatusReq.prototype.toObject = function(opt_includeInstance) { @@ -55,8 +113,8 @@ proto.litrpc.SubServerStatusReq.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.SubServerStatusReq} msg The msg instance to transform. * @return {!Object} @@ -134,34 +192,19 @@ proto.litrpc.SubServerStatusReq.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.SubServerStatusResp = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.SubServerStatusResp, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.SubServerStatusResp.displayName = 'proto.litrpc.SubServerStatusResp'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.SubServerStatusResp.prototype.toObject = function(opt_includeInstance) { @@ -171,8 +214,8 @@ proto.litrpc.SubServerStatusResp.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.SubServerStatusResp} msg The msg instance to transform. * @return {!Object} @@ -220,7 +263,7 @@ proto.litrpc.SubServerStatusResp.deserializeBinaryFromReader = function(msg, rea case 1: var value = msg.getSubServersMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.SubServerStatus.deserializeBinaryFromReader, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.litrpc.SubServerStatus.deserializeBinaryFromReader, "", new proto.litrpc.SubServerStatus()); }); break; default: @@ -272,40 +315,30 @@ proto.litrpc.SubServerStatusResp.prototype.getSubServersMap = function(opt_noLaz }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.litrpc.SubServerStatusResp} returns this + */ proto.litrpc.SubServerStatusResp.prototype.clearSubServersMap = function() { this.getSubServersMap().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.SubServerStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.SubServerStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.SubServerStatus.displayName = 'proto.litrpc.SubServerStatus'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.SubServerStatus.prototype.toObject = function(opt_includeInstance) { @@ -315,8 +348,8 @@ proto.litrpc.SubServerStatus.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.SubServerStatus} msg The msg instance to transform. * @return {!Object} @@ -324,8 +357,8 @@ proto.litrpc.SubServerStatus.prototype.toObject = function(opt_includeInstance) */ proto.litrpc.SubServerStatus.toObject = function(includeInstance, msg) { var f, obj = { - disabled: jspb.Message.getFieldWithDefault(msg, 1, false), - running: jspb.Message.getFieldWithDefault(msg, 2, false), + disabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + running: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), error: jspb.Message.getFieldWithDefault(msg, 3, ""), customStatus: jspb.Message.getFieldWithDefault(msg, 4, "") }; @@ -442,35 +475,37 @@ proto.litrpc.SubServerStatus.serializeBinaryToWriter = function(message, writer) /** * optional bool disabled = 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.SubServerStatus.prototype.getDisabled = 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.SubServerStatus} returns this + */ proto.litrpc.SubServerStatus.prototype.setDisabled = function(value) { - jspb.Message.setProto3BooleanField(this, 1, value); + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** * optional bool running = 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.litrpc.SubServerStatus.prototype.getRunning = 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.litrpc.SubServerStatus} returns this + */ proto.litrpc.SubServerStatus.prototype.setRunning = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -483,9 +518,12 @@ proto.litrpc.SubServerStatus.prototype.getError = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.SubServerStatus} returns this + */ proto.litrpc.SubServerStatus.prototype.setError = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -498,9 +536,12 @@ proto.litrpc.SubServerStatus.prototype.getCustomStatus = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.SubServerStatus} returns this + */ proto.litrpc.SubServerStatus.prototype.setCustomStatus = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; diff --git a/app/src/types/generated/lnd_pb.js b/app/src/types/generated/lnd_pb.js index 0af195714..632085870 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); goog.exportSymbol('proto.lnrpc.AMP', null, global); goog.exportSymbol('proto.lnrpc.AMPInvoiceState', null, global); @@ -52,17 +62,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); @@ -92,6 +105,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); @@ -101,9 +115,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.GetDebugInfoRequest', null, global); goog.exportSymbol('proto.lnrpc.GetDebugInfoResponse', null, global); goog.exportSymbol('proto.lnrpc.GetInfoRequest', null, global); @@ -170,6 +186,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); @@ -196,6 +213,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); @@ -203,13 +221,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); @@ -240,7 +261,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 @@ -251,24 +271,4315 @@ goog.exportSymbol('proto.lnrpc.WalletBalanceResponse', null, global); * @extends {jspb.Message} * @constructor */ -proto.lnrpc.LookupHtlcResolutionRequest = function(opt_data) { +proto.lnrpc.LookupHtlcResolutionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.LookupHtlcResolutionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.LookupHtlcResolutionRequest.displayName = '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.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'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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) { + /** + * @public + * @override + */ + proto.lnrpc.SubscribeCustomMessagesRequest.displayName = 'proto.lnrpc.SubscribeCustomMessagesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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) { + /** + * @public + * @override + */ + proto.lnrpc.CustomMessage.displayName = 'proto.lnrpc.CustomMessage'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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) { + /** + * @public + * @override + */ + proto.lnrpc.SendCustomMessageRequest.displayName = 'proto.lnrpc.SendCustomMessageRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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) { + /** + * @public + * @override + */ + proto.lnrpc.SendCustomMessageResponse.displayName = 'proto.lnrpc.SendCustomMessageResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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) { + /** + * @public + * @override + */ + proto.lnrpc.Utxo.displayName = 'proto.lnrpc.Utxo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.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) { + /** + * @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'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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) { + /** + * @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 + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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) { + /** + * @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.SendResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.SendResponse.displayName = 'proto.lnrpc.SendResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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.GetDebugInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.GetDebugInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.GetDebugInfoRequest.displayName = 'proto.lnrpc.GetDebugInfoRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.lnrpc.GetDebugInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.GetDebugInfoResponse.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.GetDebugInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.GetDebugInfoResponse.displayName = 'proto.lnrpc.GetDebugInfoResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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.InstantUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.InstantUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.InstantUpdate.displayName = 'proto.lnrpc.InstantUpdate'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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, proto.lnrpc.OpenChannelRequest.repeatedFields_, 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.BlindedPaymentPath = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BlindedPaymentPath.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.BlindedPaymentPath, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.BlindedPaymentPath.displayName = 'proto.lnrpc.BlindedPaymentPath'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.lnrpc.BlindedPath = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BlindedPath.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.BlindedPath, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.BlindedPath.displayName = 'proto.lnrpc.BlindedPath'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.lnrpc.BlindedHop = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.BlindedHop, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.BlindedHop.displayName = 'proto.lnrpc.BlindedHop'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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.InboundFee = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.lnrpc.InboundFee, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.InboundFee.displayName = 'proto.lnrpc.InboundFee'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. 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.LookupHtlcResolutionRequest, jspb.Message); +goog.inherits(proto.lnrpc.ListMacaroonIDsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - proto.lnrpc.LookupHtlcResolutionRequest.displayName = 'proto.lnrpc.LookupHtlcResolutionRequest'; + /** + * @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 suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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) { @@ -278,8 +4589,8 @@ proto.lnrpc.LookupHtlcResolutionRequest.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.lnrpc.LookupHtlcResolutionRequest} msg The msg instance to transform. * @return {!Object} @@ -388,9 +4699,12 @@ proto.lnrpc.LookupHtlcResolutionRequest.prototype.getChanId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.LookupHtlcResolutionRequest} returns this + */ proto.lnrpc.LookupHtlcResolutionRequest.prototype.setChanId = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -403,41 +4717,29 @@ proto.lnrpc.LookupHtlcResolutionRequest.prototype.getHtlcIndex = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.LookupHtlcResolutionRequest} returns this + */ proto.lnrpc.LookupHtlcResolutionRequest.prototype.setHtlcIndex = 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.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) { - proto.lnrpc.LookupHtlcResolutionResponse.displayName = 'proto.lnrpc.LookupHtlcResolutionResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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) { @@ -447,8 +4749,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} @@ -456,8 +4758,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) { @@ -550,67 +4852,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) { @@ -620,8 +4909,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} @@ -699,34 +4988,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) { @@ -736,8 +5010,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} @@ -882,9 +5156,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); }; @@ -897,9 +5174,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); }; @@ -936,41 +5216,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) { @@ -980,8 +5248,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} @@ -1126,9 +5394,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); }; @@ -1141,9 +5412,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); }; @@ -1180,41 +5454,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) { @@ -1224,8 +5486,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} @@ -1303,34 +5565,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) { @@ -1340,8 +5587,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} @@ -1500,9 +5747,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); }; @@ -1515,9 +5765,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); }; @@ -1530,9 +5783,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); }; @@ -1545,9 +5801,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); }; @@ -1561,20 +5820,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; @@ -1590,41 +5856,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) { @@ -1634,8 +5888,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} @@ -1648,7 +5902,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) { @@ -1792,9 +6046,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); }; @@ -1807,9 +6064,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); }; @@ -1822,9 +6082,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); }; @@ -1837,9 +6100,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); }; @@ -1852,47 +6118,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} @@ -1904,13 +6157,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) { @@ -1920,8 +6175,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} @@ -1936,7 +6191,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, ""), @@ -2156,9 +6411,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); }; @@ -2171,9 +6429,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); }; @@ -2186,9 +6447,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); }; @@ -2201,9 +6465,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); }; @@ -2216,9 +6483,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); }; @@ -2231,9 +6501,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); }; @@ -2246,9 +6519,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); }; @@ -2261,23 +6537,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([]); }; @@ -2291,9 +6575,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); }; @@ -2307,8 +6594,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([]); }; @@ -2321,9 +6612,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); }; @@ -2336,9 +6630,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); }; @@ -2352,9 +6649,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); }; @@ -2368,40 +6668,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) { @@ -2411,8 +6700,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} @@ -2533,9 +6822,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); }; @@ -2548,9 +6840,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); }; @@ -2563,30 +6858,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} @@ -2598,13 +6879,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) { @@ -2614,8 +6897,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} @@ -2716,9 +6999,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); }; @@ -2732,29 +7018,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 @@ -2786,13 +7059,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) { @@ -2802,8 +7077,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} @@ -2924,20 +7199,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; @@ -2953,20 +7235,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; @@ -2982,20 +7271,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; @@ -3003,23 +7299,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} @@ -3031,13 +7310,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) { @@ -3047,8 +7328,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} @@ -3069,8 +7350,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() }; @@ -3160,7 +7441,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: @@ -3168,8 +7449,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()); @@ -3350,9 +7633,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); }; @@ -3365,9 +7651,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); }; @@ -3380,9 +7669,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); }; @@ -3395,9 +7687,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); }; @@ -3434,9 +7729,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); }; @@ -3449,9 +7747,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); }; @@ -3464,9 +7765,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); }; @@ -3479,9 +7783,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); }; @@ -3495,20 +7802,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; @@ -3524,9 +7838,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); }; @@ -3563,9 +7880,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); }; @@ -3578,9 +7898,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); }; @@ -3597,25 +7920,31 @@ 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); }; @@ -3628,23 +7957,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([]); }; @@ -3681,41 +8018,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) { @@ -3725,8 +8050,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} @@ -3861,9 +8186,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); }; @@ -3900,9 +8228,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); }; @@ -3916,20 +8247,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; @@ -3969,41 +8307,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) { @@ -4013,8 +8339,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} @@ -4161,9 +8487,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); }; @@ -4176,9 +8505,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); }; @@ -4192,20 +8524,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; @@ -4213,34 +8552,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) { @@ -4250,8 +8574,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} @@ -4273,8 +8597,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) { @@ -4552,9 +8876,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); }; @@ -4591,9 +8918,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); }; @@ -4630,9 +8960,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); }; @@ -4645,9 +8978,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); }; @@ -4660,9 +8996,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); }; @@ -4675,9 +9014,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); }; @@ -4690,9 +9032,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); }; @@ -4705,9 +9050,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); }; @@ -4720,9 +9068,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); }; @@ -4735,9 +9086,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); }; @@ -4750,9 +9104,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); }; @@ -4765,9 +9122,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); }; @@ -4780,9 +9140,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); }; @@ -4795,75 +9158,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) { @@ -4873,8 +9226,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} @@ -4882,7 +9235,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, ""), @@ -4892,7 +9245,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) { @@ -5084,18 +9437,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); }; @@ -5132,9 +9486,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); }; @@ -5147,9 +9504,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); }; @@ -5162,9 +9522,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); }; @@ -5177,9 +9540,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); }; @@ -5192,9 +9558,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); }; @@ -5207,9 +9576,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); }; @@ -5222,9 +9594,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); }; @@ -5237,9 +9612,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); }; @@ -5252,47 +9630,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 @@ -5323,13 +9688,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) { @@ -5339,8 +9706,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} @@ -5485,20 +9852,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; @@ -5514,20 +9888,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; @@ -5543,41 +9924,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) { @@ -5587,8 +9956,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} @@ -5733,9 +10102,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); }; @@ -5748,9 +10120,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); }; @@ -5763,41 +10138,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) { @@ -5807,8 +10170,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} @@ -5817,7 +10180,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) { @@ -5917,58 +10280,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) { @@ -5978,8 +10330,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} @@ -6088,9 +10440,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); }; @@ -6103,41 +10458,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) { @@ -6147,8 +10490,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} @@ -6159,7 +10502,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), coinSelectionStrategy: jspb.Message.getFieldWithDefault(msg, 5, 0) }; @@ -6200,7 +10543,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: @@ -6296,8 +10639,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; }; @@ -6310,9 +10658,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); }; @@ -6325,26 +10676,30 @@ 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); }; @@ -6357,41 +10712,29 @@ proto.lnrpc.EstimateFeeRequest.prototype.getCoinSelectionStrategy = function() { }; -/** @param {!proto.lnrpc.CoinSelectionStrategy} value */ +/** + * @param {!proto.lnrpc.CoinSelectionStrategy} value + * @return {!proto.lnrpc.EstimateFeeRequest} returns this + */ proto.lnrpc.EstimateFeeRequest.prototype.setCoinSelectionStrategy = 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.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) { @@ -6401,8 +10744,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} @@ -6523,9 +10866,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); }; @@ -6538,9 +10884,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); }; @@ -6553,41 +10902,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) { @@ -6597,8 +10934,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} @@ -6612,7 +10949,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), coinSelectionStrategy: jspb.Message.getFieldWithDefault(msg, 9, 0) }; @@ -6653,7 +10990,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: @@ -6782,8 +11119,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; }; @@ -6796,9 +11138,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); }; @@ -6811,9 +11156,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); }; @@ -6826,9 +11174,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); }; @@ -6841,9 +11192,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); }; @@ -6856,26 +11210,30 @@ 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); }; @@ -6888,41 +11246,29 @@ proto.lnrpc.SendManyRequest.prototype.getCoinSelectionStrategy = function() { }; -/** @param {!proto.lnrpc.CoinSelectionStrategy} value */ +/** + * @param {!proto.lnrpc.CoinSelectionStrategy} value + * @return {!proto.lnrpc.SendManyRequest} returns this + */ proto.lnrpc.SendManyRequest.prototype.setCoinSelectionStrategy = 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.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) { @@ -6932,8 +11278,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} @@ -7030,41 +11376,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) { @@ -7074,8 +11408,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} @@ -7088,10 +11422,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), coinSelectionStrategy: jspb.Message.getFieldWithDefault(msg, 10, 0) }; @@ -7280,9 +11614,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); }; @@ -7295,9 +11632,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); }; @@ -7310,9 +11650,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); }; @@ -7325,9 +11668,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); }; @@ -7340,26 +11686,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); }; @@ -7372,9 +11722,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); }; @@ -7387,26 +11740,30 @@ 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); }; @@ -7419,41 +11776,29 @@ proto.lnrpc.SendCoinsRequest.prototype.getCoinSelectionStrategy = function() { }; -/** @param {!proto.lnrpc.CoinSelectionStrategy} value */ +/** + * @param {!proto.lnrpc.CoinSelectionStrategy} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ proto.lnrpc.SendCoinsRequest.prototype.setCoinSelectionStrategy = function(value) { - jspb.Message.setProto3EnumField(this, 10, value); + return jspb.Message.setProto3EnumField(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.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) { @@ -7463,8 +11808,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} @@ -7561,41 +11906,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) { @@ -7605,8 +11938,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} @@ -7727,9 +12060,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); }; @@ -7742,9 +12078,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); }; @@ -7757,30 +12096,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} @@ -7792,13 +12117,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) { @@ -7808,8 +12135,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} @@ -7910,9 +12237,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); }; @@ -7926,40 +12256,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) { @@ -7969,8 +12288,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} @@ -8079,9 +12398,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); }; @@ -8094,41 +12416,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) { @@ -8138,8 +12448,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} @@ -8236,41 +12546,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) { @@ -8280,8 +12578,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} @@ -8290,7 +12588,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) { @@ -8414,58 +12712,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) { @@ -8475,8 +12762,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} @@ -8573,41 +12860,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) { @@ -8617,8 +12892,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} @@ -8751,9 +13026,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); }; @@ -8766,41 +13044,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) { @@ -8810,8 +13076,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} @@ -8819,7 +13085,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, "") }; @@ -8913,18 +13179,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); }; @@ -8937,41 +13204,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) { @@ -8981,8 +13236,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} @@ -8991,7 +13246,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") }; @@ -9106,20 +13361,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; @@ -9128,18 +13390,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); }; @@ -9152,41 +13415,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) { @@ -9196,8 +13447,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} @@ -9275,34 +13526,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) { @@ -9312,8 +13548,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} @@ -9410,41 +13646,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) { @@ -9454,8 +13678,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} @@ -9533,34 +13757,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) { @@ -9570,8 +13779,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} @@ -9579,7 +13788,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), @@ -9733,18 +13942,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); }; @@ -9757,9 +13967,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); }; @@ -9796,9 +14009,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); }; @@ -9811,9 +14027,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); }; @@ -9826,9 +14045,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); }; @@ -9841,9 +14063,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); }; @@ -9856,41 +14081,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) { @@ -9900,8 +14113,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} @@ -10058,9 +14271,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); }; @@ -10073,9 +14289,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); }; @@ -10088,9 +14307,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); }; @@ -10103,9 +14325,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); }; @@ -10118,9 +14343,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); }; @@ -10133,30 +14361,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} @@ -10168,13 +14382,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) { @@ -10184,8 +14400,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} @@ -10193,7 +14409,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"), @@ -10210,12 +14426,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"), @@ -10224,8 +14440,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, ""), peerScidAlias: jspb.Message.getFieldWithDefault(msg, 35, "0"), @@ -10390,8 +14606,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()); @@ -10702,18 +14920,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); }; @@ -10726,9 +14945,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); }; @@ -10741,9 +14963,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); }; @@ -10756,9 +14981,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); }; @@ -10771,9 +14999,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); }; @@ -10786,9 +15017,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); }; @@ -10801,9 +15035,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); }; @@ -10816,9 +15053,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); }; @@ -10831,9 +15071,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); }; @@ -10846,9 +15089,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); }; @@ -10861,9 +15107,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); }; @@ -10876,9 +15125,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); }; @@ -10891,9 +15143,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); }; @@ -10906,9 +15161,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); }; @@ -10922,9 +15180,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); }; @@ -10938,8 +15199,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([]); }; @@ -10952,43 +15217,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); }; @@ -11001,9 +15271,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); }; @@ -11016,9 +15289,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); }; @@ -11031,26 +15307,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); }; @@ -11063,9 +15343,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); }; @@ -11078,9 +15361,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); }; @@ -11093,9 +15379,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); }; @@ -11108,9 +15397,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); }; @@ -11123,9 +15415,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); }; @@ -11138,9 +15433,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); }; @@ -11154,20 +15452,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; @@ -11184,20 +15489,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; @@ -11213,40 +15525,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); }; @@ -11259,9 +15580,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); }; @@ -11274,9 +15598,12 @@ 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); }; @@ -11289,9 +15616,12 @@ proto.lnrpc.Channel.prototype.getPeerScidAlias = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setPeerScidAlias = function(value) { - jspb.Message.setProto3StringIntField(this, 35, value); + return jspb.Message.setProto3StringIntField(this, 35, value); }; @@ -11304,41 +15634,29 @@ proto.lnrpc.Channel.prototype.getMemo = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Channel} returns this + */ proto.lnrpc.Channel.prototype.setMemo = function(value) { - jspb.Message.setProto3StringField(this, 36, value); + return jspb.Message.setProto3StringField(this, 36, value); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. 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) { @@ -11348,8 +15666,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} @@ -11357,12 +15675,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) { @@ -11499,69 +15817,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); }; @@ -11598,47 +15920,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} @@ -11650,13 +15959,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) { @@ -11666,8 +15977,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} @@ -11768,9 +16079,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); }; @@ -11784,29 +16098,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} @@ -11818,13 +16119,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) { @@ -11834,8 +16137,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} @@ -11844,7 +16147,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) { @@ -11886,8 +16189,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(); @@ -11944,9 +16249,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); }; @@ -11959,55 +16267,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) { @@ -12017,8 +16318,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} @@ -12096,23 +16397,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} @@ -12124,13 +16408,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) { @@ -12140,8 +16426,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} @@ -12242,9 +16528,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); }; @@ -12258,29 +16547,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} @@ -12292,13 +16568,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) { @@ -12308,8 +16586,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} @@ -12331,7 +16609,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") }; @@ -12423,8 +16701,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()); @@ -12589,9 +16869,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); }; @@ -12604,9 +16887,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); }; @@ -12619,9 +16905,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); }; @@ -12634,9 +16923,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); }; @@ -12649,9 +16941,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); }; @@ -12664,9 +16959,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); }; @@ -12679,9 +16977,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); }; @@ -12694,9 +16995,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); }; @@ -12709,9 +17013,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); }; @@ -12724,9 +17031,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); }; @@ -12739,9 +17049,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); }; @@ -12754,9 +17067,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); }; @@ -12770,9 +17086,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); }; @@ -12786,8 +17105,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([]); }; @@ -12800,23 +17123,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([]); }; @@ -12829,41 +17160,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) { @@ -12873,8 +17192,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} @@ -13021,9 +17340,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); }; @@ -13036,9 +17358,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); }; @@ -13052,20 +17377,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; @@ -13081,9 +17413,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); }; @@ -13096,41 +17431,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) { @@ -13140,8 +17463,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} @@ -13149,12 +17472,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) { @@ -13291,124 +17614,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} @@ -13420,13 +17732,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) { @@ -13436,8 +17750,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} @@ -13538,9 +17852,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); }; @@ -13554,29 +17871,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} @@ -13588,13 +17892,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) { @@ -13604,8 +17910,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} @@ -13619,7 +17925,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) : [], @@ -13703,7 +18009,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: @@ -13870,9 +18176,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); }; @@ -13885,9 +18194,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); }; @@ -13900,9 +18212,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); }; @@ -13915,9 +18230,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); }; @@ -13930,9 +18248,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); }; @@ -13945,26 +18266,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); }; @@ -13977,9 +18302,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); }; @@ -13992,9 +18320,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); }; @@ -14011,8 +18342,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; }; @@ -14026,9 +18362,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); }; @@ -14042,8 +18381,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([]); }; @@ -14056,9 +18399,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); }; @@ -14071,9 +18417,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); }; @@ -14110,41 +18459,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) { @@ -14154,8 +18491,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} @@ -14264,9 +18601,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); }; @@ -14279,41 +18619,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) { @@ -14323,8 +18651,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} @@ -14332,7 +18660,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) { @@ -14414,39 +18742,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} @@ -14458,13 +18770,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) { @@ -14474,8 +18788,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} @@ -14576,9 +18890,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); }; @@ -14592,40 +18909,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) { @@ -14635,8 +18941,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} @@ -14714,34 +19020,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) { @@ -14751,8 +19042,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} @@ -14869,9 +19160,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); }; @@ -14884,41 +19178,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) { @@ -14928,8 +19210,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} @@ -15007,23 +19289,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} @@ -15035,13 +19300,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) { @@ -15051,8 +19318,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} @@ -15072,15 +19339,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) { @@ -15189,7 +19456,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: @@ -15379,9 +19646,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); }; @@ -15394,9 +19664,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); }; @@ -15409,9 +19682,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); }; @@ -15424,9 +19700,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); }; @@ -15439,9 +19718,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); }; @@ -15454,9 +19736,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); }; @@ -15469,9 +19754,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); }; @@ -15484,9 +19772,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); }; @@ -15499,9 +19790,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); }; @@ -15514,9 +19808,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); }; @@ -15529,9 +19826,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); }; @@ -15544,60 +19844,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); }; @@ -15611,9 +19917,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); }; @@ -15627,8 +19936,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([]); }; @@ -15641,23 +19954,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([]); }; @@ -15674,74 +19995,66 @@ 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.GetDebugInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.GetDebugInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.GetDebugInfoRequest.displayName = 'proto.lnrpc.GetDebugInfoRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.GetDebugInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -15751,8 +20064,8 @@ proto.lnrpc.GetDebugInfoRequest.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.GetDebugInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -15830,23 +20143,6 @@ proto.lnrpc.GetDebugInfoRequest.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.GetDebugInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.GetDebugInfoResponse.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.GetDebugInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.GetDebugInfoResponse.displayName = 'proto.lnrpc.GetDebugInfoResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -15858,13 +20154,15 @@ proto.lnrpc.GetDebugInfoResponse.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.GetDebugInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -15874,8 +20172,8 @@ proto.lnrpc.GetDebugInfoResponse.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.GetDebugInfoResponse} msg The msg instance to transform. * @return {!Object} @@ -15884,7 +20182,7 @@ proto.lnrpc.GetDebugInfoResponse.prototype.toObject = function(opt_includeInstan proto.lnrpc.GetDebugInfoResponse.toObject = function(includeInstance, msg) { var f, obj = { configMap: (f = msg.getConfigMap()) ? f.toObject(includeInstance, undefined) : [], - logList: jspb.Message.getRepeatedField(msg, 2) + logList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -15924,7 +20222,7 @@ proto.lnrpc.GetDebugInfoResponse.deserializeBinaryFromReader = function(msg, rea case 1: var value = msg.getConfigMap(); reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, ""); + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); }); break; case 2: @@ -15987,8 +20285,13 @@ proto.lnrpc.GetDebugInfoResponse.prototype.getConfigMap = function(opt_noLazyCre }; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.lnrpc.GetDebugInfoResponse} returns this + */ proto.lnrpc.GetDebugInfoResponse.prototype.clearConfigMap = function() { this.getConfigMap().clear(); + return this; }; @@ -16001,55 +20304,48 @@ proto.lnrpc.GetDebugInfoResponse.prototype.getLogList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.GetDebugInfoResponse} returns this + */ proto.lnrpc.GetDebugInfoResponse.prototype.setLogList = 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.GetDebugInfoResponse} returns this */ proto.lnrpc.GetDebugInfoResponse.prototype.addLog = 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.GetDebugInfoResponse} returns this + */ proto.lnrpc.GetDebugInfoResponse.prototype.clearLogList = function() { - this.setLogList([]); + return this.setLogList([]); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. 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) { @@ -16059,8 +20355,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} @@ -16138,34 +20434,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) { @@ -16175,8 +20456,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} @@ -16184,9 +20465,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) { @@ -16290,35 +20571,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); }; @@ -16327,45 +20610,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) { @@ -16375,8 +20646,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} @@ -16485,9 +20756,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); }; @@ -16500,41 +20774,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) { @@ -16544,8 +20806,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} @@ -16690,9 +20952,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); }; @@ -16705,9 +20970,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); }; @@ -16720,41 +20988,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) { @@ -16764,8 +21020,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} @@ -16865,20 +21121,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; @@ -16886,34 +21149,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) { @@ -16923,8 +21171,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} @@ -16933,7 +21181,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) { @@ -17057,58 +21305,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) { @@ -17118,8 +21355,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} @@ -17128,13 +21365,13 @@ 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, ""), satPerVbyte: jspb.Message.getFieldWithDefault(msg, 6, "0"), maxFeePerVbyte: jspb.Message.getFieldWithDefault(msg, 7, "0"), - noWait: jspb.Message.getFieldWithDefault(msg, 8, false) + noWait: jspb.Message.getBooleanFieldWithDefault(msg, 8, false) }; if (includeInstance) { @@ -17303,20 +21540,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; @@ -17325,18 +21569,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); }; @@ -17349,9 +21594,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); }; @@ -17364,9 +21612,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); }; @@ -17379,9 +21630,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); }; @@ -17394,9 +21648,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); }; @@ -17409,47 +21666,34 @@ 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); }; /** * optional bool no_wait = 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.CloseChannelRequest.prototype.getNoWait = 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.CloseChannelRequest} returns this + */ proto.lnrpc.CloseChannelRequest.prototype.setNoWait = 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.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 @@ -17481,13 +21725,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) { @@ -17497,8 +21743,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} @@ -17626,20 +21872,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; @@ -17656,20 +21909,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; @@ -17686,20 +21946,27 @@ proto.lnrpc.CloseStatusUpdate.prototype.getCloseInstant = function() { }; -/** @param {?proto.lnrpc.InstantUpdate|undefined} value */ +/** + * @param {?proto.lnrpc.InstantUpdate|undefined} value + * @return {!proto.lnrpc.CloseStatusUpdate} returns this +*/ proto.lnrpc.CloseStatusUpdate.prototype.setCloseInstant = function(value) { - jspb.Message.setOneofWrapperField(this, 4, proto.lnrpc.CloseStatusUpdate.oneofGroups_[0], value); + return jspb.Message.setOneofWrapperField(this, 4, proto.lnrpc.CloseStatusUpdate.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.CloseStatusUpdate} returns this + */ proto.lnrpc.CloseStatusUpdate.prototype.clearCloseInstant = function() { - this.setCloseInstant(undefined); + return this.setCloseInstant(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.CloseStatusUpdate.prototype.hasCloseInstant = function() { return jspb.Message.getField(this, 4) != null; @@ -17707,34 +21974,19 @@ proto.lnrpc.CloseStatusUpdate.prototype.hasCloseInstant = 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) { @@ -17744,8 +21996,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} @@ -17878,9 +22130,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); }; @@ -17893,41 +22148,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.InstantUpdate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.InstantUpdate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.InstantUpdate.displayName = 'proto.lnrpc.InstantUpdate'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.InstantUpdate.prototype.toObject = function(opt_includeInstance) { @@ -17937,8 +22180,8 @@ proto.lnrpc.InstantUpdate.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.InstantUpdate} msg The msg instance to transform. * @return {!Object} @@ -18016,34 +22259,19 @@ proto.lnrpc.InstantUpdate.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.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) { @@ -18053,8 +22281,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} @@ -18175,9 +22403,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); }; @@ -18190,9 +22421,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); }; @@ -18229,30 +22463,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} @@ -18264,13 +22484,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) { @@ -18280,8 +22502,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} @@ -18294,7 +22516,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, ""), coinSelectionStrategy: jspb.Message.getFieldWithDefault(msg, 7, 0) }; @@ -18454,9 +22676,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); }; @@ -18470,8 +22695,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([]); }; @@ -18484,9 +22713,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); }; @@ -18499,9 +22731,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); }; @@ -18514,26 +22749,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); }; @@ -18546,9 +22785,12 @@ 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); }; @@ -18561,41 +22803,29 @@ proto.lnrpc.BatchOpenChannelRequest.prototype.getCoinSelectionStrategy = functio }; -/** @param {!proto.lnrpc.CoinSelectionStrategy} value */ +/** + * @param {!proto.lnrpc.CoinSelectionStrategy} value + * @return {!proto.lnrpc.BatchOpenChannelRequest} returns this + */ proto.lnrpc.BatchOpenChannelRequest.prototype.setCoinSelectionStrategy = 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.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) { @@ -18605,8 +22835,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} @@ -18617,7 +22847,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, ""), @@ -18626,12 +22856,12 @@ proto.lnrpc.BatchOpenChannel.toObject = function(includeInstance, msg) { remoteMaxValueInFlightMsat: jspb.Message.getFieldWithDefault(msg, 10, "0"), remoteMaxHtlcs: jspb.Message.getFieldWithDefault(msg, 11, 0), maxLocalCsv: jspb.Message.getFieldWithDefault(msg, 12, 0), - zeroConf: jspb.Message.getFieldWithDefault(msg, 13, false), - scidAlias: jspb.Message.getFieldWithDefault(msg, 14, false), + zeroConf: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + scidAlias: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), baseFee: jspb.Message.getFieldWithDefault(msg, 15, "0"), feeRate: jspb.Message.getFieldWithDefault(msg, 16, "0"), - useBaseFee: jspb.Message.getFieldWithDefault(msg, 17, false), - useFeeRate: jspb.Message.getFieldWithDefault(msg, 18, false), + useBaseFee: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), + useFeeRate: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), remoteChanReserveSat: jspb.Message.getFieldWithDefault(msg, 19, "0"), memo: jspb.Message.getFieldWithDefault(msg, 20, "") }; @@ -18955,9 +23185,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); }; @@ -18970,9 +23203,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); }; @@ -18985,26 +23221,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); }; @@ -19017,9 +23257,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); }; @@ -19032,9 +23275,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); }; @@ -19047,9 +23293,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); }; @@ -19086,9 +23335,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); }; @@ -19101,9 +23353,12 @@ 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); }; @@ -19116,9 +23371,12 @@ proto.lnrpc.BatchOpenChannel.prototype.getRemoteMaxValueInFlightMsat = function( }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setRemoteMaxValueInFlightMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 10, value); + return jspb.Message.setProto3StringIntField(this, 10, value); }; @@ -19131,9 +23389,12 @@ proto.lnrpc.BatchOpenChannel.prototype.getRemoteMaxHtlcs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setRemoteMaxHtlcs = function(value) { - jspb.Message.setProto3IntField(this, 11, value); + return jspb.Message.setProto3IntField(this, 11, value); }; @@ -19146,43 +23407,48 @@ proto.lnrpc.BatchOpenChannel.prototype.getMaxLocalCsv = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setMaxLocalCsv = function(value) { - jspb.Message.setProto3IntField(this, 12, value); + return jspb.Message.setProto3IntField(this, 12, value); }; /** * optional bool zero_conf = 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.lnrpc.BatchOpenChannel.prototype.getZeroConf = 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.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setZeroConf = function(value) { - jspb.Message.setProto3BooleanField(this, 13, value); + return jspb.Message.setProto3BooleanField(this, 13, value); }; /** * optional bool scid_alias = 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.BatchOpenChannel.prototype.getScidAlias = 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.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setScidAlias = function(value) { - jspb.Message.setProto3BooleanField(this, 14, value); + return jspb.Message.setProto3BooleanField(this, 14, value); }; @@ -19195,9 +23461,12 @@ proto.lnrpc.BatchOpenChannel.prototype.getBaseFee = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setBaseFee = function(value) { - jspb.Message.setProto3StringIntField(this, 15, value); + return jspb.Message.setProto3StringIntField(this, 15, value); }; @@ -19210,43 +23479,48 @@ proto.lnrpc.BatchOpenChannel.prototype.getFeeRate = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setFeeRate = function(value) { - jspb.Message.setProto3StringIntField(this, 16, value); + return jspb.Message.setProto3StringIntField(this, 16, value); }; /** * optional bool use_base_fee = 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.BatchOpenChannel.prototype.getUseBaseFee = 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.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setUseBaseFee = function(value) { - jspb.Message.setProto3BooleanField(this, 17, value); + return jspb.Message.setProto3BooleanField(this, 17, value); }; /** * optional bool use_fee_rate = 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.BatchOpenChannel.prototype.getUseFeeRate = 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.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setUseFeeRate = function(value) { - jspb.Message.setProto3BooleanField(this, 18, value); + return jspb.Message.setProto3BooleanField(this, 18, value); }; @@ -19259,9 +23533,12 @@ proto.lnrpc.BatchOpenChannel.prototype.getRemoteChanReserveSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setRemoteChanReserveSat = function(value) { - jspb.Message.setProto3StringIntField(this, 19, value); + return jspb.Message.setProto3StringIntField(this, 19, value); }; @@ -19274,30 +23551,16 @@ proto.lnrpc.BatchOpenChannel.prototype.getMemo = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BatchOpenChannel} returns this + */ proto.lnrpc.BatchOpenChannel.prototype.setMemo = function(value) { - jspb.Message.setProto3StringField(this, 20, value); + return jspb.Message.setProto3StringField(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.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} @@ -19309,13 +23572,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) { @@ -19325,8 +23590,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} @@ -19427,9 +23692,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); }; @@ -19443,29 +23711,16 @@ 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, proto.lnrpc.OpenChannelRequest.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.OpenChannelRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.OpenChannelRequest.displayName = 'proto.lnrpc.OpenChannelRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -19477,13 +23732,15 @@ proto.lnrpc.OpenChannelRequest.repeatedFields_ = [28]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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) { @@ -19493,8 +23750,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} @@ -19509,25 +23766,25 @@ 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"), - fundMax: jspb.Message.getFieldWithDefault(msg, 26, false), + fundMax: jspb.Message.getBooleanFieldWithDefault(msg, 26, false), memo: jspb.Message.getFieldWithDefault(msg, 27, ""), outpointsList: jspb.Message.toObjectList(msg.getOutpointsList(), proto.lnrpc.OutPoint.toObject, includeInstance) @@ -19920,9 +24177,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); }; @@ -19959,9 +24219,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); }; @@ -19974,9 +24237,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); }; @@ -19989,9 +24255,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); }; @@ -20004,9 +24273,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); }; @@ -20019,9 +24291,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); }; @@ -20034,26 +24309,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); }; @@ -20066,9 +24345,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); }; @@ -20081,9 +24363,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); }; @@ -20096,26 +24381,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); }; @@ -20128,9 +24417,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); }; @@ -20144,20 +24436,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; @@ -20173,9 +24472,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); }; @@ -20188,9 +24490,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); }; @@ -20203,9 +24508,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); }; @@ -20218,43 +24526,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); }; @@ -20267,9 +24580,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); }; @@ -20282,43 +24598,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); }; @@ -20331,26 +24652,30 @@ 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); }; /** * optional bool fund_max = 26; - * 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.getFundMax = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 26, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 26, false)); }; -/** @param {boolean} value */ +/** + * @param {boolean} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setFundMax = function(value) { - jspb.Message.setProto3BooleanField(this, 26, value); + return jspb.Message.setProto3BooleanField(this, 26, value); }; @@ -20363,9 +24688,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getMemo = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.setMemo = function(value) { - jspb.Message.setProto3StringField(this, 27, value); + return jspb.Message.setProto3StringField(this, 27, value); }; @@ -20379,9 +24707,12 @@ proto.lnrpc.OpenChannelRequest.prototype.getOutpointsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.OpenChannelRequest} returns this +*/ proto.lnrpc.OpenChannelRequest.prototype.setOutpointsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 28, value); + return jspb.Message.setRepeatedWrapperField(this, 28, value); }; @@ -20395,29 +24726,16 @@ proto.lnrpc.OpenChannelRequest.prototype.addOutpoints = function(opt_value, opt_ }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.OpenChannelRequest} returns this + */ proto.lnrpc.OpenChannelRequest.prototype.clearOutpointsList = function() { - this.setOutpointsList([]); + return this.setOutpointsList([]); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. 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 @@ -20449,13 +24767,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) { @@ -20465,8 +24785,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} @@ -20606,20 +24926,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; @@ -20636,20 +24963,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; @@ -20666,20 +25000,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; @@ -20719,41 +25060,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) { @@ -20763,8 +25092,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} @@ -20873,9 +25202,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); }; @@ -20888,41 +25220,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) { @@ -20932,8 +25252,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} @@ -21068,9 +25388,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); }; @@ -21084,20 +25407,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; @@ -21105,34 +25435,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) { @@ -21142,8 +25457,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} @@ -21157,7 +25472,7 @@ proto.lnrpc.ChanPointShim.toObject = function(includeInstance, msg) { remoteKey: msg.getRemoteKey_asB64(), pendingChanId: msg.getPendingChanId_asB64(), thawHeight: jspb.Message.getFieldWithDefault(msg, 6, 0), - musig2: jspb.Message.getFieldWithDefault(msg, 7, false) + musig2: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) }; if (includeInstance) { @@ -21316,9 +25631,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); }; @@ -21332,20 +25650,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; @@ -21362,20 +25687,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; @@ -21415,9 +25747,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); }; @@ -21454,9 +25789,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); }; @@ -21469,58 +25807,47 @@ 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); }; /** * optional bool musig2 = 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.lnrpc.ChanPointShim.prototype.getMusig2 = 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.lnrpc.ChanPointShim} returns this + */ proto.lnrpc.ChanPointShim.prototype.setMusig2 = 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.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) { @@ -21530,8 +25857,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} @@ -21541,7 +25868,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) { @@ -21676,9 +26003,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); }; @@ -21715,47 +26045,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 @@ -21786,13 +26103,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) { @@ -21802,8 +26121,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} @@ -21917,20 +26236,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; @@ -21947,20 +26273,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; @@ -21968,34 +26301,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) { @@ -22005,8 +26323,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} @@ -22127,41 +26445,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) { @@ -22171,8 +26477,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} @@ -22182,7 +26488,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) { @@ -22317,9 +26623,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); }; @@ -22356,58 +26665,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) { @@ -22417,8 +26715,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} @@ -22563,9 +26861,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); }; @@ -22602,9 +26903,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); }; @@ -22641,30 +26945,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 @@ -22697,13 +26987,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) { @@ -22713,8 +27005,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} @@ -22856,20 +27148,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; @@ -22886,20 +27185,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; @@ -22916,20 +27222,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; @@ -22946,20 +27259,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; @@ -22967,34 +27287,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) { @@ -23004,8 +27309,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} @@ -23083,34 +27388,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) { @@ -23120,8 +27410,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} @@ -23129,7 +27419,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), @@ -23271,18 +27561,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); }; @@ -23295,9 +27586,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); }; @@ -23310,9 +27604,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); }; @@ -23325,9 +27622,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); }; @@ -23340,9 +27640,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); }; @@ -23355,41 +27658,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) { @@ -23399,8 +27690,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} @@ -23408,7 +27699,7 @@ proto.lnrpc.PendingChannelsRequest.prototype.toObject = function(opt_includeInst */ proto.lnrpc.PendingChannelsRequest.toObject = function(includeInstance, msg) { var f, obj = { - includeRawTx: jspb.Message.getFieldWithDefault(msg, 1, false) + includeRawTx: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -23490,39 +27781,23 @@ proto.lnrpc.PendingChannelsRequest.serializeBinaryToWriter = function(message, w /** * optional bool include_raw_tx = 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.PendingChannelsRequest.prototype.getIncludeRawTx = 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.PendingChannelsRequest} returns this + */ proto.lnrpc.PendingChannelsRequest.prototype.setIncludeRawTx = 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.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} @@ -23534,13 +27809,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) { @@ -23550,8 +27827,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} @@ -23700,34 +27977,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) { @@ -23737,8 +27999,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} @@ -23757,7 +28019,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), memo: jspb.Message.getFieldWithDefault(msg, 13, "") }; @@ -23979,9 +28241,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); }; @@ -23994,9 +28259,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); }; @@ -24009,9 +28277,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); }; @@ -24024,9 +28295,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); }; @@ -24039,9 +28313,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); }; @@ -24054,9 +28331,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); }; @@ -24069,9 +28349,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); }; @@ -24084,9 +28367,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); }; @@ -24099,9 +28385,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); }; @@ -24114,9 +28403,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); }; @@ -24129,26 +28421,30 @@ 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); }; @@ -24161,41 +28457,29 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getMemo = function( }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setMemo = 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.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) { @@ -24205,8 +28489,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} @@ -24354,20 +28638,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; @@ -24383,9 +28674,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); }; @@ -24398,9 +28692,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); }; @@ -24413,9 +28710,12 @@ 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); }; @@ -24428,41 +28728,29 @@ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.getFundingExpir }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.PendingChannelsResponse.PendingOpenChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.PendingOpenChannel.prototype.setFundingExpiryBlocks = 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.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) { @@ -24472,8 +28760,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} @@ -24623,20 +28911,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; @@ -24652,9 +28947,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); }; @@ -24668,20 +28966,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; @@ -24697,9 +29002,12 @@ 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); }; @@ -24712,41 +29020,29 @@ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.getClosingTxHe }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel} returns this + */ proto.lnrpc.PendingChannelsResponse.WaitingCloseChannel.prototype.setClosingTxHex = 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.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) { @@ -24756,8 +29052,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} @@ -24914,9 +29210,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); }; @@ -24929,9 +29228,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); }; @@ -24944,9 +29246,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); }; @@ -24959,9 +29264,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); }; @@ -24974,9 +29282,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); }; @@ -24989,41 +29300,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) { @@ -25033,8 +29332,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} @@ -25146,20 +29445,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; @@ -25175,30 +29481,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} @@ -25210,13 +29502,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) { @@ -25226,8 +29520,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} @@ -25423,20 +29717,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; @@ -25452,9 +29753,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); }; @@ -25467,9 +29771,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); }; @@ -25482,9 +29789,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); }; @@ -25497,9 +29807,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); }; @@ -25512,9 +29825,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); }; @@ -25528,9 +29844,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); }; @@ -25544,8 +29863,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([]); }; @@ -25558,9 +29881,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); }; @@ -25573,9 +29899,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); }; @@ -25589,9 +29918,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); }; @@ -25605,8 +29937,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([]); }; @@ -25620,9 +29956,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); }; @@ -25636,8 +29975,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([]); }; @@ -25651,9 +29994,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); }; @@ -25667,8 +30013,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([]); }; @@ -25682,9 +30032,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); }; @@ -25698,40 +30051,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) { @@ -25741,8 +30083,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} @@ -25820,23 +30162,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 @@ -25871,13 +30196,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) { @@ -25887,8 +30214,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} @@ -26082,20 +30409,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; @@ -26112,20 +30446,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; @@ -26142,20 +30483,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; @@ -26172,20 +30520,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; @@ -26202,20 +30557,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; @@ -26232,20 +30594,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; @@ -26261,41 +30630,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) { @@ -26305,8 +30662,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} @@ -26415,9 +30772,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); }; @@ -26430,41 +30790,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) { @@ -26474,8 +30822,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} @@ -26584,9 +30932,12 @@ proto.lnrpc.WalletBalanceRequest.prototype.getAccount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.WalletBalanceRequest} returns this + */ proto.lnrpc.WalletBalanceRequest.prototype.setAccount = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -26599,41 +30950,29 @@ proto.lnrpc.WalletBalanceRequest.prototype.getMinConfs = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.WalletBalanceRequest} returns this + */ proto.lnrpc.WalletBalanceRequest.prototype.setMinConfs = 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.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) { @@ -26643,8 +30982,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} @@ -26717,7 +31056,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: @@ -26800,9 +31139,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); }; @@ -26815,9 +31157,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); }; @@ -26830,9 +31175,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); }; @@ -26845,9 +31193,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); }; @@ -26860,9 +31211,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); }; @@ -26879,40 +31233,30 @@ 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) { @@ -26922,8 +31266,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} @@ -27032,9 +31376,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); }; @@ -27047,41 +31394,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) { @@ -27091,8 +31426,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} @@ -27170,34 +31505,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) { @@ -27207,8 +31527,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} @@ -27401,9 +31721,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); }; @@ -27416,9 +31739,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); }; @@ -27432,20 +31758,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; @@ -27462,20 +31795,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; @@ -27492,20 +31832,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; @@ -27522,20 +31869,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; @@ -27552,20 +31906,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; @@ -27582,20 +31943,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; @@ -27603,23 +31971,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} @@ -27631,13 +31982,15 @@ proto.lnrpc.QueryRoutesRequest.repeatedFields_ = [6,7,10,16,19,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) { @@ -27647,8 +32000,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} @@ -27665,7 +32018,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), @@ -27676,8 +32029,8 @@ proto.lnrpc.QueryRoutesRequest.toObject = function(includeInstance, msg) { proto.lnrpc.RouteHint.toObject, includeInstance), blindedPaymentPathsList: jspb.Message.toObjectList(msg.getBlindedPaymentPathsList(), proto.lnrpc.BlindedPaymentPath.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) { @@ -27764,7 +32117,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: @@ -27786,8 +32139,10 @@ proto.lnrpc.QueryRoutesRequest.deserializeBinaryFromReader = function(msg, reade msg.addBlindedPaymentPaths(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()); @@ -27962,9 +32317,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); }; @@ -27977,9 +32335,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); }; @@ -27992,9 +32353,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); }; @@ -28007,9 +32371,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); }; @@ -28023,20 +32390,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; @@ -28076,23 +32450,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([]); }; @@ -28106,9 +32488,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); }; @@ -28122,8 +32507,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([]); }; @@ -28136,26 +32525,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); }; @@ -28169,9 +32562,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); }; @@ -28185,8 +32581,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([]); }; @@ -28199,9 +32599,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); }; @@ -28218,8 +32621,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; }; @@ -28232,9 +32640,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); }; @@ -28271,9 +32682,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); }; @@ -28287,9 +32701,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); }; @@ -28303,8 +32720,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([]); }; @@ -28318,9 +32739,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.getBlindedPaymentPathsList = function() }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.QueryRoutesRequest} returns this +*/ proto.lnrpc.QueryRoutesRequest.prototype.setBlindedPaymentPathsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 19, value); + return jspb.Message.setRepeatedWrapperField(this, 19, value); }; @@ -28334,8 +32758,12 @@ proto.lnrpc.QueryRoutesRequest.prototype.addBlindedPaymentPaths = function(opt_v }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.QueryRoutesRequest} returns this + */ proto.lnrpc.QueryRoutesRequest.prototype.clearBlindedPaymentPathsList = function() { - this.setBlindedPaymentPathsList([]); + return this.setBlindedPaymentPathsList([]); }; @@ -28348,23 +32776,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([]); }; @@ -28373,45 +32809,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) { @@ -28421,8 +32845,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} @@ -28555,9 +32979,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); }; @@ -28594,41 +33021,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) { @@ -28638,8 +33053,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} @@ -28648,7 +33063,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) { @@ -28748,47 +33163,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} @@ -28800,13 +33202,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) { @@ -28816,8 +33220,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} @@ -28827,7 +33231,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) { @@ -28930,9 +33334,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); }; @@ -28946,8 +33353,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([]); }; @@ -28956,45 +33367,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) { @@ -29004,8 +33403,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} @@ -29021,7 +33420,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) : [], @@ -29114,7 +33513,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: @@ -29285,9 +33684,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); }; @@ -29300,9 +33702,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); }; @@ -29315,9 +33720,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); }; @@ -29330,9 +33738,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); }; @@ -29345,9 +33756,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); }; @@ -29360,9 +33774,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); }; @@ -29375,9 +33792,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); }; @@ -29390,26 +33810,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); }; @@ -29423,20 +33847,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; @@ -29453,20 +33884,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; @@ -29486,8 +33924,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; }; @@ -29524,9 +33967,12 @@ 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); }; @@ -29563,9 +34009,12 @@ proto.lnrpc.Hop.prototype.getBlindingPoint_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setBlindingPoint = function(value) { - jspb.Message.setProto3BytesField(this, 14, value); + return jspb.Message.setProto3BytesField(this, 14, value); }; @@ -29602,9 +34051,12 @@ proto.lnrpc.Hop.prototype.getEncryptedData_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setEncryptedData = function(value) { - jspb.Message.setProto3BytesField(this, 15, value); + return jspb.Message.setProto3BytesField(this, 15, value); }; @@ -29617,41 +34069,29 @@ proto.lnrpc.Hop.prototype.getTotalAmtMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.Hop} returns this + */ proto.lnrpc.Hop.prototype.setTotalAmtMsat = 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.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) { @@ -29661,8 +34101,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} @@ -29795,9 +34235,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); }; @@ -29810,41 +34253,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) { @@ -29854,8 +34285,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} @@ -30000,9 +34431,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); }; @@ -30039,9 +34473,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); }; @@ -30054,30 +34491,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} @@ -30089,13 +34512,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) { @@ -30105,8 +34530,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} @@ -30266,9 +34691,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); }; @@ -30281,9 +34709,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); }; @@ -30296,9 +34727,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); }; @@ -30312,9 +34746,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); }; @@ -30328,8 +34765,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([]); }; @@ -30342,9 +34783,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); }; @@ -30357,41 +34801,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) { @@ -30401,8 +34833,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} @@ -30411,7 +34843,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) { @@ -30511,47 +34943,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} @@ -30563,13 +34982,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) { @@ -30579,8 +35000,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} @@ -30719,20 +35140,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; @@ -30748,9 +35176,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); }; @@ -30763,9 +35194,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); }; @@ -30779,9 +35213,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); }; @@ -30795,29 +35232,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} @@ -30829,13 +35253,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) { @@ -30845,8 +35271,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} @@ -30922,13 +35348,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: @@ -31016,9 +35442,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); }; @@ -31031,9 +35460,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); }; @@ -31046,9 +35478,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); }; @@ -31062,9 +35497,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); }; @@ -31078,8 +35516,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([]); }; @@ -31092,9 +35534,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); }; @@ -31111,8 +35556,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; }; @@ -31129,40 +35579,30 @@ 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) { @@ -31172,8 +35612,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} @@ -31282,9 +35722,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); }; @@ -31297,41 +35740,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) { @@ -31341,8 +35772,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} @@ -31354,7 +35785,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) : [], @@ -31427,7 +35858,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; case 9: @@ -31546,9 +35977,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); }; @@ -31561,9 +35995,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); }; @@ -31576,9 +36013,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); }; @@ -31591,26 +36031,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); }; @@ -31623,9 +36067,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); }; @@ -31638,9 +36085,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); }; @@ -31657,8 +36107,13 @@ 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; }; @@ -31671,9 +36126,12 @@ proto.lnrpc.RoutingPolicy.prototype.getInboundFeeBaseMsat = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.RoutingPolicy} returns this + */ proto.lnrpc.RoutingPolicy.prototype.setInboundFeeBaseMsat = function(value) { - jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3IntField(this, 9, value); }; @@ -31686,41 +36144,29 @@ proto.lnrpc.RoutingPolicy.prototype.getInboundFeeRateMilliMsat = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.RoutingPolicy} returns this + */ proto.lnrpc.RoutingPolicy.prototype.setInboundFeeRateMilliMsat = function(value) { - jspb.Message.setProto3IntField(this, 10, value); + return 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 - */ -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) { @@ -31730,8 +36176,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} @@ -31821,7 +36267,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: @@ -31927,9 +36373,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); }; @@ -31942,9 +36391,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); }; @@ -31957,9 +36409,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); }; @@ -31972,9 +36427,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); }; @@ -31987,9 +36445,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); }; @@ -32002,9 +36463,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); }; @@ -32018,20 +36482,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; @@ -32048,20 +36519,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; @@ -32081,40 +36559,30 @@ 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) { @@ -32124,8 +36592,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} @@ -32133,7 +36601,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) { @@ -32215,39 +36683,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} @@ -32259,13 +36711,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) { @@ -32275,8 +36729,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} @@ -32392,9 +36846,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); }; @@ -32408,8 +36865,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([]); }; @@ -32423,9 +36884,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); }; @@ -32439,29 +36903,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} @@ -32473,13 +36924,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) { @@ -32489,8 +36942,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} @@ -32498,7 +36951,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) { @@ -32536,8 +36989,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(); @@ -32587,55 +37042,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) { @@ -32645,8 +37093,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} @@ -32694,7 +37142,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: @@ -32746,40 +37194,30 @@ 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) { @@ -32789,8 +37227,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} @@ -32798,8 +37236,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) { @@ -32895,13 +37333,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); }; @@ -32910,45 +37351,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) { @@ -32958,8 +37387,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} @@ -33056,41 +37485,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) { @@ -33100,8 +37517,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} @@ -33179,34 +37596,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) { @@ -33216,8 +37618,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} @@ -33226,12 +37628,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"), @@ -33434,9 +37836,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); }; @@ -33445,13 +37850,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); }; @@ -33464,9 +37872,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); }; @@ -33479,9 +37890,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); }; @@ -33494,9 +37908,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); }; @@ -33509,9 +37926,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); }; @@ -33520,13 +37940,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); }; @@ -33539,9 +37962,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); }; @@ -33554,9 +37980,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); }; @@ -33569,9 +37998,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); }; @@ -33584,41 +38016,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) { @@ -33628,8 +38048,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} @@ -33707,34 +38127,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) { @@ -33744,8 +38149,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} @@ -33823,34 +38228,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) { @@ -33860,8 +38250,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} @@ -33939,23 +38329,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} @@ -33967,13 +38340,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) { @@ -33983,8 +38358,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} @@ -34115,9 +38490,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); }; @@ -34131,8 +38509,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([]); }; @@ -34146,9 +38528,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); }; @@ -34162,8 +38547,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([]); }; @@ -34177,9 +38566,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); }; @@ -34193,29 +38585,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} @@ -34227,13 +38606,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) { @@ -34243,8 +38624,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} @@ -34252,7 +38633,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, ""), @@ -34324,7 +38705,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: @@ -34415,23 +38796,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([]); }; @@ -34444,9 +38833,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); }; @@ -34483,9 +38875,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); }; @@ -34498,9 +38893,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); }; @@ -34513,9 +38911,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); }; @@ -34529,9 +38930,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); }; @@ -34545,8 +38949,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([]); }; @@ -34563,40 +38971,30 @@ 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) { @@ -34606,8 +39004,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} @@ -34768,9 +39166,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); }; @@ -34784,20 +39185,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; @@ -34813,9 +39221,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); }; @@ -34829,20 +39240,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; @@ -34858,9 +39276,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); }; @@ -34873,41 +39294,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) { @@ -34917,8 +39326,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} @@ -35053,9 +39462,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); }; @@ -35068,9 +39480,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); }; @@ -35083,9 +39498,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); }; @@ -35099,20 +39517,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; @@ -35120,34 +39545,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) { @@ -35157,8 +39567,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} @@ -35303,9 +39713,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); }; @@ -35318,9 +39731,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); }; @@ -35333,9 +39749,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); }; @@ -35348,9 +39767,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); }; @@ -35363,41 +39785,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) { @@ -35407,8 +39817,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} @@ -35529,30 +39939,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} @@ -35564,13 +39960,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) { @@ -35580,8 +39978,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} @@ -35682,9 +40080,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); }; @@ -35698,29 +40099,16 @@ 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.BlindedPaymentPath = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BlindedPaymentPath.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.BlindedPaymentPath, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.BlindedPaymentPath.displayName = 'proto.lnrpc.BlindedPaymentPath'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -35732,13 +40120,15 @@ proto.lnrpc.BlindedPaymentPath.repeatedFields_ = [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.BlindedPaymentPath.prototype.toObject = function(opt_includeInstance) { @@ -35748,8 +40138,8 @@ proto.lnrpc.BlindedPaymentPath.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.BlindedPaymentPath} msg The msg instance to transform. * @return {!Object} @@ -35763,7 +40153,7 @@ proto.lnrpc.BlindedPaymentPath.toObject = function(includeInstance, msg) { totalCltvDelta: jspb.Message.getFieldWithDefault(msg, 4, 0), htlcMinMsat: jspb.Message.getFieldWithDefault(msg, 5, "0"), htlcMaxMsat: jspb.Message.getFieldWithDefault(msg, 6, "0"), - featuresList: jspb.Message.getRepeatedField(msg, 7) + featuresList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f }; if (includeInstance) { @@ -35826,8 +40216,10 @@ proto.lnrpc.BlindedPaymentPath.deserializeBinaryFromReader = function(msg, reade msg.setHtlcMaxMsat(value); break; case 7: - var value = /** @type {!Array} */ (reader.readPackedEnum()); - msg.setFeaturesList(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addFeatures(values[i]); + } break; default: reader.skipField(); @@ -35921,20 +40313,27 @@ proto.lnrpc.BlindedPaymentPath.prototype.getBlindedPath = function() { }; -/** @param {?proto.lnrpc.BlindedPath|undefined} value */ +/** + * @param {?proto.lnrpc.BlindedPath|undefined} value + * @return {!proto.lnrpc.BlindedPaymentPath} returns this +*/ proto.lnrpc.BlindedPaymentPath.prototype.setBlindedPath = 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.BlindedPaymentPath} returns this + */ proto.lnrpc.BlindedPaymentPath.prototype.clearBlindedPath = function() { - this.setBlindedPath(undefined); + return this.setBlindedPath(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.BlindedPaymentPath.prototype.hasBlindedPath = function() { return jspb.Message.getField(this, 1) != null; @@ -35950,9 +40349,12 @@ proto.lnrpc.BlindedPaymentPath.prototype.getBaseFeeMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BlindedPaymentPath} returns this + */ proto.lnrpc.BlindedPaymentPath.prototype.setBaseFeeMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -35965,9 +40367,12 @@ proto.lnrpc.BlindedPaymentPath.prototype.getProportionalFeeRate = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.BlindedPaymentPath} returns this + */ proto.lnrpc.BlindedPaymentPath.prototype.setProportionalFeeRate = function(value) { - jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -35980,9 +40385,12 @@ proto.lnrpc.BlindedPaymentPath.prototype.getTotalCltvDelta = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.BlindedPaymentPath} returns this + */ proto.lnrpc.BlindedPaymentPath.prototype.setTotalCltvDelta = function(value) { - jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -35995,9 +40403,12 @@ proto.lnrpc.BlindedPaymentPath.prototype.getHtlcMinMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BlindedPaymentPath} returns this + */ proto.lnrpc.BlindedPaymentPath.prototype.setHtlcMinMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -36010,9 +40421,12 @@ proto.lnrpc.BlindedPaymentPath.prototype.getHtlcMaxMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.lnrpc.BlindedPaymentPath} returns this + */ proto.lnrpc.BlindedPaymentPath.prototype.setHtlcMaxMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; @@ -36025,44 +40439,35 @@ proto.lnrpc.BlindedPaymentPath.prototype.getFeaturesList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.BlindedPaymentPath} returns this + */ proto.lnrpc.BlindedPaymentPath.prototype.setFeaturesList = function(value) { - jspb.Message.setField(this, 7, value || []); + return jspb.Message.setField(this, 7, value || []); }; /** * @param {!proto.lnrpc.FeatureBit} value * @param {number=} opt_index + * @return {!proto.lnrpc.BlindedPaymentPath} returns this */ proto.lnrpc.BlindedPaymentPath.prototype.addFeatures = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 7, value, opt_index); + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.BlindedPaymentPath} returns this + */ proto.lnrpc.BlindedPaymentPath.prototype.clearFeaturesList = function() { - this.setFeaturesList([]); + return this.setFeaturesList([]); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lnrpc.BlindedPath = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BlindedPath.repeatedFields_, null); -}; -goog.inherits(proto.lnrpc.BlindedPath, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.BlindedPath.displayName = 'proto.lnrpc.BlindedPath'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -36074,13 +40479,15 @@ proto.lnrpc.BlindedPath.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.BlindedPath.prototype.toObject = function(opt_includeInstance) { @@ -36090,8 +40497,8 @@ proto.lnrpc.BlindedPath.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.BlindedPath} msg The msg instance to transform. * @return {!Object} @@ -36239,9 +40646,12 @@ proto.lnrpc.BlindedPath.prototype.getIntroductionNode_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.BlindedPath} returns this + */ proto.lnrpc.BlindedPath.prototype.setIntroductionNode = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -36278,9 +40688,12 @@ proto.lnrpc.BlindedPath.prototype.getBlindingPoint_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.BlindedPath} returns this + */ proto.lnrpc.BlindedPath.prototype.setBlindingPoint = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -36294,9 +40707,12 @@ proto.lnrpc.BlindedPath.prototype.getBlindedHopsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.lnrpc.BlindedPath} returns this +*/ proto.lnrpc.BlindedPath.prototype.setBlindedHopsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 3, value); + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; @@ -36310,40 +40726,29 @@ proto.lnrpc.BlindedPath.prototype.addBlindedHops = function(opt_value, opt_index }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.BlindedPath} returns this + */ proto.lnrpc.BlindedPath.prototype.clearBlindedHopsList = function() { - this.setBlindedHopsList([]); + return this.setBlindedHopsList([]); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.lnrpc.BlindedHop = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.BlindedHop, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.BlindedHop.displayName = 'proto.lnrpc.BlindedHop'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.BlindedHop.prototype.toObject = function(opt_includeInstance) { @@ -36353,8 +40758,8 @@ proto.lnrpc.BlindedHop.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.BlindedHop} msg The msg instance to transform. * @return {!Object} @@ -36487,9 +40892,12 @@ proto.lnrpc.BlindedHop.prototype.getBlindedNode_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.BlindedHop} returns this + */ proto.lnrpc.BlindedHop.prototype.setBlindedNode = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -36526,41 +40934,29 @@ proto.lnrpc.BlindedHop.prototype.getEncryptedData_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.lnrpc.BlindedHop} returns this + */ proto.lnrpc.BlindedHop.prototype.setEncryptedData = 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.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) { @@ -36570,8 +40966,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} @@ -36704,9 +41100,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); }; @@ -36719,9 +41118,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); }; @@ -36734,9 +41136,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); }; @@ -36749,30 +41154,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} @@ -36784,13 +41175,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) { @@ -36800,8 +41193,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} @@ -36814,7 +41207,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, ""), @@ -36824,7 +41217,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"), @@ -36834,9 +41227,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) : [] }; @@ -36967,7 +41360,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: @@ -36985,7 +41378,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: @@ -37224,9 +41617,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); }; @@ -37263,9 +41659,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); }; @@ -37302,9 +41701,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); }; @@ -37317,9 +41719,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); }; @@ -37332,26 +41737,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); }; @@ -37364,9 +41773,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); }; @@ -37379,9 +41791,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); }; @@ -37394,9 +41809,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); }; @@ -37433,9 +41851,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); }; @@ -37448,9 +41869,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); }; @@ -37463,9 +41887,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); }; @@ -37478,9 +41905,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); }; @@ -37494,9 +41924,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); }; @@ -37510,25 +41943,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); }; @@ -37541,9 +41979,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); }; @@ -37556,9 +41997,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); }; @@ -37571,9 +42015,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); }; @@ -37586,9 +42033,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); }; @@ -37601,9 +42051,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); }; @@ -37616,9 +42069,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); }; @@ -37632,9 +42088,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); }; @@ -37648,8 +42107,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([]); }; @@ -37666,25 +42129,31 @@ 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); }; @@ -37721,26 +42190,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); }; @@ -37757,40 +42230,30 @@ 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) { @@ -37800,8 +42263,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} @@ -37891,7 +42354,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: @@ -38019,9 +42482,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); }; @@ -38034,9 +42500,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); }; @@ -38049,9 +42518,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); }; @@ -38064,9 +42536,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); }; @@ -38079,9 +42554,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); }; @@ -38094,9 +42572,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); }; @@ -38109,9 +42590,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); }; @@ -38124,9 +42608,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); }; @@ -38143,8 +42630,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; }; @@ -38157,9 +42649,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); }; @@ -38173,20 +42668,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; @@ -38194,34 +42696,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) { @@ -38231,8 +42718,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} @@ -38401,9 +42888,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); }; @@ -38440,9 +42930,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); }; @@ -38455,9 +42948,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); }; @@ -38494,9 +42990,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); }; @@ -38533,41 +43032,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) { @@ -38577,8 +43064,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} @@ -38735,9 +43222,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); }; @@ -38750,9 +43240,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); }; @@ -38765,9 +43258,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); }; @@ -38804,41 +43300,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) { @@ -38848,8 +43332,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} @@ -38958,9 +43442,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); }; @@ -38997,41 +43484,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) { @@ -39041,8 +43516,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} @@ -39050,10 +43525,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") }; @@ -39192,18 +43667,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); }; @@ -39216,9 +43692,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); }; @@ -39231,26 +43710,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); }; @@ -39263,9 +43746,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); }; @@ -39278,30 +43764,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} @@ -39313,13 +43785,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) { @@ -39329,8 +43803,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} @@ -39455,9 +43929,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); }; @@ -39471,8 +43948,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([]); }; @@ -39485,9 +43966,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); }; @@ -39500,41 +43984,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) { @@ -39544,8 +44016,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} @@ -39654,9 +44126,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); }; @@ -39669,30 +44144,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} @@ -39704,13 +44165,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) { @@ -39720,8 +44183,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} @@ -40000,9 +44463,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); }; @@ -40015,9 +44481,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); }; @@ -40030,9 +44499,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); }; @@ -40045,9 +44517,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); }; @@ -40060,9 +44535,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); }; @@ -40075,9 +44553,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); }; @@ -40090,9 +44571,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); }; @@ -40105,9 +44589,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); }; @@ -40120,9 +44607,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); }; @@ -40135,9 +44625,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); }; @@ -40150,9 +44643,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); }; @@ -40165,9 +44661,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); }; @@ -40181,9 +44680,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); }; @@ -40197,8 +44699,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([]); }; @@ -40211,9 +44717,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); }; @@ -40226,41 +44735,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) { @@ -40270,8 +44767,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} @@ -40453,9 +44950,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); }; @@ -40468,9 +44968,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); }; @@ -40484,20 +44987,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; @@ -40513,9 +45023,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); }; @@ -40528,9 +45041,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); }; @@ -40544,20 +45060,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; @@ -40597,41 +45120,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) { @@ -40641,8 +45152,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} @@ -40650,11 +45161,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") }; @@ -40804,18 +45315,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); }; @@ -40828,9 +45340,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); }; @@ -40843,43 +45358,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); }; @@ -40892,9 +45412,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); }; @@ -40907,30 +45430,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} @@ -40942,13 +45451,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) { @@ -40958,8 +45469,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} @@ -41096,9 +45607,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); }; @@ -41112,8 +45626,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([]); }; @@ -41126,9 +45644,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); }; @@ -41141,9 +45662,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); }; @@ -41156,41 +45680,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) { @@ -41200,8 +45712,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} @@ -41210,7 +45722,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) { @@ -41334,58 +45846,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) { @@ -41395,8 +45896,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} @@ -41404,9 +45905,9 @@ 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), - allPayments: jspb.Message.getFieldWithDefault(msg, 3, false) + failedPaymentsOnly: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + failedHtlcsOnly: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + allPayments: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -41510,84 +46011,72 @@ 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); }; /** * optional bool all_payments = 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.DeleteAllPaymentsRequest.prototype.getAllPayments = 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.DeleteAllPaymentsRequest} returns this + */ proto.lnrpc.DeleteAllPaymentsRequest.prototype.setAllPayments = 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.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) { @@ -41597,8 +46086,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} @@ -41676,34 +46165,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) { @@ -41713,8 +46187,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} @@ -41792,34 +46266,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) { @@ -41829,8 +46288,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} @@ -41839,8 +46298,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) { @@ -41954,20 +46413,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; @@ -41976,67 +46442,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) { @@ -42046,8 +46499,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} @@ -42125,34 +46578,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) { @@ -42162,8 +46600,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} @@ -42171,7 +46609,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, "") }; @@ -42265,18 +46703,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); }; @@ -42289,41 +46728,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) { @@ -42333,8 +46760,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} @@ -42431,41 +46858,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) { @@ -42475,8 +46890,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} @@ -42573,30 +46988,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} @@ -42608,13 +47009,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) { @@ -42624,8 +47027,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} @@ -42735,7 +47138,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: @@ -42868,9 +47271,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); }; @@ -42883,9 +47289,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); }; @@ -42898,9 +47307,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); }; @@ -42913,9 +47325,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); }; @@ -42928,9 +47343,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); }; @@ -42943,9 +47361,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); }; @@ -42958,9 +47379,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); }; @@ -42973,9 +47397,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); }; @@ -42988,9 +47415,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); }; @@ -43004,9 +47434,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); }; @@ -43020,8 +47453,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([]); }; @@ -43058,9 +47495,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); }; @@ -43073,9 +47513,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); }; @@ -43092,40 +47535,30 @@ 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) { @@ -43135,8 +47568,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} @@ -43145,8 +47578,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) { @@ -43257,75 +47690,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) { @@ -43335,8 +47758,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} @@ -43414,34 +47837,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) { @@ -43451,8 +47859,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} @@ -43464,7 +47872,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), inboundBaseFeeMsat: jspb.Message.getFieldWithDefault(msg, 6, 0), inboundFeePerMil: jspb.Message.getFieldWithDefault(msg, 7, 0) }; @@ -43621,9 +48029,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); }; @@ -43636,9 +48047,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); }; @@ -43651,9 +48065,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); }; @@ -43666,9 +48083,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); }; @@ -43677,13 +48097,16 @@ 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); }; @@ -43696,9 +48119,12 @@ proto.lnrpc.ChannelFeeReport.prototype.getInboundBaseFeeMsat = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelFeeReport} returns this + */ proto.lnrpc.ChannelFeeReport.prototype.setInboundBaseFeeMsat = function(value) { - jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -43711,30 +48137,16 @@ proto.lnrpc.ChannelFeeReport.prototype.getInboundFeePerMil = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.ChannelFeeReport} returns this + */ proto.lnrpc.ChannelFeeReport.prototype.setInboundFeePerMil = 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.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} @@ -43746,13 +48158,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) { @@ -43762,8 +48176,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} @@ -43900,9 +48314,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); }; @@ -43916,8 +48333,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([]); }; @@ -43930,9 +48351,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); }; @@ -43945,9 +48369,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); }; @@ -43960,41 +48387,29 @@ 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.InboundFee = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.lnrpc.InboundFee, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.lnrpc.InboundFee.displayName = 'proto.lnrpc.InboundFee'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.InboundFee.prototype.toObject = function(opt_includeInstance) { @@ -44004,8 +48419,8 @@ proto.lnrpc.InboundFee.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.InboundFee} msg The msg instance to transform. * @return {!Object} @@ -44114,9 +48529,12 @@ proto.lnrpc.InboundFee.prototype.getBaseFeeMsat = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.InboundFee} returns this + */ proto.lnrpc.InboundFee.prototype.setBaseFeeMsat = function(value) { - jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -44129,30 +48547,16 @@ proto.lnrpc.InboundFee.prototype.getFeeRatePpm = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.lnrpc.InboundFee} returns this + */ proto.lnrpc.InboundFee.prototype.setFeeRatePpm = 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.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 @@ -44183,13 +48587,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) { @@ -44199,8 +48605,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} @@ -44208,15 +48614,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), inboundFee: (f = msg.getInboundFee()) && proto.lnrpc.InboundFee.toObject(includeInstance, f) }; @@ -44402,29 +48808,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; @@ -44441,20 +48852,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; @@ -44470,9 +48888,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); }; @@ -44481,13 +48902,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); }; @@ -44500,9 +48924,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); }; @@ -44515,9 +48942,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); }; @@ -44530,9 +48960,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); }; @@ -44545,26 +48978,30 @@ 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); }; @@ -44578,20 +49015,27 @@ proto.lnrpc.PolicyUpdateRequest.prototype.getInboundFee = function() { }; -/** @param {?proto.lnrpc.InboundFee|undefined} value */ +/** + * @param {?proto.lnrpc.InboundFee|undefined} value + * @return {!proto.lnrpc.PolicyUpdateRequest} returns this +*/ proto.lnrpc.PolicyUpdateRequest.prototype.setInboundFee = 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.PolicyUpdateRequest} returns this + */ proto.lnrpc.PolicyUpdateRequest.prototype.clearInboundFee = function() { - this.setInboundFee(undefined); + return this.setInboundFee(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.lnrpc.PolicyUpdateRequest.prototype.hasInboundFee = function() { return jspb.Message.getField(this, 10) != null; @@ -44599,34 +49043,19 @@ proto.lnrpc.PolicyUpdateRequest.prototype.hasInboundFee = 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.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) { @@ -44636,8 +49065,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} @@ -44761,20 +49190,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; @@ -44790,9 +49226,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); }; @@ -44805,30 +49244,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} @@ -44840,13 +49265,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) { @@ -44856,8 +49283,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} @@ -44958,9 +49385,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); }; @@ -44974,40 +49404,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) { @@ -45017,8 +49436,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} @@ -45030,7 +49449,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) { @@ -45163,9 +49582,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); }; @@ -45178,9 +49600,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); }; @@ -45193,9 +49618,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); }; @@ -45208,58 +49636,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) { @@ -45269,8 +49686,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} @@ -45499,9 +49916,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); }; @@ -45514,9 +49934,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); }; @@ -45529,9 +49952,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); }; @@ -45544,9 +49970,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); }; @@ -45559,9 +49988,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); }; @@ -45574,9 +50006,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); }; @@ -45589,9 +50024,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); }; @@ -45604,9 +50042,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); }; @@ -45619,9 +50060,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); }; @@ -45634,9 +50078,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); }; @@ -45649,9 +50096,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); }; @@ -45664,30 +50114,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} @@ -45699,13 +50135,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) { @@ -45715,8 +50153,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} @@ -45829,9 +50267,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); }; @@ -45845,8 +50286,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([]); }; @@ -45859,41 +50304,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) { @@ -45903,8 +50336,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} @@ -46004,20 +50437,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; @@ -46025,34 +50465,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) { @@ -46062,8 +50487,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} @@ -46175,20 +50600,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; @@ -46228,30 +50660,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} @@ -46263,13 +50681,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) { @@ -46279,8 +50699,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} @@ -46393,9 +50813,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); }; @@ -46409,8 +50832,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([]); }; @@ -46447,41 +50874,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) { @@ -46491,8 +50906,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} @@ -46570,34 +50985,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) { @@ -46607,8 +51007,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} @@ -46722,20 +51122,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; @@ -46752,20 +51159,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; @@ -46773,23 +51187,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} @@ -46801,13 +51198,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) { @@ -46817,8 +51216,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} @@ -46919,9 +51318,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); }; @@ -46935,29 +51337,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 @@ -46988,13 +51377,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) { @@ -47004,8 +51395,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} @@ -47117,20 +51508,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; @@ -47170,20 +51568,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; @@ -47191,34 +51596,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) { @@ -47228,8 +51618,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} @@ -47307,34 +51697,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) { @@ -47344,8 +51719,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} @@ -47423,34 +51798,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) { @@ -47460,8 +51820,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} @@ -47539,34 +51899,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) { @@ -47576,8 +51921,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} @@ -47686,9 +52031,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); }; @@ -47701,30 +52049,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} @@ -47736,13 +52070,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) { @@ -47752,8 +52088,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} @@ -47764,7 +52100,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) { @@ -47878,9 +52214,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); }; @@ -47894,8 +52233,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([]); }; @@ -47908,58 +52251,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) { @@ -47969,8 +52301,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} @@ -48067,41 +52399,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) { @@ -48111,8 +52431,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} @@ -48190,23 +52510,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} @@ -48218,13 +52521,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) { @@ -48234,8 +52539,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} @@ -48243,7 +52548,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) { @@ -48281,8 +52586,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(); @@ -48332,55 +52639,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) { @@ -48390,8 +52690,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} @@ -48488,41 +52788,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) { @@ -48532,8 +52820,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} @@ -48541,7 +52829,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) { @@ -48623,39 +52911,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} @@ -48667,13 +52939,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) { @@ -48683,8 +52957,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} @@ -48785,9 +53059,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); }; @@ -48801,40 +53078,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) { @@ -48844,8 +53110,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} @@ -48923,34 +53189,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) { @@ -48960,8 +53211,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} @@ -49009,7 +53260,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: @@ -49061,40 +53312,30 @@ 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) { @@ -49104,8 +53345,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} @@ -49323,9 +53564,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); }; @@ -49339,20 +53583,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; @@ -49368,9 +53619,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); }; @@ -49407,9 +53661,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); }; @@ -49422,9 +53679,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); }; @@ -49437,9 +53697,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); }; @@ -49452,9 +53715,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); }; @@ -49467,41 +53733,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) { @@ -49511,8 +53765,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} @@ -49765,9 +54019,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); }; @@ -49804,9 +54061,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); }; @@ -49819,9 +54079,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); }; @@ -49834,9 +54097,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); }; @@ -49849,9 +54115,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); }; @@ -49864,9 +54133,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); }; @@ -49879,9 +54151,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); }; @@ -49894,9 +54169,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); }; @@ -49909,9 +54187,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); }; @@ -49924,9 +54205,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); }; @@ -49939,9 +54223,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); }; @@ -49978,30 +54265,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} @@ -50013,13 +54286,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) { @@ -50029,8 +54304,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} @@ -50178,9 +54453,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); }; @@ -50217,9 +54495,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); }; @@ -50233,9 +54514,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); }; @@ -50249,29 +54533,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} @@ -50283,13 +54554,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) { @@ -50299,8 +54572,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} @@ -50309,7 +54582,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) { @@ -50409,9 +54682,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); }; @@ -50424,44 +54700,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} @@ -50473,13 +54740,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) { @@ -50489,8 +54758,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} @@ -50638,9 +54907,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); }; @@ -50654,9 +54926,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); }; @@ -50670,8 +54945,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([]); }; @@ -50684,41 +54963,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) { @@ -50728,8 +54995,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} @@ -50737,7 +55004,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) { @@ -50819,39 +55086,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 @@ -50884,13 +55135,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) { @@ -50900,8 +55153,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} @@ -50915,7 +55168,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") }; @@ -51088,9 +55341,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); }; @@ -51127,9 +55383,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); }; @@ -51142,9 +55401,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); }; @@ -51158,20 +55420,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; @@ -51188,20 +55457,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; @@ -51218,20 +55494,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; @@ -51240,29 +55523,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; @@ -51278,41 +55566,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) { @@ -51322,8 +55598,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} @@ -51420,41 +55696,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) { @@ -51464,8 +55728,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} @@ -51474,10 +55738,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) { @@ -51610,26 +55874,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); }; @@ -51642,9 +55910,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); }; @@ -51681,47 +55952,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 @@ -51752,13 +56010,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) { @@ -51768,8 +56028,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} @@ -51894,9 +56154,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); }; @@ -51910,20 +56173,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; @@ -51940,20 +56210,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; @@ -51961,34 +56238,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) { @@ -51998,8 +56260,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} @@ -52009,7 +56271,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) { @@ -52120,9 +56382,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); }; @@ -52135,58 +56400,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) { @@ -52196,8 +56450,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} @@ -52206,7 +56460,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() }; @@ -52318,26 +56572,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); }; @@ -52374,9 +56632,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 4124fab99..bc2e8f94a 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var swapserverrpc_common_pb = require('./swapserverrpc/common_pb.js'); +goog.object.extend(proto, swapserverrpc_common_pb); goog.exportSymbol('proto.looprpc.AbandonSwapRequest', null, global); goog.exportSymbol('proto.looprpc.AbandonSwapResponse', null, global); goog.exportSymbol('proto.looprpc.AddressType', null, global); @@ -65,7 +76,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 @@ -76,13 +86,900 @@ 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.ListSwapsFilter = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ListSwapsFilter.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.ListSwapsFilter, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ListSwapsFilter.displayName = 'proto.looprpc.ListSwapsFilter'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.L402Token = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.L402Token, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.L402Token.displayName = 'proto.looprpc.L402Token'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.LoopStats = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.LoopStats, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.LoopStats.displayName = 'proto.looprpc.LoopStats'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.GetInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.GetInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.GetInfoRequest.displayName = 'proto.looprpc.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.looprpc.GetInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.GetInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.GetInfoResponse.displayName = 'proto.looprpc.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.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.Disqualified, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @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'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.AbandonSwapRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.AbandonSwapRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.AbandonSwapRequest.displayName = 'proto.looprpc.AbandonSwapRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.AbandonSwapResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.AbandonSwapResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.AbandonSwapResponse.displayName = 'proto.looprpc.AbandonSwapResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.ListReservationsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ListReservationsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ListReservationsRequest.displayName = 'proto.looprpc.ListReservationsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.ListReservationsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ListReservationsResponse.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.ListReservationsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ListReservationsResponse.displayName = 'proto.looprpc.ListReservationsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.ClientReservation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ClientReservation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ClientReservation.displayName = 'proto.looprpc.ClientReservation'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.InstantOutRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.InstantOutRequest.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.InstantOutRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.InstantOutRequest.displayName = 'proto.looprpc.InstantOutRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.InstantOutResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.looprpc.LoopOutRequest, jspb.Message); +goog.inherits(proto.looprpc.InstantOutResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { - proto.looprpc.LoopOutRequest.displayName = 'proto.looprpc.LoopOutRequest'; + /** + * @public + * @override + */ + proto.looprpc.InstantOutResponse.displayName = 'proto.looprpc.InstantOutResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.InstantOutQuoteRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.InstantOutQuoteRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.InstantOutQuoteRequest.displayName = 'proto.looprpc.InstantOutQuoteRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.InstantOutQuoteResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.InstantOutQuoteResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.InstantOutQuoteResponse.displayName = 'proto.looprpc.InstantOutQuoteResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.ListInstantOutsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.ListInstantOutsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ListInstantOutsRequest.displayName = 'proto.looprpc.ListInstantOutsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.ListInstantOutsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ListInstantOutsResponse.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.ListInstantOutsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.ListInstantOutsResponse.displayName = 'proto.looprpc.ListInstantOutsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.InstantOut = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.InstantOut.repeatedFields_, null); +}; +goog.inherits(proto.looprpc.InstantOut, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.InstantOut.displayName = 'proto.looprpc.InstantOut'; } + /** * List of repeated fields within this message type. * @private {!Array} @@ -94,13 +991,15 @@ proto.looprpc.LoopOutRequest.repeatedFields_ = [11,18]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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) { @@ -110,8 +1009,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} @@ -127,7 +1026,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"), @@ -135,7 +1034,7 @@ proto.looprpc.LoopOutRequest.toObject = function(includeInstance, msg) { initiator: jspb.Message.getFieldWithDefault(msg, 14, ""), account: jspb.Message.getFieldWithDefault(msg, 15, ""), accountAddrType: jspb.Message.getFieldWithDefault(msg, 16, 0), - isExternalAddr: jspb.Message.getFieldWithDefault(msg, 17, false), + isExternalAddr: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), reservationIdsList: msg.getReservationIdsList_asB64(), paymentTimeout: jspb.Message.getFieldWithDefault(msg, 19, 0) }; @@ -207,8 +1106,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()); @@ -424,9 +1325,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); }; @@ -439,9 +1343,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); }; @@ -454,9 +1361,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); }; @@ -469,9 +1379,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); }; @@ -484,9 +1397,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); }; @@ -499,9 +1415,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); }; @@ -514,9 +1433,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); }; @@ -529,9 +1451,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); }; @@ -544,23 +1469,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([]); }; @@ -573,9 +1506,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); }; @@ -588,9 +1524,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); }; @@ -603,9 +1542,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); }; @@ -618,9 +1560,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); }; @@ -633,9 +1578,12 @@ 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); }; @@ -648,9 +1596,12 @@ proto.looprpc.LoopOutRequest.prototype.getAccount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setAccount = function(value) { - jspb.Message.setProto3StringField(this, 15, value); + return jspb.Message.setProto3StringField(this, 15, value); }; @@ -663,26 +1614,30 @@ proto.looprpc.LoopOutRequest.prototype.getAccountAddrType = function() { }; -/** @param {!proto.looprpc.AddressType} value */ +/** + * @param {!proto.looprpc.AddressType} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setAccountAddrType = function(value) { - jspb.Message.setProto3EnumField(this, 16, value); + return jspb.Message.setProto3EnumField(this, 16, value); }; /** * optional bool is_external_addr = 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.looprpc.LoopOutRequest.prototype.getIsExternalAddr = 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.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setIsExternalAddr = function(value) { - jspb.Message.setProto3BooleanField(this, 17, value); + return jspb.Message.setProto3BooleanField(this, 17, value); }; @@ -719,23 +1674,31 @@ proto.looprpc.LoopOutRequest.prototype.getReservationIdsList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setReservationIdsList = function(value) { - jspb.Message.setField(this, 18, value || []); + return jspb.Message.setField(this, 18, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.looprpc.LoopOutRequest} returns this */ proto.looprpc.LoopOutRequest.prototype.addReservationIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 18, value, opt_index); + return jspb.Message.addToRepeatedField(this, 18, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.clearReservationIdsList = function() { - this.setReservationIdsList([]); + return this.setReservationIdsList([]); }; @@ -748,30 +1711,16 @@ proto.looprpc.LoopOutRequest.prototype.getPaymentTimeout = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.LoopOutRequest} returns this + */ proto.looprpc.LoopOutRequest.prototype.setPaymentTimeout = function(value) { - jspb.Message.setProto3IntField(this, 19, value); + return jspb.Message.setProto3IntField(this, 19, value); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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} @@ -783,13 +1732,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) { @@ -799,8 +1750,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} @@ -812,13 +1763,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) { @@ -1008,9 +1959,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); }; @@ -1023,9 +1977,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); }; @@ -1038,9 +1995,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); }; @@ -1077,26 +2037,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); }; @@ -1109,9 +2073,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); }; @@ -1124,9 +2091,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); }; @@ -1139,9 +2109,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); }; @@ -1155,9 +2128,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); }; @@ -1171,57 +2147,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) { @@ -1231,8 +2197,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} @@ -1389,9 +2355,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); }; @@ -1428,9 +2397,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); }; @@ -1443,9 +2415,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); }; @@ -1458,9 +2433,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); }; @@ -1473,9 +2451,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); }; @@ -1488,41 +2469,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) { @@ -1532,8 +2501,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} @@ -1608,26 +2577,9 @@ proto.looprpc.MonitorRequest.prototype.serializeBinary = function() { proto.looprpc.MonitorRequest.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.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} @@ -1639,13 +2591,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) { @@ -1655,8 +2609,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} @@ -1679,7 +2633,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, "") }; @@ -1778,8 +2732,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()); @@ -1945,9 +2901,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); }; @@ -1960,9 +2919,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); }; @@ -1999,9 +2961,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); }; @@ -2014,9 +2979,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); }; @@ -2029,9 +2997,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); }; @@ -2044,9 +3015,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); }; @@ -2059,9 +3033,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); }; @@ -2074,9 +3051,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); }; @@ -2089,9 +3069,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); }; @@ -2104,9 +3087,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); }; @@ -2119,9 +3105,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); }; @@ -2134,9 +3123,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); }; @@ -2149,9 +3141,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); }; @@ -2164,9 +3159,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); }; @@ -2203,9 +3201,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); }; @@ -2218,23 +3219,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([]); }; @@ -2247,41 +3256,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) { @@ -2291,8 +3288,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} @@ -2392,20 +3389,27 @@ proto.looprpc.ListSwapsRequest.prototype.getListSwapFilter = function() { }; -/** @param {?proto.looprpc.ListSwapsFilter|undefined} value */ +/** + * @param {?proto.looprpc.ListSwapsFilter|undefined} value + * @return {!proto.looprpc.ListSwapsRequest} returns this +*/ proto.looprpc.ListSwapsRequest.prototype.setListSwapFilter = 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.ListSwapsRequest} returns this + */ proto.looprpc.ListSwapsRequest.prototype.clearListSwapFilter = function() { - this.setListSwapFilter(undefined); + return this.setListSwapFilter(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.looprpc.ListSwapsRequest.prototype.hasListSwapFilter = function() { return jspb.Message.getField(this, 1) != null; @@ -2413,23 +3417,6 @@ proto.looprpc.ListSwapsRequest.prototype.hasListSwapFilter = 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.ListSwapsFilter = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ListSwapsFilter.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.ListSwapsFilter, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ListSwapsFilter.displayName = 'proto.looprpc.ListSwapsFilter'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -2441,13 +3428,15 @@ proto.looprpc.ListSwapsFilter.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.ListSwapsFilter.prototype.toObject = function(opt_includeInstance) { @@ -2457,8 +3446,8 @@ proto.looprpc.ListSwapsFilter.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.ListSwapsFilter} msg The msg instance to transform. * @return {!Object} @@ -2467,8 +3456,8 @@ proto.looprpc.ListSwapsFilter.prototype.toObject = function(opt_includeInstance) proto.looprpc.ListSwapsFilter.toObject = function(includeInstance, msg) { var f, obj = { swapType: jspb.Message.getFieldWithDefault(msg, 1, 0), - pendingOnly: jspb.Message.getFieldWithDefault(msg, 2, false), - outgoingChanSetList: jspb.Message.getRepeatedField(msg, 3), + pendingOnly: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + outgoingChanSetList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, label: jspb.Message.getFieldWithDefault(msg, 4, ""), loopInLastHop: msg.getLoopInLastHop_asB64() }; @@ -2516,8 +3505,10 @@ proto.looprpc.ListSwapsFilter.deserializeBinaryFromReader = function(msg, reader msg.setPendingOnly(value); break; case 3: - 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 4: var value = /** @type {string} */ (reader.readString()); @@ -2612,26 +3603,30 @@ proto.looprpc.ListSwapsFilter.prototype.getSwapType = function() { }; -/** @param {!proto.looprpc.ListSwapsFilter.SwapTypeFilter} value */ +/** + * @param {!proto.looprpc.ListSwapsFilter.SwapTypeFilter} value + * @return {!proto.looprpc.ListSwapsFilter} returns this + */ proto.looprpc.ListSwapsFilter.prototype.setSwapType = function(value) { - jspb.Message.setProto3EnumField(this, 1, value); + return jspb.Message.setProto3EnumField(this, 1, value); }; /** * optional bool pending_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.looprpc.ListSwapsFilter.prototype.getPendingOnly = 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.looprpc.ListSwapsFilter} returns this + */ proto.looprpc.ListSwapsFilter.prototype.setPendingOnly = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return jspb.Message.setProto3BooleanField(this, 2, value); }; @@ -2644,23 +3639,31 @@ proto.looprpc.ListSwapsFilter.prototype.getOutgoingChanSetList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.ListSwapsFilter} returns this + */ proto.looprpc.ListSwapsFilter.prototype.setOutgoingChanSetList = function(value) { - jspb.Message.setField(this, 3, value || []); + return jspb.Message.setField(this, 3, value || []); }; /** - * @param {!string} value + * @param {string} value * @param {number=} opt_index + * @return {!proto.looprpc.ListSwapsFilter} returns this */ proto.looprpc.ListSwapsFilter.prototype.addOutgoingChanSet = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 3, value, opt_index); + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.ListSwapsFilter} returns this + */ proto.looprpc.ListSwapsFilter.prototype.clearOutgoingChanSetList = function() { - this.setOutgoingChanSetList([]); + return this.setOutgoingChanSetList([]); }; @@ -2673,9 +3676,12 @@ proto.looprpc.ListSwapsFilter.prototype.getLabel = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ListSwapsFilter} returns this + */ proto.looprpc.ListSwapsFilter.prototype.setLabel = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -2712,30 +3718,16 @@ proto.looprpc.ListSwapsFilter.prototype.getLoopInLastHop_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ListSwapsFilter} returns this + */ proto.looprpc.ListSwapsFilter.prototype.setLoopInLastHop = 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.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} @@ -2747,13 +3739,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) { @@ -2763,8 +3757,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} @@ -2865,9 +3859,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); }; @@ -2881,40 +3878,29 @@ proto.looprpc.ListSwapsResponse.prototype.addSwaps = function(opt_value, opt_ind }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.ListSwapsResponse} returns this + */ proto.looprpc.ListSwapsResponse.prototype.clearSwapsList = function() { - this.setSwapsList([]); + return 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 - */ -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) { - 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) { @@ -2924,8 +3910,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} @@ -3046,41 +4032,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) { @@ -3090,8 +4064,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} @@ -3169,34 +4143,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) { @@ -3206,8 +4165,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} @@ -3316,9 +4275,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); }; @@ -3331,41 +4293,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) { @@ -3375,8 +4325,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} @@ -3509,9 +4459,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); }; @@ -3524,9 +4477,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); }; @@ -3539,9 +4495,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); }; @@ -3554,30 +4513,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} @@ -3589,13 +4534,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) { @@ -3605,8 +4552,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} @@ -3616,12 +4563,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) { @@ -3778,9 +4725,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); }; @@ -3793,26 +4743,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); }; @@ -3825,9 +4779,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); }; @@ -3864,9 +4821,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); }; @@ -3880,9 +4840,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); }; @@ -3896,57 +4859,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)); -}; - - -/** @param {boolean} value */ -proto.looprpc.QuoteRequest.prototype.setPrivate = function(value) { - 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 + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.looprpc.QuoteRequest} returns this */ -proto.looprpc.InQuoteResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.looprpc.QuoteRequest.prototype.setPrivate = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); }; -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) { @@ -3956,8 +4909,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} @@ -4090,9 +5043,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); }; @@ -4105,9 +5061,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); }; @@ -4120,9 +5079,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); }; @@ -4135,41 +5097,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) { @@ -4179,8 +5129,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} @@ -4337,9 +5287,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); }; @@ -4352,9 +5305,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); }; @@ -4367,9 +5323,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); }; @@ -4406,9 +5365,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); }; @@ -4421,9 +5383,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); }; @@ -4436,30 +5401,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} @@ -4471,13 +5422,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) { @@ -4487,8 +5440,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} @@ -4612,9 +5565,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); }; @@ -4651,9 +5607,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); }; @@ -4667,9 +5626,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); }; @@ -4683,40 +5645,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) { @@ -4726,8 +5677,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} @@ -4805,34 +5756,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) { @@ -4842,8 +5778,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} @@ -4921,23 +5857,6 @@ proto.looprpc.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.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} @@ -4949,13 +5868,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) { @@ -4965,8 +5886,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} @@ -5067,9 +5988,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); }; @@ -5083,40 +6007,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.L402Token = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.L402Token, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.L402Token.displayName = 'proto.looprpc.L402Token'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.L402Token.prototype.toObject = function(opt_includeInstance) { @@ -5126,8 +6039,8 @@ proto.looprpc.L402Token.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.L402Token} msg The msg instance to transform. * @return {!Object} @@ -5141,7 +6054,7 @@ proto.looprpc.L402Token.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, ""), id: jspb.Message.getFieldWithDefault(msg, 9, "") }; @@ -5344,9 +6257,12 @@ proto.looprpc.L402Token.prototype.getBaseMacaroon_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.L402Token} returns this + */ proto.looprpc.L402Token.prototype.setBaseMacaroon = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -5383,9 +6299,12 @@ proto.looprpc.L402Token.prototype.getPaymentHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.L402Token} returns this + */ proto.looprpc.L402Token.prototype.setPaymentHash = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -5422,9 +6341,12 @@ proto.looprpc.L402Token.prototype.getPaymentPreimage_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.L402Token} returns this + */ proto.looprpc.L402Token.prototype.setPaymentPreimage = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -5437,9 +6359,12 @@ proto.looprpc.L402Token.prototype.getAmountPaidMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.L402Token} returns this + */ proto.looprpc.L402Token.prototype.setAmountPaidMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -5452,9 +6377,12 @@ proto.looprpc.L402Token.prototype.getRoutingFeePaidMsat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.L402Token} returns this + */ proto.looprpc.L402Token.prototype.setRoutingFeePaidMsat = function(value) { - jspb.Message.setProto3StringIntField(this, 5, value); + return jspb.Message.setProto3StringIntField(this, 5, value); }; @@ -5467,26 +6395,30 @@ proto.looprpc.L402Token.prototype.getTimeCreated = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.L402Token} returns this + */ proto.looprpc.L402Token.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.L402Token.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.L402Token} returns this + */ proto.looprpc.L402Token.prototype.setExpired = function(value) { - jspb.Message.setProto3BooleanField(this, 7, value); + return jspb.Message.setProto3BooleanField(this, 7, value); }; @@ -5499,9 +6431,12 @@ proto.looprpc.L402Token.prototype.getStorageName = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.L402Token} returns this + */ proto.looprpc.L402Token.prototype.setStorageName = function(value) { - jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 8, value); }; @@ -5514,41 +6449,29 @@ proto.looprpc.L402Token.prototype.getId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.L402Token} returns this + */ proto.looprpc.L402Token.prototype.setId = function(value) { - jspb.Message.setProto3StringField(this, 9, value); + return jspb.Message.setProto3StringField(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.LoopStats = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.LoopStats, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.LoopStats.displayName = 'proto.looprpc.LoopStats'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.LoopStats.prototype.toObject = function(opt_includeInstance) { @@ -5558,8 +6481,8 @@ proto.looprpc.LoopStats.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.LoopStats} msg The msg instance to transform. * @return {!Object} @@ -5704,9 +6627,12 @@ proto.looprpc.LoopStats.prototype.getPendingCount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopStats} returns this + */ proto.looprpc.LoopStats.prototype.setPendingCount = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -5719,9 +6645,12 @@ proto.looprpc.LoopStats.prototype.getSuccessCount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopStats} returns this + */ proto.looprpc.LoopStats.prototype.setSuccessCount = function(value) { - jspb.Message.setProto3StringIntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -5734,9 +6663,12 @@ proto.looprpc.LoopStats.prototype.getFailCount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopStats} returns this + */ proto.looprpc.LoopStats.prototype.setFailCount = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -5749,9 +6681,12 @@ proto.looprpc.LoopStats.prototype.getSumPendingAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopStats} returns this + */ proto.looprpc.LoopStats.prototype.setSumPendingAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; @@ -5764,41 +6699,29 @@ proto.looprpc.LoopStats.prototype.getSumSucceededAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LoopStats} returns this + */ proto.looprpc.LoopStats.prototype.setSumSucceededAmt = 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.looprpc.GetInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.GetInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.GetInfoRequest.displayName = 'proto.looprpc.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.looprpc.GetInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -5808,8 +6731,8 @@ proto.looprpc.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.looprpc.GetInfoRequest} msg The msg instance to transform. * @return {!Object} @@ -5887,34 +6810,19 @@ proto.looprpc.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.looprpc.GetInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.GetInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.GetInfoResponse.displayName = 'proto.looprpc.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.looprpc.GetInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -5924,8 +6832,8 @@ proto.looprpc.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.looprpc.GetInfoResponse} msg The msg instance to transform. * @return {!Object} @@ -6110,9 +7018,12 @@ proto.looprpc.GetInfoResponse.prototype.getVersion = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.GetInfoResponse} returns this + */ proto.looprpc.GetInfoResponse.prototype.setVersion = function(value) { - jspb.Message.setProto3StringField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -6125,9 +7036,12 @@ proto.looprpc.GetInfoResponse.prototype.getNetwork = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.GetInfoResponse} returns this + */ proto.looprpc.GetInfoResponse.prototype.setNetwork = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -6140,9 +7054,12 @@ proto.looprpc.GetInfoResponse.prototype.getRpcListen = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.GetInfoResponse} returns this + */ proto.looprpc.GetInfoResponse.prototype.setRpcListen = function(value) { - jspb.Message.setProto3StringField(this, 3, value); + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -6155,9 +7072,12 @@ proto.looprpc.GetInfoResponse.prototype.getRestListen = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.GetInfoResponse} returns this + */ proto.looprpc.GetInfoResponse.prototype.setRestListen = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -6170,9 +7090,12 @@ proto.looprpc.GetInfoResponse.prototype.getMacaroonPath = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.GetInfoResponse} returns this + */ proto.looprpc.GetInfoResponse.prototype.setMacaroonPath = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -6185,9 +7108,12 @@ proto.looprpc.GetInfoResponse.prototype.getTlsCertPath = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.GetInfoResponse} returns this + */ proto.looprpc.GetInfoResponse.prototype.setTlsCertPath = function(value) { - jspb.Message.setProto3StringField(this, 6, value); + return jspb.Message.setProto3StringField(this, 6, value); }; @@ -6201,20 +7127,27 @@ proto.looprpc.GetInfoResponse.prototype.getLoopOutStats = function() { }; -/** @param {?proto.looprpc.LoopStats|undefined} value */ +/** + * @param {?proto.looprpc.LoopStats|undefined} value + * @return {!proto.looprpc.GetInfoResponse} returns this +*/ proto.looprpc.GetInfoResponse.prototype.setLoopOutStats = function(value) { - jspb.Message.setWrapperField(this, 7, value); + return jspb.Message.setWrapperField(this, 7, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.looprpc.GetInfoResponse} returns this + */ proto.looprpc.GetInfoResponse.prototype.clearLoopOutStats = function() { - this.setLoopOutStats(undefined); + return this.setLoopOutStats(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.looprpc.GetInfoResponse.prototype.hasLoopOutStats = function() { return jspb.Message.getField(this, 7) != null; @@ -6231,20 +7164,27 @@ proto.looprpc.GetInfoResponse.prototype.getLoopInStats = function() { }; -/** @param {?proto.looprpc.LoopStats|undefined} value */ +/** + * @param {?proto.looprpc.LoopStats|undefined} value + * @return {!proto.looprpc.GetInfoResponse} returns this +*/ proto.looprpc.GetInfoResponse.prototype.setLoopInStats = function(value) { - jspb.Message.setWrapperField(this, 8, value); + return jspb.Message.setWrapperField(this, 8, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.looprpc.GetInfoResponse} returns this + */ proto.looprpc.GetInfoResponse.prototype.clearLoopInStats = function() { - this.setLoopInStats(undefined); + return this.setLoopInStats(undefined); }; /** * Returns whether this field is set. - * @return {!boolean} + * @return {boolean} */ proto.looprpc.GetInfoResponse.prototype.hasLoopInStats = function() { return jspb.Message.getField(this, 8) != null; @@ -6252,34 +7192,19 @@ proto.looprpc.GetInfoResponse.prototype.hasLoopInStats = 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.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) { @@ -6289,8 +7214,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} @@ -6368,23 +7293,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} @@ -6396,13 +7304,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) { @@ -6412,8 +7322,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} @@ -6432,7 +7342,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"), @@ -6442,7 +7352,7 @@ proto.looprpc.LiquidityParameters.toObject = function(includeInstance, msg) { autoloopDestAddress: jspb.Message.getFieldWithDefault(msg, 18, ""), autoloopBudgetRefreshPeriodSec: jspb.Message.getFieldWithDefault(msg, 19, "0"), autoloopBudgetLastRefresh: jspb.Message.getFieldWithDefault(msg, 20, "0"), - easyAutoloop: jspb.Message.getFieldWithDefault(msg, 21, false), + easyAutoloop: jspb.Message.getBooleanFieldWithDefault(msg, 21, false), easyAutoloopLocalTargetSat: jspb.Message.getFieldWithDefault(msg, 22, "0"), account: jspb.Message.getFieldWithDefault(msg, 23, ""), accountAddrType: jspb.Message.getFieldWithDefault(msg, 24, 0) @@ -6790,9 +7700,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); }; @@ -6806,8 +7719,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([]); }; @@ -6820,9 +7737,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); }; @@ -6835,9 +7755,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); }; @@ -6850,9 +7773,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); }; @@ -6865,9 +7791,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); }; @@ -6880,9 +7809,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); }; @@ -6895,9 +7827,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); }; @@ -6910,9 +7845,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); }; @@ -6925,9 +7863,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); }; @@ -6940,26 +7881,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); }; @@ -6972,9 +7917,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); }; @@ -6987,9 +7935,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); }; @@ -7002,9 +7953,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); }; @@ -7017,9 +7971,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); }; @@ -7032,9 +7989,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); }; @@ -7047,9 +8007,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); }; @@ -7062,9 +8025,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); }; @@ -7077,9 +8043,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); }; @@ -7092,26 +8061,30 @@ 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); }; /** * optional bool easy_autoloop = 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.looprpc.LiquidityParameters.prototype.getEasyAutoloop = 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.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setEasyAutoloop = function(value) { - jspb.Message.setProto3BooleanField(this, 21, value); + return jspb.Message.setProto3BooleanField(this, 21, value); }; @@ -7124,9 +8097,12 @@ proto.looprpc.LiquidityParameters.prototype.getEasyAutoloopLocalTargetSat = func }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setEasyAutoloopLocalTargetSat = function(value) { - jspb.Message.setProto3StringIntField(this, 22, value); + return jspb.Message.setProto3StringIntField(this, 22, value); }; @@ -7139,9 +8115,12 @@ proto.looprpc.LiquidityParameters.prototype.getAccount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setAccount = function(value) { - jspb.Message.setProto3StringField(this, 23, value); + return jspb.Message.setProto3StringField(this, 23, value); }; @@ -7154,41 +8133,29 @@ proto.looprpc.LiquidityParameters.prototype.getAccountAddrType = function() { }; -/** @param {!proto.looprpc.AddressType} value */ +/** + * @param {!proto.looprpc.AddressType} value + * @return {!proto.looprpc.LiquidityParameters} returns this + */ proto.looprpc.LiquidityParameters.prototype.setAccountAddrType = function(value) { - jspb.Message.setProto3EnumField(this, 24, value); + return jspb.Message.setProto3EnumField(this, 24, value); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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) { @@ -7198,8 +8165,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} @@ -7356,9 +8323,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); }; @@ -7371,9 +8341,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); }; @@ -7410,9 +8383,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); }; @@ -7425,9 +8401,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); }; @@ -7440,9 +8419,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); }; @@ -7455,41 +8437,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) { @@ -7499,8 +8469,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} @@ -7600,20 +8570,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; @@ -7621,34 +8598,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) { @@ -7658,8 +8620,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} @@ -7737,34 +8699,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) { @@ -7774,8 +8721,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} @@ -7853,34 +8800,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) { @@ -7890,8 +8822,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} @@ -8012,9 +8944,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); }; @@ -8051,9 +8986,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); }; @@ -8066,30 +9004,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} @@ -8101,13 +9025,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) { @@ -8117,8 +9043,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} @@ -8249,9 +9175,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); }; @@ -8265,8 +9194,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([]); }; @@ -8280,9 +9213,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); }; @@ -8296,8 +9232,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([]); }; @@ -8311,9 +9251,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); }; @@ -8327,40 +9270,29 @@ 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([]); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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.AbandonSwapRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.AbandonSwapRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.AbandonSwapRequest.displayName = 'proto.looprpc.AbandonSwapRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.AbandonSwapRequest.prototype.toObject = function(opt_includeInstance) { @@ -8370,8 +9302,8 @@ proto.looprpc.AbandonSwapRequest.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.AbandonSwapRequest} msg The msg instance to transform. * @return {!Object} @@ -8380,7 +9312,7 @@ proto.looprpc.AbandonSwapRequest.prototype.toObject = function(opt_includeInstan proto.looprpc.AbandonSwapRequest.toObject = function(includeInstance, msg) { var f, obj = { id: msg.getId_asB64(), - iKnowWhatIAmDoing: jspb.Message.getFieldWithDefault(msg, 2, false) + iKnowWhatIAmDoing: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -8504,58 +9436,47 @@ proto.looprpc.AbandonSwapRequest.prototype.getId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.AbandonSwapRequest} returns this + */ proto.looprpc.AbandonSwapRequest.prototype.setId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; /** * optional bool i_know_what_i_am_doing = 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.looprpc.AbandonSwapRequest.prototype.getIKnowWhatIAmDoing = function() { - return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 2, false)); -}; - - -/** @param {boolean} value */ -proto.looprpc.AbandonSwapRequest.prototype.setIKnowWhatIAmDoing = function(value) { - jspb.Message.setProto3BooleanField(this, 2, value); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, 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.looprpc.AbandonSwapRequest} returns this */ -proto.looprpc.AbandonSwapResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.looprpc.AbandonSwapRequest.prototype.setIKnowWhatIAmDoing = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; -goog.inherits(proto.looprpc.AbandonSwapResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.AbandonSwapResponse.displayName = 'proto.looprpc.AbandonSwapResponse'; -} + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.AbandonSwapResponse.prototype.toObject = function(opt_includeInstance) { @@ -8565,8 +9486,8 @@ proto.looprpc.AbandonSwapResponse.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.AbandonSwapResponse} msg The msg instance to transform. * @return {!Object} @@ -8644,34 +9565,19 @@ proto.looprpc.AbandonSwapResponse.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.ListReservationsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ListReservationsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ListReservationsRequest.displayName = 'proto.looprpc.ListReservationsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.ListReservationsRequest.prototype.toObject = function(opt_includeInstance) { @@ -8681,8 +9587,8 @@ proto.looprpc.ListReservationsRequest.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.ListReservationsRequest} msg The msg instance to transform. * @return {!Object} @@ -8760,23 +9666,6 @@ proto.looprpc.ListReservationsRequest.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.ListReservationsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ListReservationsResponse.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.ListReservationsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ListReservationsResponse.displayName = 'proto.looprpc.ListReservationsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -8788,13 +9677,15 @@ proto.looprpc.ListReservationsResponse.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.ListReservationsResponse.prototype.toObject = function(opt_includeInstance) { @@ -8804,8 +9695,8 @@ proto.looprpc.ListReservationsResponse.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.ListReservationsResponse} msg The msg instance to transform. * @return {!Object} @@ -8906,9 +9797,12 @@ proto.looprpc.ListReservationsResponse.prototype.getReservationsList = function( }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.ListReservationsResponse} returns this +*/ proto.looprpc.ListReservationsResponse.prototype.setReservationsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -8922,40 +9816,29 @@ proto.looprpc.ListReservationsResponse.prototype.addReservations = function(opt_ }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.ListReservationsResponse} returns this + */ proto.looprpc.ListReservationsResponse.prototype.clearReservationsList = function() { - this.setReservationsList([]); + return this.setReservationsList([]); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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.ClientReservation = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ClientReservation, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ClientReservation.displayName = 'proto.looprpc.ClientReservation'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.ClientReservation.prototype.toObject = function(opt_includeInstance) { @@ -8965,8 +9848,8 @@ proto.looprpc.ClientReservation.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.ClientReservation} msg The msg instance to transform. * @return {!Object} @@ -9147,9 +10030,12 @@ proto.looprpc.ClientReservation.prototype.getReservationId_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.ClientReservation} returns this + */ proto.looprpc.ClientReservation.prototype.setReservationId = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -9162,9 +10048,12 @@ proto.looprpc.ClientReservation.prototype.getState = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ClientReservation} returns this + */ proto.looprpc.ClientReservation.prototype.setState = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -9177,9 +10066,12 @@ proto.looprpc.ClientReservation.prototype.getAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ClientReservation} returns this + */ proto.looprpc.ClientReservation.prototype.setAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -9192,9 +10084,12 @@ proto.looprpc.ClientReservation.prototype.getTxId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ClientReservation} returns this + */ proto.looprpc.ClientReservation.prototype.setTxId = function(value) { - jspb.Message.setProto3StringField(this, 4, value); + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -9207,9 +10102,12 @@ proto.looprpc.ClientReservation.prototype.getVout = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ClientReservation} returns this + */ proto.looprpc.ClientReservation.prototype.setVout = function(value) { - jspb.Message.setProto3IntField(this, 5, value); + return jspb.Message.setProto3IntField(this, 5, value); }; @@ -9222,30 +10120,16 @@ proto.looprpc.ClientReservation.prototype.getExpiry = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.ClientReservation} returns this + */ proto.looprpc.ClientReservation.prototype.setExpiry = 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.InstantOutRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.InstantOutRequest.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.InstantOutRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.InstantOutRequest.displayName = 'proto.looprpc.InstantOutRequest'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -9257,13 +10141,15 @@ proto.looprpc.InstantOutRequest.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.looprpc.InstantOutRequest.prototype.toObject = function(opt_includeInstance) { @@ -9273,8 +10159,8 @@ proto.looprpc.InstantOutRequest.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.InstantOutRequest} msg The msg instance to transform. * @return {!Object} @@ -9283,7 +10169,7 @@ proto.looprpc.InstantOutRequest.prototype.toObject = function(opt_includeInstanc proto.looprpc.InstantOutRequest.toObject = function(includeInstance, msg) { var f, obj = { reservationIdsList: msg.getReservationIdsList_asB64(), - outgoingChanSetList: jspb.Message.getRepeatedField(msg, 2), + outgoingChanSetList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, destAddr: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -9326,8 +10212,10 @@ proto.looprpc.InstantOutRequest.deserializeBinaryFromReader = function(msg, read msg.addReservationIds(value); break; case 2: - 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 3: var value = /** @type {string} */ (reader.readString()); @@ -9419,23 +10307,31 @@ proto.looprpc.InstantOutRequest.prototype.getReservationIdsList_asU8 = function( }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.looprpc.InstantOutRequest} returns this + */ proto.looprpc.InstantOutRequest.prototype.setReservationIdsList = 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.looprpc.InstantOutRequest} returns this */ proto.looprpc.InstantOutRequest.prototype.addReservationIds = 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.looprpc.InstantOutRequest} returns this + */ proto.looprpc.InstantOutRequest.prototype.clearReservationIdsList = function() { - this.setReservationIdsList([]); + return this.setReservationIdsList([]); }; @@ -9448,23 +10344,31 @@ proto.looprpc.InstantOutRequest.prototype.getOutgoingChanSetList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.InstantOutRequest} returns this + */ proto.looprpc.InstantOutRequest.prototype.setOutgoingChanSetList = 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.looprpc.InstantOutRequest} returns this */ proto.looprpc.InstantOutRequest.prototype.addOutgoingChanSet = 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.looprpc.InstantOutRequest} returns this + */ proto.looprpc.InstantOutRequest.prototype.clearOutgoingChanSetList = function() { - this.setOutgoingChanSetList([]); + return this.setOutgoingChanSetList([]); }; @@ -9477,41 +10381,29 @@ proto.looprpc.InstantOutRequest.prototype.getDestAddr = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InstantOutRequest} returns this + */ proto.looprpc.InstantOutRequest.prototype.setDestAddr = 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.InstantOutResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.InstantOutResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.InstantOutResponse.displayName = 'proto.looprpc.InstantOutResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.InstantOutResponse.prototype.toObject = function(opt_includeInstance) { @@ -9521,8 +10413,8 @@ proto.looprpc.InstantOutResponse.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.InstantOutResponse} msg The msg instance to transform. * @return {!Object} @@ -9667,9 +10559,12 @@ proto.looprpc.InstantOutResponse.prototype.getInstantOutHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.InstantOutResponse} returns this + */ proto.looprpc.InstantOutResponse.prototype.setInstantOutHash = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -9682,9 +10577,12 @@ proto.looprpc.InstantOutResponse.prototype.getSweepTxId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InstantOutResponse} returns this + */ proto.looprpc.InstantOutResponse.prototype.setSweepTxId = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -9697,41 +10595,29 @@ proto.looprpc.InstantOutResponse.prototype.getState = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InstantOutResponse} returns this + */ proto.looprpc.InstantOutResponse.prototype.setState = 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.InstantOutQuoteRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.InstantOutQuoteRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.InstantOutQuoteRequest.displayName = 'proto.looprpc.InstantOutQuoteRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.InstantOutQuoteRequest.prototype.toObject = function(opt_includeInstance) { @@ -9741,8 +10627,8 @@ proto.looprpc.InstantOutQuoteRequest.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.InstantOutQuoteRequest} msg The msg instance to transform. * @return {!Object} @@ -9851,9 +10737,12 @@ proto.looprpc.InstantOutQuoteRequest.prototype.getAmt = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InstantOutQuoteRequest} returns this + */ proto.looprpc.InstantOutQuoteRequest.prototype.setAmt = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -9866,41 +10755,29 @@ proto.looprpc.InstantOutQuoteRequest.prototype.getNumReservations = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.InstantOutQuoteRequest} returns this + */ proto.looprpc.InstantOutQuoteRequest.prototype.setNumReservations = 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.looprpc.InstantOutQuoteResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.InstantOutQuoteResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.InstantOutQuoteResponse.displayName = 'proto.looprpc.InstantOutQuoteResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.InstantOutQuoteResponse.prototype.toObject = function(opt_includeInstance) { @@ -9910,8 +10787,8 @@ proto.looprpc.InstantOutQuoteResponse.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.InstantOutQuoteResponse} msg The msg instance to transform. * @return {!Object} @@ -10020,9 +10897,12 @@ proto.looprpc.InstantOutQuoteResponse.prototype.getServiceFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InstantOutQuoteResponse} returns this + */ proto.looprpc.InstantOutQuoteResponse.prototype.setServiceFeeSat = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -10035,41 +10915,29 @@ proto.looprpc.InstantOutQuoteResponse.prototype.getSweepFeeSat = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InstantOutQuoteResponse} returns this + */ proto.looprpc.InstantOutQuoteResponse.prototype.setSweepFeeSat = 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.ListInstantOutsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.ListInstantOutsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ListInstantOutsRequest.displayName = 'proto.looprpc.ListInstantOutsRequest'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.ListInstantOutsRequest.prototype.toObject = function(opt_includeInstance) { @@ -10079,8 +10947,8 @@ proto.looprpc.ListInstantOutsRequest.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.ListInstantOutsRequest} msg The msg instance to transform. * @return {!Object} @@ -10158,23 +11026,6 @@ proto.looprpc.ListInstantOutsRequest.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.ListInstantOutsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.ListInstantOutsResponse.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.ListInstantOutsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.ListInstantOutsResponse.displayName = 'proto.looprpc.ListInstantOutsResponse'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -10186,13 +11037,15 @@ proto.looprpc.ListInstantOutsResponse.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.ListInstantOutsResponse.prototype.toObject = function(opt_includeInstance) { @@ -10202,8 +11055,8 @@ proto.looprpc.ListInstantOutsResponse.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.ListInstantOutsResponse} msg The msg instance to transform. * @return {!Object} @@ -10304,9 +11157,12 @@ proto.looprpc.ListInstantOutsResponse.prototype.getSwapsList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.ListInstantOutsResponse} returns this +*/ proto.looprpc.ListInstantOutsResponse.prototype.setSwapsList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 1, value); + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -10320,29 +11176,16 @@ proto.looprpc.ListInstantOutsResponse.prototype.addSwaps = function(opt_value, o }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.ListInstantOutsResponse} returns this + */ proto.looprpc.ListInstantOutsResponse.prototype.clearSwapsList = function() { - this.setSwapsList([]); + return 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 - */ -proto.looprpc.InstantOut = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.looprpc.InstantOut.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.InstantOut, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.InstantOut.displayName = 'proto.looprpc.InstantOut'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -10354,13 +11197,15 @@ proto.looprpc.InstantOut.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.looprpc.InstantOut.prototype.toObject = function(opt_includeInstance) { @@ -10370,8 +11215,8 @@ proto.looprpc.InstantOut.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.InstantOut} msg The msg instance to transform. * @return {!Object} @@ -10540,9 +11385,12 @@ proto.looprpc.InstantOut.prototype.getSwapHash_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.InstantOut} returns this + */ proto.looprpc.InstantOut.prototype.setSwapHash = function(value) { - jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -10555,9 +11403,12 @@ proto.looprpc.InstantOut.prototype.getState = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InstantOut} returns this + */ proto.looprpc.InstantOut.prototype.setState = function(value) { - jspb.Message.setProto3StringField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -10570,9 +11421,12 @@ proto.looprpc.InstantOut.prototype.getAmount = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InstantOut} returns this + */ proto.looprpc.InstantOut.prototype.setAmount = function(value) { - jspb.Message.setProto3StringIntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; @@ -10609,23 +11463,31 @@ proto.looprpc.InstantOut.prototype.getReservationIdsList_asU8 = function() { }; -/** @param {!(Array|Array)} value */ +/** + * @param {!(Array|Array)} value + * @return {!proto.looprpc.InstantOut} returns this + */ proto.looprpc.InstantOut.prototype.setReservationIdsList = function(value) { - jspb.Message.setField(this, 4, value || []); + return jspb.Message.setField(this, 4, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index + * @return {!proto.looprpc.InstantOut} returns this */ proto.looprpc.InstantOut.prototype.addReservationIds = function(value, opt_index) { - jspb.Message.addToRepeatedField(this, 4, value, opt_index); + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.InstantOut} returns this + */ proto.looprpc.InstantOut.prototype.clearReservationIdsList = function() { - this.setReservationIdsList([]); + return this.setReservationIdsList([]); }; @@ -10638,9 +11500,12 @@ proto.looprpc.InstantOut.prototype.getSweepTxId = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.InstantOut} returns this + */ proto.looprpc.InstantOut.prototype.setSweepTxId = function(value) { - jspb.Message.setProto3StringField(this, 5, value); + return jspb.Message.setProto3StringField(this, 5, value); }; diff --git a/app/src/types/generated/proxy_pb.js b/app/src/types/generated/proxy_pb.js index 3aa964de7..3843c36a6 100644 --- a/app/src/types/generated/proxy_pb.js +++ b/app/src/types/generated/proxy_pb.js @@ -1,18 +1,28 @@ /* 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); goog.exportSymbol('proto.litrpc.BakeSuperMacaroonRequest', null, global); goog.exportSymbol('proto.litrpc.BakeSuperMacaroonResponse', null, global); @@ -20,7 +30,6 @@ 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 @@ -36,19 +45,131 @@ proto.litrpc.BakeSuperMacaroonRequest = function(opt_data) { }; goog.inherits(proto.litrpc.BakeSuperMacaroonRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ proto.litrpc.BakeSuperMacaroonRequest.displayName = 'proto.litrpc.BakeSuperMacaroonRequest'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.BakeSuperMacaroonResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.litrpc.BakeSuperMacaroonResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.litrpc.BakeSuperMacaroonResponse.displayName = 'proto.litrpc.BakeSuperMacaroonResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.StopDaemonRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +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.BakeSuperMacaroonRequest.prototype.toObject = function(opt_includeInstance) { @@ -58,8 +179,8 @@ proto.litrpc.BakeSuperMacaroonRequest.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.litrpc.BakeSuperMacaroonRequest} msg The msg instance to transform. * @return {!Object} @@ -156,41 +277,29 @@ proto.litrpc.BakeSuperMacaroonRequest.prototype.getRootKeyIdSuffix = function() }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.litrpc.BakeSuperMacaroonRequest} returns this + */ proto.litrpc.BakeSuperMacaroonRequest.prototype.setRootKeyIdSuffix = 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.litrpc.BakeSuperMacaroonResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.BakeSuperMacaroonResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.BakeSuperMacaroonResponse.displayName = 'proto.litrpc.BakeSuperMacaroonResponse'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.BakeSuperMacaroonResponse.prototype.toObject = function(opt_includeInstance) { @@ -200,8 +309,8 @@ proto.litrpc.BakeSuperMacaroonResponse.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.litrpc.BakeSuperMacaroonResponse} msg The msg instance to transform. * @return {!Object} @@ -298,41 +407,29 @@ proto.litrpc.BakeSuperMacaroonResponse.prototype.getMacaroon = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.litrpc.BakeSuperMacaroonResponse} returns this + */ proto.litrpc.BakeSuperMacaroonResponse.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.litrpc.StopDaemonRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.litrpc.StopDaemonRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.litrpc.StopDaemonRequest.displayName = 'proto.litrpc.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.litrpc.StopDaemonRequest.prototype.toObject = function(opt_includeInstance) { @@ -342,8 +439,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} @@ -421,34 +518,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) { @@ -458,8 +540,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} @@ -537,34 +619,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) { @@ -574,8 +641,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} @@ -653,34 +720,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) { @@ -690,8 +742,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} @@ -788,9 +840,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..0011a50e6 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); 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 104c0d9f5..bb4000b71 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); 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.FetchL402Request', null, global); goog.exportSymbol('proto.looprpc.FetchL402Response', null, global); @@ -55,7 +67,6 @@ goog.exportSymbol('proto.looprpc.StaticAddressProtocolVersion', 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 @@ -66,24 +77,724 @@ 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.ServerLoopOutRequest, jspb.Message); +goog.inherits(proto.looprpc.ServerProbeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { - proto.looprpc.ServerLoopOutRequest.displayName = 'proto.looprpc.ServerLoopOutRequest'; + /** + * @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, proto.looprpc.MuSig2SignSweepReq.repeatedFields_, 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.PrevoutInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.PrevoutInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.PrevoutInfo.displayName = 'proto.looprpc.PrevoutInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.ServerPushKeyReq, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @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'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.FetchL402Request = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.FetchL402Request, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.FetchL402Request.displayName = 'proto.looprpc.FetchL402Request'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.FetchL402Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.looprpc.FetchL402Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.looprpc.FetchL402Response.displayName = 'proto.looprpc.FetchL402Response'; } + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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) { @@ -93,8 +804,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} @@ -287,9 +998,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); }; @@ -326,9 +1040,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); }; @@ -341,9 +1058,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); }; @@ -356,9 +1076,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); }; @@ -371,9 +1094,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); }; @@ -386,9 +1112,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); }; @@ -401,41 +1130,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) { @@ -445,8 +1162,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} @@ -591,9 +1308,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); }; @@ -606,9 +1326,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); }; @@ -645,9 +1368,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); }; @@ -660,9 +1386,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); }; @@ -675,41 +1404,29 @@ proto.looprpc.ServerLoopOutResponse.prototype.getServerMessage = function() { }; -/** @param {string} value */ -proto.looprpc.ServerLoopOutResponse.prototype.setServerMessage = function(value) { - 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 + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutResponse} returns this */ -proto.looprpc.ServerLoopOutQuoteRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.looprpc.ServerLoopOutResponse.prototype.setServerMessage = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; -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) { @@ -719,8 +1436,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} @@ -865,9 +1582,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); }; @@ -880,9 +1600,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); }; @@ -895,9 +1618,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); }; @@ -910,9 +1636,12 @@ 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); }; @@ -925,41 +1654,29 @@ proto.looprpc.ServerLoopOutQuoteRequest.prototype.getUserAgent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutQuoteRequest} returns this + */ proto.looprpc.ServerLoopOutQuoteRequest.prototype.setUserAgent = 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.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) { @@ -969,8 +1686,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} @@ -1139,9 +1856,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); }; @@ -1154,9 +1874,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); }; @@ -1169,9 +1892,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); }; @@ -1184,9 +1910,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); }; @@ -1199,9 +1928,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); }; @@ -1214,9 +1946,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); }; @@ -1229,41 +1964,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) { @@ -1273,8 +1996,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} @@ -1383,9 +2106,12 @@ 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); }; @@ -1398,41 +2124,29 @@ proto.looprpc.ServerLoopOutTermsRequest.prototype.getUserAgent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopOutTermsRequest} returns this + */ proto.looprpc.ServerLoopOutTermsRequest.prototype.setUserAgent = 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.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) { @@ -1442,8 +2156,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} @@ -1576,9 +2290,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); }; @@ -1591,9 +2308,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); }; @@ -1606,9 +2326,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); }; @@ -1621,41 +2344,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) { @@ -1665,8 +2376,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} @@ -1883,9 +2594,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); }; @@ -1922,9 +2636,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); }; @@ -1961,9 +2678,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); }; @@ -1976,9 +2696,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); }; @@ -1991,9 +2714,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); }; @@ -2030,9 +2756,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); }; @@ -2045,9 +2774,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); }; @@ -2060,9 +2792,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); }; @@ -2075,41 +2810,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) { @@ -2119,8 +2842,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} @@ -2277,9 +3000,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); }; @@ -2316,9 +3042,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); }; @@ -2331,9 +3060,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); }; @@ -2346,30 +3078,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} @@ -2381,13 +3099,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) { @@ -2397,8 +3117,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} @@ -2558,9 +3278,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); }; @@ -2597,9 +3320,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); }; @@ -2636,9 +3362,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); }; @@ -2652,9 +3381,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); }; @@ -2668,8 +3400,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([]); }; @@ -2682,9 +3418,12 @@ 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); }; @@ -2697,41 +3436,29 @@ proto.looprpc.ServerLoopInQuoteRequest.prototype.getUserAgent = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.ServerLoopInQuoteRequest} returns this + */ proto.looprpc.ServerLoopInQuoteRequest.prototype.setUserAgent = 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.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) { @@ -2741,8 +3468,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} @@ -2887,9 +3614,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); }; @@ -2902,9 +3632,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); }; @@ -2917,9 +3650,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); }; @@ -2932,9 +3668,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); }; @@ -2947,41 +3686,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) { @@ -2991,8 +3718,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} @@ -3101,9 +3828,12 @@ 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); }; @@ -3116,41 +3846,29 @@ proto.looprpc.ServerLoopInTermsRequest.prototype.getUserAgent = function() { }; -/** @param {string} value */ -proto.looprpc.ServerLoopInTermsRequest.prototype.setUserAgent = function(value) { - 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.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'; -} + * @param {string} value + * @return {!proto.looprpc.ServerLoopInTermsRequest} returns this + */ +proto.looprpc.ServerLoopInTermsRequest.prototype.setUserAgent = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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) { @@ -3160,8 +3878,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} @@ -3270,9 +3988,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); }; @@ -3285,41 +4006,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) { @@ -3329,8 +4038,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} @@ -3439,9 +4148,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); }; @@ -3478,41 +4190,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) { @@ -3522,8 +4222,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} @@ -3601,34 +4301,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) { @@ -3638,8 +4323,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} @@ -3748,9 +4433,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); }; @@ -3787,41 +4475,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) { @@ -3831,8 +4507,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} @@ -3941,9 +4617,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); }; @@ -3956,41 +4635,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) { @@ -4000,8 +4667,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} @@ -4110,9 +4777,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); }; @@ -4125,30 +4795,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} @@ -4160,13 +4816,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) { @@ -4176,8 +4834,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} @@ -4301,9 +4959,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); }; @@ -4317,9 +4978,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); }; @@ -4333,8 +4997,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([]); }; @@ -4347,41 +5015,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) { @@ -4391,8 +5047,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} @@ -4489,30 +5145,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 @@ -4542,13 +5184,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) { @@ -4558,8 +5202,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} @@ -4694,9 +5338,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); }; @@ -4733,9 +5380,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); }; @@ -4772,9 +5422,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); }; @@ -4788,20 +5441,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; @@ -4809,34 +5469,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) { @@ -4846,8 +5491,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} @@ -4925,23 +5570,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} @@ -4953,13 +5581,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) { @@ -4969,8 +5599,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} @@ -5118,9 +5748,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); }; @@ -5133,9 +5766,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); }; @@ -5172,9 +5808,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); }; @@ -5211,9 +5850,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); }; @@ -5227,9 +5869,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); }; @@ -5243,40 +5888,29 @@ proto.looprpc.ServerProbeRequest.prototype.addRouteHints = function(opt_value, o }; -proto.looprpc.ServerProbeRequest.prototype.clearRouteHintsList = function() { - 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 + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.ServerProbeRequest} returns this */ -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'; -} +proto.looprpc.ServerProbeRequest.prototype.clearRouteHintsList = function() { + return this.setRouteHintsList([]); +}; + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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) { @@ -5286,8 +5920,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} @@ -5365,34 +5999,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) { @@ -5402,8 +6021,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} @@ -5524,9 +6143,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); }; @@ -5563,9 +6185,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); }; @@ -5602,41 +6227,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) { @@ -5646,8 +6259,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} @@ -5744,41 +6357,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) { @@ -5788,8 +6389,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} @@ -5801,7 +6402,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") }; @@ -5958,9 +6559,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); }; @@ -5997,9 +6601,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); }; @@ -6036,9 +6643,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); }; @@ -6051,26 +6661,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); }; @@ -6083,9 +6697,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); }; @@ -6098,41 +6715,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) { @@ -6142,8 +6747,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} @@ -6221,23 +6826,6 @@ 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, proto.looprpc.MuSig2SignSweepReq.repeatedFields_, null); -}; -goog.inherits(proto.looprpc.MuSig2SignSweepReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.MuSig2SignSweepReq.displayName = 'proto.looprpc.MuSig2SignSweepReq'; -} /** * List of repeated fields within this message type. * @private {!Array} @@ -6249,13 +6837,15 @@ proto.looprpc.MuSig2SignSweepReq.repeatedFields_ = [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.looprpc.MuSig2SignSweepReq.prototype.toObject = function(opt_includeInstance) { @@ -6265,8 +6855,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} @@ -6426,9 +7016,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); }; @@ -6465,9 +7058,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); }; @@ -6504,9 +7100,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); }; @@ -6543,9 +7142,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); }; @@ -6582,9 +7184,12 @@ 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); }; @@ -6598,9 +7203,12 @@ proto.looprpc.MuSig2SignSweepReq.prototype.getPrevoutInfoList = function() { }; -/** @param {!Array} value */ +/** + * @param {!Array} value + * @return {!proto.looprpc.MuSig2SignSweepReq} returns this +*/ proto.looprpc.MuSig2SignSweepReq.prototype.setPrevoutInfoList = function(value) { - jspb.Message.setRepeatedWrapperField(this, 7, value); + return jspb.Message.setRepeatedWrapperField(this, 7, value); }; @@ -6614,40 +7222,29 @@ proto.looprpc.MuSig2SignSweepReq.prototype.addPrevoutInfo = function(opt_value, }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.looprpc.MuSig2SignSweepReq} returns this + */ proto.looprpc.MuSig2SignSweepReq.prototype.clearPrevoutInfoList = function() { - this.setPrevoutInfoList([]); + return this.setPrevoutInfoList([]); }; -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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.PrevoutInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.PrevoutInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.PrevoutInfo.displayName = 'proto.looprpc.PrevoutInfo'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.PrevoutInfo.prototype.toObject = function(opt_includeInstance) { @@ -6657,8 +7254,8 @@ proto.looprpc.PrevoutInfo.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.PrevoutInfo} msg The msg instance to transform. * @return {!Object} @@ -6791,9 +7388,12 @@ proto.looprpc.PrevoutInfo.prototype.getValue = function() { }; -/** @param {string} value */ +/** + * @param {string} value + * @return {!proto.looprpc.PrevoutInfo} returns this + */ proto.looprpc.PrevoutInfo.prototype.setValue = function(value) { - jspb.Message.setProto3StringIntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -6830,9 +7430,12 @@ proto.looprpc.PrevoutInfo.prototype.getPkScript_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.PrevoutInfo} returns this + */ proto.looprpc.PrevoutInfo.prototype.setPkScript = function(value) { - jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3BytesField(this, 2, value); }; @@ -6869,9 +7472,12 @@ proto.looprpc.PrevoutInfo.prototype.getTxidBytes_asU8 = function() { }; -/** @param {!(string|Uint8Array)} value */ +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.looprpc.PrevoutInfo} returns this + */ proto.looprpc.PrevoutInfo.prototype.setTxidBytes = function(value) { - jspb.Message.setProto3BytesField(this, 3, value); + return jspb.Message.setProto3BytesField(this, 3, value); }; @@ -6884,41 +7490,29 @@ proto.looprpc.PrevoutInfo.prototype.getOutputIndex = function() { }; -/** @param {number} value */ +/** + * @param {number} value + * @return {!proto.looprpc.PrevoutInfo} returns this + */ proto.looprpc.PrevoutInfo.prototype.setOutputIndex = 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.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) { @@ -6928,8 +7522,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} @@ -7062,9 +7656,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); }; @@ -7101,41 +7698,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) { @@ -7145,8 +7730,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} @@ -7267,9 +7852,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); }; @@ -7306,9 +7894,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); }; @@ -7345,41 +7936,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) { @@ -7389,8 +7968,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} @@ -7468,34 +8047,19 @@ proto.looprpc.ServerPushKeyRes.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.FetchL402Request = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.FetchL402Request, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.FetchL402Request.displayName = 'proto.looprpc.FetchL402Request'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.FetchL402Request.prototype.toObject = function(opt_includeInstance) { @@ -7505,8 +8069,8 @@ proto.looprpc.FetchL402Request.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.FetchL402Request} msg The msg instance to transform. * @return {!Object} @@ -7584,34 +8148,19 @@ proto.looprpc.FetchL402Request.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.FetchL402Response = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.looprpc.FetchL402Response, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.looprpc.FetchL402Response.displayName = 'proto.looprpc.FetchL402Response'; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto suitable for use in Soy templates. + * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. - * @param {boolean=} opt_includeInstance Whether to include the JSPB instance - * for transitional soy proto support: http://goto/soy-param-migration + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.FetchL402Response.prototype.toObject = function(opt_includeInstance) { @@ -7621,8 +8170,8 @@ proto.looprpc.FetchL402Response.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.FetchL402Response} 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..4e4b9c114 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 = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); 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 @@ -100,10 +122,1401 @@ goog.exportSymbol('proto.poolrpc.WithdrawAccountResponse', null, global); 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); +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.NodeRatingResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @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) { - proto.poolrpc.InitAccountRequest.displayName = 'proto.poolrpc.InitAccountRequest'; + /** + * @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} @@ -2203,31 +3591,17 @@ proto.poolrpc.CloseAccountResponse.prototype.getCloseTxid_asU8 = function() { this.getCloseTxid())); }; - -/** @param {!(string|Uint8Array)} value */ -proto.poolrpc.CloseAccountResponse.prototype.setCloseTxid = 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 + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.poolrpc.CloseAccountResponse} returns this */ -proto.poolrpc.WithdrawAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.poolrpc.WithdrawAccountRequest.repeatedFields_, proto.poolrpc.WithdrawAccountRequest.oneofGroups_); +proto.poolrpc.CloseAccountResponse.prototype.setCloseTxid = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; -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); }; @@ -4603,30 +5999,16 @@ proto.poolrpc.Account.prototype.getVersion = function() { }; -/** @param {!proto.poolrpc.AccountVersion} value */ +/** + * @param {!proto.poolrpc.AccountVersion} value + * @return {!proto.poolrpc.Account} returns this + */ proto.poolrpc.Account.prototype.setVersion = function(value) { - jspb.Message.setProto3EnumField(this, 8, value); + return 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.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) { - 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)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; -/** @param {boolean} value */ -proto.poolrpc.Bid.prototype.setZeroConfChannel = function(value) { - 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.poolrpc.Ask = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + * @param {boolean} value + * @return {!proto.poolrpc.Bid} returns this + */ +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,30 @@ 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 +11121,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 +11200,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 +11222,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 +11323,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 +11351,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 +11373,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 +11393,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 +11654,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 +11690,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 +11708,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 +11726,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 +11744,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 +11762,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 +11780,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 +11798,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 +11816,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 +11858,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 +11900,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 +11960,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 +11978,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 +11996,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 +12035,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 +12053,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 +12187,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 +12248,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 +12288,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 +12306,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 +12432,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 +12451,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 +12469,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 +12487,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 +12519,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 +12598,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 +12609,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 +12627,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 +12729,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 +12748,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 + * Clears the list making it empty but non-null. + * @return {!proto.poolrpc.TokensResponse} returns this */ -proto.poolrpc.LsatToken = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.poolrpc.TokensResponse.prototype.clearTokensList = function() { + return this.setTokensList([]); }; -goog.inherits(proto.poolrpc.LsatToken, jspb.Message); -if (goog.DEBUG && !COMPILED) { - proto.poolrpc.LsatToken.displayName = 'proto.poolrpc.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.poolrpc.LsatToken.prototype.toObject = function(opt_includeInstance) { @@ -11414,8 +12780,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 +12795,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 +12986,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 +13028,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 +13070,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 +13088,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 +13106,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 +13124,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 +13160,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 +13192,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 +13271,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 +13293,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 +13343,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,8 +13405,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 +13428,30 @@ 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 +13461,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 +13540,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 +13562,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 +13696,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 +13714,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 +13732,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 +13750,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 +13771,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 +13789,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 +13911,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 +13951,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 +13969,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 +14071,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 +14090,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 +14122,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 +14201,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 +14223,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 +14244,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 +14479,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 +14497,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 +14515,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 +14533,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 +14551,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 +14569,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 +14587,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 +14605,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 +14623,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 +14641,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 +14660,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 +14696,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 +14764,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 +14838,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 +14865,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 +14944,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 +14966,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 +14975,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 +15071,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 +15097,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 +15125,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 +15147,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 +15245,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 +15277,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 +15294,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 +15302,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 +15603,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 +15621,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 +15639,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 +15657,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 +15675,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 +15693,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 +15735,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 +15777,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 +15837,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 +15879,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 +15897,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 +15939,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 +15981,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 +16023,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 +16041,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 +16109,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 +16119,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 +16219,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 +16269,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 +16367,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 +16399,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 +16478,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 +16500,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 +16622,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 +16643,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 +16661,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 +16763,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 +16782,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 +16814,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 +16936,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 +16968,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/app/yarn.lock b/app/yarn.lock index ff36c45b9..e5550f572 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -3250,6 +3250,11 @@ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== +"@sindresorhus/is@^0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd" + integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow== + "@sinonjs/commons@^1.7.0": version "1.8.3" resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d" @@ -5287,6 +5292,11 @@ adjust-sourcemap-loader@^4.0.0: loader-utils "^2.0.0" regex-parser "^2.2.11" +adm-zip@^0.5.10: + version "0.5.16" + resolved "https://registry.yarnpkg.com/adm-zip/-/adm-zip-0.5.16.tgz#0b5e4c779f07dedea5805cdccb1147071d94a909" + integrity sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ== + agent-base@5: version "5.1.1" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-5.1.1.tgz#e8fb3f242959db44d63be665db7a8e739537a32c" @@ -5402,6 +5412,13 @@ app-root-dir@^1.0.2: resolved "https://registry.yarnpkg.com/app-root-dir/-/app-root-dir-1.0.2.tgz#38187ec2dea7577fff033ffcb12172692ff6e118" integrity sha1-OBh+wt6nV3//Az/8sSFyaS/24Rg= +archive-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/archive-type/-/archive-type-4.0.0.tgz#f92e72233056dfc6969472749c267bdb046b1d70" + integrity sha512-zV4Ky0v1F8dBrdYElwTvQhweQ0P7Kwc1aluqJsYtOBP01jXcWCyW2IEfI1YiqsG+Iy7ZR+o5LF1N+PGECBxHWA== + dependencies: + file-type "^4.2.0" + arg@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.1.tgz#eb0c9a8f77786cad2af8ff2b862899842d7b6adb" @@ -5863,6 +5880,14 @@ binary-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== +bl@^1.0.0: + version "1.2.3" + resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.3.tgz#1e8dd80142eac80d7158c9dccc047fb620e035e7" + integrity sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww== + dependencies: + readable-stream "^2.3.5" + safe-buffer "^5.1.1" + bl@^4.0.3, bl@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" @@ -6006,11 +6031,29 @@ bser@2.1.1: dependencies: node-int64 "^0.4.0" +buffer-alloc-unsafe@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz#bd7dc26ae2972d0eda253be061dba992349c19f0" + integrity sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg== + +buffer-alloc@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/buffer-alloc/-/buffer-alloc-1.2.0.tgz#890dd90d923a873e08e10e5fd51a57e5b7cce0ec" + integrity sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow== + dependencies: + buffer-alloc-unsafe "^1.1.0" + buffer-fill "^1.0.0" + buffer-crc32@~0.2.3: version "0.2.13" resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== +buffer-fill@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-1.0.0.tgz#f8f78b76789888ef39f205cd637f68e702122b2c" + integrity sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ== + buffer-from@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" @@ -6029,7 +6072,7 @@ buffer@6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -buffer@^5.5.0: +buffer@^5.2.1, buffer@^5.5.0: version "5.7.1" resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== @@ -6070,6 +6113,19 @@ c8@^7.6.0: yargs "^16.2.0" yargs-parser "^20.2.7" +cacheable-request@^2.1.1: + version "2.1.4" + resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-2.1.4.tgz#0d808801b6342ad33c91df9d0b44dc09b91e5c3d" + integrity sha512-vag0O2LKZ/najSoUwDbVlnlCFvhBE/7mGTY2B5FgCBDcRD+oVV1HYTOwM6JZfMg/hIcM6IwnTZ1uQQL5/X3xIQ== + dependencies: + clone-response "1.0.2" + get-stream "3.0.0" + http-cache-semantics "3.8.1" + keyv "3.0.0" + lowercase-keys "1.0.0" + normalize-url "2.0.1" + responselike "1.0.2" + call-bind@^1.0.0, call-bind@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" @@ -6305,6 +6361,13 @@ clone-deep@^4.0.1: kind-of "^6.0.2" shallow-clone "^3.0.0" +clone-response@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b" + integrity sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q== + dependencies: + mimic-response "^1.0.0" + clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" @@ -6385,7 +6448,7 @@ commander@7, commander@^7.2.0: resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== -commander@^2.19.0, commander@^2.20.0: +commander@^2.19.0, commander@^2.20.0, commander@^2.8.1: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -6465,7 +6528,7 @@ constants-browserify@^1.0.0: resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U= -content-disposition@0.5.4: +content-disposition@0.5.4, content-disposition@^0.5.2: version "0.5.4" resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== @@ -7132,6 +7195,66 @@ decode-uri-component@^0.2.0: resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== +decompress-response@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" + integrity sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA== + dependencies: + mimic-response "^1.0.0" + +decompress-tar@^4.0.0, decompress-tar@^4.1.0, decompress-tar@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/decompress-tar/-/decompress-tar-4.1.1.tgz#718cbd3fcb16209716e70a26b84e7ba4592e5af1" + integrity sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ== + dependencies: + file-type "^5.2.0" + is-stream "^1.1.0" + tar-stream "^1.5.2" + +decompress-tarbz2@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz#3082a5b880ea4043816349f378b56c516be1a39b" + integrity sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A== + dependencies: + decompress-tar "^4.1.0" + file-type "^6.1.0" + is-stream "^1.1.0" + seek-bzip "^1.0.5" + unbzip2-stream "^1.0.9" + +decompress-targz@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/decompress-targz/-/decompress-targz-4.1.1.tgz#c09bc35c4d11f3de09f2d2da53e9de23e7ce1eee" + integrity sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w== + dependencies: + decompress-tar "^4.1.1" + file-type "^5.2.0" + is-stream "^1.1.0" + +decompress-unzip@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/decompress-unzip/-/decompress-unzip-4.0.1.tgz#deaaccdfd14aeaf85578f733ae8210f9b4848f69" + integrity sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw== + dependencies: + file-type "^3.8.0" + get-stream "^2.2.0" + pify "^2.3.0" + yauzl "^2.4.2" + +decompress@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/decompress/-/decompress-4.2.1.tgz#007f55cc6a62c055afa37c07eb6a4ee1b773f118" + integrity sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ== + dependencies: + decompress-tar "^4.0.0" + decompress-tarbz2 "^4.0.0" + decompress-targz "^4.0.0" + decompress-unzip "^4.0.1" + graceful-fs "^4.1.10" + make-dir "^1.0.0" + pify "^2.3.0" + strip-dirs "^2.0.0" + dedent@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" @@ -7486,6 +7609,28 @@ dotenv@^16.0.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e" integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ== +download@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/download/-/download-8.0.0.tgz#afc0b309730811731aae9f5371c9f46be73e51b1" + integrity sha512-ASRY5QhDk7FK+XrQtQyvhpDKanLluEEQtWl/J7Lxuf/b+i8RYh997QeXvL85xitrmRKVlx9c7eTrcRdq2GS4eA== + dependencies: + archive-type "^4.0.0" + content-disposition "^0.5.2" + decompress "^4.2.1" + ext-name "^5.0.0" + file-type "^11.1.0" + filenamify "^3.0.0" + get-stream "^4.1.0" + got "^8.3.1" + make-dir "^2.1.0" + p-event "^2.1.0" + pify "^4.0.1" + +duplexer3@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.5.tgz#0b5e4d7bad5de8901ea4440624c8e1d20099217e" + integrity sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA== + duplexer@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" @@ -7699,7 +7844,7 @@ escape-html@~1.0.3: resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= -escape-string-regexp@^1.0.5: +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= @@ -8093,6 +8238,21 @@ express@^4.17.1, express@^4.17.3: utils-merge "1.0.1" vary "~1.1.2" +ext-list@^2.0.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/ext-list/-/ext-list-2.2.2.tgz#0b98e64ed82f5acf0f2931babf69212ef52ddd37" + integrity sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA== + dependencies: + mime-db "^1.28.0" + +ext-name@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ext-name/-/ext-name-5.0.0.tgz#70781981d183ee15d13993c8822045c506c8f0a6" + integrity sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ== + dependencies: + ext-list "^2.0.0" + sort-keys-length "^1.0.0" + extend@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" @@ -8205,6 +8365,31 @@ file-system-cache@2.3.0: fs-extra "11.1.1" ramda "0.29.0" +file-type@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-11.1.0.tgz#93780f3fed98b599755d846b99a1617a2ad063b8" + integrity sha512-rM0UO7Qm9K7TWTtA6AShI/t7H5BPjDeGVDaNyg9BjHAj3PysKy7+8C8D137R88jnR3rFJZQB/tFgydl5sN5m7g== + +file-type@^3.8.0: + version "3.9.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-3.9.0.tgz#257a078384d1db8087bc449d107d52a52672b9e9" + integrity sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA== + +file-type@^4.2.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-4.4.0.tgz#1b600e5fca1fbdc6e80c0a70c71c8dba5f7906c5" + integrity sha512-f2UbFQEk7LXgWpi5ntcO86OeA/cC80fuDDDaX/fZ2ZGel+AF7leRQqBBW1eJNiiQkrZlAoM6P+VYP5P6bOlDEQ== + +file-type@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-5.2.0.tgz#2ddbea7c73ffe36368dfae49dc338c058c2b8ad6" + integrity sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ== + +file-type@^6.1.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-6.2.0.tgz#e50cd75d356ffed4e306dc4f5bcf52a79903a919" + integrity sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg== + filelist@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/filelist/-/filelist-1.0.4.tgz#f78978a1e944775ff9e62e744424f215e58352b5" @@ -8212,6 +8397,20 @@ filelist@^1.0.1: dependencies: minimatch "^5.0.1" +filename-reserved-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz#abf73dfab735d045440abfea2d91f389ebbfa229" + integrity sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ== + +filenamify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/filenamify/-/filenamify-3.0.0.tgz#9603eb688179f8c5d40d828626dcbb92c3a4672c" + integrity sha512-5EFZ//MsvJgXjBAFJ+Bh2YaCTRF/VP1YOmGrgt+KJ4SFRLjI87EIdwLLuT6wQX0I4F9W41xutobzczjsOKlI/g== + dependencies: + filename-reserved-regex "^2.0.0" + strip-outer "^1.0.0" + trim-repeated "^1.0.0" + filesize@^8.0.6: version "8.0.7" resolved "https://registry.yarnpkg.com/filesize/-/filesize-8.0.7.tgz#695e70d80f4e47012c132d57a059e80c6b580bd8" @@ -8432,6 +8631,14 @@ fresh@0.5.2: resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= +from2@^2.1.1: + version "2.3.0" + resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af" + integrity sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g== + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.0" + fs-constants@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" @@ -8561,6 +8768,26 @@ get-port@^5.1.1: resolved "https://registry.yarnpkg.com/get-port/-/get-port-5.1.1.tgz#0469ed07563479de6efb986baf053dcd7d4e3193" integrity sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ== +get-stream@3.0.0, get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + integrity sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ== + +get-stream@^2.2.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-2.3.1.tgz#5f38f93f346009666ee0150a054167f91bdd95de" + integrity sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA== + dependencies: + object-assign "^4.0.1" + pinkie-promise "^2.0.0" + +get-stream@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" + integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== + dependencies: + pump "^3.0.0" + get-stream@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" @@ -8679,10 +8906,10 @@ google-protobuf@3.12.2: resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.12.2.tgz#50ce9f9b6281235724eb243d6a83e969a2176e53" integrity sha512-4CZhpuRr1d6HjlyrxoXoocoGFnRYgKULgMtikMddA9ztRyYR59Aondv2FioyxWVamRo0rF2XpYawkTCBEQOSkA== -google-protobuf@^3.6.1: - version "3.20.0" - resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.20.0.tgz#8705ab5fb7e91e9578250a4a8ac533a3cc0bc0bb" - integrity sha512-hhXv5IKLDIkb0pEm53G053UZGhRAhw3wM5Jk7ly5sGIQRkO1s63FaDqM9QjlrPHygKEE2awUlLP9fFrG6M9vfQ== +google-protobuf@^3.15.5: + version "3.21.4" + resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.21.4.tgz#2f933e8b6e5e9f8edde66b7be0024b68f77da6c9" + integrity sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ== gopd@^1.0.1: version "1.0.1" @@ -8691,7 +8918,30 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -graceful-fs@^4.1.11, graceful-fs@^4.2.11: +got@^8.3.1: + version "8.3.2" + resolved "https://registry.yarnpkg.com/got/-/got-8.3.2.tgz#1d23f64390e97f776cac52e5b936e5f514d2e937" + integrity sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw== + dependencies: + "@sindresorhus/is" "^0.7.0" + cacheable-request "^2.1.1" + decompress-response "^3.3.0" + duplexer3 "^0.1.4" + get-stream "^3.0.0" + into-stream "^3.1.0" + is-retry-allowed "^1.1.0" + isurl "^1.0.0-alpha5" + lowercase-keys "^1.0.0" + mimic-response "^1.0.0" + p-cancelable "^0.4.0" + p-timeout "^2.0.1" + pify "^3.0.0" + safe-buffer "^5.1.1" + timed-out "^4.0.1" + url-parse-lax "^3.0.0" + url-to-options "^1.0.1" + +graceful-fs@^4.1.10, graceful-fs@^4.1.11, graceful-fs@^4.2.11: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -8769,11 +9019,23 @@ has-proto@^1.0.1: resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== +has-symbol-support-x@^1.4.1: + version "1.4.2" + resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz#1409f98bc00247da45da67cee0a36f282ff26455" + integrity sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw== + has-symbols@^1.0.1, has-symbols@^1.0.2, has-symbols@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== +has-to-string-tag-x@^1.2.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz#a045ab383d7b4b2012a00148ab0aa5f290044d4d" + integrity sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw== + dependencies: + has-symbol-support-x "^1.4.1" + has-tostringtag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" @@ -8897,6 +9159,11 @@ htmlparser2@^6.1.0: domutils "^2.5.2" entities "^2.0.0" +http-cache-semantics@3.8.1: + version "3.8.1" + resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2" + integrity sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w== + http-deceiver@^1.2.7: version "1.2.7" resolved "https://registry.yarnpkg.com/http-deceiver/-/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87" @@ -9120,6 +9387,14 @@ internal-slot@^1.0.3: resolved "https://registry.yarnpkg.com/internmap/-/internmap-2.0.3.tgz#6685f23755e43c524e251d29cbc97248e3061009" integrity sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg== +into-stream@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/into-stream/-/into-stream-3.1.0.tgz#96fb0a936c12babd6ff1752a17d05616abd094c6" + integrity sha512-TcdjPibTksa1NQximqep2r17ISRiNE9fwlfbg3F8ANdvP5/yrFTew86VcO//jk4QTaMlbjypPBq76HN2zaKfZQ== + dependencies: + from2 "^2.1.1" + p-is-promise "^1.1.0" + invariant@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" @@ -9280,6 +9555,11 @@ is-nan@^1.3.2: call-bind "^1.0.0" define-properties "^1.1.3" +is-natural-number@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/is-natural-number/-/is-natural-number-4.0.1.tgz#ab9d76e1db4ced51e35de0c72ebecf09f734cde8" + integrity sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ== + is-negative-zero@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" @@ -9302,6 +9582,11 @@ is-obj@^1.0.1: resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= +is-object@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.2.tgz#a56552e1c665c9e950b4a025461da87e72f86fcf" + integrity sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA== + is-path-cwd@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb" @@ -9312,6 +9597,11 @@ is-path-inside@^3.0.2: resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== +is-plain-obj@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" + integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== + is-plain-obj@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7" @@ -9347,6 +9637,11 @@ is-regexp@^1.0.0: resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" integrity sha1-/S2INUXEa6xaYz57mgnof6LLUGk= +is-retry-allowed@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz#d778488bd0a4666a3be8a1482b9f2baafedea8b4" + integrity sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg== + is-root@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-root/-/is-root-2.1.0.tgz#809e18129cf1129644302a4f8544035d51984a9c" @@ -9359,6 +9654,11 @@ is-shared-array-buffer@^1.0.1: dependencies: call-bind "^1.0.2" +is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== + is-stream@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" @@ -9466,6 +9766,14 @@ istanbul-reports@^3.0.2, istanbul-reports@^3.1.3: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" +isurl@^1.0.0-alpha5: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67" + integrity sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w== + dependencies: + has-to-string-tag-x "^1.2.0" + is-object "^1.0.1" + jackspeak@2.1.1, jackspeak@^2.3.5: version "2.1.1" resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.1.1.tgz#2a42db4cfbb7e55433c28b6f75d8b796af9669cd" @@ -10054,6 +10362,11 @@ jsesc@~0.5.0: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= +json-buffer@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" + integrity sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ== + json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" @@ -10118,6 +10431,13 @@ jsonpointer@^5.0.0: array-includes "^3.1.4" object.assign "^4.1.2" +keyv@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.0.0.tgz#44923ba39e68b12a7cec7df6c3268c031f2ef373" + integrity sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA== + dependencies: + json-buffer "3.0.0" + kind-of@^6.0.2: version "6.0.3" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" @@ -10303,6 +10623,16 @@ lower-case@^2.0.2: dependencies: tslib "^2.0.3" +lowercase-keys@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" + integrity sha512-RPlX0+PHuvxVDZ7xX+EBVAp4RsVxP/TdDSN2mJYdiq1Lc4Hz7EUSjUI7RZrKKlmrIzVhf6Jo2stj7++gVarS0A== + +lowercase-keys@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" + integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== + lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" @@ -10334,6 +10664,13 @@ magic-string@^0.25.0, magic-string@^0.25.7: dependencies: sourcemap-codec "^1.4.8" +make-dir@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" + integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ== + dependencies: + pify "^3.0.0" + make-dir@^2.0.0, make-dir@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" @@ -10447,6 +10784,11 @@ mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== +mime-db@^1.28.0: + version "1.53.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.53.0.tgz#3cb63cd820fc29896d9d4e8c32ab4fcd74ccb447" + integrity sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg== + mime-types@^2.1.12, mime-types@^2.1.25, mime-types@^2.1.27, mime-types@^2.1.31, mime-types@~2.1.17, mime-types@~2.1.24, mime-types@~2.1.34: version "2.1.35" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" @@ -10469,6 +10811,11 @@ mimic-fn@^2.1.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== +mimic-response@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" + integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + min-indent@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" @@ -10718,6 +11065,15 @@ normalize-range@^0.1.2: resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" integrity sha1-LRDAa9/TEuqXd2laTShDlFa3WUI= +normalize-url@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-2.0.1.tgz#835a9da1551fa26f70e92329069a23aa6574d7e6" + integrity sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw== + dependencies: + prepend-http "^2.0.0" + query-string "^5.0.1" + sort-keys "^2.0.0" + normalize-url@^6.0.1: version "6.1.0" resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" @@ -10749,7 +11105,7 @@ nwsapi@^2.2.0: resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== -object-assign@^4.1.1: +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= @@ -10934,6 +11290,28 @@ ora@^5.4.1: strip-ansi "^6.0.0" wcwidth "^1.0.1" +p-cancelable@^0.4.0: + version "0.4.1" + resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-0.4.1.tgz#35f363d67d52081c8d9585e37bcceb7e0bbcb2a0" + integrity sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ== + +p-event@^2.1.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/p-event/-/p-event-2.3.1.tgz#596279ef169ab2c3e0cae88c1cfbb08079993ef6" + integrity sha512-NQCqOFhbpVTMX4qMe8PF8lbGtzZ+LCiN7pcNrb/413Na7+TRoe1xkKUzuWa/YEJdGQ0FvKtj35EEbDoVPO2kbA== + dependencies: + p-timeout "^2.0.1" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== + +p-is-promise@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-1.1.0.tgz#9c9456989e9f6588017b0434d56097675c3da05e" + integrity sha512-zL7VE4JVS2IFSkR2GQKDSPEVxkoH43/p7oEnwpdCndKYJO0HVeRB7fA8TJwuLOTBREtK0ea8eHaxdwcpob5dmg== + p-limit@^1.1.0: version "1.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" @@ -11012,6 +11390,13 @@ p-retry@^4.5.0: "@types/retry" "^0.12.0" retry "^0.13.1" +p-timeout@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-2.0.1.tgz#d8dd1979595d2dc0139e1fe46b8b646cb3cdf038" + integrity sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA== + dependencies: + p-finally "^1.0.0" + p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" @@ -11162,11 +11547,33 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatc resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +pify@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== + +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + integrity sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg== + pify@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw== + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg== + pirates@^4.0.4: version "4.0.5" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" @@ -11794,6 +12201,11 @@ prelude-ls@~1.1.2: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= +prepend-http@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" + integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA== + prettier-linter-helpers@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" @@ -11896,6 +12308,14 @@ prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.7.2, prop-types@^15.8.1: object-assign "^4.1.1" react-is "^16.13.1" +protoc-gen-js@3.21.2: + version "3.21.2" + resolved "https://registry.yarnpkg.com/protoc-gen-js/-/protoc-gen-js-3.21.2.tgz#d92f37cb8ebf4403656515ab424983c77f07a804" + integrity sha512-nSpiXulygg0vUv05uFeATuZSbgMQMeoef0BhB5266Y6HmsqVtIrbSkK/Z2Yk0KLE+BirRNjsTKDUJxg3OPO9pQ== + dependencies: + adm-zip "^0.5.10" + download "^8.0.0" + proxy-addr@~2.0.7: version "2.0.7" resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" @@ -11989,6 +12409,15 @@ qs@^6.10.0: dependencies: side-channel "^1.0.4" +query-string@^5.0.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-5.1.1.tgz#a78c012b71c17e05f2e3fa2319dd330682efb3cb" + integrity sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw== + dependencies: + decode-uri-component "^0.2.0" + object-assign "^4.1.0" + strict-uri-encode "^1.0.0" + querystring@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" @@ -12511,7 +12940,7 @@ read-pkg@^5.2.0: parse-json "^5.0.0" type-fest "^0.6.0" -readable-stream@^2.0.0, readable-stream@^2.2.2, readable-stream@~2.3.6: +readable-stream@^2.0.0, readable-stream@^2.2.2, readable-stream@^2.3.0, readable-stream@^2.3.5, readable-stream@~2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== @@ -12822,6 +13251,13 @@ resolve@^2.0.0-next.3: is-core-module "^2.2.0" path-parse "^1.0.6" +responselike@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" + integrity sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ== + dependencies: + lowercase-keys "^1.0.0" + restore-cursor@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" @@ -12900,7 +13336,7 @@ safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@~5.2.0: +safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== @@ -13006,6 +13442,13 @@ scrollparent@2.0.1: resolved "https://registry.yarnpkg.com/scrollparent/-/scrollparent-2.0.1.tgz#715d5b9cc57760fb22bdccc3befb5bfe06b1a317" integrity sha1-cV1bnMV3YPsivczDvvtb/gaxoxc= +seek-bzip@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/seek-bzip/-/seek-bzip-1.0.6.tgz#35c4171f55a680916b52a07859ecf3b5857f21c4" + integrity sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ== + dependencies: + commander "^2.8.1" + select-hose@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" @@ -13202,6 +13645,27 @@ sockjs@^0.3.21: uuid "^8.3.2" websocket-driver "^0.7.4" +sort-keys-length@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/sort-keys-length/-/sort-keys-length-1.0.1.tgz#9cb6f4f4e9e48155a6aa0671edd336ff1479a188" + integrity sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw== + dependencies: + sort-keys "^1.0.0" + +sort-keys@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad" + integrity sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg== + dependencies: + is-plain-obj "^1.0.0" + +sort-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-2.0.0.tgz#658535584861ec97d730d6cf41822e1f56684128" + integrity sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg== + dependencies: + is-plain-obj "^1.0.0" + source-list-map@^2.0.0, source-list-map@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" @@ -13367,6 +13831,11 @@ stream-shift@^1.0.0: resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d" integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== +strict-uri-encode@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" + integrity sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ== + string-length@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" @@ -13472,6 +13941,13 @@ strip-comments@^2.0.1: resolved "https://registry.yarnpkg.com/strip-comments/-/strip-comments-2.0.1.tgz#4ad11c3fbcac177a67a40ac224ca339ca1c1ba9b" integrity sha512-ZprKx+bBLXv067WTCALv8SSz5l2+XhpYCsVtSqlMnkAXMWDq+/ekVbl1ghqP9rUHTzv6sm/DwCOiYutU/yp1fw== +strip-dirs@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/strip-dirs/-/strip-dirs-2.1.0.tgz#4987736264fc344cf20f6c34aca9d13d1d4ed6c5" + integrity sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g== + dependencies: + is-natural-number "^4.0.1" + strip-final-newline@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" @@ -13489,6 +13965,13 @@ strip-json-comments@^3.0.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1 resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== +strip-outer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631" + integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg== + dependencies: + escape-string-regexp "^1.0.2" + style-loader@^3.3.1: version "3.3.1" resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-3.3.1.tgz#057dfa6b3d4d7c7064462830f9113ed417d38575" @@ -13656,6 +14139,19 @@ tar-fs@^2.1.1: pump "^3.0.0" tar-stream "^2.1.4" +tar-stream@^1.5.2: + version "1.6.2" + resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.6.2.tgz#8ea55dab37972253d9a9af90fdcd559ae435c555" + integrity sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A== + dependencies: + bl "^1.0.0" + buffer-alloc "^1.2.0" + end-of-stream "^1.0.0" + fs-constants "^1.0.0" + readable-stream "^2.3.0" + to-buffer "^1.1.1" + xtend "^4.0.0" + tar-stream@^2.1.4: version "2.2.0" resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287" @@ -13817,11 +14313,21 @@ through2@^2.0.3: readable-stream "~2.3.6" xtend "~4.0.1" +through@^2.3.8: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== + thunky@^1.0.2: version "1.1.0" resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d" integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA== +timed-out@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" + integrity sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA== + tiny-invariant@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.3.1.tgz#8560808c916ef02ecfd55e66090df23a4b7aa642" @@ -13832,6 +14338,11 @@ tmpl@1.0.5: resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== +to-buffer@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.1.1.tgz#493bd48f62d7c43fcded313a03dcadb2e1213a80" + integrity sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg== + to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" @@ -13888,6 +14399,13 @@ tr46@~0.0.3: resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o= +trim-repeated@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21" + integrity sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg== + dependencies: + escape-string-regexp "^1.0.2" + tryer@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8" @@ -13903,12 +14421,12 @@ ts-pnp@^1.1.6: resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.2.0.tgz#a500ad084b0798f1c3071af391e65912c86bca92" integrity sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw== -ts-protoc-gen@0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/ts-protoc-gen/-/ts-protoc-gen-0.12.0.tgz#932e5738f14b67e7202825b06f8c548cb7d8ef34" - integrity sha512-V7jnICJxKqalBrnJSMTW5tB9sGi48gOC325bfcM7TDNUItVOlaMM//rQmuo49ybipk/SyJTnWXgtJnhHCevNJw== +ts-protoc-gen@0.15.0: + version "0.15.0" + resolved "https://registry.yarnpkg.com/ts-protoc-gen/-/ts-protoc-gen-0.15.0.tgz#2fec5930b46def7dcc9fa73c060d770b7b076b7b" + integrity sha512-TycnzEyrdVDlATJ3bWFTtra3SCiEP0W0vySXReAuEygXCUr1j2uaVyL0DhzjwuUdQoW5oXPwk6oZWeA0955V+g== dependencies: - google-protobuf "^3.6.1" + google-protobuf "^3.15.5" tsconfig-paths@^3.12.0: version "3.14.1" @@ -14031,6 +14549,14 @@ unbox-primitive@^1.0.1: has-symbols "^1.0.2" which-boxed-primitive "^1.0.2" +unbzip2-stream@^1.0.9: + version "1.4.3" + resolved "https://registry.yarnpkg.com/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz#b0da04c4371311df771cdc215e87f2130991ace7" + integrity sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg== + dependencies: + buffer "^5.2.1" + through "^2.3.8" + undici-types@~5.26.4: version "5.26.5" resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" @@ -14148,6 +14674,13 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" +url-parse-lax@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" + integrity sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ== + dependencies: + prepend-http "^2.0.0" + url-parse@^1.5.3: version "1.5.10" resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" @@ -14156,6 +14689,11 @@ url-parse@^1.5.3: querystringify "^2.1.1" requires-port "^1.0.0" +url-to-options@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9" + integrity sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A== + url@^0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" @@ -14862,7 +15400,7 @@ xmlchars@^2.2.0: resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== -xtend@^4.0.2, xtend@~4.0.1: +xtend@^4.0.0, xtend@^4.0.2, xtend@~4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== @@ -14905,7 +15443,7 @@ yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" -yauzl@^2.10.0: +yauzl@^2.10.0, yauzl@^2.4.2: version "2.10.0" resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9" integrity sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g== diff --git a/dev.Dockerfile b/dev.Dockerfile index d70f0d120..c8d7e5eaf 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -1,5 +1,5 @@ # Start with a NodeJS base image that also contains yarn. -FROM node:16.14.2-alpine as nodejsbuilder +FROM node:22.8.0-alpine as nodejsbuilder # Copy in the local repository to build from. COPY . /go/src/github.com/lightninglabs/lightning-terminal diff --git a/proto/Dockerfile b/proto/Dockerfile index ded2c3923..69e146711 100644 --- a/proto/Dockerfile +++ b/proto/Dockerfile @@ -1,10 +1,10 @@ # Start with a NodeJS base image that also contains yarn. -FROM node:16.14.2-buster as nodejsbuilder +FROM node:22.8.0-bookworm as nodejsbuilder RUN apt-get update && apt-get install -y \ git \ - protobuf-compiler='3.6*' \ - clang-format='1:7.0*' + protobuf-compiler='3.21.12*' \ + clang-format='1:14.0*' RUN mkdir /build From b7fcaa50e8b96ef17dd3f6e2d07c3bbd06570259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Tigerstr=C3=B6m?= Date: Fri, 13 Sep 2024 18:39:02 +0700 Subject: [PATCH 2/5] build+itest: `lnd` & `loop` versions Bump lnd to v0.18.3-beta & loop to v0.28.7-beta. Also bump lnd/sqldb to v1.0.4, as it's required by lnd v0.18.3-beta. --- go.mod | 19 +++++++++--------- go.sum | 42 +++++++++++++++++++++------------------- itest/litd_test.go | 2 +- itest/network_harness.go | 10 +++++----- 4 files changed, 38 insertions(+), 35 deletions(-) diff --git a/go.mod b/go.mod index deb2c8ebc..a52462a15 100644 --- a/go.mod +++ b/go.mod @@ -15,14 +15,14 @@ require ( github.com/lightninglabs/lightning-node-connect v0.3.1-alpha github.com/lightninglabs/lightning-terminal/autopilotserverrpc v0.0.1 github.com/lightninglabs/lndclient v0.18.0-3 - github.com/lightninglabs/loop v0.28.6-beta + github.com/lightninglabs/loop v0.28.7-beta github.com/lightninglabs/loop/swapserverrpc v1.0.8 github.com/lightninglabs/pool v0.6.5-beta.0.20240531084722-4000ec802aaa github.com/lightninglabs/pool/auctioneerrpc v1.1.2 github.com/lightninglabs/taproot-assets v0.4.2-0.20240725155459-2bf18437e945 - github.com/lightningnetwork/lnd v0.18.2-beta + github.com/lightningnetwork/lnd v0.18.3-beta github.com/lightningnetwork/lnd/cert v1.2.2 - github.com/lightningnetwork/lnd/kvdb v1.4.8 + github.com/lightningnetwork/lnd/kvdb v1.4.10 github.com/lightningnetwork/lnd/tlv v1.2.6 github.com/lightningnetwork/lnd/tor v1.1.2 github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f @@ -32,7 +32,7 @@ require ( go.etcd.io/bbolt v1.3.8 golang.org/x/crypto v0.22.0 golang.org/x/net v0.24.0 - golang.org/x/sync v0.6.0 + golang.org/x/sync v0.7.0 google.golang.org/grpc v1.59.0 google.golang.org/protobuf v1.33.0 gopkg.in/macaroon-bakery.v2 v2.1.0 @@ -51,7 +51,7 @@ require ( github.com/andybalholm/brotli v1.0.4 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/btcsuite/btcd/btcutil/psbt v1.1.8 // indirect - github.com/btcsuite/btcwallet v0.16.10-0.20240706055350-e391a1c31df2 // indirect + github.com/btcsuite/btcwallet v0.16.10-0.20240718224643-db3a4a2543bd // indirect github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 // indirect github.com/btcsuite/btcwallet/wallet/txrules v1.2.1 // indirect github.com/btcsuite/btcwallet/wallet/txsizes v1.2.4 // indirect @@ -109,6 +109,7 @@ require ( github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect github.com/jackc/pgtype v1.14.0 // indirect github.com/jackc/pgx/v4 v4.18.2 // indirect + github.com/jackc/pgx/v5 v5.3.1 // indirect github.com/jackc/puddle v1.3.0 // indirect github.com/jackpal/gateway v1.0.5 // indirect github.com/jackpal/go-nat-pmp v0.0.0-20170405195558-28a68d0c24ad // indirect @@ -127,12 +128,12 @@ require ( github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.2 // indirect github.com/lightninglabs/neutrino v0.16.1-0.20240425105051-602843d34ffd // indirect github.com/lightninglabs/neutrino/cache v1.1.2 // indirect - github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f // indirect + github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb // indirect github.com/lightningnetwork/lnd/clock v1.1.1 // indirect - github.com/lightningnetwork/lnd/fn v1.1.0 // indirect - github.com/lightningnetwork/lnd/healthcheck v1.2.4 // indirect + github.com/lightningnetwork/lnd/fn v1.2.0 // indirect + github.com/lightningnetwork/lnd/healthcheck v1.2.5 // indirect github.com/lightningnetwork/lnd/queue v1.1.1 // indirect - github.com/lightningnetwork/lnd/sqldb v1.0.2 // indirect + github.com/lightningnetwork/lnd/sqldb v1.0.4 // indirect github.com/lightningnetwork/lnd/ticker v1.1.1 // indirect github.com/ltcsuite/ltcd v0.0.0-20190101042124-f37f8bf35796 // indirect github.com/mattn/go-isatty v0.0.20 // indirect diff --git a/go.sum b/go.sum index 39bc3253b..8909251ab 100644 --- a/go.sum +++ b/go.sum @@ -668,8 +668,8 @@ github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0/go.mod h1:7SFka0XMvUgj3hfZtyd github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= -github.com/btcsuite/btcwallet v0.16.10-0.20240706055350-e391a1c31df2 h1:mJquwdcEA4hZip4XKbRPAM9rOrus6wlNEcWzMz5CHsI= -github.com/btcsuite/btcwallet v0.16.10-0.20240706055350-e391a1c31df2/go.mod h1:SLFUSQbP8ON/wxholYMfVLvGPJyk7boczOW/ob+nww4= +github.com/btcsuite/btcwallet v0.16.10-0.20240718224643-db3a4a2543bd h1:QDb8foTCRoXrfoZVEzSYgSde16MJh4gCtCin8OCS0kI= +github.com/btcsuite/btcwallet v0.16.10-0.20240718224643-db3a4a2543bd/go.mod h1:X2xDre+j1QphTRo54y2TikUzeSvreL1t1aMXrD8Kc5A= github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 h1:poyHFf7+5+RdxNp5r2T6IBRD7RyraUsYARYbp/7t4D8= github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4/go.mod h1:GETGDQuyq+VFfH1S/+/7slLM/9aNa4l7P4ejX6dJfb0= github.com/btcsuite/btcwallet/wallet/txrules v1.2.1 h1:UZo7YRzdHbwhK7Rhv3PO9bXgTxiOH45edK5qdsdiatk= @@ -1057,6 +1057,8 @@ github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQ github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgSXP7iUjYm9C1NxKhny7lq6ee99u/z+IHFcgs= github.com/jackc/pgx/v4 v4.18.2 h1:xVpYkNR5pk5bMCZGfClbO962UIqVABcAGt7ha1s/FeU= github.com/jackc/pgx/v4 v4.18.2/go.mod h1:Ey4Oru5tH5sB6tV7hDmfWFahwF15Eb7DNXlRKx2CkVw= +github.com/jackc/pgx/v5 v5.3.1 h1:Fcr8QJ1ZeLi5zsPZqQeUZhNhxfkkKBOgJuYkJHoBOtU= +github.com/jackc/pgx/v5 v5.3.1/go.mod h1:t3JDKnCBlYIc0ewLF0Q7B8MXmoIaBOZj/ic7iHozM/8= github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= @@ -1158,8 +1160,8 @@ github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.2 h1:Er1miPZD2X github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.2/go.mod h1:antQGRDRJiuyQF6l+k6NECCSImgCpwaZapATth2Chv4= github.com/lightninglabs/lndclient v0.18.0-3 h1:2k5NZJgtrcJlW3KFhvtquS7CWwKwjFN9rtLNa8MlqRA= github.com/lightninglabs/lndclient v0.18.0-3/go.mod h1:D/0qn5s0JSdB3Kelkw4vl3bqnuZ0IHHORAv9sJjYJcQ= -github.com/lightninglabs/loop v0.28.6-beta h1:maOY1RbKnaGLxlTH5vNgdsW6naF//4nK3GC0t7l/GkE= -github.com/lightninglabs/loop v0.28.6-beta/go.mod h1:ZJpTb6cQiFJMwGFTcEbSXy0HAkzaVxBxCip1txXVucg= +github.com/lightninglabs/loop v0.28.7-beta h1:wyxPIeUFxlw+Lmx3A7huBXh1cu0IXhTMFVs5y4WIA/Y= +github.com/lightninglabs/loop v0.28.7-beta/go.mod h1:ZJpTb6cQiFJMwGFTcEbSXy0HAkzaVxBxCip1txXVucg= github.com/lightninglabs/loop/swapserverrpc v1.0.8 h1:bk7dDGuA3JQUsMDqZNyAy5Pcw5xS9jforz7YnyeSxKM= github.com/lightninglabs/loop/swapserverrpc v1.0.8/go.mod h1:Ml3gMwe/iTRLvu1QGGZzXcr0DYSa9sJGwKPktLaWtwE= github.com/lightninglabs/neutrino v0.16.1-0.20240425105051-602843d34ffd h1:D8aRocHpoCv43hL8egXEMYyPmyOiefFHZ66338KQB2s= @@ -1174,24 +1176,24 @@ github.com/lightninglabs/protobuf-go-hex-display v1.30.0-hex-display h1:pRdza2wl github.com/lightninglabs/protobuf-go-hex-display v1.30.0-hex-display/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= github.com/lightninglabs/taproot-assets v0.4.2-0.20240725155459-2bf18437e945 h1:vzr2NtI1M9/LQDv7malP0EmV9vVkh2ve5ZpDUcYFC6s= github.com/lightninglabs/taproot-assets v0.4.2-0.20240725155459-2bf18437e945/go.mod h1:+mGg1ZNFzzcb55ZLd1UulW4iiq+ruzRHOTjCKHBeQ2g= -github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f h1:Pua7+5TcFEJXIIZ1I2YAUapmbcttmLj4TTi786bIi3s= -github.com/lightningnetwork/lightning-onion v1.2.1-0.20230823005744-06182b1d7d2f/go.mod h1:c0kvRShutpj3l6B9WtTsNTBUtjSmjZXbJd9ZBRQOSKI= -github.com/lightningnetwork/lnd v0.18.2-beta h1:Qv4xQ2ka05vqzmdkFdISHCHP6CzHoYNVKfD18XPjHsM= -github.com/lightningnetwork/lnd v0.18.2-beta/go.mod h1:cGQR1cVEZFZQcCx2VBbDY8xwGjCz+SupSopU1HpjP2I= +github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb h1:yfM05S8DXKhuCBp5qSMZdtSwvJ+GFzl94KbXMNB1JDY= +github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb/go.mod h1:c0kvRShutpj3l6B9WtTsNTBUtjSmjZXbJd9ZBRQOSKI= +github.com/lightningnetwork/lnd v0.18.3-beta h1:I1Mcz79HGpVGPz0U2jSdxzzqzIi2cwUF0DXtzYJS7C8= +github.com/lightningnetwork/lnd v0.18.3-beta/go.mod h1:Xamph8AYM3iWyyn9w/tx+cLG6Tx1SSnSSPRFn71zuyQ= github.com/lightningnetwork/lnd/cert v1.2.2 h1:71YK6hogeJtxSxw2teq3eGeuy4rHGKcFf0d0Uy4qBjI= github.com/lightningnetwork/lnd/cert v1.2.2/go.mod h1:jQmFn/Ez4zhDgq2hnYSw8r35bqGVxViXhX6Cd7HXM6U= github.com/lightningnetwork/lnd/clock v1.1.1 h1:OfR3/zcJd2RhH0RU+zX/77c0ZiOnIMsDIBjgjWdZgA0= github.com/lightningnetwork/lnd/clock v1.1.1/go.mod h1:mGnAhPyjYZQJmebS7aevElXKTFDuO+uNFFfMXK1W8xQ= -github.com/lightningnetwork/lnd/fn v1.1.0 h1:W1p/bUXMgAh5YlmawdQYaNgmLaLMT77BilepzWOSZ2A= -github.com/lightningnetwork/lnd/fn v1.1.0/go.mod h1:P027+0CyELd92H9gnReUkGGAqbFA1HwjHWdfaDFD51U= -github.com/lightningnetwork/lnd/healthcheck v1.2.4 h1:lLPLac+p/TllByxGSlkCwkJlkddqMP5UCoawCj3mgFQ= -github.com/lightningnetwork/lnd/healthcheck v1.2.4/go.mod h1:G7Tst2tVvWo7cx6mSBEToQC5L1XOGxzZTPB29g9Rv2I= -github.com/lightningnetwork/lnd/kvdb v1.4.8 h1:xH0a5Vi1yrcZ5BEeF2ba3vlKBRxrL9uYXlWTjOjbNTY= -github.com/lightningnetwork/lnd/kvdb v1.4.8/go.mod h1:J2diNABOoII9UrMnxXS5w7vZwP7CA1CStrl8MnIrb3A= +github.com/lightningnetwork/lnd/fn v1.2.0 h1:YTb2m8NN5ZiJAskHeBZAmR1AiPY8SXziIYPAX1VI/ZM= +github.com/lightningnetwork/lnd/fn v1.2.0/go.mod h1:SyFohpVrARPKH3XVAJZlXdVe+IwMYc4OMAvrDY32kw0= +github.com/lightningnetwork/lnd/healthcheck v1.2.5 h1:aTJy5xeBpcWgRtW/PGBDe+LMQEmNm/HQewlQx2jt7OA= +github.com/lightningnetwork/lnd/healthcheck v1.2.5/go.mod h1:G7Tst2tVvWo7cx6mSBEToQC5L1XOGxzZTPB29g9Rv2I= +github.com/lightningnetwork/lnd/kvdb v1.4.10 h1:vK89IVv1oVH9ubQWU+EmoCQFeVRaC8kfmOrqHbY5zoY= +github.com/lightningnetwork/lnd/kvdb v1.4.10/go.mod h1:J2diNABOoII9UrMnxXS5w7vZwP7CA1CStrl8MnIrb3A= github.com/lightningnetwork/lnd/queue v1.1.1 h1:99ovBlpM9B0FRCGYJo6RSFDlt8/vOkQQZznVb18iNMI= github.com/lightningnetwork/lnd/queue v1.1.1/go.mod h1:7A6nC1Qrm32FHuhx/mi1cieAiBZo5O6l8IBIoQxvkz4= -github.com/lightningnetwork/lnd/sqldb v1.0.2 h1:PfuYzScYMD9/QonKo/QvgsbXfTnH5DfldIimkfdW4Bk= -github.com/lightningnetwork/lnd/sqldb v1.0.2/go.mod h1:V2Xl6JNWLTKE97WJnwfs0d0TYJdIQTqK8/3aAwkd3qI= +github.com/lightningnetwork/lnd/sqldb v1.0.4 h1:9cMwPxcrLQG8UmyZO4q8SpR7NmxSwBMbj3AispdcwHg= +github.com/lightningnetwork/lnd/sqldb v1.0.4/go.mod h1:4cQOkdymlZ1znnjuRNvMoatQGJkRneTj2CoPSPaQhWo= github.com/lightningnetwork/lnd/ticker v1.1.1 h1:J/b6N2hibFtC7JLV77ULQp++QLtCwT6ijJlbdiZFbSM= github.com/lightningnetwork/lnd/ticker v1.1.1/go.mod h1:waPTRAAcwtu7Ji3+3k+u/xH5GHovTsCoSVpho0KDvdA= github.com/lightningnetwork/lnd/tlv v1.2.6 h1:icvQG2yDr6k3ZuZzfRdG3EJp6pHurcuh3R6dg0gv/Mw= @@ -1321,8 +1323,8 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= -github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/rs/cors v1.7.0 h1:+88SsELBHx5r+hZ8TCkggzSstaWNbDvThkVK8H6f9ik= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= @@ -1677,8 +1679,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180816055513-1c9583448a9c/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= diff --git a/itest/litd_test.go b/itest/litd_test.go index c2b0f6856..a87a0a426 100644 --- a/itest/litd_test.go +++ b/itest/litd_test.go @@ -56,7 +56,7 @@ func TestLightningTerminal(t *testing.T) { // Start a chain backend. chainBackend, _, err := lntest.NewBackend( - lndHarness.Miner.P2PAddress(), harnessNetParams, + lndHarness.Miner().P2PAddress(), harnessNetParams, ) require.NoError(t1, err, "new backend") diff --git a/itest/network_harness.go b/itest/network_harness.go index 98f301b01..0a60b9216 100644 --- a/itest/network_harness.go +++ b/itest/network_harness.go @@ -22,6 +22,7 @@ import ( "github.com/lightningnetwork/lnd" "github.com/lightningnetwork/lnd/lnrpc" "github.com/lightningnetwork/lnd/lntest" + "github.com/lightningnetwork/lnd/lntest/miner" "github.com/lightningnetwork/lnd/lntest/node" "github.com/lightningnetwork/lnd/lntest/port" "github.com/lightningnetwork/lnd/lntest/wait" @@ -45,8 +46,7 @@ type NetworkHarness struct { // Miner is a reference to a running full node that can be used to create // new blocks on the network. - Miner *lntest.HarnessMiner - + Miner *miner.HarnessMiner LNDHarness *lntest.HarnessTest // server is an instance of the local Loop/Pool mock server. @@ -82,8 +82,8 @@ func NewNetworkHarness(lndHarness *lntest.HarnessTest, b node.BackendConfig, activeNodes: make(map[int]*HarnessNode), nodesByPub: make(map[string]*HarnessNode), lndErrorChan: make(chan error), - netParams: lndHarness.Miner.ActiveNet, - Miner: lndHarness.Miner, + netParams: lndHarness.Miner().ActiveNet, + Miner: lndHarness.Miner(), LNDHarness: lndHarness, BackendCfg: b, litdBinary: litdBinary, @@ -1017,7 +1017,7 @@ func (n *NetworkHarness) CloseChannel(lnNode *HarnessNode, return fmt.Errorf("unable to decode closeTxid: "+ "%v", err) } - n.LNDHarness.Miner.AssertTxInMempool(closeTxid) + n.LNDHarness.Miner().AssertTxInMempool(closeTxid) return nil }, wait.ChannelCloseTimeout) From 203bf148e6bbddd66f432689c0e48e6c63e2eeba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Tigerstr=C3=B6m?= Date: Fri, 13 Sep 2024 18:40:41 +0700 Subject: [PATCH 3/5] app+protos: make protos --- app/src/types/generated/lnd_pb.d.ts | 69 ++++ app/src/types/generated/lnd_pb.js | 585 +++++++++++++++++++++++++++- proto/lnd.proto | 60 ++- 3 files changed, 704 insertions(+), 10 deletions(-) diff --git a/app/src/types/generated/lnd_pb.d.ts b/app/src/types/generated/lnd_pb.d.ts index e959265e6..137365bf0 100644 --- a/app/src/types/generated/lnd_pb.d.ts +++ b/app/src/types/generated/lnd_pb.d.ts @@ -980,6 +980,11 @@ export class SendCoinsRequest extends jspb.Message { getCoinSelectionStrategy(): CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap]; setCoinSelectionStrategy(value: CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap]): void; + clearOutpointsList(): void; + getOutpointsList(): Array; + setOutpointsList(value: Array): void; + addOutpoints(value?: OutPoint, index?: number): OutPoint; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SendCoinsRequest.AsObject; static toObject(includeInstance: boolean, msg: SendCoinsRequest): SendCoinsRequest.AsObject; @@ -1002,6 +1007,7 @@ export namespace SendCoinsRequest { minConfs: number, spendUnconfirmed: boolean, coinSelectionStrategy: CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap], + outpointsList: Array, } } @@ -4591,6 +4597,9 @@ export class ChanInfoRequest extends jspb.Message { getChanId(): string; setChanId(value: string): void; + getChanPoint(): string; + setChanPoint(value: string): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ChanInfoRequest.AsObject; static toObject(includeInstance: boolean, msg: ChanInfoRequest): ChanInfoRequest.AsObject; @@ -4604,6 +4613,7 @@ export class ChanInfoRequest extends jspb.Message { export namespace ChanInfoRequest { export type AsObject = { chanId: string, + chanPoint: string, } } @@ -5206,6 +5216,14 @@ export class Invoice extends jspb.Message { getAmpInvoiceStateMap(): jspb.Map; clearAmpInvoiceStateMap(): void; + getIsBlinded(): boolean; + setIsBlinded(value: boolean): void; + + hasBlindedPathConfig(): boolean; + clearBlindedPathConfig(): void; + getBlindedPathConfig(): BlindedPathConfig | undefined; + setBlindedPathConfig(value?: BlindedPathConfig): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Invoice.AsObject; static toObject(includeInstance: boolean, msg: Invoice): Invoice.AsObject; @@ -5245,6 +5263,8 @@ export namespace Invoice { paymentAddr: Uint8Array | string, isAmp: boolean, ampInvoiceStateMap: Array<[string, AMPInvoiceState.AsObject]>, + isBlinded: boolean, + blindedPathConfig?: BlindedPathConfig.AsObject, } export interface InvoiceStateMap { @@ -5257,6 +5277,48 @@ export namespace Invoice { export const InvoiceState: InvoiceStateMap; } +export class BlindedPathConfig extends jspb.Message { + hasMinNumRealHops(): boolean; + clearMinNumRealHops(): void; + getMinNumRealHops(): number; + setMinNumRealHops(value: number): void; + + hasNumHops(): boolean; + clearNumHops(): void; + getNumHops(): number; + setNumHops(value: number): void; + + hasMaxNumPaths(): boolean; + clearMaxNumPaths(): void; + getMaxNumPaths(): number; + setMaxNumPaths(value: number): void; + + clearNodeOmissionListList(): void; + getNodeOmissionListList(): Array; + getNodeOmissionListList_asU8(): Array; + getNodeOmissionListList_asB64(): Array; + setNodeOmissionListList(value: Array): void; + addNodeOmissionList(value: Uint8Array | string, index?: number): Uint8Array | string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BlindedPathConfig.AsObject; + static toObject(includeInstance: boolean, msg: BlindedPathConfig): BlindedPathConfig.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BlindedPathConfig, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BlindedPathConfig; + static deserializeBinaryFromReader(message: BlindedPathConfig, reader: jspb.BinaryReader): BlindedPathConfig; +} + +export namespace BlindedPathConfig { + export type AsObject = { + minNumRealHops: number, + numHops: number, + maxNumPaths: number, + nodeOmissionListList: Array, + } +} + export class InvoiceHTLC extends jspb.Message { getChanId(): string; setChanId(value: string): void; @@ -5981,6 +6043,11 @@ export class PayReq extends jspb.Message { getFeaturesMap(): jspb.Map; clearFeaturesMap(): void; + clearBlindedPathsList(): void; + getBlindedPathsList(): Array; + setBlindedPathsList(value: Array): void; + addBlindedPaths(value?: BlindedPaymentPath, index?: number): BlindedPaymentPath; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PayReq.AsObject; static toObject(includeInstance: boolean, msg: PayReq): PayReq.AsObject; @@ -6006,6 +6073,7 @@ export namespace PayReq { paymentAddr: Uint8Array | string, numMsat: string, featuresMap: Array<[number, Feature.AsObject]>, + blindedPathsList: Array, } } @@ -7427,6 +7495,7 @@ export interface PaymentFailureReasonMap { FAILURE_REASON_ERROR: 3; FAILURE_REASON_INCORRECT_PAYMENT_DETAILS: 4; FAILURE_REASON_INSUFFICIENT_BALANCE: 5; + FAILURE_REASON_CANCELED: 6; } export const PaymentFailureReason: PaymentFailureReasonMap; diff --git a/app/src/types/generated/lnd_pb.js b/app/src/types/generated/lnd_pb.js index 632085870..740d82862 100644 --- a/app/src/types/generated/lnd_pb.js +++ b/app/src/types/generated/lnd_pb.js @@ -40,6 +40,7 @@ goog.exportSymbol('proto.lnrpc.BatchOpenChannelRequest', null, global); goog.exportSymbol('proto.lnrpc.BatchOpenChannelResponse', null, global); goog.exportSymbol('proto.lnrpc.BlindedHop', null, global); goog.exportSymbol('proto.lnrpc.BlindedPath', null, global); +goog.exportSymbol('proto.lnrpc.BlindedPathConfig', null, global); goog.exportSymbol('proto.lnrpc.BlindedPaymentPath', null, global); goog.exportSymbol('proto.lnrpc.Chain', null, global); goog.exportSymbol('proto.lnrpc.ChanBackupExportRequest', null, global); @@ -797,7 +798,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.lnrpc.SendCoinsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.SendCoinsRequest.repeatedFields_, null); }; goog.inherits(proto.lnrpc.SendCoinsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -3222,6 +3223,27 @@ if (goog.DEBUG && !COMPILED) { */ 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.BlindedPathConfig = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.BlindedPathConfig.repeatedFields_, null); +}; +goog.inherits(proto.lnrpc.BlindedPathConfig, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.lnrpc.BlindedPathConfig.displayName = 'proto.lnrpc.BlindedPathConfig'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -11386,6 +11408,13 @@ proto.lnrpc.SendManyResponse.prototype.setTxid = function(value) { +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.lnrpc.SendCoinsRequest.repeatedFields_ = [11]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -11426,7 +11455,9 @@ proto.lnrpc.SendCoinsRequest.toObject = function(includeInstance, msg) { label: jspb.Message.getFieldWithDefault(msg, 7, ""), minConfs: jspb.Message.getFieldWithDefault(msg, 8, 0), spendUnconfirmed: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - coinSelectionStrategy: jspb.Message.getFieldWithDefault(msg, 10, 0) + coinSelectionStrategy: jspb.Message.getFieldWithDefault(msg, 10, 0), + outpointsList: jspb.Message.toObjectList(msg.getOutpointsList(), + proto.lnrpc.OutPoint.toObject, includeInstance) }; if (includeInstance) { @@ -11503,6 +11534,11 @@ proto.lnrpc.SendCoinsRequest.deserializeBinaryFromReader = function(msg, reader) var value = /** @type {!proto.lnrpc.CoinSelectionStrategy} */ (reader.readEnum()); msg.setCoinSelectionStrategy(value); break; + case 11: + var value = new proto.lnrpc.OutPoint; + reader.readMessage(value,proto.lnrpc.OutPoint.deserializeBinaryFromReader); + msg.addOutpoints(value); + break; default: reader.skipField(); break; @@ -11602,6 +11638,14 @@ proto.lnrpc.SendCoinsRequest.serializeBinaryToWriter = function(message, writer) f ); } + f = message.getOutpointsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 11, + f, + proto.lnrpc.OutPoint.serializeBinaryToWriter + ); + } }; @@ -11785,6 +11829,44 @@ proto.lnrpc.SendCoinsRequest.prototype.setCoinSelectionStrategy = function(value }; +/** + * repeated OutPoint outpoints = 11; + * @return {!Array} + */ +proto.lnrpc.SendCoinsRequest.prototype.getOutpointsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.lnrpc.OutPoint, 11)); +}; + + +/** + * @param {!Array} value + * @return {!proto.lnrpc.SendCoinsRequest} returns this +*/ +proto.lnrpc.SendCoinsRequest.prototype.setOutpointsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 11, value); +}; + + +/** + * @param {!proto.lnrpc.OutPoint=} opt_value + * @param {number=} opt_index + * @return {!proto.lnrpc.OutPoint} + */ +proto.lnrpc.SendCoinsRequest.prototype.addOutpoints = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.lnrpc.OutPoint, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.SendCoinsRequest} returns this + */ +proto.lnrpc.SendCoinsRequest.prototype.clearOutpointsList = function() { + return this.setOutpointsList([]); +}; + + @@ -37396,7 +37478,8 @@ proto.lnrpc.ChanInfoRequest.prototype.toObject = function(opt_includeInstance) { */ proto.lnrpc.ChanInfoRequest.toObject = function(includeInstance, msg) { var f, obj = { - chanId: jspb.Message.getFieldWithDefault(msg, 1, "0") + chanId: jspb.Message.getFieldWithDefault(msg, 1, "0"), + chanPoint: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -37437,6 +37520,10 @@ proto.lnrpc.ChanInfoRequest.deserializeBinaryFromReader = function(msg, reader) var value = /** @type {string} */ (reader.readUint64String()); msg.setChanId(value); break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setChanPoint(value); + break; default: reader.skipField(); break; @@ -37473,6 +37560,13 @@ proto.lnrpc.ChanInfoRequest.serializeBinaryToWriter = function(message, writer) f ); } + f = message.getChanPoint(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } }; @@ -37494,6 +37588,24 @@ proto.lnrpc.ChanInfoRequest.prototype.setChanId = function(value) { }; +/** + * optional string chan_point = 2; + * @return {string} + */ +proto.lnrpc.ChanInfoRequest.prototype.getChanPoint = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.lnrpc.ChanInfoRequest} returns this + */ +proto.lnrpc.ChanInfoRequest.prototype.setChanPoint = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + @@ -41230,7 +41342,9 @@ proto.lnrpc.Invoice.toObject = function(includeInstance, msg) { isKeysend: jspb.Message.getBooleanFieldWithDefault(msg, 25, false), paymentAddr: msg.getPaymentAddr_asB64(), isAmp: jspb.Message.getBooleanFieldWithDefault(msg, 27, false), - ampInvoiceStateMap: (f = msg.getAmpInvoiceStateMap()) ? f.toObject(includeInstance, proto.lnrpc.AMPInvoiceState.toObject) : [] + ampInvoiceStateMap: (f = msg.getAmpInvoiceStateMap()) ? f.toObject(includeInstance, proto.lnrpc.AMPInvoiceState.toObject) : [], + isBlinded: jspb.Message.getBooleanFieldWithDefault(msg, 29, false), + blindedPathConfig: (f = msg.getBlindedPathConfig()) && proto.lnrpc.BlindedPathConfig.toObject(includeInstance, f) }; if (includeInstance) { @@ -41381,6 +41495,15 @@ proto.lnrpc.Invoice.deserializeBinaryFromReader = function(msg, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.AMPInvoiceState.deserializeBinaryFromReader, "", new proto.lnrpc.AMPInvoiceState()); }); break; + case 29: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsBlinded(value); + break; + case 30: + var value = new proto.lnrpc.BlindedPathConfig; + reader.readMessage(value,proto.lnrpc.BlindedPathConfig.deserializeBinaryFromReader); + msg.setBlindedPathConfig(value); + break; default: reader.skipField(); break; @@ -41595,6 +41718,21 @@ proto.lnrpc.Invoice.serializeBinaryToWriter = function(message, writer) { if (f && f.getLength() > 0) { f.serializeBinary(28, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.lnrpc.AMPInvoiceState.serializeBinaryToWriter); } + f = message.getIsBlinded(); + if (f) { + writer.writeBool( + 29, + f + ); + } + f = message.getBlindedPathConfig(); + if (f != null) { + writer.writeMessage( + 30, + f, + proto.lnrpc.BlindedPathConfig.serializeBinaryToWriter + ); + } }; @@ -42240,6 +42378,385 @@ proto.lnrpc.Invoice.prototype.clearAmpInvoiceStateMap = function() { }; +/** + * optional bool is_blinded = 29; + * @return {boolean} + */ +proto.lnrpc.Invoice.prototype.getIsBlinded = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 29, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.lnrpc.Invoice} returns this + */ +proto.lnrpc.Invoice.prototype.setIsBlinded = function(value) { + return jspb.Message.setProto3BooleanField(this, 29, value); +}; + + +/** + * optional BlindedPathConfig blinded_path_config = 30; + * @return {?proto.lnrpc.BlindedPathConfig} + */ +proto.lnrpc.Invoice.prototype.getBlindedPathConfig = function() { + return /** @type{?proto.lnrpc.BlindedPathConfig} */ ( + jspb.Message.getWrapperField(this, proto.lnrpc.BlindedPathConfig, 30)); +}; + + +/** + * @param {?proto.lnrpc.BlindedPathConfig|undefined} value + * @return {!proto.lnrpc.Invoice} returns this +*/ +proto.lnrpc.Invoice.prototype.setBlindedPathConfig = function(value) { + return jspb.Message.setWrapperField(this, 30, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.lnrpc.Invoice} returns this + */ +proto.lnrpc.Invoice.prototype.clearBlindedPathConfig = function() { + return this.setBlindedPathConfig(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.lnrpc.Invoice.prototype.hasBlindedPathConfig = function() { + return jspb.Message.getField(this, 30) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.lnrpc.BlindedPathConfig.repeatedFields_ = [4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, 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.BlindedPathConfig.prototype.toObject = function(opt_includeInstance) { + return proto.lnrpc.BlindedPathConfig.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.BlindedPathConfig} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.lnrpc.BlindedPathConfig.toObject = function(includeInstance, msg) { + var f, obj = { + minNumRealHops: jspb.Message.getFieldWithDefault(msg, 1, 0), + numHops: jspb.Message.getFieldWithDefault(msg, 2, 0), + maxNumPaths: jspb.Message.getFieldWithDefault(msg, 3, 0), + nodeOmissionListList: msg.getNodeOmissionListList_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.lnrpc.BlindedPathConfig} + */ +proto.lnrpc.BlindedPathConfig.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.lnrpc.BlindedPathConfig; + return proto.lnrpc.BlindedPathConfig.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.lnrpc.BlindedPathConfig} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.lnrpc.BlindedPathConfig} + */ +proto.lnrpc.BlindedPathConfig.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMinNumRealHops(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setNumHops(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMaxNumPaths(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.addNodeOmissionList(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.lnrpc.BlindedPathConfig.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.lnrpc.BlindedPathConfig.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.BlindedPathConfig} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.lnrpc.BlindedPathConfig.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint32( + 1, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint32( + 2, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint32( + 3, + f + ); + } + f = message.getNodeOmissionListList_asU8(); + if (f.length > 0) { + writer.writeRepeatedBytes( + 4, + f + ); + } +}; + + +/** + * optional uint32 min_num_real_hops = 1; + * @return {number} + */ +proto.lnrpc.BlindedPathConfig.prototype.getMinNumRealHops = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.lnrpc.BlindedPathConfig} returns this + */ +proto.lnrpc.BlindedPathConfig.prototype.setMinNumRealHops = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.BlindedPathConfig} returns this + */ +proto.lnrpc.BlindedPathConfig.prototype.clearMinNumRealHops = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.lnrpc.BlindedPathConfig.prototype.hasMinNumRealHops = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 num_hops = 2; + * @return {number} + */ +proto.lnrpc.BlindedPathConfig.prototype.getNumHops = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.lnrpc.BlindedPathConfig} returns this + */ +proto.lnrpc.BlindedPathConfig.prototype.setNumHops = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.BlindedPathConfig} returns this + */ +proto.lnrpc.BlindedPathConfig.prototype.clearNumHops = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.lnrpc.BlindedPathConfig.prototype.hasNumHops = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint32 max_num_paths = 3; + * @return {number} + */ +proto.lnrpc.BlindedPathConfig.prototype.getMaxNumPaths = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.lnrpc.BlindedPathConfig} returns this + */ +proto.lnrpc.BlindedPathConfig.prototype.setMaxNumPaths = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.lnrpc.BlindedPathConfig} returns this + */ +proto.lnrpc.BlindedPathConfig.prototype.clearMaxNumPaths = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.lnrpc.BlindedPathConfig.prototype.hasMaxNumPaths = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * repeated bytes node_omission_list = 4; + * @return {!(Array|Array)} + */ +proto.lnrpc.BlindedPathConfig.prototype.getNodeOmissionListList = function() { + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * repeated bytes node_omission_list = 4; + * This is a type-conversion wrapper around `getNodeOmissionListList()` + * @return {!Array} + */ +proto.lnrpc.BlindedPathConfig.prototype.getNodeOmissionListList_asB64 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + this.getNodeOmissionListList())); +}; + + +/** + * repeated bytes node_omission_list = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getNodeOmissionListList()` + * @return {!Array} + */ +proto.lnrpc.BlindedPathConfig.prototype.getNodeOmissionListList_asU8 = function() { + return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + this.getNodeOmissionListList())); +}; + + +/** + * @param {!(Array|Array)} value + * @return {!proto.lnrpc.BlindedPathConfig} returns this + */ +proto.lnrpc.BlindedPathConfig.prototype.setNodeOmissionListList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @param {number=} opt_index + * @return {!proto.lnrpc.BlindedPathConfig} returns this + */ +proto.lnrpc.BlindedPathConfig.prototype.addNodeOmissionList = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.BlindedPathConfig} returns this + */ +proto.lnrpc.BlindedPathConfig.prototype.clearNodeOmissionListList = function() { + return this.setNodeOmissionListList([]); +}; + + @@ -47003,7 +47520,7 @@ proto.lnrpc.PayReqString.prototype.setPayReq = function(value) { * @private {!Array} * @const */ -proto.lnrpc.PayReq.repeatedFields_ = [10]; +proto.lnrpc.PayReq.repeatedFields_ = [10,14]; @@ -47049,7 +47566,9 @@ proto.lnrpc.PayReq.toObject = function(includeInstance, msg) { proto.lnrpc.RouteHint.toObject, includeInstance), paymentAddr: msg.getPaymentAddr_asB64(), numMsat: jspb.Message.getFieldWithDefault(msg, 12, "0"), - featuresMap: (f = msg.getFeaturesMap()) ? f.toObject(includeInstance, proto.lnrpc.Feature.toObject) : [] + featuresMap: (f = msg.getFeaturesMap()) ? f.toObject(includeInstance, proto.lnrpc.Feature.toObject) : [], + blindedPathsList: jspb.Message.toObjectList(msg.getBlindedPathsList(), + proto.lnrpc.BlindedPaymentPath.toObject, includeInstance) }; if (includeInstance) { @@ -47141,6 +47660,11 @@ proto.lnrpc.PayReq.deserializeBinaryFromReader = function(msg, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.lnrpc.Feature.deserializeBinaryFromReader, 0, new proto.lnrpc.Feature()); }); break; + case 14: + var value = new proto.lnrpc.BlindedPaymentPath; + reader.readMessage(value,proto.lnrpc.BlindedPaymentPath.deserializeBinaryFromReader); + msg.addBlindedPaths(value); + break; default: reader.skipField(); break; @@ -47259,6 +47783,14 @@ proto.lnrpc.PayReq.serializeBinaryToWriter = function(message, writer) { if (f && f.getLength() > 0) { f.serializeBinary(13, writer, jspb.BinaryWriter.prototype.writeUint32, jspb.BinaryWriter.prototype.writeMessage, proto.lnrpc.Feature.serializeBinaryToWriter); } + f = message.getBlindedPathsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 14, + f, + proto.lnrpc.BlindedPaymentPath.serializeBinaryToWriter + ); + } }; @@ -47545,6 +48077,44 @@ proto.lnrpc.PayReq.prototype.clearFeaturesMap = function() { }; +/** + * repeated BlindedPaymentPath blinded_paths = 14; + * @return {!Array} + */ +proto.lnrpc.PayReq.prototype.getBlindedPathsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.lnrpc.BlindedPaymentPath, 14)); +}; + + +/** + * @param {!Array} value + * @return {!proto.lnrpc.PayReq} returns this +*/ +proto.lnrpc.PayReq.prototype.setBlindedPathsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 14, value); +}; + + +/** + * @param {!proto.lnrpc.BlindedPaymentPath=} opt_value + * @param {number=} opt_index + * @return {!proto.lnrpc.BlindedPaymentPath} + */ +proto.lnrpc.PayReq.prototype.addBlindedPaths = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.lnrpc.BlindedPaymentPath, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.lnrpc.PayReq} returns this + */ +proto.lnrpc.PayReq.prototype.clearBlindedPathsList = function() { + return this.setBlindedPathsList([]); +}; + + @@ -56749,7 +57319,8 @@ proto.lnrpc.PaymentFailureReason = { FAILURE_REASON_NO_ROUTE: 2, FAILURE_REASON_ERROR: 3, FAILURE_REASON_INCORRECT_PAYMENT_DETAILS: 4, - FAILURE_REASON_INSUFFICIENT_BALANCE: 5 + FAILURE_REASON_INSUFFICIENT_BALANCE: 5, + FAILURE_REASON_CANCELED: 6 }; /** diff --git a/proto/lnd.proto b/proto/lnd.proto index 7a663013d..a02fdde65 100644 --- a/proto/lnd.proto +++ b/proto/lnd.proto @@ -1190,9 +1190,8 @@ message SendCoinsRequest { int64 sat_per_byte = 5 [deprecated = true, jstype = JS_STRING]; /* - 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. + If set, the amount field should be unset. It indicates lnd will send all + wallet coins or all selected coins to the specified address. */ bool send_all = 6; @@ -1208,6 +1207,9 @@ message SendCoinsRequest { // The strategy to use for selecting coins. CoinSelectionStrategy coin_selection_strategy = 10; + + // A list of selected outpoints as inputs for the transaction. + repeated OutPoint outpoints = 11; } message SendCoinsResponse { // The transaction ID of the transaction @@ -3443,6 +3445,10 @@ message ChanInfoRequest { output index for the channel. */ uint64 chan_id = 1 [jstype = JS_STRING]; + + // The channel point of the channel in format funding_txid:output_index. If + // chan_id is specified, this field is ignored. + string chan_point = 2; } message NetworkInfoRequest { @@ -3832,6 +3838,48 @@ message Invoice { Note: Output only, don't specify for creating an invoice. */ map amp_invoice_state = 28; + + /* + Signals that the invoice should include blinded paths to hide the true + identity of the recipient. + */ + bool is_blinded = 29; + + /* + Config values to use when creating blinded paths for this invoice. These + can be used to override the defaults config values provided in by the + global config. This field is only used if is_blinded is true. + */ + BlindedPathConfig blinded_path_config = 30; +} + +message BlindedPathConfig { + /* + The minimum number of real hops to include in a blinded path. This doesn't + include our node, so if the minimum is 1, then the path will contain at + minimum our node along with an introduction node hop. If it is zero then + the shortest path will use our node as an introduction node. + */ + optional uint32 min_num_real_hops = 1; + + /* + The number of hops to include in a blinded path. This doesn't include our + node, so if it is 1, then the path will contain our node along with an + introduction node or dummy node hop. If paths shorter than NumHops is + found, then they will be padded using dummy hops. + */ + optional uint32 num_hops = 2; + + /* + The maximum number of blinded paths to select and add to an invoice. + */ + optional uint32 max_num_paths = 3; + + /* + A list of node IDs of nodes that should not be used in any of our generated + blinded paths. + */ + repeated bytes node_omission_list = 4; } enum InvoiceHTLCState { @@ -4040,6 +4088,11 @@ enum PaymentFailureReason { Insufficient local balance. */ FAILURE_REASON_INSUFFICIENT_BALANCE = 5; + + /* + The payment was canceled. + */ + FAILURE_REASON_CANCELED = 6; } message Payment { @@ -4285,6 +4338,7 @@ message PayReq { bytes payment_addr = 11; int64 num_msat = 12 [jstype = JS_STRING]; map features = 13; + repeated BlindedPaymentPath blinded_paths = 14; } enum FeatureBit { From 7c7d496e9f202259b2a7b711deea4652cacbee1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Tigerstr=C3=B6m?= Date: Fri, 13 Sep 2024 19:02:19 +0700 Subject: [PATCH 4/5] docs/release-notes: cut release v0.13.4-alpha --- docs/release-notes/release-notes-0.13.4.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/release-notes/release-notes-0.13.4.md b/docs/release-notes/release-notes-0.13.4.md index 1f33a75cd..773e70512 100644 --- a/docs/release-notes/release-notes-0.13.4.md +++ b/docs/release-notes/release-notes-0.13.4.md @@ -16,15 +16,13 @@ with 'make go-build-noui' and 'make go-install-noui'](https://github.com/lightni ### LND -### Loop - -### Pool +* [Update the integrated LND version to + v0.18.3-beta](https://github.com/lightninglabs/lightning-terminal/pull/843). -### Faraday - -### Taproot Assets +### Loop -# Autopilot +* [Update the integrated Loop version to + v0.28.7-beta](https://github.com/lightninglabs/lightning-terminal/pull/843). # Contributors (Alphabetical Order) From 9bc30fadeabe03c31c4730ab79c7b705397cdf4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Tigerstr=C3=B6m?= Date: Fri, 13 Sep 2024 19:03:47 +0700 Subject: [PATCH 5/5] build: bump version to `v0.13.4-alpha` --- README.md | 2 ++ version.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ac792cb4d..99fede850 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ in remote mode (meaning that `lnd-mode=remote` is set). It shows the | LiT | LND | |-------------------|--------------| +| **v0.13.4-alpha** | v0.17.1-beta | | **v0.13.3-alpha** | v0.17.1-beta | | **v0.13.2-alpha** | v0.17.0-beta | | **v0.13.1-alpha** | v0.17.0-beta | @@ -159,6 +160,7 @@ The following table shows the supported combinations: | LiT | LND | Loop | Faraday | Pool | Taproot Assets | |-------------------|--------------|--------------|---------------|--------------|----------------| +| **v0.13.4-alpha** | v0.18.3-beta | v0.28.7-beta | v0.2.13-alpha | v0.6.5-beta | v0.4.1-alpha | | **v0.13.3-alpha** | v0.18.2-beta | v0.28.6-beta | v0.2.13-alpha | v0.6.5-beta | v0.4.1-alpha | | **v0.13.2-alpha** | v0.18.2-beta | v0.28.5-beta | v0.2.13-alpha | v0.6.5-beta | v0.3.3-alpha | | **v0.13.1-alpha** | v0.18.1-beta | v0.28.5-beta | v0.2.13-alpha | v0.6.5-beta | v0.3.3-alpha | diff --git a/version.go b/version.go index 463d2d860..607c21c38 100644 --- a/version.go +++ b/version.go @@ -23,7 +23,7 @@ const semanticAlphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqr const ( appMajor uint = 0 appMinor uint = 13 - appPatch uint = 3 + appPatch uint = 4 // appPreRelease MUST only contain characters from semanticAlphabet per // the semantic versioning spec.