diff --git a/src/app/modules/proto/models/member_pb.d.ts b/src/app/modules/proto/models/member_pb.d.ts index 9304dff..fcd9a3f 100644 --- a/src/app/modules/proto/models/member_pb.d.ts +++ b/src/app/modules/proto/models/member_pb.d.ts @@ -145,6 +145,11 @@ export class MemberModel extends jspb.Message { getChildMemberCount(): number; setChildMemberCount(value: number): void; + clearChildrenCountList(): void; + getChildrenCountList(): Array; + setChildrenCountList(value: Array): void; + addChildrenCount(value: number, index?: number): number; + getUsername(): string; setUsername(value: string): void; @@ -233,6 +238,7 @@ export namespace MemberModel { bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject; parentMember?: MemberModel.AsObject; childMemberCount: number; + childrenCountList: Array; username: string; nickname: string; mobilePhoneNumber: string; diff --git a/src/app/modules/proto/models/member_pb.js b/src/app/modules/proto/models/member_pb.js index ccd6513..c0dc1cb 100644 --- a/src/app/modules/proto/models/member_pb.js +++ b/src/app/modules/proto/models/member_pb.js @@ -65,7 +65,14 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.bet.beteran.member.MemberModel = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.member.MemberModel.repeatedFields_, + null + ); }; goog.inherits(proto.bet.beteran.member.MemberModel, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -684,6 +691,13 @@ proto.bet.beteran.member.Member.prototype.hasDeletedAt = function () { return jspb.Message.getField(this, 16) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.member.MemberModel.repeatedFields_ = [8]; + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -741,11 +755,13 @@ if (jspb.Message.GENERATE_TO_OBJECT) { (f = msg.getParentMember()) && proto.bet.beteran.member.MemberModel.toObject(includeInstance, f), childMemberCount: jspb.Message.getFieldWithDefault(msg, 7, 0), - username: jspb.Message.getFieldWithDefault(msg, 8, ""), - nickname: jspb.Message.getFieldWithDefault(msg, 9, ""), - mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 10, ""), - state: jspb.Message.getFieldWithDefault(msg, 11, 0), - stateChangedAt: jspb.Message.getFieldWithDefault(msg, 12, 0), + childrenCountList: + (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, + username: jspb.Message.getFieldWithDefault(msg, 9, ""), + nickname: jspb.Message.getFieldWithDefault(msg, 10, ""), + mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 11, ""), + state: jspb.Message.getFieldWithDefault(msg, 12, 0), + stateChangedAt: jspb.Message.getFieldWithDefault(msg, 13, 0), memberGameSetting: (f = msg.getMemberGameSetting()) && models_member_game_setting_pb.MemberGameSetting.toObject( @@ -758,11 +774,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) { includeInstance, f ), - lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 15, ""), - lastSigninedAt: jspb.Message.getFieldWithDefault(msg, 16, 0), - createdAt: jspb.Message.getFieldWithDefault(msg, 17, 0), - updatedAt: jspb.Message.getFieldWithDefault(msg, 18, 0), - deletedAt: jspb.Message.getFieldWithDefault(msg, 19, 0), + lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 16, ""), + lastSigninedAt: jspb.Message.getFieldWithDefault(msg, 17, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 18, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 19, 0), + deletedAt: jspb.Message.getFieldWithDefault(msg, 20, 0), }; if (includeInstance) { @@ -853,28 +869,38 @@ proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function ( msg.setChildMemberCount(value); break; case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); + var values = /** @type {!Array} */ ( + reader.isDelimited() + ? reader.readPackedUint64() + : [reader.readUint64()] + ); + for (var i = 0; i < values.length; i++) { + msg.addChildrenCount(values[i]); + } break; case 9: var value = /** @type {string} */ (reader.readString()); - msg.setNickname(value); + msg.setUsername(value); break; case 10: var value = /** @type {string} */ (reader.readString()); - msg.setMobilePhoneNumber(value); + msg.setNickname(value); break; case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 12: var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( reader.readEnum() ); msg.setState(value); break; - case 12: + case 13: var value = /** @type {number} */ (reader.readUint64()); msg.setStateChangedAt(value); break; - case 13: + case 14: var value = new models_member_game_setting_pb.MemberGameSetting(); reader.readMessage( value, @@ -883,7 +909,7 @@ proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function ( ); msg.setMemberGameSetting(value); break; - case 14: + case 15: var value = new models_member_settlement_setting_pb.MemberSettlementSetting(); reader.readMessage( @@ -893,23 +919,23 @@ proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function ( ); msg.setMemberSettlementSetting(value); break; - case 15: + case 16: var value = /** @type {string} */ (reader.readString()); msg.setLastSigninedIp(value); break; - case 16: + case 17: var value = /** @type {number} */ (reader.readUint64()); msg.setLastSigninedAt(value); break; - case 17: + case 18: var value = /** @type {number} */ (reader.readUint64()); msg.setCreatedAt(value); break; - case 18: + case 19: var value = /** @type {number} */ (reader.readUint64()); msg.setUpdatedAt(value); break; - case 19: + case 20: var value = /** @type {number} */ (reader.readUint64()); msg.setDeletedAt(value); break; @@ -988,30 +1014,34 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( if (f !== 0) { writer.writeUint64(7, f); } - f = message.getUsername(); + f = message.getChildrenCountList(); if (f.length > 0) { - writer.writeString(8, f); + writer.writePackedUint64(8, f); } - f = message.getNickname(); + f = message.getUsername(); if (f.length > 0) { writer.writeString(9, f); } - f = /** @type {string} */ (jspb.Message.getField(message, 10)); - if (f != null) { + f = message.getNickname(); + if (f.length > 0) { writer.writeString(10, f); } + f = /** @type {string} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeString(11, f); + } f = message.getState(); if (f !== 0.0) { - writer.writeEnum(11, f); + writer.writeEnum(12, f); } - f = /** @type {number} */ (jspb.Message.getField(message, 12)); + f = /** @type {number} */ (jspb.Message.getField(message, 13)); if (f != null) { - writer.writeUint64(12, f); + writer.writeUint64(13, f); } f = message.getMemberGameSetting(); if (f != null) { writer.writeMessage( - 13, + 14, f, models_member_game_setting_pb.MemberGameSetting.serializeBinaryToWriter ); @@ -1019,32 +1049,32 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( f = message.getMemberSettlementSetting(); if (f != null) { writer.writeMessage( - 14, + 15, f, models_member_settlement_setting_pb.MemberSettlementSetting .serializeBinaryToWriter ); } - f = /** @type {string} */ (jspb.Message.getField(message, 15)); + f = /** @type {string} */ (jspb.Message.getField(message, 16)); if (f != null) { - writer.writeString(15, f); + writer.writeString(16, f); } - f = /** @type {number} */ (jspb.Message.getField(message, 16)); + f = /** @type {number} */ (jspb.Message.getField(message, 17)); if (f != null) { - writer.writeUint64(16, f); + writer.writeUint64(17, f); } f = message.getCreatedAt(); if (f !== 0) { - writer.writeUint64(17, f); + writer.writeUint64(18, f); } f = message.getUpdatedAt(); if (f !== 0) { - writer.writeUint64(18, f); - } - f = /** @type {number} */ (jspb.Message.getField(message, 19)); - if (f != null) { writer.writeUint64(19, f); } + f = /** @type {number} */ (jspb.Message.getField(message, 20)); + if (f != null) { + writer.writeUint64(20, f); + } }; /** @@ -1265,26 +1295,52 @@ proto.bet.beteran.member.MemberModel.prototype.setChildMemberCount = function ( }; /** - * optional string username = 8; + * repeated uint64 children_count = 8; + * @return {!Array} + */ +proto.bet.beteran.member.MemberModel.prototype.getChildrenCountList = + function () { + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 8) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setChildrenCountList = function ( + value +) { + return jspb.Message.setField(this, 8, value || []); +}; + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.addChildrenCount = function ( + value, + opt_index +) { + return jspb.Message.addToRepeatedField(this, 8, value, opt_index); +}; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearChildrenCountList = + function () { + return this.setChildrenCountList([]); + }; + +/** + * optional string username = 9; * @return {string} */ proto.bet.beteran.member.MemberModel.prototype.getUsername = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - -/** - * @param {string} value - * @return {!proto.bet.beteran.member.MemberModel} returns this - */ -proto.bet.beteran.member.MemberModel.prototype.setUsername = function (value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - -/** - * optional string nickname = 9; - * @return {string} - */ -proto.bet.beteran.member.MemberModel.prototype.getNickname = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; @@ -1292,18 +1348,34 @@ proto.bet.beteran.member.MemberModel.prototype.getNickname = function () { * @param {string} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setNickname = function (value) { +proto.bet.beteran.member.MemberModel.prototype.setUsername = function (value) { return jspb.Message.setProto3StringField(this, 9, value); }; /** - * optional string mobile_phone_number = 10; + * optional string nickname = 10; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getNickname = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setNickname = function (value) { + return jspb.Message.setProto3StringField(this, 10, value); +}; + +/** + * optional string mobile_phone_number = 11; * @return {string} */ proto.bet.beteran.member.MemberModel.prototype.getMobilePhoneNumber = function () { return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 10, "") + jspb.Message.getFieldWithDefault(this, 11, "") ); }; @@ -1314,7 +1386,7 @@ proto.bet.beteran.member.MemberModel.prototype.getMobilePhoneNumber = proto.bet.beteran.member.MemberModel.prototype.setMobilePhoneNumber = function ( value ) { - return jspb.Message.setField(this, 10, value); + return jspb.Message.setField(this, 11, value); }; /** @@ -1323,7 +1395,7 @@ proto.bet.beteran.member.MemberModel.prototype.setMobilePhoneNumber = function ( */ proto.bet.beteran.member.MemberModel.prototype.clearMobilePhoneNumber = function () { - return jspb.Message.setField(this, 10, undefined); + return jspb.Message.setField(this, 11, undefined); }; /** @@ -1332,16 +1404,16 @@ proto.bet.beteran.member.MemberModel.prototype.clearMobilePhoneNumber = */ proto.bet.beteran.member.MemberModel.prototype.hasMobilePhoneNumber = function () { - return jspb.Message.getField(this, 10) != null; + return jspb.Message.getField(this, 11) != null; }; /** - * optional MemberState state = 11; + * optional MemberState state = 12; * @return {!proto.bet.beteran.member.MemberState} */ proto.bet.beteran.member.MemberModel.prototype.getState = function () { return /** @type {!proto.bet.beteran.member.MemberState} */ ( - jspb.Message.getFieldWithDefault(this, 11, 0) + jspb.Message.getFieldWithDefault(this, 12, 0) ); }; @@ -1350,15 +1422,15 @@ proto.bet.beteran.member.MemberModel.prototype.getState = function () { * @return {!proto.bet.beteran.member.MemberModel} returns this */ proto.bet.beteran.member.MemberModel.prototype.setState = function (value) { - return jspb.Message.setProto3EnumField(this, 11, value); + return jspb.Message.setProto3EnumField(this, 12, value); }; /** - * optional uint64 state_changed_at = 12; + * optional uint64 state_changed_at = 13; * @return {number} */ proto.bet.beteran.member.MemberModel.prototype.getStateChangedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); }; /** @@ -1368,7 +1440,7 @@ proto.bet.beteran.member.MemberModel.prototype.getStateChangedAt = function () { proto.bet.beteran.member.MemberModel.prototype.setStateChangedAt = function ( value ) { - return jspb.Message.setField(this, 12, value); + return jspb.Message.setField(this, 13, value); }; /** @@ -1377,7 +1449,7 @@ proto.bet.beteran.member.MemberModel.prototype.setStateChangedAt = function ( */ proto.bet.beteran.member.MemberModel.prototype.clearStateChangedAt = function () { - return jspb.Message.setField(this, 12, undefined); + return jspb.Message.setField(this, 13, undefined); }; /** @@ -1385,11 +1457,11 @@ proto.bet.beteran.member.MemberModel.prototype.clearStateChangedAt = * @return {boolean} */ proto.bet.beteran.member.MemberModel.prototype.hasStateChangedAt = function () { - return jspb.Message.getField(this, 12) != null; + return jspb.Message.getField(this, 13) != null; }; /** - * optional bet.beteran.member_game_setting.MemberGameSetting member_game_setting = 13; + * optional bet.beteran.member_game_setting.MemberGameSetting member_game_setting = 14; * @return {?proto.bet.beteran.member_game_setting.MemberGameSetting} */ proto.bet.beteran.member.MemberModel.prototype.getMemberGameSetting = @@ -1398,7 +1470,7 @@ proto.bet.beteran.member.MemberModel.prototype.getMemberGameSetting = jspb.Message.getWrapperField( this, models_member_game_setting_pb.MemberGameSetting, - 13 + 14 ) ); }; @@ -1410,7 +1482,7 @@ proto.bet.beteran.member.MemberModel.prototype.getMemberGameSetting = proto.bet.beteran.member.MemberModel.prototype.setMemberGameSetting = function ( value ) { - return jspb.Message.setWrapperField(this, 13, value); + return jspb.Message.setWrapperField(this, 14, value); }; /** @@ -1428,11 +1500,11 @@ proto.bet.beteran.member.MemberModel.prototype.clearMemberGameSetting = */ proto.bet.beteran.member.MemberModel.prototype.hasMemberGameSetting = function () { - return jspb.Message.getField(this, 13) != null; + return jspb.Message.getField(this, 14) != null; }; /** - * optional bet.beteran.member_settlement_setting.MemberSettlementSetting member_settlement_setting = 14; + * optional bet.beteran.member_settlement_setting.MemberSettlementSetting member_settlement_setting = 15; * @return {?proto.bet.beteran.member_settlement_setting.MemberSettlementSetting} */ proto.bet.beteran.member.MemberModel.prototype.getMemberSettlementSetting = @@ -1441,7 +1513,7 @@ proto.bet.beteran.member.MemberModel.prototype.getMemberSettlementSetting = jspb.Message.getWrapperField( this, models_member_settlement_setting_pb.MemberSettlementSetting, - 14 + 15 ) ); }; @@ -1452,7 +1524,7 @@ proto.bet.beteran.member.MemberModel.prototype.getMemberSettlementSetting = */ proto.bet.beteran.member.MemberModel.prototype.setMemberSettlementSetting = function (value) { - return jspb.Message.setWrapperField(this, 14, value); + return jspb.Message.setWrapperField(this, 15, value); }; /** @@ -1470,15 +1542,15 @@ proto.bet.beteran.member.MemberModel.prototype.clearMemberSettlementSetting = */ proto.bet.beteran.member.MemberModel.prototype.hasMemberSettlementSetting = function () { - return jspb.Message.getField(this, 14) != null; + return jspb.Message.getField(this, 15) != null; }; /** - * optional string last_signined_ip = 15; + * optional string last_signined_ip = 16; * @return {string} */ proto.bet.beteran.member.MemberModel.prototype.getLastSigninedIp = function () { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); }; /** @@ -1488,7 +1560,7 @@ proto.bet.beteran.member.MemberModel.prototype.getLastSigninedIp = function () { proto.bet.beteran.member.MemberModel.prototype.setLastSigninedIp = function ( value ) { - return jspb.Message.setField(this, 15, value); + return jspb.Message.setField(this, 16, value); }; /** @@ -1497,7 +1569,7 @@ proto.bet.beteran.member.MemberModel.prototype.setLastSigninedIp = function ( */ proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedIp = function () { - return jspb.Message.setField(this, 15, undefined); + return jspb.Message.setField(this, 16, undefined); }; /** @@ -1505,15 +1577,15 @@ proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedIp = * @return {boolean} */ proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedIp = function () { - return jspb.Message.getField(this, 15) != null; + return jspb.Message.getField(this, 16) != null; }; /** - * optional uint64 last_signined_at = 16; + * optional uint64 last_signined_at = 17; * @return {number} */ proto.bet.beteran.member.MemberModel.prototype.getLastSigninedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); }; /** @@ -1523,7 +1595,7 @@ proto.bet.beteran.member.MemberModel.prototype.getLastSigninedAt = function () { proto.bet.beteran.member.MemberModel.prototype.setLastSigninedAt = function ( value ) { - return jspb.Message.setField(this, 16, value); + return jspb.Message.setField(this, 17, value); }; /** @@ -1532,7 +1604,7 @@ proto.bet.beteran.member.MemberModel.prototype.setLastSigninedAt = function ( */ proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedAt = function () { - return jspb.Message.setField(this, 16, undefined); + return jspb.Message.setField(this, 17, undefined); }; /** @@ -1540,30 +1612,14 @@ proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedAt = * @return {boolean} */ proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedAt = function () { - return jspb.Message.getField(this, 16) != null; + return jspb.Message.getField(this, 17) != null; }; /** - * optional uint64 created_at = 17; + * optional uint64 created_at = 18; * @return {number} */ proto.bet.beteran.member.MemberModel.prototype.getCreatedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberModel} returns this - */ -proto.bet.beteran.member.MemberModel.prototype.setCreatedAt = function (value) { - return jspb.Message.setProto3IntField(this, 17, value); -}; - -/** - * optional uint64 updated_at = 18; - * @return {number} - */ -proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); }; @@ -1571,24 +1627,40 @@ proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () { * @param {number} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ -proto.bet.beteran.member.MemberModel.prototype.setUpdatedAt = function (value) { +proto.bet.beteran.member.MemberModel.prototype.setCreatedAt = function (value) { return jspb.Message.setProto3IntField(this, 18, value); }; /** - * optional uint64 deleted_at = 19; + * optional uint64 updated_at = 19; * @return {number} */ -proto.bet.beteran.member.MemberModel.prototype.getDeletedAt = function () { +proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); }; +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setUpdatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 19, value); +}; + +/** + * optional uint64 deleted_at = 20; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getDeletedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + /** * @param {number} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ proto.bet.beteran.member.MemberModel.prototype.setDeletedAt = function (value) { - return jspb.Message.setField(this, 19, value); + return jspb.Message.setField(this, 20, value); }; /** @@ -1596,7 +1668,7 @@ proto.bet.beteran.member.MemberModel.prototype.setDeletedAt = function (value) { * @return {!proto.bet.beteran.member.MemberModel} returns this */ proto.bet.beteran.member.MemberModel.prototype.clearDeletedAt = function () { - return jspb.Message.setField(this, 19, undefined); + return jspb.Message.setField(this, 20, undefined); }; /** @@ -1604,7 +1676,7 @@ proto.bet.beteran.member.MemberModel.prototype.clearDeletedAt = function () { * @return {boolean} */ proto.bet.beteran.member.MemberModel.prototype.hasDeletedAt = function () { - return jspb.Message.getField(this, 19) != null; + return jspb.Message.getField(this, 20) != null; }; /**