From 51bcb290d48a4a36bf1c022a59c5fdae2632246c Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 11 Aug 2022 08:17:37 +0000 Subject: [PATCH] actions of member are added --- .../protobuf/c2se/backend/member_pb.d.ts | 229 ++- .../protobuf/c2se/backend/member_pb.js | 1441 +++++++++++++++++ 2 files changed, 1668 insertions(+), 2 deletions(-) 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 5d7c8f9..5c1bdbd 100644 --- a/src/app/modules/protobuf/c2se/backend/member_pb.d.ts +++ b/src/app/modules/protobuf/c2se/backend/member_pb.d.ts @@ -9,10 +9,10 @@ import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb' import * as models_member_member_pb from '../../models/member/member_pb'; export const SUBJECT_LIST_MEMBERS: string; - export const SUBJECT_GET_MEMBER: string; - export const SUBJECT_GET_MEMBER_BY_USERNAME: string; +export const SUBJECT_UPDATE_MEMBER: string; +export const SUBJECT_DELETE_MEMBER: string; export class ListMembersRequest extends jspb.Message { hasPagination(): boolean; @@ -398,3 +398,228 @@ export namespace GetMemberByUsernameResponse { }; } } + +export class UpdateMemberRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasSiteId(): boolean; + clearSiteId(): void; + getSiteId(): string; + setSiteId(value: string): void; + + hasMemberLevelId(): boolean; + clearMemberLevelId(): void; + getMemberLevelId(): string; + setMemberLevelId(value: string): void; + + hasPassword(): boolean; + clearPassword(): void; + getPassword(): string; + setPassword(value: string): void; + + hasMobilePhoneNumber(): boolean; + clearMobilePhoneNumber(): void; + getMobilePhoneNumber(): string; + setMobilePhoneNumber(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; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberRequest + ): UpdateMemberRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberRequest; + static deserializeBinaryFromReader( + message: UpdateMemberRequest, + reader: jspb.BinaryReader + ): UpdateMemberRequest; +} + +export namespace UpdateMemberRequest { + export type AsObject = { + id: string; + siteId: string; + memberLevelId: string; + password: string; + mobilePhoneNumber: string; + state: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; + }; +} + +export class UpdateMemberResponse 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(): UpdateMemberResponse.Result | undefined; + setResult(value?: UpdateMemberResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberResponse + ): UpdateMemberResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberResponse; + static deserializeBinaryFromReader( + message: UpdateMemberResponse, + reader: jspb.BinaryReader + ): UpdateMemberResponse; +} + +export namespace UpdateMemberResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: UpdateMemberResponse.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 DeleteMemberRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberRequest + ): DeleteMemberRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberRequest; + static deserializeBinaryFromReader( + message: DeleteMemberRequest, + reader: jspb.BinaryReader + ): DeleteMemberRequest; +} + +export namespace DeleteMemberRequest { + export type AsObject = { + id: string; + }; +} + +export class DeleteMemberResponse 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(): DeleteMemberResponse.Result | undefined; + setResult(value?: DeleteMemberResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberResponse + ): DeleteMemberResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberResponse; + static deserializeBinaryFromReader( + message: DeleteMemberResponse, + reader: jspb.BinaryReader + ): DeleteMemberResponse; +} + +export namespace DeleteMemberResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: DeleteMemberResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + 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 = {}; + } +} diff --git a/src/app/modules/protobuf/c2se/backend/member_pb.js b/src/app/modules/protobuf/c2se/backend/member_pb.js index e9a1173..19f99f3 100644 --- a/src/app/modules/protobuf/c2se/backend/member_pb.js +++ b/src/app/modules/protobuf/c2se/backend/member_pb.js @@ -27,6 +27,21 @@ var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js" goog.object.extend(proto, protobuf_pagination_sort_pb); var models_member_member_pb = require("../../models/member/member_pb.js"); goog.object.extend(proto, models_member_member_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member.DeleteMemberRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member.DeleteMemberResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result", + null, + global +); goog.exportSymbol( "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameRequest", null, @@ -72,6 +87,21 @@ goog.exportSymbol( null, global ); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member.UpdateMemberRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member.UpdateMemberResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result", + null, + global +); proto.bet.beteran.c2se.backend.member.SUBJECT_LIST_MEMBERS = "bet.beteran.c2se.backend.member.ListMembers"; @@ -79,6 +109,10 @@ proto.bet.beteran.c2se.backend.member.SUBJECT_GET_MEMBER = "bet.beteran.c2se.backend.member.GetMember"; proto.bet.beteran.c2se.backend.member.SUBJECT_GET_MEMBER_BY_USERNAME = "bet.beteran.c2se.backend.member.GetMemberByUsername"; +proto.bet.beteran.c2se.backend.member.SUBJECT_UPDATE_MEMBER = + "bet.beteran.c2se.backend.member.UpdateMember"; +proto.bet.beteran.c2se.backend.member.SUBJECT_DELETE_MEMBER = + "bet.beteran.c2se.backend.member.UpdateMember"; /** * Generated by JsPbCodeGenerator. @@ -331,6 +365,168 @@ if (goog.DEBUG && !COMPILED) { proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.Result.displayName = "proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.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.UpdateMemberRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.UpdateMemberRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.displayName = + "proto.bet.beteran.c2se.backend.member.UpdateMemberRequest"; +} +/** + * 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.UpdateMemberResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.UpdateMemberResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.displayName = + "proto.bet.beteran.c2se.backend.member.UpdateMemberResponse"; +} +/** + * 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.UpdateMemberResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.DeleteMemberRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.DeleteMemberRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.displayName = + "proto.bet.beteran.c2se.backend.member.DeleteMemberRequest"; +} +/** + * 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.DeleteMemberResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.DeleteMemberResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.displayName = + "proto.bet.beteran.c2se.backend.member.DeleteMemberResponse"; +} +/** + * 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.DeleteMemberResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result"; +} /** * List of repeated fields within this message type. @@ -2617,4 +2813,1249 @@ proto.bet.beteran.c2se.backend.member.GetMemberByUsernameResponse.prototype.hasR 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.UpdateMemberRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.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.UpdateMemberRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + siteId: jspb.Message.getFieldWithDefault(msg, 2, ""), + memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""), + password: jspb.Message.getFieldWithDefault(msg, 4, ""), + mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 5, ""), + state: jspb.Message.getFieldWithDefault(msg, 6, 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.UpdateMemberRequest} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.member.UpdateMemberRequest(); + return proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.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.UpdateMemberRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.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 = /** @type {string} */ (reader.readString()); + msg.setSiteId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberLevelId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setPassword(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 6: + 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.UpdateMemberRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.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.UpdateMemberRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString(2, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString(3, f); + } + 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 {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getField(message, 6) + ); + if (f != null) { + writer.writeEnum(6, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string site_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getSiteId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setSiteId = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.clearSiteId = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.hasSiteId = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional string member_level_id = 3; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getMemberLevelId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setMemberLevelId = + function (value) { + return jspb.Message.setField(this, 3, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.clearMemberLevelId = + function () { + return jspb.Message.setField(this, 3, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.hasMemberLevelId = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional string password = 4; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getPassword = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setPassword = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.clearPassword = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.hasPassword = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string mobile_phone_number = 5; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getMobilePhoneNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setMobilePhoneNumber = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.clearMobilePhoneNumber = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.hasMobilePhoneNumber = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional bet.beteran.member.MemberState state = 6; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.getState = + function () { + return /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getFieldWithDefault(this, 6, 0) + ); + }; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.setState = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.clearState = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberRequest.prototype.hasState = + function () { + return jspb.Message.getField(this, 6) != 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.UpdateMemberResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.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.UpdateMemberResponse} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.member.UpdateMemberResponse(); + return proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberResponse} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.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.UpdateMemberResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result(); + return proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.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.UpdateMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result.prototype.clearMember = + function () { + return this.setMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse.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.UpdateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member.UpdateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.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.UpdateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.UpdateMemberResponse.prototype.hasResult = + function () { + 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.DeleteMemberRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.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.DeleteMemberRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; + + 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.DeleteMemberRequest} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.member.DeleteMemberRequest(); + return proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.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.DeleteMemberRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberRequest} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.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; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.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.DeleteMemberRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, 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.DeleteMemberResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse.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.DeleteMemberResponse} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.member.DeleteMemberResponse(); + return proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberResponse} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse.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.DeleteMemberResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = {}; + + 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.DeleteMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result(); + return proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member.DeleteMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.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.DeleteMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.DeleteMemberResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + goog.object.extend(exports, proto.bet.beteran.c2se.backend.member);