UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

1,652 lines (1,334 loc) 104 kB
"use strict"; // source: provenance/reward/v1/reward.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 || window || global || self || Function('return this')(); }.call(null); var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); goog.exportSymbol('proto.provenance.reward.v1.ActionCounter', null, global); goog.exportSymbol('proto.provenance.reward.v1.ActionDelegate', null, global); goog.exportSymbol('proto.provenance.reward.v1.ActionTransfer', null, global); goog.exportSymbol('proto.provenance.reward.v1.ActionVote', null, global); goog.exportSymbol('proto.provenance.reward.v1.ClaimPeriodRewardDistribution', null, global); goog.exportSymbol('proto.provenance.reward.v1.QualifyingAction', null, global); goog.exportSymbol('proto.provenance.reward.v1.QualifyingAction.TypeCase', null, global); goog.exportSymbol('proto.provenance.reward.v1.QualifyingActions', null, global); goog.exportSymbol('proto.provenance.reward.v1.RewardAccountState', null, global); goog.exportSymbol('proto.provenance.reward.v1.RewardAccountState.ClaimStatus', null, global); goog.exportSymbol('proto.provenance.reward.v1.RewardProgram', null, global); goog.exportSymbol('proto.provenance.reward.v1.RewardProgram.State', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.provenance.reward.v1.RewardProgram = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.reward.v1.RewardProgram.repeatedFields_, null); }; goog.inherits(proto.provenance.reward.v1.RewardProgram, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.reward.v1.RewardProgram.displayName = 'proto.provenance.reward.v1.RewardProgram'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.reward.v1.ClaimPeriodRewardDistribution, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.displayName = 'proto.provenance.reward.v1.ClaimPeriodRewardDistribution'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.provenance.reward.v1.RewardAccountState = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.reward.v1.RewardAccountState.repeatedFields_, null); }; goog.inherits(proto.provenance.reward.v1.RewardAccountState, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.reward.v1.RewardAccountState.displayName = 'proto.provenance.reward.v1.RewardAccountState'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.provenance.reward.v1.QualifyingAction = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.provenance.reward.v1.QualifyingAction.oneofGroups_); }; goog.inherits(proto.provenance.reward.v1.QualifyingAction, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.reward.v1.QualifyingAction.displayName = 'proto.provenance.reward.v1.QualifyingAction'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.provenance.reward.v1.QualifyingActions = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.provenance.reward.v1.QualifyingActions.repeatedFields_, null); }; goog.inherits(proto.provenance.reward.v1.QualifyingActions, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.reward.v1.QualifyingActions.displayName = 'proto.provenance.reward.v1.QualifyingActions'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.provenance.reward.v1.ActionDelegate = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.reward.v1.ActionDelegate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.reward.v1.ActionDelegate.displayName = 'proto.provenance.reward.v1.ActionDelegate'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.provenance.reward.v1.ActionTransfer = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.reward.v1.ActionTransfer, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.reward.v1.ActionTransfer.displayName = 'proto.provenance.reward.v1.ActionTransfer'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.provenance.reward.v1.ActionVote = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.reward.v1.ActionVote, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.reward.v1.ActionVote.displayName = 'proto.provenance.reward.v1.ActionVote'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.provenance.reward.v1.ActionCounter = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.provenance.reward.v1.ActionCounter, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.provenance.reward.v1.ActionCounter.displayName = 'proto.provenance.reward.v1.ActionCounter'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.provenance.reward.v1.RewardProgram.repeatedFields_ = [21]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.provenance.reward.v1.RewardProgram.prototype.toObject = function (opt_includeInstance) { return proto.provenance.reward.v1.RewardProgram.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.provenance.reward.v1.RewardProgram} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.reward.v1.RewardProgram.toObject = function (includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, 0), title: jspb.Message.getFieldWithDefault(msg, 2, ""), description: jspb.Message.getFieldWithDefault(msg, 3, ""), distributeFromAddress: jspb.Message.getFieldWithDefault(msg, 4, ""), totalRewardPool: (f = msg.getTotalRewardPool()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), remainingPoolBalance: (f = msg.getRemainingPoolBalance()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), claimedAmount: (f = msg.getClaimedAmount()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), maxRewardByAddress: (f = msg.getMaxRewardByAddress()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), minimumRolloverAmount: (f = msg.getMinimumRolloverAmount()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), claimPeriodSeconds: jspb.Message.getFieldWithDefault(msg, 10, 0), programStartTime: (f = msg.getProgramStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), expectedProgramEndTime: (f = msg.getExpectedProgramEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), programEndTimeMax: (f = msg.getProgramEndTimeMax()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), claimPeriodEndTime: (f = msg.getClaimPeriodEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), actualProgramEndTime: (f = msg.getActualProgramEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), claimPeriods: jspb.Message.getFieldWithDefault(msg, 16, 0), currentClaimPeriod: jspb.Message.getFieldWithDefault(msg, 17, 0), maxRolloverClaimPeriods: jspb.Message.getFieldWithDefault(msg, 18, 0), state: jspb.Message.getFieldWithDefault(msg, 19, 0), expirationOffset: jspb.Message.getFieldWithDefault(msg, 20, 0), qualifyingActionsList: jspb.Message.toObjectList(msg.getQualifyingActionsList(), proto.provenance.reward.v1.QualifyingAction.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.provenance.reward.v1.RewardProgram} */ proto.provenance.reward.v1.RewardProgram.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.reward.v1.RewardProgram(); return proto.provenance.reward.v1.RewardProgram.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.reward.v1.RewardProgram} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.reward.v1.RewardProgram} */ proto.provenance.reward.v1.RewardProgram.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ reader.readUint64(); msg.setId(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setTitle(value); break; case 3: var value = /** @type {string} */ reader.readString(); msg.setDescription(value); break; case 4: var value = /** @type {string} */ reader.readString(); msg.setDistributeFromAddress(value); break; case 5: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.setTotalRewardPool(value); break; case 6: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.setRemainingPoolBalance(value); break; case 7: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.setClaimedAmount(value); break; case 8: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.setMaxRewardByAddress(value); break; case 9: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.setMinimumRolloverAmount(value); break; case 10: var value = /** @type {number} */ reader.readUint64(); msg.setClaimPeriodSeconds(value); break; case 11: var value = new google_protobuf_timestamp_pb.Timestamp(); reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setProgramStartTime(value); break; case 12: var value = new google_protobuf_timestamp_pb.Timestamp(); reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setExpectedProgramEndTime(value); break; case 13: var value = new google_protobuf_timestamp_pb.Timestamp(); reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setProgramEndTimeMax(value); break; case 14: var value = new google_protobuf_timestamp_pb.Timestamp(); reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setClaimPeriodEndTime(value); break; case 15: var value = new google_protobuf_timestamp_pb.Timestamp(); reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setActualProgramEndTime(value); break; case 16: var value = /** @type {number} */ reader.readUint64(); msg.setClaimPeriods(value); break; case 17: var value = /** @type {number} */ reader.readUint64(); msg.setCurrentClaimPeriod(value); break; case 18: var value = /** @type {number} */ reader.readUint64(); msg.setMaxRolloverClaimPeriods(value); break; case 19: var value = /** @type {!proto.provenance.reward.v1.RewardProgram.State} */ reader.readEnum(); msg.setState(value); break; case 20: var value = /** @type {number} */ reader.readUint64(); msg.setExpirationOffset(value); break; case 21: var value = new proto.provenance.reward.v1.QualifyingAction(); reader.readMessage(value, proto.provenance.reward.v1.QualifyingAction.deserializeBinaryFromReader); msg.addQualifyingActions(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.reward.v1.RewardProgram.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.reward.v1.RewardProgram.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.provenance.reward.v1.RewardProgram} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.reward.v1.RewardProgram.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getId(); if (f !== 0) { writer.writeUint64(1, f); } f = message.getTitle(); if (f.length > 0) { writer.writeString(2, f); } f = message.getDescription(); if (f.length > 0) { writer.writeString(3, f); } f = message.getDistributeFromAddress(); if (f.length > 0) { writer.writeString(4, f); } f = message.getTotalRewardPool(); if (f != null) { writer.writeMessage(5, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getRemainingPoolBalance(); if (f != null) { writer.writeMessage(6, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getClaimedAmount(); if (f != null) { writer.writeMessage(7, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getMaxRewardByAddress(); if (f != null) { writer.writeMessage(8, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getMinimumRolloverAmount(); if (f != null) { writer.writeMessage(9, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getClaimPeriodSeconds(); if (f !== 0) { writer.writeUint64(10, f); } f = message.getProgramStartTime(); if (f != null) { writer.writeMessage(11, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter); } f = message.getExpectedProgramEndTime(); if (f != null) { writer.writeMessage(12, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter); } f = message.getProgramEndTimeMax(); if (f != null) { writer.writeMessage(13, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter); } f = message.getClaimPeriodEndTime(); if (f != null) { writer.writeMessage(14, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter); } f = message.getActualProgramEndTime(); if (f != null) { writer.writeMessage(15, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter); } f = message.getClaimPeriods(); if (f !== 0) { writer.writeUint64(16, f); } f = message.getCurrentClaimPeriod(); if (f !== 0) { writer.writeUint64(17, f); } f = message.getMaxRolloverClaimPeriods(); if (f !== 0) { writer.writeUint64(18, f); } f = message.getState(); if (f !== 0.0) { writer.writeEnum(19, f); } f = message.getExpirationOffset(); if (f !== 0) { writer.writeUint64(20, f); } f = message.getQualifyingActionsList(); if (f.length > 0) { writer.writeRepeatedMessage(21, f, proto.provenance.reward.v1.QualifyingAction.serializeBinaryToWriter); } }; /** * @enum {number} */ proto.provenance.reward.v1.RewardProgram.State = { STATE_UNSPECIFIED: 0, STATE_PENDING: 1, STATE_STARTED: 2, STATE_FINISHED: 3, STATE_EXPIRED: 4 }; /** * optional uint64 id = 1; * @return {number} */ proto.provenance.reward.v1.RewardProgram.prototype.getId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 1, 0) ); }; /** * @param {number} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setId = function (value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string title = 2; * @return {string} */ proto.provenance.reward.v1.RewardProgram.prototype.getTitle = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "") ); }; /** * @param {string} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setTitle = function (value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string description = 3; * @return {string} */ proto.provenance.reward.v1.RewardProgram.prototype.getDescription = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 3, "") ); }; /** * @param {string} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setDescription = function (value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string distribute_from_address = 4; * @return {string} */ proto.provenance.reward.v1.RewardProgram.prototype.getDistributeFromAddress = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 4, "") ); }; /** * @param {string} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setDistributeFromAddress = function (value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional cosmos.base.v1beta1.Coin total_reward_pool = 5; * @return {?proto.cosmos.base.v1beta1.Coin} */ proto.provenance.reward.v1.RewardProgram.prototype.getTotalRewardPool = function () { return ( /** @type{?proto.cosmos.base.v1beta1.Coin} */ jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 5) ); }; /** * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setTotalRewardPool = function (value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearTotalRewardPool = function () { return this.setTotalRewardPool(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.RewardProgram.prototype.hasTotalRewardPool = function () { return jspb.Message.getField(this, 5) != null; }; /** * optional cosmos.base.v1beta1.Coin remaining_pool_balance = 6; * @return {?proto.cosmos.base.v1beta1.Coin} */ proto.provenance.reward.v1.RewardProgram.prototype.getRemainingPoolBalance = function () { return ( /** @type{?proto.cosmos.base.v1beta1.Coin} */ jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 6) ); }; /** * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setRemainingPoolBalance = function (value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearRemainingPoolBalance = function () { return this.setRemainingPoolBalance(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.RewardProgram.prototype.hasRemainingPoolBalance = function () { return jspb.Message.getField(this, 6) != null; }; /** * optional cosmos.base.v1beta1.Coin claimed_amount = 7; * @return {?proto.cosmos.base.v1beta1.Coin} */ proto.provenance.reward.v1.RewardProgram.prototype.getClaimedAmount = function () { return ( /** @type{?proto.cosmos.base.v1beta1.Coin} */ jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 7) ); }; /** * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setClaimedAmount = function (value) { return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearClaimedAmount = function () { return this.setClaimedAmount(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.RewardProgram.prototype.hasClaimedAmount = function () { return jspb.Message.getField(this, 7) != null; }; /** * optional cosmos.base.v1beta1.Coin max_reward_by_address = 8; * @return {?proto.cosmos.base.v1beta1.Coin} */ proto.provenance.reward.v1.RewardProgram.prototype.getMaxRewardByAddress = function () { return ( /** @type{?proto.cosmos.base.v1beta1.Coin} */ jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 8) ); }; /** * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setMaxRewardByAddress = function (value) { return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearMaxRewardByAddress = function () { return this.setMaxRewardByAddress(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.RewardProgram.prototype.hasMaxRewardByAddress = function () { return jspb.Message.getField(this, 8) != null; }; /** * optional cosmos.base.v1beta1.Coin minimum_rollover_amount = 9; * @return {?proto.cosmos.base.v1beta1.Coin} */ proto.provenance.reward.v1.RewardProgram.prototype.getMinimumRolloverAmount = function () { return ( /** @type{?proto.cosmos.base.v1beta1.Coin} */ jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 9) ); }; /** * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setMinimumRolloverAmount = function (value) { return jspb.Message.setWrapperField(this, 9, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearMinimumRolloverAmount = function () { return this.setMinimumRolloverAmount(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.RewardProgram.prototype.hasMinimumRolloverAmount = function () { return jspb.Message.getField(this, 9) != null; }; /** * optional uint64 claim_period_seconds = 10; * @return {number} */ proto.provenance.reward.v1.RewardProgram.prototype.getClaimPeriodSeconds = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 10, 0) ); }; /** * @param {number} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setClaimPeriodSeconds = function (value) { return jspb.Message.setProto3IntField(this, 10, value); }; /** * optional google.protobuf.Timestamp program_start_time = 11; * @return {?proto.google.protobuf.Timestamp} */ proto.provenance.reward.v1.RewardProgram.prototype.getProgramStartTime = function () { return ( /** @type{?proto.google.protobuf.Timestamp} */ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11) ); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setProgramStartTime = function (value) { return jspb.Message.setWrapperField(this, 11, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearProgramStartTime = function () { return this.setProgramStartTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.RewardProgram.prototype.hasProgramStartTime = function () { return jspb.Message.getField(this, 11) != null; }; /** * optional google.protobuf.Timestamp expected_program_end_time = 12; * @return {?proto.google.protobuf.Timestamp} */ proto.provenance.reward.v1.RewardProgram.prototype.getExpectedProgramEndTime = function () { return ( /** @type{?proto.google.protobuf.Timestamp} */ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12) ); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setExpectedProgramEndTime = function (value) { return jspb.Message.setWrapperField(this, 12, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearExpectedProgramEndTime = function () { return this.setExpectedProgramEndTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.RewardProgram.prototype.hasExpectedProgramEndTime = function () { return jspb.Message.getField(this, 12) != null; }; /** * optional google.protobuf.Timestamp program_end_time_max = 13; * @return {?proto.google.protobuf.Timestamp} */ proto.provenance.reward.v1.RewardProgram.prototype.getProgramEndTimeMax = function () { return ( /** @type{?proto.google.protobuf.Timestamp} */ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 13) ); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setProgramEndTimeMax = function (value) { return jspb.Message.setWrapperField(this, 13, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearProgramEndTimeMax = function () { return this.setProgramEndTimeMax(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.RewardProgram.prototype.hasProgramEndTimeMax = function () { return jspb.Message.getField(this, 13) != null; }; /** * optional google.protobuf.Timestamp claim_period_end_time = 14; * @return {?proto.google.protobuf.Timestamp} */ proto.provenance.reward.v1.RewardProgram.prototype.getClaimPeriodEndTime = function () { return ( /** @type{?proto.google.protobuf.Timestamp} */ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 14) ); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setClaimPeriodEndTime = function (value) { return jspb.Message.setWrapperField(this, 14, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearClaimPeriodEndTime = function () { return this.setClaimPeriodEndTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.RewardProgram.prototype.hasClaimPeriodEndTime = function () { return jspb.Message.getField(this, 14) != null; }; /** * optional google.protobuf.Timestamp actual_program_end_time = 15; * @return {?proto.google.protobuf.Timestamp} */ proto.provenance.reward.v1.RewardProgram.prototype.getActualProgramEndTime = function () { return ( /** @type{?proto.google.protobuf.Timestamp} */ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 15) ); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setActualProgramEndTime = function (value) { return jspb.Message.setWrapperField(this, 15, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearActualProgramEndTime = function () { return this.setActualProgramEndTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.RewardProgram.prototype.hasActualProgramEndTime = function () { return jspb.Message.getField(this, 15) != null; }; /** * optional uint64 claim_periods = 16; * @return {number} */ proto.provenance.reward.v1.RewardProgram.prototype.getClaimPeriods = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 16, 0) ); }; /** * @param {number} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setClaimPeriods = function (value) { return jspb.Message.setProto3IntField(this, 16, value); }; /** * optional uint64 current_claim_period = 17; * @return {number} */ proto.provenance.reward.v1.RewardProgram.prototype.getCurrentClaimPeriod = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 17, 0) ); }; /** * @param {number} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setCurrentClaimPeriod = function (value) { return jspb.Message.setProto3IntField(this, 17, value); }; /** * optional uint64 max_rollover_claim_periods = 18; * @return {number} */ proto.provenance.reward.v1.RewardProgram.prototype.getMaxRolloverClaimPeriods = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 18, 0) ); }; /** * @param {number} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setMaxRolloverClaimPeriods = function (value) { return jspb.Message.setProto3IntField(this, 18, value); }; /** * optional State state = 19; * @return {!proto.provenance.reward.v1.RewardProgram.State} */ proto.provenance.reward.v1.RewardProgram.prototype.getState = function () { return ( /** @type {!proto.provenance.reward.v1.RewardProgram.State} */ jspb.Message.getFieldWithDefault(this, 19, 0) ); }; /** * @param {!proto.provenance.reward.v1.RewardProgram.State} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setState = function (value) { return jspb.Message.setProto3EnumField(this, 19, value); }; /** * optional uint64 expiration_offset = 20; * @return {number} */ proto.provenance.reward.v1.RewardProgram.prototype.getExpirationOffset = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 20, 0) ); }; /** * @param {number} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setExpirationOffset = function (value) { return jspb.Message.setProto3IntField(this, 20, value); }; /** * repeated QualifyingAction qualifying_actions = 21; * @return {!Array<!proto.provenance.reward.v1.QualifyingAction>} */ proto.provenance.reward.v1.RewardProgram.prototype.getQualifyingActionsList = function () { return ( /** @type{!Array<!proto.provenance.reward.v1.QualifyingAction>} */ jspb.Message.getRepeatedWrapperField(this, proto.provenance.reward.v1.QualifyingAction, 21) ); }; /** * @param {!Array<!proto.provenance.reward.v1.QualifyingAction>} value * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.setQualifyingActionsList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 21, value); }; /** * @param {!proto.provenance.reward.v1.QualifyingAction=} opt_value * @param {number=} opt_index * @return {!proto.provenance.reward.v1.QualifyingAction} */ proto.provenance.reward.v1.RewardProgram.prototype.addQualifyingActions = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 21, opt_value, proto.provenance.reward.v1.QualifyingAction, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.provenance.reward.v1.RewardProgram} returns this */ proto.provenance.reward.v1.RewardProgram.prototype.clearQualifyingActionsList = function () { return this.setQualifyingActionsList([]); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.toObject = function (opt_includeInstance) { return proto.provenance.reward.v1.ClaimPeriodRewardDistribution.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.provenance.reward.v1.ClaimPeriodRewardDistribution} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.toObject = function (includeInstance, msg) { var f, obj = { claimPeriodId: jspb.Message.getFieldWithDefault(msg, 1, 0), rewardProgramId: jspb.Message.getFieldWithDefault(msg, 2, 0), totalRewardsPoolForClaimPeriod: (f = msg.getTotalRewardsPoolForClaimPeriod()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), rewardsPool: (f = msg.getRewardsPool()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f), totalShares: jspb.Message.getFieldWithDefault(msg, 5, 0), claimPeriodEnded: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.provenance.reward.v1.ClaimPeriodRewardDistribution(); return proto.provenance.reward.v1.ClaimPeriodRewardDistribution.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ reader.readUint64(); msg.setClaimPeriodId(value); break; case 2: var value = /** @type {number} */ reader.readUint64(); msg.setRewardProgramId(value); break; case 3: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.setTotalRewardsPoolForClaimPeriod(value); break; case 4: var value = new cosmos_base_v1beta1_coin_pb.Coin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.setRewardsPool(value); break; case 5: var value = /** @type {number} */ reader.readInt64(); msg.setTotalShares(value); break; case 6: var value = /** @type {boolean} */ reader.readBool(); msg.setClaimPeriodEnded(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.provenance.reward.v1.ClaimPeriodRewardDistribution.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getClaimPeriodId(); if (f !== 0) { writer.writeUint64(1, f); } f = message.getRewardProgramId(); if (f !== 0) { writer.writeUint64(2, f); } f = message.getTotalRewardsPoolForClaimPeriod(); if (f != null) { writer.writeMessage(3, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getRewardsPool(); if (f != null) { writer.writeMessage(4, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter); } f = message.getTotalShares(); if (f !== 0) { writer.writeInt64(5, f); } f = message.getClaimPeriodEnded(); if (f) { writer.writeBool(6, f); } }; /** * optional uint64 claim_period_id = 1; * @return {number} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.getClaimPeriodId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 1, 0) ); }; /** * @param {number} value * @return {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} returns this */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.setClaimPeriodId = function (value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional uint64 reward_program_id = 2; * @return {number} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.getRewardProgramId = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 2, 0) ); }; /** * @param {number} value * @return {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} returns this */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.setRewardProgramId = function (value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional cosmos.base.v1beta1.Coin total_rewards_pool_for_claim_period = 3; * @return {?proto.cosmos.base.v1beta1.Coin} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.getTotalRewardsPoolForClaimPeriod = function () { return ( /** @type{?proto.cosmos.base.v1beta1.Coin} */ jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 3) ); }; /** * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value * @return {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} returns this */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.setTotalRewardsPoolForClaimPeriod = function (value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} returns this */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.clearTotalRewardsPoolForClaimPeriod = function () { return this.setTotalRewardsPoolForClaimPeriod(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.hasTotalRewardsPoolForClaimPeriod = function () { return jspb.Message.getField(this, 3) != null; }; /** * optional cosmos.base.v1beta1.Coin rewards_pool = 4; * @return {?proto.cosmos.base.v1beta1.Coin} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.getRewardsPool = function () { return ( /** @type{?proto.cosmos.base.v1beta1.Coin} */ jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 4) ); }; /** * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value * @return {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} returns this */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.setRewardsPool = function (value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} returns this */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.clearRewardsPool = function () { return this.setRewardsPool(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.hasRewardsPool = function () { return jspb.Message.getField(this, 4) != null; }; /** * optional int64 total_shares = 5; * @return {number} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.getTotalShares = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 5, 0) ); }; /** * @param {number} value * @return {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} returns this */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.setTotalShares = function (value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * optional bool claim_period_ended = 6; * @return {boolean} */ proto.provenance.reward.v1.ClaimPeriodRewardDistribution.prototype.getClaimPeriodEnded = function () { return ( /** @type {boolean} */ jspb.Message.getBooleanFieldWithDefault(this, 6, false) ); }; /** * @param {boolean} value * @return {!proto.provenance.reward.v1.ClaimPeriodRewardDistribution} returns this *