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 e36e401..a1d2cff 100644 --- a/src/app/modules/protobuf/c2se/backend/member_pb.d.ts +++ b/src/app/modules/protobuf/c2se/backend/member_pb.d.ts @@ -15,6 +15,144 @@ export const SUBJECT_GET_MEMBER_BY_USERNAME: string; export const SUBJECT_UPDATE_MEMBER: string; export const SUBJECT_DELETE_MEMBER: string; +export class CreateMemberRequest extends jspb.Message { + getSiteId(): string; + setSiteId(value: string): void; + + getMemberClassId(): string; + setMemberClassId(value: string): void; + + getMemberLevelId(): string; + setMemberLevelId(value: string): void; + + hasReferrerMemberUsername(): boolean; + clearReferrerMemberUsername(): void; + getReferrerMemberUsername(): string; + setReferrerMemberUsername(value: string): void; + + getUsername(): string; + setUsername(value: string): void; + + getPassword(): string; + setPassword(value: string): void; + + getNickname(): string; + setNickname(value: string): void; + + hasMobilePhoneNumber(): boolean; + clearMobilePhoneNumber(): void; + getMobilePhoneNumber(): string; + setMobilePhoneNumber(value: string): 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; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberRequest + ): CreateMemberRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberRequest; + static deserializeBinaryFromReader( + message: CreateMemberRequest, + reader: jspb.BinaryReader + ): CreateMemberRequest; +} + +export namespace CreateMemberRequest { + export type AsObject = { + siteId: string; + memberClassId: string; + memberLevelId: string; + referrerMemberUsername: string; + username: string; + password: string; + nickname: string; + mobilePhoneNumber: string; + state: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; + }; +} + +export class CreateMemberResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_error_pb.Error | undefined; + setError(value?: protobuf_rpc_error_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateMemberResponse.Result | undefined; + setResult(value?: CreateMemberResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberResponse + ): CreateMemberResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberResponse; + static deserializeBinaryFromReader( + message: CreateMemberResponse, + reader: jspb.BinaryReader + ): CreateMemberResponse; +} + +export namespace CreateMemberResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: CreateMemberResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_member_pb.MemberModel | undefined; + setMember(value?: models_member_member_pb.MemberModel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + member?: models_member_member_pb.MemberModel.AsObject; + }; + } +} + export class ListMembersRequest extends jspb.Message { hasPagination(): boolean; clearPagination(): void; @@ -200,140 +338,6 @@ export namespace ListMembersResponse { } } -export class CreateMemberRequest extends jspb.Message { - getSiteId(): string; - setSiteId(value: string): void; - - getMemberClassId(): string; - setMemberClassId(value: string): void; - - getMemberLevelId(): string; - setMemberLevelId(value: string): void; - - hasReferrerMemberUsername(): boolean; - clearReferrerMemberUsername(): void; - getReferrerMemberUsername(): string; - setReferrerMemberUsername(value: string): void; - - getUsername(): string; - setUsername(value: string): void; - - getNickname(): string; - setNickname(value: string): void; - - hasMobilePhoneNumber(): boolean; - clearMobilePhoneNumber(): void; - getMobilePhoneNumber(): string; - setMobilePhoneNumber(value: string): 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; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateMemberRequest.AsObject; - static toObject( - includeInstance: boolean, - msg: CreateMemberRequest - ): CreateMemberRequest.AsObject; - static extensions: { [key: number]: jspb.ExtensionFieldInfo }; - static extensionsBinary: { - [key: number]: jspb.ExtensionFieldBinaryInfo; - }; - static serializeBinaryToWriter( - message: CreateMemberRequest, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): CreateMemberRequest; - static deserializeBinaryFromReader( - message: CreateMemberRequest, - reader: jspb.BinaryReader - ): CreateMemberRequest; -} - -export namespace CreateMemberRequest { - export type AsObject = { - siteId: string; - memberClassId: string; - memberLevelId: string; - referrerMemberUsername: string; - username: string; - nickname: string; - mobilePhoneNumber: string; - state: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; - }; -} - -export class CreateMemberResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): protobuf_rpc_error_pb.Error | undefined; - setError(value?: protobuf_rpc_error_pb.Error): void; - - hasResult(): boolean; - clearResult(): void; - getResult(): CreateMemberResponse.Result | undefined; - setResult(value?: CreateMemberResponse.Result): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CreateMemberResponse.AsObject; - static toObject( - includeInstance: boolean, - msg: CreateMemberResponse - ): CreateMemberResponse.AsObject; - static extensions: { [key: number]: jspb.ExtensionFieldInfo }; - static extensionsBinary: { - [key: number]: jspb.ExtensionFieldBinaryInfo; - }; - static serializeBinaryToWriter( - message: CreateMemberResponse, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): CreateMemberResponse; - static deserializeBinaryFromReader( - message: CreateMemberResponse, - reader: jspb.BinaryReader - ): CreateMemberResponse; -} - -export namespace CreateMemberResponse { - export type AsObject = { - error?: protobuf_rpc_error_pb.Error.AsObject; - result?: CreateMemberResponse.Result.AsObject; - }; - - export class Result extends jspb.Message { - hasMember(): boolean; - clearMember(): void; - getMember(): models_member_member_pb.MemberModel | undefined; - setMember(value?: models_member_member_pb.MemberModel): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Result.AsObject; - static toObject(includeInstance: boolean, msg: Result): Result.AsObject; - static extensions: { [key: number]: jspb.ExtensionFieldInfo }; - static extensionsBinary: { - [key: number]: jspb.ExtensionFieldBinaryInfo; - }; - static serializeBinaryToWriter( - message: Result, - writer: jspb.BinaryWriter - ): void; - static deserializeBinary(bytes: Uint8Array): Result; - static deserializeBinaryFromReader( - message: Result, - reader: jspb.BinaryReader - ): Result; - } - - export namespace Result { - export type AsObject = { - member?: models_member_member_pb.MemberModel.AsObject; - }; - } -} - export class GetMemberRequest extends jspb.Message { getId(): string; setId(value: string): void; diff --git a/src/app/modules/protobuf/c2se/backend/member_pb.js b/src/app/modules/protobuf/c2se/backend/member_pb.js index a0f5116..d27f0f7 100644 --- a/src/app/modules/protobuf/c2se/backend/member_pb.js +++ b/src/app/modules/protobuf/c2se/backend/member_pb.js @@ -131,6 +131,87 @@ proto.bet.beteran.c2se.backend.member.SUBJECT_UPDATE_MEMBER = proto.bet.beteran.c2se.backend.member.SUBJECT_DELETE_MEMBER = "bet.beteran.c2se.backend.member.DeleteMember"; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.c2se.backend.member.CreateMemberRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.CreateMemberRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.CreateMemberRequest.displayName = + "proto.bet.beteran.c2se.backend.member.CreateMemberRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.c2se.backend.member.CreateMemberResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.CreateMemberResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.displayName = + "proto.bet.beteran.c2se.backend.member.CreateMemberResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.c2se.backend.member.CreateMemberResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result"; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -225,87 +306,6 @@ if (goog.DEBUG && !COMPILED) { proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.displayName = "proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result"; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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.c2se.backend.member.CreateMemberRequest = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.CreateMemberRequest, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.CreateMemberRequest.displayName = - "proto.bet.beteran.c2se.backend.member.CreateMemberRequest"; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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.c2se.backend.member.CreateMemberResponse = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.CreateMemberResponse, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.displayName = - "proto.bet.beteran.c2se.backend.member.CreateMemberResponse"; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed 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.c2se.backend.member.CreateMemberResponse.Result = function ( - opt_data -) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits( - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result, - jspb.Message -); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.displayName = - "proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result"; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -626,6 +626,808 @@ if (goog.DEBUG && !COMPILED) { "proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result"; } +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.c2se.backend.member.CreateMemberRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.CreateMemberRequest.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.c2se.backend.member.CreateMemberRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.CreateMemberRequest.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, ""), + referrerMemberUsername: jspb.Message.getFieldWithDefault(msg, 4, ""), + username: jspb.Message.getFieldWithDefault(msg, 5, ""), + password: jspb.Message.getFieldWithDefault(msg, 6, ""), + nickname: jspb.Message.getFieldWithDefault(msg, 7, ""), + mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 8, ""), + state: jspb.Message.getFieldWithDefault(msg, 9, 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.c2se.backend.member.CreateMemberRequest} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.member.CreateMemberRequest(); + return proto.bet.beteran.c2se.backend.member.CreateMemberRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.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.setReferrerMemberUsername(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setNickname(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 9: + var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( + reader.readEnum() + ); + msg.setState(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.CreateMemberRequest.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.c2se.backend.member.CreateMemberRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.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.getUsername(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getPassword(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = message.getNickname(); + if (f.length > 0) { + writer.writeString(7, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeString(8, f); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum(9, f); + } + }; + +/** + * optional string site_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getSiteId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setSiteId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string member_class_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getMemberClassId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setMemberClassId = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional string member_level_id = 3; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getMemberLevelId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setMemberLevelId = + function (value) { + return jspb.Message.setProto3StringField(this, 3, value); + }; + +/** + * optional string referrer_member_username = 4; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getReferrerMemberUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setReferrerMemberUsername = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.clearReferrerMemberUsername = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.hasReferrerMemberUsername = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string username = 5; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setUsername = + function (value) { + return jspb.Message.setProto3StringField(this, 5, value); + }; + +/** + * optional string password = 6; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getPassword = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setPassword = + function (value) { + return jspb.Message.setProto3StringField(this, 6, value); + }; + +/** + * optional string nickname = 7; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getNickname = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setNickname = + function (value) { + return jspb.Message.setProto3StringField(this, 7, value); + }; + +/** + * optional string mobile_phone_number = 8; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getMobilePhoneNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 8, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setMobilePhoneNumber = + function (value) { + return jspb.Message.setField(this, 8, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.clearMobilePhoneNumber = + function () { + return jspb.Message.setField(this, 8, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.hasMobilePhoneNumber = + function () { + return jspb.Message.getField(this, 8) != null; + }; + +/** + * optional bet.beteran.member.MemberState state = 9; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getState = + function () { + return /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getFieldWithDefault(this, 9, 0) + ); + }; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setState = + function (value) { + return jspb.Message.setProto3EnumField(this, 9, value); + }; + +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.c2se.backend.member.CreateMemberResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.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.c2se.backend.member.CreateMemberResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_error_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.toObject( + includeInstance, + f + ), + }; + + 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.c2se.backend.member.CreateMemberResponse} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.member.CreateMemberResponse(); + return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_error_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_error_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.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.c2se.backend.member.CreateMemberResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_error_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result + .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.c2se.backend.member.CreateMemberResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.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.c2se.backend.member.CreateMemberResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + member: + (f = msg.getMember()) && + models_member_member_pb.MemberModel.toObject(includeInstance, f), + }; + + 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.c2se.backend.member.CreateMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result(); + return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_member_pb.MemberModel(); + reader.readMessage( + value, + models_member_member_pb.MemberModel.deserializeBinaryFromReader + ); + msg.setMember(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.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.c2se.backend.member.CreateMemberResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMember(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_member_pb.MemberModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberModel member = 1; + * @return {?proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.getMember = + function () { + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_member_pb.MemberModel, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberModel|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.setMember = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.clearMember = + function () { + return this.setMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.hasMember = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + /** * List of repeated fields within this message type. * @private {!Array} @@ -1840,779 +2642,6 @@ proto.bet.beteran.c2se.backend.member.ListMembersResponse.prototype.hasResult = return jspb.Message.getField(this, 2) != 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.c2se.backend.member.CreateMemberRequest.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.member.CreateMemberRequest.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.c2se.backend.member.CreateMemberRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.CreateMemberRequest.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, ""), - referrerMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""), - username: jspb.Message.getFieldWithDefault(msg, 5, ""), - nickname: jspb.Message.getFieldWithDefault(msg, 6, ""), - mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 7, ""), - state: jspb.Message.getFieldWithDefault(msg, 8, 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.c2se.backend.member.CreateMemberRequest} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.CreateMemberRequest(); - return proto.bet.beteran.c2se.backend.member.CreateMemberRequest.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.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.setReferrerMemberId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setNickname(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setMobilePhoneNumber(value); - break; - case 8: - var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( - reader.readEnum() - ); - msg.setState(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.member.CreateMemberRequest.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.c2se.backend.member.CreateMemberRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.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.getUsername(); - if (f.length > 0) { - writer.writeString(5, f); - } - f = message.getNickname(); - if (f.length > 0) { - writer.writeString(6, f); - } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); - if (f != null) { - writer.writeString(7, f); - } - f = message.getState(); - if (f !== 0.0) { - writer.writeEnum(8, f); - } - }; - -/** - * optional string site_id = 1; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getSiteId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 1, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setSiteId = - function (value) { - return jspb.Message.setProto3StringField(this, 1, value); - }; - -/** - * optional string member_class_id = 2; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getMemberClassId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 2, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setMemberClassId = - function (value) { - return jspb.Message.setProto3StringField(this, 2, value); - }; - -/** - * optional string member_level_id = 3; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getMemberLevelId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 3, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setMemberLevelId = - function (value) { - return jspb.Message.setProto3StringField(this, 3, value); - }; - -/** - * optional string referrer_member_id = 4; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getReferrerMemberId = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 4, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setReferrerMemberId = - function (value) { - return jspb.Message.setField(this, 4, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.clearReferrerMemberId = - function () { - return jspb.Message.setField(this, 4, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.hasReferrerMemberId = - function () { - return jspb.Message.getField(this, 4) != null; - }; - -/** - * optional string username = 5; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getUsername = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 5, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setUsername = - function (value) { - return jspb.Message.setProto3StringField(this, 5, value); - }; - -/** - * optional string nickname = 6; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getNickname = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 6, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setNickname = - function (value) { - return jspb.Message.setProto3StringField(this, 6, value); - }; - -/** - * optional string mobile_phone_number = 7; - * @return {string} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getMobilePhoneNumber = - function () { - return /** @type {string} */ ( - jspb.Message.getFieldWithDefault(this, 7, "") - ); - }; - -/** - * @param {string} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setMobilePhoneNumber = - function (value) { - return jspb.Message.setField(this, 7, value); - }; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.clearMobilePhoneNumber = - function () { - return jspb.Message.setField(this, 7, undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.hasMobilePhoneNumber = - function () { - return jspb.Message.getField(this, 7) != null; - }; - -/** - * optional bet.beteran.member.MemberState state = 8; - * @return {!proto.bet.beteran.member.MemberState} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getState = - function () { - return /** @type {!proto.bet.beteran.member.MemberState} */ ( - jspb.Message.getFieldWithDefault(this, 8, 0) - ); - }; - -/** - * @param {!proto.bet.beteran.member.MemberState} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setState = - function (value) { - return jspb.Message.setProto3EnumField(this, 8, value); - }; - -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.c2se.backend.member.CreateMemberResponse.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.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.c2se.backend.member.CreateMemberResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.toObject = - function (includeInstance, msg) { - var f, - obj = { - error: - (f = msg.getError()) && - protobuf_rpc_error_pb.Error.toObject(includeInstance, f), - result: - (f = msg.getResult()) && - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.toObject( - includeInstance, - f - ), - }; - - 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.c2se.backend.member.CreateMemberResponse} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.bet.beteran.c2se.backend.member.CreateMemberResponse(); - return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new protobuf_rpc_error_pb.Error(); - reader.readMessage( - value, - protobuf_rpc_error_pb.Error.deserializeBinaryFromReader - ); - msg.setError(value); - break; - case 2: - var value = - new proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result(); - reader.readMessage( - value, - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result - .deserializeBinaryFromReader - ); - msg.setResult(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.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.c2se.backend.member.CreateMemberResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - protobuf_rpc_error_pb.Error.serializeBinaryToWriter - ); - } - f = message.getResult(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result - .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.c2se.backend.member.CreateMemberResponse.Result.prototype.toObject = - function (opt_includeInstance) { - return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.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.c2se.backend.member.CreateMemberResponse.Result} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.toObject = - function (includeInstance, msg) { - var f, - obj = { - member: - (f = msg.getMember()) && - models_member_member_pb.MemberModel.toObject(includeInstance, f), - }; - - 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.c2se.backend.member.CreateMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.deserializeBinary = - function (bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = - new proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result(); - return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.deserializeBinaryFromReader( - msg, - reader - ); - }; - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.deserializeBinaryFromReader = - function (msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new models_member_member_pb.MemberModel(); - reader.readMessage( - value, - models_member_member_pb.MemberModel.deserializeBinaryFromReader - ); - msg.setMember(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; - }; - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.serializeBinary = - function () { - var writer = new jspb.BinaryWriter(); - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.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.c2se.backend.member.CreateMemberResponse.Result} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.serializeBinaryToWriter = - function (message, writer) { - var f = undefined; - f = message.getMember(); - if (f != null) { - writer.writeMessage( - 1, - f, - models_member_member_pb.MemberModel.serializeBinaryToWriter - ); - } - }; - -/** - * optional bet.beteran.member.MemberModel member = 1; - * @return {?proto.bet.beteran.member.MemberModel} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.getMember = - function () { - return /** @type{?proto.bet.beteran.member.MemberModel} */ ( - jspb.Message.getWrapperField(this, models_member_member_pb.MemberModel, 1) - ); - }; - -/** - * @param {?proto.bet.beteran.member.MemberModel|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.setMember = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.clearMember = - function () { - return this.setMember(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.hasMember = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional bet.protobuf.rpc.Error error = 1; - * @return {?proto.bet.protobuf.rpc.Error} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.getError = - function () { - return /** @type{?proto.bet.protobuf.rpc.Error} */ ( - jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) - ); - }; - -/** - * @param {?proto.bet.protobuf.rpc.Error|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.setError = - function (value) { - return jspb.Message.setWrapperField(this, 1, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.clearError = - function () { - return this.setError(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.hasError = - function () { - return jspb.Message.getField(this, 1) != null; - }; - -/** - * optional Result result = 2; - * @return {?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.getResult = - function () { - return /** @type{?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} */ ( - jspb.Message.getWrapperField( - this, - proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result, - 2 - ) - ); - }; - -/** - * @param {?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result|undefined} value - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.setResult = - function (value) { - return jspb.Message.setWrapperField(this, 2, value); - }; - -/** - * Clears the message field making it undefined. - * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.clearResult = - function () { - return this.setResult(undefined); - }; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.hasResult = - function () { - return jspb.Message.getField(this, 2) != null; - }; - if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto.