diff --git a/src/app/modules/protobuf/c2se/backend/member_pb.d.ts b/src/app/modules/protobuf/c2se/backend/member_pb.d.ts index bd4b725..5d7c8f9 100644 --- a/src/app/modules/protobuf/c2se/backend/member_pb.d.ts +++ b/src/app/modules/protobuf/c2se/backend/member_pb.d.ts @@ -36,6 +36,58 @@ export class ListMembersRequest extends jspb.Message { index?: number ): protobuf_pagination_sort_pb.Sort; + hasSiteId(): boolean; + clearSiteId(): void; + getSiteId(): string; + setSiteId(value: string): void; + + hasMemberClassId(): boolean; + clearMemberClassId(): void; + getMemberClassId(): string; + setMemberClassId(value: string): void; + + hasMemberLevelId(): boolean; + clearMemberLevelId(): void; + getMemberLevelId(): string; + setMemberLevelId(value: string): void; + + hasReferrerMemberId(): boolean; + clearReferrerMemberId(): void; + getReferrerMemberId(): string; + setReferrerMemberId(value: string): void; + + hasUsernameLike(): boolean; + clearUsernameLike(): void; + getUsernameLike(): string; + setUsernameLike(value: string): void; + + hasNicknameLike(): boolean; + clearNicknameLike(): void; + getNicknameLike(): string; + setNicknameLike(value: string): void; + + hasMobilePhoneNumberLike(): boolean; + clearMobilePhoneNumberLike(): void; + getMobilePhoneNumberLike(): string; + setMobilePhoneNumberLike(value: string): void; + + hasLastSigninedIp(): boolean; + clearLastSigninedIp(): void; + getLastSigninedIp(): string; + setLastSigninedIp(value: string): void; + + hasState(): boolean; + clearState(): void; + getState(): models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; + setState( + value: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap] + ): void; + + hasDeletedAt(): boolean; + clearDeletedAt(): void; + getDeletedAt(): number; + setDeletedAt(value: number): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListMembersRequest.AsObject; static toObject( @@ -62,6 +114,16 @@ export namespace ListMembersRequest { pagination?: protobuf_pagination_pagination_pb.Pagination.AsObject; searchesList: Array; sortsList: Array; + siteId: string; + memberClassId: string; + memberLevelId: string; + referrerMemberId: string; + usernameLike: string; + nicknameLike: string; + mobilePhoneNumberLike: string; + lastSigninedIp: string; + state: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; + deletedAt: number; }; } @@ -105,12 +167,12 @@ export namespace ListMembersResponse { export class Result extends jspb.Message { clearMembersList(): void; - getMembersList(): Array; - setMembersList(value: Array): void; + getMembersList(): Array; + setMembersList(value: Array): void; addMembers( - value?: models_member_member_pb.Member, + value?: models_member_member_pb.MemberModel, index?: number - ): models_member_member_pb.Member; + ): models_member_member_pb.MemberModel; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Result.AsObject; @@ -132,7 +194,7 @@ export namespace ListMembersResponse { export namespace Result { export type AsObject = { - membersList: Array; + membersList: Array; }; } } @@ -209,8 +271,8 @@ export namespace GetMemberResponse { export class Result extends jspb.Message { hasMember(): boolean; clearMember(): void; - getMember(): models_member_member_pb.Member | undefined; - setMember(value?: models_member_member_pb.Member): void; + getMember(): models_member_member_pb.MemberModel | undefined; + setMember(value?: models_member_member_pb.MemberModel): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Result.AsObject; @@ -232,7 +294,7 @@ export namespace GetMemberResponse { export namespace Result { export type AsObject = { - member?: models_member_member_pb.Member.AsObject; + member?: models_member_member_pb.MemberModel.AsObject; }; } } @@ -309,8 +371,8 @@ export namespace GetMemberByUsernameResponse { export class Result extends jspb.Message { hasMember(): boolean; clearMember(): void; - getMember(): models_member_member_pb.Member | undefined; - setMember(value?: models_member_member_pb.Member): void; + getMember(): models_member_member_pb.MemberModel | undefined; + setMember(value?: models_member_member_pb.MemberModel): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Result.AsObject; @@ -332,7 +394,7 @@ export namespace GetMemberByUsernameResponse { export namespace Result { export type AsObject = { - member?: models_member_member_pb.Member.AsObject; + member?: models_member_member_pb.MemberModel.AsObject; }; } } diff --git a/src/app/modules/protobuf/c2se/backend/member_pb.js b/src/app/modules/protobuf/c2se/backend/member_pb.js index 3746120..e9a1173 100644 --- a/src/app/modules/protobuf/c2se/backend/member_pb.js +++ b/src/app/modules/protobuf/c2se/backend/member_pb.js @@ -393,6 +393,16 @@ if (jspb.Message.GENERATE_TO_OBJECT) { protobuf_pagination_sort_pb.Sort.toObject, includeInstance ), + siteId: jspb.Message.getFieldWithDefault(msg, 4, ""), + memberClassId: jspb.Message.getFieldWithDefault(msg, 5, ""), + memberLevelId: jspb.Message.getFieldWithDefault(msg, 6, ""), + referrerMemberId: jspb.Message.getFieldWithDefault(msg, 7, ""), + usernameLike: jspb.Message.getFieldWithDefault(msg, 8, ""), + nicknameLike: jspb.Message.getFieldWithDefault(msg, 9, ""), + mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 10, ""), + lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 11, ""), + state: jspb.Message.getFieldWithDefault(msg, 12, 0), + deletedAt: jspb.Message.getFieldWithDefault(msg, 13, 0), }; if (includeInstance) { @@ -457,6 +467,48 @@ proto.bet.beteran.c2se.backend.member.ListMembersRequest.deserializeBinaryFromRe ); msg.addSorts(value); break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberClassId(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberLevelId(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setReferrerMemberId(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setUsernameLike(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setNicknameLike(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumberLike(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setLastSigninedIp(value); + break; + case 12: + var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( + reader.readEnum() + ); + msg.setState(value); + break; + case 13: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDeletedAt(value); + break; default: reader.skipField(); break; @@ -513,6 +565,48 @@ proto.bet.beteran.c2se.backend.member.ListMembersRequest.serializeBinaryToWriter protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter ); } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString(6, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString(7, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeString(8, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeString(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 {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getField(message, 12) + ); + if (f != null) { + writer.writeEnum(12, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 13)); + if (f != null) { + writer.writeUint64(13, f); + } }; /** @@ -655,6 +749,386 @@ proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearSortsLis return this.setSortsList([]); }; +/** + * optional string site_id = 4; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getSiteId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setSiteId = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearSiteId = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasSiteId = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string member_class_id = 5; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getMemberClassId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setMemberClassId = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearMemberClassId = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasMemberClassId = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional string member_level_id = 6; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getMemberLevelId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setMemberLevelId = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearMemberLevelId = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasMemberLevelId = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +/** + * optional string referrer_member_id = 7; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getReferrerMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setReferrerMemberId = + function (value) { + return jspb.Message.setField(this, 7, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearReferrerMemberId = + function () { + return jspb.Message.setField(this, 7, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasReferrerMemberId = + function () { + return jspb.Message.getField(this, 7) != null; + }; + +/** + * optional string username_like = 8; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getUsernameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 8, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setUsernameLike = + function (value) { + return jspb.Message.setField(this, 8, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearUsernameLike = + function () { + return jspb.Message.setField(this, 8, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasUsernameLike = + function () { + return jspb.Message.getField(this, 8) != null; + }; + +/** + * optional string nickname_like = 9; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getNicknameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 9, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setNicknameLike = + function (value) { + return jspb.Message.setField(this, 9, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearNicknameLike = + function () { + return jspb.Message.setField(this, 9, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasNicknameLike = + function () { + return jspb.Message.getField(this, 9) != null; + }; + +/** + * optional string mobile_phone_number_like = 10; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getMobilePhoneNumberLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 10, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setMobilePhoneNumberLike = + function (value) { + return jspb.Message.setField(this, 10, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearMobilePhoneNumberLike = + function () { + return jspb.Message.setField(this, 10, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasMobilePhoneNumberLike = + function () { + return jspb.Message.getField(this, 10) != null; + }; + +/** + * optional string last_signined_ip = 11; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getLastSigninedIp = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 11, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setLastSigninedIp = + function (value) { + return jspb.Message.setField(this, 11, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearLastSigninedIp = + function () { + return jspb.Message.setField(this, 11, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasLastSigninedIp = + function () { + return jspb.Message.getField(this, 11) != null; + }; + +/** + * optional bet.beteran.member.MemberState state = 12; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getState = + function () { + return /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getFieldWithDefault(this, 12, 0) + ); + }; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setState = + function (value) { + return jspb.Message.setField(this, 12, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearState = + function () { + return jspb.Message.setField(this, 12, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasState = + function () { + return jspb.Message.getField(this, 12) != null; + }; + +/** + * optional uint64 deleted_at = 13; + * @return {number} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.getDeletedAt = + function () { + return /** @type {number} */ ( + jspb.Message.getFieldWithDefault(this, 13, 0) + ); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.setDeletedAt = + function (value) { + return jspb.Message.setField(this, 13, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.ListMembersRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.clearDeletedAt = + function () { + return jspb.Message.setField(this, 13, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.ListMembersRequest.prototype.hasDeletedAt = + function () { + return jspb.Message.getField(this, 13) != null; + }; + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -850,7 +1324,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) { obj = { membersList: jspb.Message.toObjectList( msg.getMembersList(), - models_member_member_pb.Member.toObject, + models_member_member_pb.MemberModel.toObject, includeInstance ), }; @@ -894,10 +1368,10 @@ proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.deserializeBina var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new models_member_member_pb.Member(); + var value = new models_member_member_pb.MemberModel(); reader.readMessage( value, - models_member_member_pb.Member.deserializeBinaryFromReader + models_member_member_pb.MemberModel.deserializeBinaryFromReader ); msg.addMembers(value); break; @@ -938,28 +1412,28 @@ proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.serializeBinary writer.writeRepeatedMessage( 1, f, - models_member_member_pb.Member.serializeBinaryToWriter + models_member_member_pb.MemberModel.serializeBinaryToWriter ); } }; /** - * repeated bet.beteran.member.Member members = 1; - * @return {!Array} + * repeated bet.beteran.member.MemberModel members = 1; + * @return {!Array} */ proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.getMembersList = function () { - return /** @type{!Array} */ ( + return /** @type{!Array} */ ( jspb.Message.getRepeatedWrapperField( this, - models_member_member_pb.Member, + models_member_member_pb.MemberModel, 1 ) ); }; /** - * @param {!Array} value + * @param {!Array} value * @return {!proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result} returns this */ proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.setMembersList = @@ -968,9 +1442,9 @@ proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.setMe }; /** - * @param {!proto.bet.beteran.member.Member=} opt_value + * @param {!proto.bet.beteran.member.MemberModel=} opt_value * @param {number=} opt_index - * @return {!proto.bet.beteran.member.Member} + * @return {!proto.bet.beteran.member.MemberModel} */ proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.addMembers = function (opt_value, opt_index) { @@ -978,7 +1452,7 @@ proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.prototype.addMe this, 1, opt_value, - proto.bet.beteran.member.Member, + proto.bet.beteran.member.MemberModel, opt_index ); }; @@ -1399,7 +1873,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) { obj = { member: (f = msg.getMember()) && - models_member_member_pb.Member.toObject(includeInstance, f), + models_member_member_pb.MemberModel.toObject(includeInstance, f), }; if (includeInstance) { @@ -1441,10 +1915,10 @@ proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.deserializeBinary var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new models_member_member_pb.Member(); + var value = new models_member_member_pb.MemberModel(); reader.readMessage( value, - models_member_member_pb.Member.deserializeBinaryFromReader + models_member_member_pb.MemberModel.deserializeBinaryFromReader ); msg.setMember(value); break; @@ -1485,24 +1959,24 @@ proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.serializeBinaryTo writer.writeMessage( 1, f, - models_member_member_pb.Member.serializeBinaryToWriter + models_member_member_pb.MemberModel.serializeBinaryToWriter ); } }; /** - * optional bet.beteran.member.Member member = 1; - * @return {?proto.bet.beteran.member.Member} + * optional bet.beteran.member.MemberModel member = 1; + * @return {?proto.bet.beteran.member.MemberModel} */ proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.prototype.getMember = function () { - return /** @type{?proto.bet.beteran.member.Member} */ ( - jspb.Message.getWrapperField(this, models_member_member_pb.Member, 1) + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_member_pb.MemberModel, 1) ); }; /** - * @param {?proto.bet.beteran.member.Member|undefined} value + * @param {?proto.bet.beteran.member.MemberModel|undefined} value * @return {!proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result} returns this */ proto.bet.beteran.c2se.backend.member.GetMemberResponse.Result.prototype.setMember = @@ -1933,7 +2407,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) { obj = { member: (f = msg.getMember()) && - models_member_member_pb.Member.toObject(includeInstance, f), + models_member_member_pb.MemberModel.toObject(includeInstance, f), }; if (includeInstance) { @@ -1975,10 +2449,10 @@ proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.deseria var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new models_member_member_pb.Member(); + var value = new models_member_member_pb.MemberModel(); reader.readMessage( value, - models_member_member_pb.Member.deserializeBinaryFromReader + models_member_member_pb.MemberModel.deserializeBinaryFromReader ); msg.setMember(value); break; @@ -2019,24 +2493,24 @@ proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.seriali writer.writeMessage( 1, f, - models_member_member_pb.Member.serializeBinaryToWriter + models_member_member_pb.MemberModel.serializeBinaryToWriter ); } }; /** - * optional bet.beteran.member.Member member = 1; - * @return {?proto.bet.beteran.member.Member} + * optional bet.beteran.member.MemberModel member = 1; + * @return {?proto.bet.beteran.member.MemberModel} */ proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.prototype.getMember = function () { - return /** @type{?proto.bet.beteran.member.Member} */ ( - jspb.Message.getWrapperField(this, models_member_member_pb.Member, 1) + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_member_pb.MemberModel, 1) ); }; /** - * @param {?proto.bet.beteran.member.Member|undefined} value + * @param {?proto.bet.beteran.member.MemberModel|undefined} value * @return {!proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result} returns this */ proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.prototype.setMember = diff --git a/src/app/modules/protobuf/c2se/backend/site_pb.d.ts b/src/app/modules/protobuf/c2se/backend/site_pb.d.ts index c32b1d3..87c22eb 100644 --- a/src/app/modules/protobuf/c2se/backend/site_pb.d.ts +++ b/src/app/modules/protobuf/c2se/backend/site_pb.d.ts @@ -9,11 +9,8 @@ import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb' import * as models_domain_site_pb from '../../models/domain/site_pb'; export const SUBJECT_LIST_SITES: string; - export const SUBJECT_CREATE_SITE: string; - export const SUBJECT_UPDATE_SITE: string; - export const SUBJECT_DELETE_SITE: string; export class ListSitesRequest extends jspb.Message { @@ -38,6 +35,36 @@ export class ListSitesRequest extends jspb.Message { index?: number ): protobuf_pagination_sort_pb.Sort; + hasUrlLike(): boolean; + clearUrlLike(): void; + getUrlLike(): string; + setUrlLike(value: string): void; + + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + hasPathLike(): boolean; + clearPathLike(): void; + getPathLike(): string; + setPathLike(value: string): void; + + hasShow(): boolean; + clearShow(): void; + getShow(): boolean; + setShow(value: boolean): void; + + hasCanUse(): boolean; + clearCanUse(): void; + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemoLike(): boolean; + clearMemoLike(): void; + getMemoLike(): string; + setMemoLike(value: string): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListSitesRequest.AsObject; static toObject( @@ -64,6 +91,12 @@ export namespace ListSitesRequest { pagination?: protobuf_pagination_pagination_pb.Pagination.AsObject; searchesList: Array; sortsList: Array; + urlLike: string; + nameLike: string; + pathLike: string; + show: boolean; + canUse: boolean; + memoLike: string; }; } diff --git a/src/app/modules/protobuf/c2se/backend/site_pb.js b/src/app/modules/protobuf/c2se/backend/site_pb.js index 131abd4..d93e52c 100644 --- a/src/app/modules/protobuf/c2se/backend/site_pb.js +++ b/src/app/modules/protobuf/c2se/backend/site_pb.js @@ -90,13 +90,10 @@ goog.exportSymbol( proto.bet.beteran.c2se.backend.site.SUBJECT_LIST_SITES = "bet.beteran.c2se.backend.site.ListSites"; - proto.bet.beteran.c2se.backend.site.SUBJECT_CREATE_SITE = "bet.beteran.c2se.backend.site.CreateSite"; - proto.bet.beteran.c2se.backend.site.SUBJECT_UPDATE_SITE = "bet.beteran.c2se.backend.site.UpdateSite"; - proto.bet.beteran.c2se.backend.site.SUBJECT_DELETE_SITE = "bet.beteran.c2se.backend.site.DeleteSite"; @@ -483,6 +480,12 @@ if (jspb.Message.GENERATE_TO_OBJECT) { protobuf_pagination_sort_pb.Sort.toObject, includeInstance ), + urlLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + nameLike: jspb.Message.getFieldWithDefault(msg, 5, ""), + pathLike: jspb.Message.getFieldWithDefault(msg, 6, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + memoLike: jspb.Message.getFieldWithDefault(msg, 9, ""), }; if (includeInstance) { @@ -547,6 +550,30 @@ proto.bet.beteran.c2se.backend.site.ListSitesRequest.deserializeBinaryFromReader ); msg.addSorts(value); break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setUrlLike(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setPathLike(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setMemoLike(value); + break; default: reader.skipField(); break; @@ -603,6 +630,30 @@ proto.bet.beteran.c2se.backend.site.ListSitesRequest.serializeBinaryToWriter = protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter ); } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString(6, f); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeBool(7, f); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeBool(8, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeString(9, f); + } }; /** @@ -745,6 +796,234 @@ proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearSortsList = return this.setSortsList([]); }; +/** + * optional string url_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getUrlLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setUrlLike = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearUrlLike = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasUrlLike = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string name_like = 5; + * @return {string} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getNameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setNameLike = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearNameLike = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasNameLike = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional string path_like = 6; + * @return {string} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getPathLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setPathLike = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearPathLike = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasPathLike = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +/** + * optional bool show = 7; + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getShow = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 7, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setShow = + function (value) { + return jspb.Message.setField(this, 7, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearShow = + function () { + return jspb.Message.setField(this, 7, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasShow = + function () { + return jspb.Message.getField(this, 7) != null; + }; + +/** + * optional bool can_use = 8; + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getCanUse = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 8, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setCanUse = + function (value) { + return jspb.Message.setField(this, 8, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearCanUse = + function () { + return jspb.Message.setField(this, 8, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasCanUse = + function () { + return jspb.Message.getField(this, 8) != null; + }; + +/** + * optional string memo_like = 9; + * @return {string} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getMemoLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 9, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setMemoLike = + function (value) { + return jspb.Message.setField(this, 9, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearMemoLike = + function () { + return jspb.Message.setField(this, 9, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasMemoLike = + function () { + return jspb.Message.getField(this, 9) != null; + }; + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. diff --git a/src/app/modules/protobuf/models/member/member_class_pb.d.ts b/src/app/modules/protobuf/models/member/member_class_pb.d.ts index 43b3e1e..77d6851 100644 --- a/src/app/modules/protobuf/models/member/member_class_pb.d.ts +++ b/src/app/modules/protobuf/models/member/member_class_pb.d.ts @@ -7,10 +7,10 @@ export class MemberClass extends jspb.Message { getId(): string; setId(value: string): void; - hasParent(): boolean; - clearParent(): void; - getParent(): MemberClass | undefined; - setParent(value?: MemberClass): void; + hasParentId(): boolean; + clearParentId(): void; + getParentId(): string; + setParentId(value: string): void; getName(): string; setName(value: string): void; @@ -50,7 +50,7 @@ export class MemberClass extends jspb.Message { export namespace MemberClass { export type AsObject = { id: string; - parent?: MemberClass.AsObject; + parentId: string; name: string; createdAt: number; updatedAt: number; diff --git a/src/app/modules/protobuf/models/member/member_class_pb.js b/src/app/modules/protobuf/models/member/member_class_pb.js index a76f1f6..e4406bb 100644 --- a/src/app/modules/protobuf/models/member/member_class_pb.js +++ b/src/app/modules/protobuf/models/member/member_class_pb.js @@ -79,9 +79,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - parent: - (f = msg.getParent()) && - proto.bet.beteran.member.MemberClass.toObject(includeInstance, f), + parentId: jspb.Message.getFieldWithDefault(msg, 2, ""), name: jspb.Message.getFieldWithDefault(msg, 3, ""), createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0), updatedAt: jspb.Message.getFieldWithDefault(msg, 5, 0), @@ -131,12 +129,8 @@ proto.bet.beteran.member.MemberClass.deserializeBinaryFromReader = function ( msg.setId(value); break; case 2: - var value = new proto.bet.beteran.member.MemberClass(); - reader.readMessage( - value, - proto.bet.beteran.member.MemberClass.deserializeBinaryFromReader - ); - msg.setParent(value); + var value = /** @type {string} */ (reader.readString()); + msg.setParentId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); @@ -188,13 +182,9 @@ proto.bet.beteran.member.MemberClass.serializeBinaryToWriter = function ( if (f.length > 0) { writer.writeString(1, f); } - f = message.getParent(); + f = /** @type {string} */ (jspb.Message.getField(message, 2)); if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.member.MemberClass.serializeBinaryToWriter - ); + writer.writeString(2, f); } f = message.getName(); if (f.length > 0) { @@ -231,36 +221,34 @@ proto.bet.beteran.member.MemberClass.prototype.setId = function (value) { }; /** - * optional MemberClass parent = 2; - * @return {?proto.bet.beteran.member.MemberClass} + * optional string parent_id = 2; + * @return {string} */ -proto.bet.beteran.member.MemberClass.prototype.getParent = function () { - return /** @type{?proto.bet.beteran.member.MemberClass} */ ( - jspb.Message.getWrapperField(this, proto.bet.beteran.member.MemberClass, 2) - ); +proto.bet.beteran.member.MemberClass.prototype.getParentId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {?proto.bet.beteran.member.MemberClass|undefined} value + * @param {string} value * @return {!proto.bet.beteran.member.MemberClass} returns this */ -proto.bet.beteran.member.MemberClass.prototype.setParent = function (value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.bet.beteran.member.MemberClass.prototype.setParentId = function (value) { + return jspb.Message.setField(this, 2, value); }; /** - * Clears the message field making it undefined. + * Clears the field making it undefined. * @return {!proto.bet.beteran.member.MemberClass} returns this */ -proto.bet.beteran.member.MemberClass.prototype.clearParent = function () { - return this.setParent(undefined); +proto.bet.beteran.member.MemberClass.prototype.clearParentId = function () { + return jspb.Message.setField(this, 2, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.member.MemberClass.prototype.hasParent = function () { +proto.bet.beteran.member.MemberClass.prototype.hasParentId = function () { return jspb.Message.getField(this, 2) != null; }; diff --git a/src/app/modules/protobuf/models/member/member_level_pb.d.ts b/src/app/modules/protobuf/models/member/member_level_pb.d.ts index 19bf709..768dbcc 100644 --- a/src/app/modules/protobuf/models/member/member_level_pb.d.ts +++ b/src/app/modules/protobuf/models/member/member_level_pb.d.ts @@ -10,8 +10,8 @@ export class MemberLevel extends jspb.Message { getName(): string; setName(value: string): void; - getOrder(): number; - setOrder(value: number): void; + getSortOrder(): number; + setSortOrder(value: number): void; getCreatedAt(): number; setCreatedAt(value: number): void; @@ -49,7 +49,7 @@ export namespace MemberLevel { export type AsObject = { id: string; name: string; - order: number; + sortOrder: number; createdAt: number; updatedAt: number; deletedAt: number; diff --git a/src/app/modules/protobuf/models/member/member_level_pb.js b/src/app/modules/protobuf/models/member/member_level_pb.js index 51d208f..9733613 100644 --- a/src/app/modules/protobuf/models/member/member_level_pb.js +++ b/src/app/modules/protobuf/models/member/member_level_pb.js @@ -80,7 +80,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) { obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), - order: jspb.Message.getFieldWithDefault(msg, 3, 0), + sortOrder: jspb.Message.getFieldWithDefault(msg, 3, 0), createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0), updatedAt: jspb.Message.getFieldWithDefault(msg, 5, 0), deletedAt: jspb.Message.getFieldWithDefault(msg, 6, 0), @@ -134,7 +134,7 @@ proto.bet.beteran.member.MemberLevel.deserializeBinaryFromReader = function ( break; case 3: var value = /** @type {number} */ (reader.readUint32()); - msg.setOrder(value); + msg.setSortOrder(value); break; case 4: var value = /** @type {number} */ (reader.readUint64()); @@ -186,7 +186,7 @@ proto.bet.beteran.member.MemberLevel.serializeBinaryToWriter = function ( if (f.length > 0) { writer.writeString(2, f); } - f = message.getOrder(); + f = message.getSortOrder(); if (f !== 0) { writer.writeUint32(3, f); } @@ -237,10 +237,10 @@ proto.bet.beteran.member.MemberLevel.prototype.setName = function (value) { }; /** - * optional uint32 order = 3; + * optional uint32 sort_order = 3; * @return {number} */ -proto.bet.beteran.member.MemberLevel.prototype.getOrder = function () { +proto.bet.beteran.member.MemberLevel.prototype.getSortOrder = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; @@ -248,7 +248,7 @@ proto.bet.beteran.member.MemberLevel.prototype.getOrder = function () { * @param {number} value * @return {!proto.bet.beteran.member.MemberLevel} returns this */ -proto.bet.beteran.member.MemberLevel.prototype.setOrder = function (value) { +proto.bet.beteran.member.MemberLevel.prototype.setSortOrder = function (value) { return jspb.Message.setProto3IntField(this, 3, value); }; diff --git a/src/app/modules/protobuf/models/member/member_pb.d.ts b/src/app/modules/protobuf/models/member/member_pb.d.ts index 7d95e6c..f11ac32 100644 --- a/src/app/modules/protobuf/models/member/member_pb.d.ts +++ b/src/app/modules/protobuf/models/member/member_pb.d.ts @@ -10,25 +10,19 @@ export class Member extends jspb.Message { getId(): string; setId(value: string): void; - hasSite(): boolean; - clearSite(): void; - getSite(): models_domain_site_pb.Site | undefined; - setSite(value?: models_domain_site_pb.Site): void; + getSiteId(): string; + setSiteId(value: string): void; - hasMemberClass(): boolean; - clearMemberClass(): void; - getMemberClass(): models_member_member_class_pb.MemberClass | undefined; - setMemberClass(value?: models_member_member_class_pb.MemberClass): void; + getMemberClassId(): string; + setMemberClassId(value: string): void; - hasMemberLevel(): boolean; - clearMemberLevel(): void; - getMemberLevel(): models_member_member_level_pb.MemberLevel | undefined; - setMemberLevel(value?: models_member_member_level_pb.MemberLevel): void; + getMemberLevelId(): string; + setMemberLevelId(value: string): void; - hasReferrer(): boolean; - clearReferrer(): void; - getReferrer(): Member | undefined; - setReferrer(value?: Member): void; + hasReferrerMemberId(): boolean; + clearReferrerMemberId(): void; + getReferrerMemberId(): string; + setReferrerMemberId(value: string): void; getReferredCount(): number; setReferredCount(value: number): void; @@ -92,12 +86,121 @@ export class Member extends jspb.Message { } export namespace Member { + export type AsObject = { + id: string; + siteId: string; + memberClassId: string; + memberLevelId: string; + referrerMemberId: string; + referredCount: number; + username: string; + nickname: string; + mobilePhoneNumber: string; + state: MemberStateMap[keyof MemberStateMap]; + stateChangedAt: number; + lastSigninedIp: string; + lastSigninedAt: number; + createdAt: number; + updatedAt: number; + deletedAt: number; + }; +} + +export class MemberModel extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasSite(): boolean; + clearSite(): void; + getSite(): models_domain_site_pb.Site | undefined; + setSite(value?: models_domain_site_pb.Site): void; + + hasMemberClass(): boolean; + clearMemberClass(): void; + getMemberClass(): models_member_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_member_class_pb.MemberClass): void; + + hasMemberLevel(): boolean; + clearMemberLevel(): void; + getMemberLevel(): models_member_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_member_level_pb.MemberLevel): void; + + hasReferrerMember(): boolean; + clearReferrerMember(): void; + getReferrerMember(): Member | undefined; + setReferrerMember(value?: Member): void; + + getReferredCount(): number; + setReferredCount(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; + + 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): MemberModel.AsObject; + static toObject( + includeInstance: boolean, + msg: MemberModel + ): MemberModel.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: MemberModel, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): MemberModel; + static deserializeBinaryFromReader( + message: MemberModel, + reader: jspb.BinaryReader + ): MemberModel; +} + +export namespace MemberModel { export type AsObject = { id: string; site?: models_domain_site_pb.Site.AsObject; memberClass?: models_member_member_class_pb.MemberClass.AsObject; memberLevel?: models_member_member_level_pb.MemberLevel.AsObject; - referrer?: Member.AsObject; + referrerMember?: Member.AsObject; referredCount: number; username: string; nickname: string; diff --git a/src/app/modules/protobuf/models/member/member_pb.js b/src/app/modules/protobuf/models/member/member_pb.js index 2c438a2..4e9213c 100644 --- a/src/app/modules/protobuf/models/member/member_pb.js +++ b/src/app/modules/protobuf/models/member/member_pb.js @@ -24,6 +24,7 @@ goog.object.extend(proto, models_member_member_class_pb); var models_member_member_level_pb = require("../../models/member/member_level_pb.js"); goog.object.extend(proto, models_member_member_level_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); /** * Generated by JsPbCodeGenerator. @@ -47,6 +48,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.MemberModel = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.member.MemberModel, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.member.MemberModel.displayName = + "proto.bet.beteran.member.MemberModel"; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** @@ -80,24 +103,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - site: - (f = msg.getSite()) && - models_domain_site_pb.Site.toObject(includeInstance, f), - memberClass: - (f = msg.getMemberClass()) && - models_member_member_class_pb.MemberClass.toObject( - includeInstance, - f - ), - memberLevel: - (f = msg.getMemberLevel()) && - models_member_member_level_pb.MemberLevel.toObject( - includeInstance, - f - ), - referrer: - (f = msg.getReferrer()) && - proto.bet.beteran.member.Member.toObject(includeInstance, f), + siteId: jspb.Message.getFieldWithDefault(msg, 2, ""), + memberClassId: jspb.Message.getFieldWithDefault(msg, 3, ""), + memberLevelId: jspb.Message.getFieldWithDefault(msg, 4, ""), + referrerMemberId: jspb.Message.getFieldWithDefault(msg, 5, ""), referredCount: jspb.Message.getFieldWithDefault(msg, 6, 0), username: jspb.Message.getFieldWithDefault(msg, 7, ""), nickname: jspb.Message.getFieldWithDefault(msg, 8, ""), @@ -154,36 +163,20 @@ proto.bet.beteran.member.Member.deserializeBinaryFromReader = function ( msg.setId(value); break; case 2: - var value = new models_domain_site_pb.Site(); - reader.readMessage( - value, - models_domain_site_pb.Site.deserializeBinaryFromReader - ); - msg.setSite(value); + var value = /** @type {string} */ (reader.readString()); + msg.setSiteId(value); break; case 3: - var value = new models_member_member_class_pb.MemberClass(); - reader.readMessage( - value, - models_member_member_class_pb.MemberClass.deserializeBinaryFromReader - ); - msg.setMemberClass(value); + var value = /** @type {string} */ (reader.readString()); + msg.setMemberClassId(value); break; case 4: - var value = new models_member_member_level_pb.MemberLevel(); - reader.readMessage( - value, - models_member_member_level_pb.MemberLevel.deserializeBinaryFromReader - ); - msg.setMemberLevel(value); + var value = /** @type {string} */ (reader.readString()); + msg.setMemberLevelId(value); break; case 5: - var value = new proto.bet.beteran.member.Member(); - reader.readMessage( - value, - proto.bet.beteran.member.Member.deserializeBinaryFromReader - ); - msg.setReferrer(value); + var value = /** @type {string} */ (reader.readString()); + msg.setReferrerMemberId(value); break; case 6: var value = /** @type {number} */ (reader.readUint64()); @@ -265,37 +258,21 @@ proto.bet.beteran.member.Member.serializeBinaryToWriter = function ( if (f.length > 0) { writer.writeString(1, f); } - f = message.getSite(); - if (f != null) { - writer.writeMessage( - 2, - f, - models_domain_site_pb.Site.serializeBinaryToWriter - ); + f = message.getSiteId(); + if (f.length > 0) { + writer.writeString(2, f); } - f = message.getMemberClass(); - if (f != null) { - writer.writeMessage( - 3, - f, - models_member_member_class_pb.MemberClass.serializeBinaryToWriter - ); + f = message.getMemberClassId(); + if (f.length > 0) { + writer.writeString(3, f); } - f = message.getMemberLevel(); - if (f != null) { - writer.writeMessage( - 4, - f, - models_member_member_level_pb.MemberLevel.serializeBinaryToWriter - ); + f = message.getMemberLevelId(); + if (f.length > 0) { + writer.writeString(4, f); } - f = message.getReferrer(); + f = /** @type {string} */ (jspb.Message.getField(message, 5)); if (f != null) { - writer.writeMessage( - 5, - f, - proto.bet.beteran.member.Member.serializeBinaryToWriter - ); + writer.writeString(5, f); } f = message.getReferredCount(); if (f !== 0) { @@ -360,146 +337,84 @@ proto.bet.beteran.member.Member.prototype.setId = function (value) { }; /** - * optional bet.beteran.domain.Site site = 2; - * @return {?proto.bet.beteran.domain.Site} + * optional string site_id = 2; + * @return {string} */ -proto.bet.beteran.member.Member.prototype.getSite = function () { - return /** @type{?proto.bet.beteran.domain.Site} */ ( - jspb.Message.getWrapperField(this, models_domain_site_pb.Site, 2) - ); +proto.bet.beteran.member.Member.prototype.getSiteId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {?proto.bet.beteran.domain.Site|undefined} value + * @param {string} value * @return {!proto.bet.beteran.member.Member} returns this */ -proto.bet.beteran.member.Member.prototype.setSite = function (value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.bet.beteran.member.Member.prototype.setSiteId = function (value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Clears the message field making it undefined. + * optional string member_class_id = 3; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getMemberClassId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + +/** + * @param {string} value * @return {!proto.bet.beteran.member.Member} returns this */ -proto.bet.beteran.member.Member.prototype.clearSite = function () { - return this.setSite(undefined); +proto.bet.beteran.member.Member.prototype.setMemberClassId = function (value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + +/** + * optional string member_level_id = 4; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getMemberLevelId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setMemberLevelId = function (value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + +/** + * optional string referrer_member_id = 5; + * @return {string} + */ +proto.bet.beteran.member.Member.prototype.getReferrerMemberId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.setReferrerMemberId = function ( + value +) { + return jspb.Message.setField(this, 5, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.Member} returns this + */ +proto.bet.beteran.member.Member.prototype.clearReferrerMemberId = function () { + return jspb.Message.setField(this, 5, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ -proto.bet.beteran.member.Member.prototype.hasSite = function () { - return jspb.Message.getField(this, 2) != null; -}; - -/** - * optional MemberClass member_class = 3; - * @return {?proto.bet.beteran.member.MemberClass} - */ -proto.bet.beteran.member.Member.prototype.getMemberClass = function () { - return /** @type{?proto.bet.beteran.member.MemberClass} */ ( - jspb.Message.getWrapperField( - this, - models_member_member_class_pb.MemberClass, - 3 - ) - ); -}; - -/** - * @param {?proto.bet.beteran.member.MemberClass|undefined} value - * @return {!proto.bet.beteran.member.Member} returns this - */ -proto.bet.beteran.member.Member.prototype.setMemberClass = function (value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.bet.beteran.member.Member} returns this - */ -proto.bet.beteran.member.Member.prototype.clearMemberClass = function () { - return this.setMemberClass(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.member.Member.prototype.hasMemberClass = function () { - return jspb.Message.getField(this, 3) != null; -}; - -/** - * optional MemberLevel member_level = 4; - * @return {?proto.bet.beteran.member.MemberLevel} - */ -proto.bet.beteran.member.Member.prototype.getMemberLevel = function () { - return /** @type{?proto.bet.beteran.member.MemberLevel} */ ( - jspb.Message.getWrapperField( - this, - models_member_member_level_pb.MemberLevel, - 4 - ) - ); -}; - -/** - * @param {?proto.bet.beteran.member.MemberLevel|undefined} value - * @return {!proto.bet.beteran.member.Member} returns this - */ -proto.bet.beteran.member.Member.prototype.setMemberLevel = function (value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.bet.beteran.member.Member} returns this - */ -proto.bet.beteran.member.Member.prototype.clearMemberLevel = function () { - return this.setMemberLevel(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.member.Member.prototype.hasMemberLevel = function () { - return jspb.Message.getField(this, 4) != null; -}; - -/** - * optional Member referrer = 5; - * @return {?proto.bet.beteran.member.Member} - */ -proto.bet.beteran.member.Member.prototype.getReferrer = function () { - return /** @type{?proto.bet.beteran.member.Member} */ ( - jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 5) - ); -}; - -/** - * @param {?proto.bet.beteran.member.Member|undefined} value - * @return {!proto.bet.beteran.member.Member} returns this - */ -proto.bet.beteran.member.Member.prototype.setReferrer = function (value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.bet.beteran.member.Member} returns this - */ -proto.bet.beteran.member.Member.prototype.clearReferrer = function () { - return this.setReferrer(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.member.Member.prototype.hasReferrer = function () { +proto.bet.beteran.member.Member.prototype.hasReferrerMemberId = function () { return jspb.Message.getField(this, 5) != null; }; @@ -763,6 +678,750 @@ 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.MemberModel.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.member.MemberModel.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.MemberModel} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.member.MemberModel.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + site: + (f = msg.getSite()) && + models_domain_site_pb.Site.toObject(includeInstance, f), + memberClass: + (f = msg.getMemberClass()) && + models_member_member_class_pb.MemberClass.toObject( + includeInstance, + f + ), + memberLevel: + (f = msg.getMemberLevel()) && + models_member_member_level_pb.MemberLevel.toObject( + includeInstance, + f + ), + referrerMember: + (f = msg.getReferrerMember()) && + proto.bet.beteran.member.Member.toObject(includeInstance, f), + referredCount: jspb.Message.getFieldWithDefault(msg, 6, 0), + username: jspb.Message.getFieldWithDefault(msg, 7, ""), + nickname: jspb.Message.getFieldWithDefault(msg, 8, ""), + mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 9, ""), + state: jspb.Message.getFieldWithDefault(msg, 10, 0), + stateChangedAt: jspb.Message.getFieldWithDefault(msg, 11, 0), + lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 12, ""), + lastSigninedAt: jspb.Message.getFieldWithDefault(msg, 13, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 14, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 15, 0), + deletedAt: jspb.Message.getFieldWithDefault(msg, 16, 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.MemberModel} + */ +proto.bet.beteran.member.MemberModel.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.member.MemberModel(); + return proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.member.MemberModel} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.member.MemberModel.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_domain_site_pb.Site(); + reader.readMessage( + value, + models_domain_site_pb.Site.deserializeBinaryFromReader + ); + msg.setSite(value); + break; + case 3: + var value = new models_member_member_class_pb.MemberClass(); + reader.readMessage( + value, + models_member_member_class_pb.MemberClass.deserializeBinaryFromReader + ); + msg.setMemberClass(value); + break; + case 4: + var value = new models_member_member_level_pb.MemberLevel(); + reader.readMessage( + value, + models_member_member_level_pb.MemberLevel.deserializeBinaryFromReader + ); + msg.setMemberLevel(value); + break; + case 5: + var value = new proto.bet.beteran.member.Member(); + reader.readMessage( + value, + proto.bet.beteran.member.Member.deserializeBinaryFromReader + ); + msg.setReferrerMember(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setReferredCount(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setNickname(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 10: + var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( + reader.readEnum() + ); + msg.setState(value); + break; + case 11: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStateChangedAt(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setLastSigninedIp(value); + break; + case 13: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLastSigninedAt(value); + break; + case 14: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 15: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + case 16: + 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.MemberModel.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.member.MemberModel.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.MemberModel} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.member.MemberModel.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_domain_site_pb.Site.serializeBinaryToWriter + ); + } + f = message.getMemberClass(); + if (f != null) { + writer.writeMessage( + 3, + f, + models_member_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } + f = message.getMemberLevel(); + if (f != null) { + writer.writeMessage( + 4, + f, + models_member_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } + f = message.getReferrerMember(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.bet.beteran.member.Member.serializeBinaryToWriter + ); + } + f = message.getReferredCount(); + if (f !== 0) { + writer.writeUint64(6, f); + } + f = message.getUsername(); + if (f.length > 0) { + writer.writeString(7, f); + } + f = message.getNickname(); + if (f.length > 0) { + writer.writeString(8, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeString(9, f); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum(10, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeUint64(11, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 12)); + if (f != null) { + writer.writeString(12, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 13)); + if (f != null) { + writer.writeUint64(13, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(14, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(15, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 16)); + if (f != null) { + writer.writeUint64(16, f); + } +}; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getId = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional bet.beteran.domain.Site site = 2; + * @return {?proto.bet.beteran.domain.Site} + */ +proto.bet.beteran.member.MemberModel.prototype.getSite = function () { + return /** @type{?proto.bet.beteran.domain.Site} */ ( + jspb.Message.getWrapperField(this, models_domain_site_pb.Site, 2) + ); +}; + +/** + * @param {?proto.bet.beteran.domain.Site|undefined} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setSite = function (value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearSite = function () { + return this.setSite(undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasSite = function () { + return jspb.Message.getField(this, 2) != null; +}; + +/** + * optional MemberClass member_class = 3; + * @return {?proto.bet.beteran.member.MemberClass} + */ +proto.bet.beteran.member.MemberModel.prototype.getMemberClass = function () { + return /** @type{?proto.bet.beteran.member.MemberClass} */ ( + jspb.Message.getWrapperField( + this, + models_member_member_class_pb.MemberClass, + 3 + ) + ); +}; + +/** + * @param {?proto.bet.beteran.member.MemberClass|undefined} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setMemberClass = function ( + value +) { + return jspb.Message.setWrapperField(this, 3, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearMemberClass = function () { + return this.setMemberClass(undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasMemberClass = function () { + return jspb.Message.getField(this, 3) != null; +}; + +/** + * optional MemberLevel member_level = 4; + * @return {?proto.bet.beteran.member.MemberLevel} + */ +proto.bet.beteran.member.MemberModel.prototype.getMemberLevel = function () { + return /** @type{?proto.bet.beteran.member.MemberLevel} */ ( + jspb.Message.getWrapperField( + this, + models_member_member_level_pb.MemberLevel, + 4 + ) + ); +}; + +/** + * @param {?proto.bet.beteran.member.MemberLevel|undefined} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setMemberLevel = function ( + value +) { + return jspb.Message.setWrapperField(this, 4, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearMemberLevel = function () { + return this.setMemberLevel(undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasMemberLevel = function () { + return jspb.Message.getField(this, 4) != null; +}; + +/** + * optional Member referrer_member = 5; + * @return {?proto.bet.beteran.member.Member} + */ +proto.bet.beteran.member.MemberModel.prototype.getReferrerMember = function () { + return /** @type{?proto.bet.beteran.member.Member} */ ( + jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 5) + ); +}; + +/** + * @param {?proto.bet.beteran.member.Member|undefined} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setReferrerMember = function ( + value +) { + return jspb.Message.setWrapperField(this, 5, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearReferrerMember = + function () { + return this.setReferrerMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasReferrerMember = function () { + return jspb.Message.getField(this, 5) != null; +}; + +/** + * optional uint64 referred_count = 6; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getReferredCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setReferredCount = function ( + value +) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + +/** + * optional string username = 7; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getUsername = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + +/** + * @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, 7, value); +}; + +/** + * optional string nickname = 8; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getNickname = 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.setNickname = function (value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + +/** + * optional string mobile_phone_number = 9; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getMobilePhoneNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 9, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setMobilePhoneNumber = function ( + value +) { + return jspb.Message.setField(this, 9, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearMobilePhoneNumber = + function () { + return jspb.Message.setField(this, 9, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasMobilePhoneNumber = + function () { + return jspb.Message.getField(this, 9) != null; + }; + +/** + * optional MemberState state = 10; + * @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, 10, 0) + ); +}; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setState = function (value) { + return jspb.Message.setProto3EnumField(this, 10, value); +}; + +/** + * optional uint64 state_changed_at = 11; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getStateChangedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setStateChangedAt = function ( + value +) { + return jspb.Message.setField(this, 11, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearStateChangedAt = + function () { + return jspb.Message.setField(this, 11, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasStateChangedAt = function () { + return jspb.Message.getField(this, 11) != null; +}; + +/** + * optional string last_signined_ip = 12; + * @return {string} + */ +proto.bet.beteran.member.MemberModel.prototype.getLastSigninedIp = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setLastSigninedIp = function ( + value +) { + return jspb.Message.setField(this, 12, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedIp = + function () { + return jspb.Message.setField(this, 12, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedIp = function () { + return jspb.Message.getField(this, 12) != null; +}; + +/** + * optional uint64 last_signined_at = 13; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getLastSigninedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.setLastSigninedAt = function ( + value +) { + return jspb.Message.setField(this, 13, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedAt = + function () { + return jspb.Message.setField(this, 13, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedAt = function () { + return jspb.Message.getField(this, 13) != null; +}; + +/** + * optional uint64 created_at = 14; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getCreatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 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, 14, value); +}; + +/** + * optional uint64 updated_at = 15; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 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, 15, value); +}; + +/** + * optional uint64 deleted_at = 16; + * @return {number} + */ +proto.bet.beteran.member.MemberModel.prototype.getDeletedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 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, 16, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.member.MemberModel} returns this + */ +proto.bet.beteran.member.MemberModel.prototype.clearDeletedAt = function () { + return jspb.Message.setField(this, 16, undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.member.MemberModel.prototype.hasDeletedAt = function () { + return jspb.Message.getField(this, 16) != null; +}; + /** * @enum {number} */