From 6720f80f333b350b85cb66b17f0752c78204ce62 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 1 Sep 2022 10:33:05 +0000 Subject: [PATCH] model is modified --- .../bank/deposit/components/list.component.ts | 5 +- .../game/casino/components/list.component.ts | 4 +- .../member/user/components/list.component.ts | 5 +- src/app/modules/proto/c2se/member_pb.d.ts | 24 + src/app/modules/proto/c2se/member_pb.js | 328 +++++- .../modules/proto/models/api/betting_pb.d.ts | 58 +- .../modules/proto/models/api/betting_pb.js | 377 +----- src/app/modules/proto/models/member_pb.d.ts | 145 ++- src/app/modules/proto/models/member_pb.js | 1008 ++++++++++++++++- 9 files changed, 1455 insertions(+), 499 deletions(-) diff --git a/src/app/modules/admin/bank/deposit/components/list.component.ts b/src/app/modules/admin/bank/deposit/components/list.component.ts index 3ba93fd..95314b5 100644 --- a/src/app/modules/admin/bank/deposit/components/list.component.ts +++ b/src/app/modules/admin/bank/deposit/components/list.component.ts @@ -309,7 +309,10 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { if (!!member) { const parentUserName = member.getParentMember()?.getUsername(); - const parentClassesId = member.getParentMember()?.getMemberClassId(); + const parentClassesId = member + .getParentMember() + ?.getMemberClass() + ?.getId(); const parentClass = this.memberClasses.find( (v) => v.getId() === parentClassesId ); diff --git a/src/app/modules/admin/game/casino/components/list.component.ts b/src/app/modules/admin/game/casino/components/list.component.ts index 86fe5f2..101a14f 100644 --- a/src/app/modules/admin/game/casino/components/list.component.ts +++ b/src/app/modules/admin/game/casino/components/list.component.ts @@ -267,9 +267,9 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { } __getParentMemberByBettingHistory(info: BettingHistoryModel): string { - const parentId = info.getMember()?.getParentMemberId(); + const parent = info.getMember()?.getParentMember(); - const pararent = this.listMember.find((v) => v.getId() === parentId); + const pararent = this.listMember.find((v) => v.getId() === parent?.getId()); const result = `[${pararent ?.getMemberClass() diff --git a/src/app/modules/admin/member/user/components/list.component.ts b/src/app/modules/admin/member/user/components/list.component.ts index c6a8192..6ab1e57 100644 --- a/src/app/modules/admin/member/user/components/list.component.ts +++ b/src/app/modules/admin/member/user/components/list.component.ts @@ -366,7 +366,10 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { } const parentUsername = member.getParentMember()?.getUsername(); - const parentClassessId = member.getParentMember()?.getMemberClassId(); + const parentClassessId = member + .getParentMember() + ?.getMemberClass() + ?.getId(); const findClass = this.findMemberClasses(parentClassessId); diff --git a/src/app/modules/proto/c2se/member_pb.d.ts b/src/app/modules/proto/c2se/member_pb.d.ts index 78494fe..d79c8ea 100644 --- a/src/app/modules/proto/c2se/member_pb.d.ts +++ b/src/app/modules/proto/c2se/member_pb.d.ts @@ -436,11 +436,31 @@ export namespace ListMembersRequest { getParentMemberId(): string; setParentMemberId(value: string): void; + hasUsername(): boolean; + clearUsername(): void; + getUsername(): string; + setUsername(value: string): void; + + clearUsernamesList(): void; + getUsernamesList(): Array; + setUsernamesList(value: Array): void; + addUsernames(value: string, index?: number): string; + hasUsernameLike(): boolean; clearUsernameLike(): void; getUsernameLike(): string; setUsernameLike(value: string): void; + hasNickname(): boolean; + clearNickname(): void; + getNickname(): string; + setNickname(value: string): void; + + clearNicknamesList(): void; + getNicknamesList(): Array; + setNicknamesList(value: Array): void; + addNicknames(value: string, index?: number): string; + hasNicknameLike(): boolean; clearNicknameLike(): void; getNicknameLike(): string; @@ -492,7 +512,11 @@ export namespace ListMembersRequest { memberClassId: string; memberLevelId: string; parentMemberId: string; + username: string; + usernamesList: Array; usernameLike: string; + nickname: string; + nicknamesList: Array; nicknameLike: string; mobilePhoneNumberLike: string; lastSigninedIp: string; diff --git a/src/app/modules/proto/c2se/member_pb.js b/src/app/modules/proto/c2se/member_pb.js index 8866fb6..f6e24f5 100644 --- a/src/app/modules/proto/c2se/member_pb.js +++ b/src/app/modules/proto/c2se/member_pb.js @@ -372,7 +372,14 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.bet.beteran.c2se.member.ListMembersRequest.Search = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member.ListMembersRequest.Search.repeatedFields_, + null + ); }; goog.inherits( proto.bet.beteran.c2se.member.ListMembersRequest.Search, @@ -3448,6 +3455,15 @@ proto.bet.beteran.c2se.member.ListMembersRequest.serializeBinaryToWriter = } }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.repeatedFields_ = [ + 6, 9, +]; + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -3488,12 +3504,18 @@ if (jspb.Message.GENERATE_TO_OBJECT) { memberClassId: jspb.Message.getFieldWithDefault(msg, 2, ""), memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""), parentMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""), - usernameLike: jspb.Message.getFieldWithDefault(msg, 5, ""), - nicknameLike: jspb.Message.getFieldWithDefault(msg, 6, ""), - mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 7, ""), - lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 8, ""), - state: jspb.Message.getFieldWithDefault(msg, 9, 0), - deletedAt: jspb.Message.getFieldWithDefault(msg, 10, 0), + username: jspb.Message.getFieldWithDefault(msg, 5, ""), + usernamesList: + (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, + usernameLike: jspb.Message.getFieldWithDefault(msg, 7, ""), + nickname: jspb.Message.getFieldWithDefault(msg, 8, ""), + nicknamesList: + (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, + nicknameLike: jspb.Message.getFieldWithDefault(msg, 10, ""), + mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 11, ""), + lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 12, ""), + state: jspb.Message.getFieldWithDefault(msg, 13, 0), + deletedAt: jspb.Message.getFieldWithDefault(msg, 14, 0), }; if (includeInstance) { @@ -3551,27 +3573,43 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.deserializeBinaryFromRea break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.setUsernameLike(value); + msg.setUsername(value); break; case 6: var value = /** @type {string} */ (reader.readString()); - msg.setNicknameLike(value); + msg.addUsernames(value); break; case 7: var value = /** @type {string} */ (reader.readString()); - msg.setMobilePhoneNumberLike(value); + msg.setUsernameLike(value); break; case 8: var value = /** @type {string} */ (reader.readString()); - msg.setLastSigninedIp(value); + msg.setNickname(value); break; case 9: + var value = /** @type {string} */ (reader.readString()); + msg.addNicknames(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setNicknameLike(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumberLike(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setLastSigninedIp(value); + break; + case 13: var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( reader.readEnum() ); msg.setState(value); break; - case 10: + case 14: var value = /** @type {number} */ (reader.readUint64()); msg.setDeletedAt(value); break; @@ -3627,9 +3665,9 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.serializeBinaryToWriter if (f != null) { writer.writeString(5, f); } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeString(6, f); + f = message.getUsernamesList(); + if (f.length > 0) { + writer.writeRepeatedString(6, f); } f = /** @type {string} */ (jspb.Message.getField(message, 7)); if (f != null) { @@ -3639,15 +3677,31 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.serializeBinaryToWriter if (f != null) { writer.writeString(8, f); } + f = message.getNicknamesList(); + if (f.length > 0) { + writer.writeRepeatedString(9, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeString(10, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeString(11, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 12)); + if (f != null) { + writer.writeString(12, f); + } f = /** @type {!proto.bet.beteran.member.MemberState} */ ( - jspb.Message.getField(message, 9) + jspb.Message.getField(message, 13) ); if (f != null) { - writer.writeEnum(9, f); + writer.writeEnum(13, f); } - f = /** @type {number} */ (jspb.Message.getField(message, 10)); + f = /** @type {number} */ (jspb.Message.getField(message, 14)); if (f != null) { - writer.writeUint64(10, f); + writer.writeUint64(14, f); } }; @@ -3804,10 +3858,10 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasParentMembe }; /** - * optional string username_like = 5; + * optional string username = 5; * @return {string} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsernameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsername = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 5, "") @@ -3818,7 +3872,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsernameLik * @param {string} value * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsernameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsername = function (value) { return jspb.Message.setField(this, 5, value); }; @@ -3827,7 +3881,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsernameLik * Clears the field making it undefined. * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsernameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsername = function () { return jspb.Message.setField(this, 5, undefined); }; @@ -3836,54 +3890,55 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsernameL * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasUsernameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasUsername = function () { return jspb.Message.getField(this, 5) != null; }; /** - * optional string nickname_like = 6; - * @return {string} + * repeated string usernames = 6; + * @return {!Array} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getNicknameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsernamesList = function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 6, "") + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 6) ); }; /** - * @param {string} value + * @param {!Array} value * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setNicknameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsernamesList = function (value) { - return jspb.Message.setField(this, 6, value); + return jspb.Message.setField(this, 6, value || []); }; /** - * Clears the field making it undefined. + * @param {string} value + * @param {number=} opt_index * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearNicknameLike = - function () { - return jspb.Message.setField(this, 6, undefined); +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.addUsernames = + function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasNicknameLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsernamesList = function () { - return jspb.Message.getField(this, 6) != null; + return this.setUsernamesList([]); }; /** - * optional string mobile_phone_number_like = 7; + * optional string username_like = 7; * @return {string} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getMobilePhoneNumberLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getUsernameLike = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 7, "") @@ -3894,7 +3949,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getMobilePhone * @param {string} value * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setMobilePhoneNumberLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setUsernameLike = function (value) { return jspb.Message.setField(this, 7, value); }; @@ -3903,7 +3958,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setMobilePhone * Clears the field making it undefined. * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearMobilePhoneNumberLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearUsernameLike = function () { return jspb.Message.setField(this, 7, undefined); }; @@ -3912,16 +3967,16 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearMobilePho * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasMobilePhoneNumberLike = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasUsernameLike = function () { return jspb.Message.getField(this, 7) != null; }; /** - * optional string last_signined_ip = 8; + * optional string nickname = 8; * @return {string} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getLastSigninedIp = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getNickname = function () { return /** @type {string} */ ( jspb.Message.getFieldWithDefault(this, 8, "") @@ -3932,7 +3987,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getLastSignine * @param {string} value * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setLastSigninedIp = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setNickname = function (value) { return jspb.Message.setField(this, 8, value); }; @@ -3941,7 +3996,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setLastSignine * Clears the field making it undefined. * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearLastSigninedIp = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearNickname = function () { return jspb.Message.setField(this, 8, undefined); }; @@ -3950,19 +4005,172 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearLastSigni * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasLastSigninedIp = +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasNickname = function () { return jspb.Message.getField(this, 8) != null; }; /** - * optional bet.beteran.member.MemberState state = 9; + * repeated string nicknames = 9; + * @return {!Array} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getNicknamesList = + function () { + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 9) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setNicknamesList = + function (value) { + return jspb.Message.setField(this, 9, value || []); + }; + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.addNicknames = + function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 9, value, opt_index); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearNicknamesList = + function () { + return this.setNicknamesList([]); + }; + +/** + * optional string nickname_like = 10; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getNicknameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 10, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setNicknameLike = + function (value) { + return jspb.Message.setField(this, 10, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearNicknameLike = + function () { + return jspb.Message.setField(this, 10, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasNicknameLike = + function () { + return jspb.Message.getField(this, 10) != null; + }; + +/** + * optional string mobile_phone_number_like = 11; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getMobilePhoneNumberLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 11, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setMobilePhoneNumberLike = + function (value) { + return jspb.Message.setField(this, 11, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearMobilePhoneNumberLike = + function () { + return jspb.Message.setField(this, 11, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasMobilePhoneNumberLike = + function () { + return jspb.Message.getField(this, 11) != null; + }; + +/** + * optional string last_signined_ip = 12; + * @return {string} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getLastSigninedIp = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 12, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setLastSigninedIp = + function (value) { + return jspb.Message.setField(this, 12, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearLastSigninedIp = + function () { + return jspb.Message.setField(this, 12, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasLastSigninedIp = + function () { + return jspb.Message.getField(this, 12) != null; + }; + +/** + * optional bet.beteran.member.MemberState state = 13; * @return {!proto.bet.beteran.member.MemberState} */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getState = function () { return /** @type {!proto.bet.beteran.member.MemberState} */ ( - jspb.Message.getFieldWithDefault(this, 9, 0) + jspb.Message.getFieldWithDefault(this, 13, 0) ); }; @@ -3972,7 +4180,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getState = */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setState = function (value) { - return jspb.Message.setField(this, 9, value); + return jspb.Message.setField(this, 13, value); }; /** @@ -3981,7 +4189,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setState = */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearState = function () { - return jspb.Message.setField(this, 9, undefined); + return jspb.Message.setField(this, 13, undefined); }; /** @@ -3990,17 +4198,17 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearState = */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasState = function () { - return jspb.Message.getField(this, 9) != null; + return jspb.Message.getField(this, 13) != null; }; /** - * optional uint64 deleted_at = 10; + * optional uint64 deleted_at = 14; * @return {number} */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getDeletedAt = function () { return /** @type {number} */ ( - jspb.Message.getFieldWithDefault(this, 10, 0) + jspb.Message.getFieldWithDefault(this, 14, 0) ); }; @@ -4010,7 +4218,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getDeletedAt = */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setDeletedAt = function (value) { - return jspb.Message.setField(this, 10, value); + return jspb.Message.setField(this, 14, value); }; /** @@ -4019,7 +4227,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setDeletedAt = */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearDeletedAt = function () { - return jspb.Message.setField(this, 10, undefined); + return jspb.Message.setField(this, 14, undefined); }; /** @@ -4028,7 +4236,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearDeletedAt */ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasDeletedAt = function () { - return jspb.Message.getField(this, 10) != null; + return jspb.Message.getField(this, 14) != null; }; /** diff --git a/src/app/modules/proto/models/api/betting_pb.d.ts b/src/app/modules/proto/models/api/betting_pb.d.ts index 38af2db..16ea3ef 100644 --- a/src/app/modules/proto/models/api/betting_pb.d.ts +++ b/src/app/modules/proto/models/api/betting_pb.d.ts @@ -199,8 +199,8 @@ export class BettingHistoryModel extends jspb.Message { hasMember(): boolean; clearMember(): void; - getMember(): BettingHistoryModel.Member | undefined; - setMember(value?: BettingHistoryModel.Member): void; + getMember(): models_member_pb.MemberModel | undefined; + setMember(value?: models_member_pb.MemberModel): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BettingHistoryModel.AsObject; @@ -248,58 +248,6 @@ export namespace BettingHistoryModel { category: string; createdAt: number; utcCreatedAt: number; - member?: BettingHistoryModel.Member.AsObject; + member?: models_member_pb.MemberModel.AsObject; }; - - export class Member extends jspb.Message { - getSiteId(): string; - setSiteId(value: string): void; - - getMemberClassId(): string; - setMemberClassId(value: string): void; - - getMemberLevelId(): string; - setMemberLevelId(value: string): void; - - hasParentMemberId(): boolean; - clearParentMemberId(): void; - getParentMemberId(): string; - setParentMemberId(value: string): void; - - getNickname(): string; - setNickname(value: string): void; - - hasMobilePhoneNumber(): boolean; - clearMobilePhoneNumber(): void; - getMobilePhoneNumber(): string; - setMobilePhoneNumber(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Member.AsObject; - static toObject(includeInstance: boolean, msg: Member): Member.AsObject; - static extensions: { [key: number]: jspb.ExtensionFieldInfo }; - static extensionsBinary: { - [key: number]: jspb.ExtensionFieldBinaryInfo; - }; - static serializeBinaryToWriter( - message: Member, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Member; - static deserializeBinaryFromReader( - message: Member, - reader: jspb.BinaryReader - ): Member; - } - - export namespace Member { - export type AsObject = { - siteId: string; - memberClassId: string; - memberLevelId: string; - parentMemberId: string; - nickname: string; - mobilePhoneNumber: string; - }; - } } diff --git a/src/app/modules/proto/models/api/betting_pb.js b/src/app/modules/proto/models/api/betting_pb.js index 6c2f18c..c583e81 100644 --- a/src/app/modules/proto/models/api/betting_pb.js +++ b/src/app/modules/proto/models/api/betting_pb.js @@ -25,11 +25,6 @@ goog.exportSymbol( null, global ); -goog.exportSymbol( - "proto.bet.beteran.api.betting.BettingHistoryModel.Member", - null, - global -); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -74,31 +69,6 @@ if (goog.DEBUG && !COMPILED) { proto.bet.beteran.api.betting.BettingHistoryModel.displayName = "proto.bet.beteran.api.betting.BettingHistoryModel"; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member = function (opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.api.betting.BettingHistoryModel.Member, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.api.betting.BettingHistoryModel.Member.displayName = - "proto.bet.beteran.api.betting.BettingHistoryModel.Member"; -} if (jspb.Message.GENERATE_TO_OBJECT) { /** @@ -956,10 +926,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) { utcCreatedAt: jspb.Message.getFieldWithDefault(msg, 23, 0), member: (f = msg.getMember()) && - proto.bet.beteran.api.betting.BettingHistoryModel.Member.toObject( - includeInstance, - f - ), + models_member_pb.MemberModel.toObject(includeInstance, f), }; if (includeInstance) { @@ -1093,12 +1060,10 @@ proto.bet.beteran.api.betting.BettingHistoryModel.deserializeBinaryFromReader = msg.setUtcCreatedAt(value); break; case 24: - var value = - new proto.bet.beteran.api.betting.BettingHistoryModel.Member(); + var value = new models_member_pb.MemberModel(); reader.readMessage( value, - proto.bet.beteran.api.betting.BettingHistoryModel.Member - .deserializeBinaryFromReader + models_member_pb.MemberModel.deserializeBinaryFromReader ); msg.setMember(value); break; @@ -1231,331 +1196,11 @@ proto.bet.beteran.api.betting.BettingHistoryModel.serializeBinaryToWriter = writer.writeMessage( 24, f, - proto.bet.beteran.api.betting.BettingHistoryModel.Member - .serializeBinaryToWriter + models_member_pb.MemberModel.serializeBinaryToWriter ); } }; -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.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.api.betting.BettingHistoryModel.Member.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.bet.beteran.api.betting.BettingHistoryModel.Member} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.api.betting.BettingHistoryModel.Member.toObject = function ( - includeInstance, - msg - ) { - var f, - obj = { - siteId: jspb.Message.getFieldWithDefault(msg, 1, ""), - memberClassId: jspb.Message.getFieldWithDefault(msg, 2, ""), - memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""), - parentMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""), - nickname: jspb.Message.getFieldWithDefault(msg, 5, ""), - mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 6, ""), - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; - }; -} - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.api.betting.BettingHistoryModel.Member(); - return proto.bet.beteran.api.betting.BettingHistoryModel.Member.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSiteId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMemberClassId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setMemberLevelId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setParentMemberId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setNickname(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setMobilePhoneNumber(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.api.betting.BettingHistoryModel.Member.serializeBinaryToWriter( - this, - writer - ); - return writer.getResultBuffer(); - }; - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getSiteId(); - if (f.length > 0) { - writer.writeString(1, f); - } - f = message.getMemberClassId(); - if (f.length > 0) { - writer.writeString(2, f); - } - f = message.getMemberLevelId(); - if (f.length > 0) { - writer.writeString(3, f); - } - f = /** @type {string} */ (jspb.Message.getField(message, 4)); - if (f != null) { - writer.writeString(4, f); - } - f = message.getNickname(); - if (f.length > 0) { - writer.writeString(5, f); - } - f = /** @type {string} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeString(6, f); - } - }; - -/** - * optional string site_id = 1; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.getSiteId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.setSiteId = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional string member_class_id = 2; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.getMemberClassId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.setMemberClassId = - function (value) { - return jspb.Message.setProto3StringField(this, 2, value); - }; - -/** - * optional string member_level_id = 3; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.getMemberLevelId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 3, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.setMemberLevelId = - function (value) { - return jspb.Message.setProto3StringField(this, 3, value); - }; - -/** - * optional string parent_member_id = 4; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.getParentMemberId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.setParentMemberId = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.clearParentMemberId = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.hasParentMemberId = - function () { - return jspb.Message.getField(this, 4) != null; - }; - -/** - * optional string nickname = 5; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.getNickname = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 5, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.setNickname = - function (value) { - return jspb.Message.setProto3StringField(this, 5, value); - }; - -/** - * optional string mobile_phone_number = 6; - * @return {string} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.getMobilePhoneNumber = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 6, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.setMobilePhoneNumber = - function (value) { - return jspb.Message.setField(this, 6, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.api.betting.BettingHistoryModel.Member} returns this - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.clearMobilePhoneNumber = - function () { - return jspb.Message.setField(this, 6, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.api.betting.BettingHistoryModel.Member.prototype.hasMobilePhoneNumber = - function () { - return jspb.Message.getField(this, 6) != null; - }; - /** * optional string id = 1; * @return {string} @@ -2034,22 +1679,18 @@ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setUtcCreatedAt = }; /** - * optional Member member = 24; - * @return {?proto.bet.beteran.api.betting.BettingHistoryModel.Member} + * optional bet.beteran.member.MemberModel member = 24; + * @return {?proto.bet.beteran.member.MemberModel} */ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.getMember = function () { - return /** @type{?proto.bet.beteran.api.betting.BettingHistoryModel.Member} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.api.betting.BettingHistoryModel.Member, - 24 - ) + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_pb.MemberModel, 24) ); }; /** - * @param {?proto.bet.beteran.api.betting.BettingHistoryModel.Member|undefined} value + * @param {?proto.bet.beteran.member.MemberModel|undefined} value * @return {!proto.bet.beteran.api.betting.BettingHistoryModel} returns this */ proto.bet.beteran.api.betting.BettingHistoryModel.prototype.setMember = diff --git a/src/app/modules/proto/models/member_pb.d.ts b/src/app/modules/proto/models/member_pb.d.ts index 02acec5..387305c 100644 --- a/src/app/modules/proto/models/member_pb.d.ts +++ b/src/app/modules/proto/models/member_pb.d.ts @@ -109,6 +109,145 @@ export namespace Member { }; } +export class ParentMemberModel extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasSite(): boolean; + clearSite(): void; + getSite(): models_site_pb.Site | undefined; + setSite(value?: models_site_pb.Site): void; + + hasMemberClass(): boolean; + clearMemberClass(): void; + getMemberClass(): models_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_class_pb.MemberClass): void; + + hasMemberLevel(): boolean; + clearMemberLevel(): void; + getMemberLevel(): models_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_level_pb.MemberLevel): void; + + hasBankAccount(): boolean; + clearBankAccount(): void; + getBankAccount(): + | models_member_bank_account_pb.MemberBankAccountModel + | undefined; + setBankAccount( + value?: models_member_bank_account_pb.MemberBankAccountModel + ): void; + + hasParentMemberId(): boolean; + clearParentMemberId(): void; + getParentMemberId(): string; + setParentMemberId(value: string): void; + + getChildMemberCount(): number; + setChildMemberCount(value: number): void; + + getUsername(): string; + setUsername(value: string): void; + + getNickname(): string; + setNickname(value: string): void; + + hasMobilePhoneNumber(): boolean; + clearMobilePhoneNumber(): void; + getMobilePhoneNumber(): string; + setMobilePhoneNumber(value: string): void; + + getState(): MemberStateMap[keyof MemberStateMap]; + setState(value: MemberStateMap[keyof MemberStateMap]): void; + + hasStateChangedAt(): boolean; + clearStateChangedAt(): void; + getStateChangedAt(): number; + setStateChangedAt(value: number): void; + + hasMemberGameSetting(): boolean; + clearMemberGameSetting(): void; + getMemberGameSetting(): + | models_member_game_setting_pb.MemberGameSetting + | undefined; + setMemberGameSetting( + value?: models_member_game_setting_pb.MemberGameSetting + ): void; + + hasMemberSettlementSetting(): boolean; + clearMemberSettlementSetting(): void; + getMemberSettlementSetting(): + | models_member_settlement_setting_pb.MemberSettlementSetting + | undefined; + setMemberSettlementSetting( + value?: models_member_settlement_setting_pb.MemberSettlementSetting + ): void; + + hasLastSigninedIp(): boolean; + clearLastSigninedIp(): void; + getLastSigninedIp(): string; + setLastSigninedIp(value: string): void; + + hasLastSigninedAt(): boolean; + clearLastSigninedAt(): void; + getLastSigninedAt(): number; + setLastSigninedAt(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + hasDeletedAt(): boolean; + clearDeletedAt(): void; + getDeletedAt(): number; + setDeletedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ParentMemberModel.AsObject; + static toObject( + includeInstance: boolean, + msg: ParentMemberModel + ): ParentMemberModel.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ParentMemberModel, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ParentMemberModel; + static deserializeBinaryFromReader( + message: ParentMemberModel, + reader: jspb.BinaryReader + ): ParentMemberModel; +} + +export namespace ParentMemberModel { + export type AsObject = { + id: string; + site?: models_site_pb.Site.AsObject; + memberClass?: models_member_class_pb.MemberClass.AsObject; + memberLevel?: models_member_level_pb.MemberLevel.AsObject; + bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject; + parentMemberId: string; + childMemberCount: number; + username: string; + nickname: string; + mobilePhoneNumber: string; + state: MemberStateMap[keyof MemberStateMap]; + stateChangedAt: number; + memberGameSetting?: models_member_game_setting_pb.MemberGameSetting.AsObject; + memberSettlementSetting?: models_member_settlement_setting_pb.MemberSettlementSetting.AsObject; + lastSigninedIp: string; + lastSigninedAt: number; + createdAt: number; + updatedAt: number; + deletedAt: number; + }; +} + export class MemberModel extends jspb.Message { getId(): string; setId(value: string): void; @@ -139,8 +278,8 @@ export class MemberModel extends jspb.Message { hasParentMember(): boolean; clearParentMember(): void; - getParentMember(): Member | undefined; - setParentMember(value?: Member): void; + getParentMember(): ParentMemberModel | undefined; + setParentMember(value?: ParentMemberModel): void; getChildMemberCount(): number; setChildMemberCount(value: number): void; @@ -231,7 +370,7 @@ export namespace MemberModel { memberClass?: models_member_class_pb.MemberClass.AsObject; memberLevel?: models_member_level_pb.MemberLevel.AsObject; bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject; - parentMember?: Member.AsObject; + parentMember?: ParentMemberModel.AsObject; childMemberCount: number; username: string; nickname: string; diff --git a/src/app/modules/proto/models/member_pb.js b/src/app/modules/proto/models/member_pb.js index 58be159..f52418a 100644 --- a/src/app/modules/proto/models/member_pb.js +++ b/src/app/modules/proto/models/member_pb.js @@ -32,6 +32,7 @@ goog.object.extend(proto, models_member_settlement_setting_pb); goog.exportSymbol("proto.bet.beteran.member.Member", null, global); goog.exportSymbol("proto.bet.beteran.member.MemberModel", null, global); goog.exportSymbol("proto.bet.beteran.member.MemberState", null, global); +goog.exportSymbol("proto.bet.beteran.member.ParentMemberModel", null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -54,6 +55,28 @@ if (goog.DEBUG && !COMPILED) { proto.bet.beteran.member.Member.displayName = "proto.bet.beteran.member.Member"; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.member.ParentMemberModel = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member.ParentMemberModel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member.ParentMemberModel.displayName = + "proto.bet.beteran.member.ParentMemberModel"; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -684,6 +707,966 @@ proto.bet.beteran.member.Member.prototype.hasDeletedAt = function () { return jspb.Message.getField(this, 16) != null; }; +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.bet.beteran.member.ParentMemberModel.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.member.ParentMemberModel.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.bet.beteran.member.ParentMemberModel} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.member.ParentMemberModel.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + site: + (f = msg.getSite()) && + models_site_pb.Site.toObject(includeInstance, f), + memberClass: + (f = msg.getMemberClass()) && + models_member_class_pb.MemberClass.toObject(includeInstance, f), + memberLevel: + (f = msg.getMemberLevel()) && + models_member_level_pb.MemberLevel.toObject(includeInstance, f), + bankAccount: + (f = msg.getBankAccount()) && + models_member_bank_account_pb.MemberBankAccountModel.toObject( + includeInstance, + f + ), + parentMemberId: jspb.Message.getFieldWithDefault(msg, 6, ""), + 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), + memberGameSetting: + (f = msg.getMemberGameSetting()) && + models_member_game_setting_pb.MemberGameSetting.toObject( + includeInstance, + f + ), + memberSettlementSetting: + (f = msg.getMemberSettlementSetting()) && + models_member_settlement_setting_pb.MemberSettlementSetting.toObject( + 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), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.member.ParentMemberModel} + */ +proto.bet.beteran.member.ParentMemberModel.deserializeBinary = function ( + bytes +) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member.ParentMemberModel(); + return proto.bet.beteran.member.ParentMemberModel.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member.ParentMemberModel} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member.ParentMemberModel} + */ +proto.bet.beteran.member.ParentMemberModel.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new models_site_pb.Site(); + reader.readMessage( + value, + models_site_pb.Site.deserializeBinaryFromReader + ); + msg.setSite(value); + break; + case 3: + var value = new models_member_class_pb.MemberClass(); + reader.readMessage( + value, + models_member_class_pb.MemberClass.deserializeBinaryFromReader + ); + msg.setMemberClass(value); + break; + case 4: + var value = new models_member_level_pb.MemberLevel(); + reader.readMessage( + value, + models_member_level_pb.MemberLevel.deserializeBinaryFromReader + ); + msg.setMemberLevel(value); + break; + case 5: + var value = + new models_member_bank_account_pb.MemberBankAccountModel(); + reader.readMessage( + value, + models_member_bank_account_pb.MemberBankAccountModel + .deserializeBinaryFromReader + ); + msg.setBankAccount(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setParentMemberId(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setChildMemberCount(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setNickname(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 11: + var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( + reader.readEnum() + ); + msg.setState(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStateChangedAt(value); + break; + case 13: + var value = new models_member_game_setting_pb.MemberGameSetting(); + reader.readMessage( + value, + models_member_game_setting_pb.MemberGameSetting + .deserializeBinaryFromReader + ); + msg.setMemberGameSetting(value); + break; + case 14: + var value = + new models_member_settlement_setting_pb.MemberSettlementSetting(); + reader.readMessage( + value, + models_member_settlement_setting_pb.MemberSettlementSetting + .deserializeBinaryFromReader + ); + msg.setMemberSettlementSetting(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setLastSigninedIp(value); + break; + case 16: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLastSigninedAt(value); + break; + case 17: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 18: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + case 19: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDeletedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member.ParentMemberModel.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.member.ParentMemberModel} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member.ParentMemberModel.serializeBinaryToWriter = function ( + message, + writer +) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getSite(); + if (f != null) { + writer.writeMessage(2, f, models_site_pb.Site.serializeBinaryToWriter); + } + f = message.getMemberClass(); + if (f != null) { + writer.writeMessage( + 3, + f, + models_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } + f = message.getMemberLevel(); + if (f != null) { + writer.writeMessage( + 4, + f, + models_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } + f = message.getBankAccount(); + if (f != null) { + writer.writeMessage( + 5, + f, + models_member_bank_account_pb.MemberBankAccountModel + .serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString(6, f); + } + f = message.getChildMemberCount(); + if (f !== 0) { + writer.writeUint64(7, f); + } + f = message.getUsername(); + if (f.length > 0) { + writer.writeString(8, f); + } + f = message.getNickname(); + if (f.length > 0) { + writer.writeString(9, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeString(10, f); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum(11, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 12)); + if (f != null) { + writer.writeUint64(12, f); + } + f = message.getMemberGameSetting(); + if (f != null) { + writer.writeMessage( + 13, + f, + models_member_game_setting_pb.MemberGameSetting.serializeBinaryToWriter + ); + } + f = message.getMemberSettlementSetting(); + if (f != null) { + writer.writeMessage( + 14, + f, + models_member_settlement_setting_pb.MemberSettlementSetting + .serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 15)); + if (f != null) { + writer.writeString(15, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 16)); + if (f != null) { + writer.writeUint64(16, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(17, 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); + } +}; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional bet.beteran.site.Site site = 2; + * @return {?proto.bet.beteran.site.Site} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getSite = function () { + return /** @type{?proto.bet.beteran.site.Site} */ ( + jspb.Message.getWrapperField(this, models_site_pb.Site, 2) + ); +}; + +/** + * @param {?proto.bet.beteran.site.Site|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setSite = function ( + value +) { + return jspb.Message.setWrapperField(this, 2, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearSite = function () { + return this.setSite(undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasSite = function () { + return jspb.Message.getField(this, 2) != null; +}; + +/** + * optional bet.beteran.member_class.MemberClass member_class = 3; + * @return {?proto.bet.beteran.member_class.MemberClass} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getMemberClass = + function () { + return /** @type{?proto.bet.beteran.member_class.MemberClass} */ ( + jspb.Message.getWrapperField(this, models_member_class_pb.MemberClass, 3) + ); + }; + +/** + * @param {?proto.bet.beteran.member_class.MemberClass|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setMemberClass = function ( + value +) { + return jspb.Message.setWrapperField(this, 3, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearMemberClass = + function () { + return this.setMemberClass(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasMemberClass = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional bet.beteran.member_level.MemberLevel member_level = 4; + * @return {?proto.bet.beteran.member_level.MemberLevel} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getMemberLevel = + function () { + return /** @type{?proto.bet.beteran.member_level.MemberLevel} */ ( + jspb.Message.getWrapperField(this, models_member_level_pb.MemberLevel, 4) + ); + }; + +/** + * @param {?proto.bet.beteran.member_level.MemberLevel|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setMemberLevel = function ( + value +) { + return jspb.Message.setWrapperField(this, 4, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearMemberLevel = + function () { + return this.setMemberLevel(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasMemberLevel = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional bet.beteran.member_bank_account.MemberBankAccountModel bank_account = 5; + * @return {?proto.bet.beteran.member_bank_account.MemberBankAccountModel} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getBankAccount = + function () { + return /** @type{?proto.bet.beteran.member_bank_account.MemberBankAccountModel} */ ( + jspb.Message.getWrapperField( + this, + models_member_bank_account_pb.MemberBankAccountModel, + 5 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_bank_account.MemberBankAccountModel|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setBankAccount = function ( + value +) { + return jspb.Message.setWrapperField(this, 5, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearBankAccount = + function () { + return this.setBankAccount(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasBankAccount = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional string parent_member_id = 6; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getParentMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setParentMemberId = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearParentMemberId = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasParentMemberId = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +/** + * optional uint64 child_member_count = 7; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getChildMemberCount = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setChildMemberCount = + function (value) { + return jspb.Message.setProto3IntField(this, 7, value); + }; + +/** + * optional string username = 8; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getUsername = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setUsername = function ( + value +) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + +/** + * optional string nickname = 9; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getNickname = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setNickname = function ( + value +) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + +/** + * optional string mobile_phone_number = 10; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getMobilePhoneNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 10, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setMobilePhoneNumber = + function (value) { + return jspb.Message.setField(this, 10, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearMobilePhoneNumber = + function () { + return jspb.Message.setField(this, 10, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasMobilePhoneNumber = + function () { + return jspb.Message.getField(this, 10) != null; + }; + +/** + * optional MemberState state = 11; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getState = function () { + return /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getFieldWithDefault(this, 11, 0) + ); +}; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setState = function ( + value +) { + return jspb.Message.setProto3EnumField(this, 11, value); +}; + +/** + * optional uint64 state_changed_at = 12; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getStateChangedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 12, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setStateChangedAt = + function (value) { + return jspb.Message.setField(this, 12, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearStateChangedAt = + function () { + return jspb.Message.setField(this, 12, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasStateChangedAt = + function () { + return jspb.Message.getField(this, 12) != null; + }; + +/** + * optional bet.beteran.member_game_setting.MemberGameSetting member_game_setting = 13; + * @return {?proto.bet.beteran.member_game_setting.MemberGameSetting} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getMemberGameSetting = + function () { + return /** @type{?proto.bet.beteran.member_game_setting.MemberGameSetting} */ ( + jspb.Message.getWrapperField( + this, + models_member_game_setting_pb.MemberGameSetting, + 13 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_game_setting.MemberGameSetting|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setMemberGameSetting = + function (value) { + return jspb.Message.setWrapperField(this, 13, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearMemberGameSetting = + function () { + return this.setMemberGameSetting(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasMemberGameSetting = + function () { + return jspb.Message.getField(this, 13) != null; + }; + +/** + * optional bet.beteran.member_settlement_setting.MemberSettlementSetting member_settlement_setting = 14; + * @return {?proto.bet.beteran.member_settlement_setting.MemberSettlementSetting} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getMemberSettlementSetting = + function () { + return /** @type{?proto.bet.beteran.member_settlement_setting.MemberSettlementSetting} */ ( + jspb.Message.getWrapperField( + this, + models_member_settlement_setting_pb.MemberSettlementSetting, + 14 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_settlement_setting.MemberSettlementSetting|undefined} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setMemberSettlementSetting = + function (value) { + return jspb.Message.setWrapperField(this, 14, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearMemberSettlementSetting = + function () { + return this.setMemberSettlementSetting(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasMemberSettlementSetting = + function () { + return jspb.Message.getField(this, 14) != null; + }; + +/** + * optional string last_signined_ip = 15; + * @return {string} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getLastSigninedIp = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 15, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setLastSigninedIp = + function (value) { + return jspb.Message.setField(this, 15, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearLastSigninedIp = + function () { + return jspb.Message.setField(this, 15, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasLastSigninedIp = + function () { + return jspb.Message.getField(this, 15) != null; + }; + +/** + * optional uint64 last_signined_at = 16; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getLastSigninedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 16, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setLastSigninedAt = + function (value) { + return jspb.Message.setField(this, 16, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearLastSigninedAt = + function () { + return jspb.Message.setField(this, 16, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasLastSigninedAt = + function () { + return jspb.Message.getField(this, 16) != null; + }; + +/** + * optional uint64 created_at = 17; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getCreatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 17, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setCreatedAt = function ( + value +) { + return jspb.Message.setProto3IntField(this, 17, value); +}; + +/** + * optional uint64 updated_at = 18; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getUpdatedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 18, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setUpdatedAt = function ( + value +) { + return jspb.Message.setProto3IntField(this, 18, value); +}; + +/** + * optional uint64 deleted_at = 19; + * @return {number} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.getDeletedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 19, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.setDeletedAt = function ( + value +) { + return jspb.Message.setField(this, 19, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.ParentMemberModel} returns this + */ +proto.bet.beteran.member.ParentMemberModel.prototype.clearDeletedAt = + function () { + return jspb.Message.setField(this, 19, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.ParentMemberModel.prototype.hasDeletedAt = + function () { + return jspb.Message.getField(this, 19) != null; + }; + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -739,7 +1722,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) { ), parentMember: (f = msg.getParentMember()) && - proto.bet.beteran.member.Member.toObject(includeInstance, f), + proto.bet.beteran.member.ParentMemberModel.toObject( + includeInstance, + f + ), childMemberCount: jspb.Message.getFieldWithDefault(msg, 7, 0), username: jspb.Message.getFieldWithDefault(msg, 8, ""), nickname: jspb.Message.getFieldWithDefault(msg, 9, ""), @@ -841,10 +1827,10 @@ proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function ( msg.setBankAccount(value); break; case 6: - var value = new proto.bet.beteran.member.Member(); + var value = new proto.bet.beteran.member.ParentMemberModel(); reader.readMessage( value, - proto.bet.beteran.member.Member.deserializeBinaryFromReader + proto.bet.beteran.member.ParentMemberModel.deserializeBinaryFromReader ); msg.setParentMember(value); break; @@ -981,7 +1967,7 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function ( writer.writeMessage( 6, f, - proto.bet.beteran.member.Member.serializeBinaryToWriter + proto.bet.beteran.member.ParentMemberModel.serializeBinaryToWriter ); } f = message.getChildMemberCount(); @@ -1210,17 +2196,21 @@ proto.bet.beteran.member.MemberModel.prototype.hasBankAccount = function () { }; /** - * optional Member parent_member = 6; - * @return {?proto.bet.beteran.member.Member} + * optional ParentMemberModel parent_member = 6; + * @return {?proto.bet.beteran.member.ParentMemberModel} */ proto.bet.beteran.member.MemberModel.prototype.getParentMember = function () { - return /** @type{?proto.bet.beteran.member.Member} */ ( - jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 6) + return /** @type{?proto.bet.beteran.member.ParentMemberModel} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.member.ParentMemberModel, + 6 + ) ); }; /** - * @param {?proto.bet.beteran.member.Member|undefined} value + * @param {?proto.bet.beteran.member.ParentMemberModel|undefined} value * @return {!proto.bet.beteran.member.MemberModel} returns this */ proto.bet.beteran.member.MemberModel.prototype.setParentMember = function (