From bc4a78a1b520bd16721c7efae451ce9771f8651e Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Fri, 12 Aug 2022 08:45:27 +0000 Subject: [PATCH] protobuf is added --- .../c2se/backend/member_class_pb.d.ts | 555 +++ .../protobuf/c2se/backend/member_class_pb.js | 3543 +++++++++++++++++ .../c2se/backend/member_level_pb.d.ts | 553 +++ .../protobuf/c2se/backend/member_level_pb.js | 3523 ++++++++++++++++ .../models/member/member_class_pb.d.ts | 6 - .../protobuf/models/member/member_class_pb.js | 41 - .../models/member/member_level_pb.d.ts | 6 - .../protobuf/models/member/member_level_pb.js | 41 - 8 files changed, 8174 insertions(+), 94 deletions(-) create mode 100644 src/app/modules/protobuf/c2se/backend/member_class_pb.d.ts create mode 100644 src/app/modules/protobuf/c2se/backend/member_class_pb.js create mode 100644 src/app/modules/protobuf/c2se/backend/member_level_pb.d.ts create mode 100644 src/app/modules/protobuf/c2se/backend/member_level_pb.js diff --git a/src/app/modules/protobuf/c2se/backend/member_class_pb.d.ts b/src/app/modules/protobuf/c2se/backend/member_class_pb.d.ts new file mode 100644 index 0000000..b24d6f6 --- /dev/null +++ b/src/app/modules/protobuf/c2se/backend/member_class_pb.d.ts @@ -0,0 +1,555 @@ +// package: bet.beteran.c2se.backend.member_class +// file: c2se/backend/member_class.proto + +import * as jspb from 'google-protobuf'; +import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; +import * as protobuf_pagination_pagination_pb from '../../protobuf/pagination/pagination_pb'; +import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search_pb'; +import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb'; +import * as models_member_member_class_pb from '../../models/member/member_class_pb'; + +export const SUBJECT_CREATE_MEMBER_CLASS: string; +export const SUBJECT_LIST_MEMBER_CLASSES: string; +export const SUBJECT_GET_MEMBER_CLASS: string; +export const SUBJECT_UPDATE_MEMBER_CLASS: string; +export const SUBJECT_DELETE_MEMBER_CLASS: string; + +export class CreateMemberClassRequest extends jspb.Message { + hasParentId(): boolean; + clearParentId(): void; + getParentId(): string; + setParentId(value: string): void; + + getName(): string; + setName(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberClassRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberClassRequest + ): CreateMemberClassRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberClassRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberClassRequest; + static deserializeBinaryFromReader( + message: CreateMemberClassRequest, + reader: jspb.BinaryReader + ): CreateMemberClassRequest; +} + +export namespace CreateMemberClassRequest { + export type AsObject = { + parentId: string; + name: string; + }; +} + +export class CreateMemberClassResponse 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(): CreateMemberClassResponse.Result | undefined; + setResult(value?: CreateMemberClassResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberClassResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberClassResponse + ): CreateMemberClassResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberClassResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberClassResponse; + static deserializeBinaryFromReader( + message: CreateMemberClassResponse, + reader: jspb.BinaryReader + ): CreateMemberClassResponse; +} + +export namespace CreateMemberClassResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: CreateMemberClassResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberClass(): boolean; + clearMemberClass(): void; + getMemberClass(): models_member_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_member_class_pb.MemberClass): 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 = { + memberClass?: models_member_member_class_pb.MemberClass.AsObject; + }; + } +} + +export class ListMemberClassesRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pagination_pb.Pagination): void; + + clearSearchesList(): void; + getSearchesList(): Array; + setSearchesList(value: Array): void; + addSearches( + value?: protobuf_pagination_search_pb.Search, + index?: number + ): protobuf_pagination_search_pb.Search; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts( + value?: protobuf_pagination_sort_pb.Sort, + index?: number + ): protobuf_pagination_sort_pb.Sort; + + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberClassesRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMemberClassesRequest + ): ListMemberClassesRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMemberClassesRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMemberClassesRequest; + static deserializeBinaryFromReader( + message: ListMemberClassesRequest, + reader: jspb.BinaryReader + ): ListMemberClassesRequest; +} + +export namespace ListMemberClassesRequest { + export type AsObject = { + pagination?: protobuf_pagination_pagination_pb.Pagination.AsObject; + searchesList: Array; + sortsList: Array; + nameLike: string; + }; +} + +export class ListMemberClasssResponse 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(): ListMemberClasssResponse.Result | undefined; + setResult(value?: ListMemberClasssResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberClasssResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMemberClasssResponse + ): ListMemberClasssResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMemberClasssResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMemberClasssResponse; + static deserializeBinaryFromReader( + message: ListMemberClasssResponse, + reader: jspb.BinaryReader + ): ListMemberClasssResponse; +} + +export namespace ListMemberClasssResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: ListMemberClasssResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearMemberClassesList(): void; + getMemberClassesList(): Array; + setMemberClassesList( + value: Array + ): void; + addMemberClasses( + value?: models_member_member_class_pb.MemberClass, + index?: number + ): models_member_member_class_pb.MemberClass; + + 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 = { + memberClassesList: Array; + }; + } +} + +export class GetMemberClassRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberClassRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberClassRequest + ): GetMemberClassRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberClassRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberClassRequest; + static deserializeBinaryFromReader( + message: GetMemberClassRequest, + reader: jspb.BinaryReader + ): GetMemberClassRequest; +} + +export namespace GetMemberClassRequest { + export type AsObject = { + id: string; + }; +} + +export class GetMemberClassResponse 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(): GetMemberClassResponse.Result | undefined; + setResult(value?: GetMemberClassResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberClassResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberClassResponse + ): GetMemberClassResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberClassResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberClassResponse; + static deserializeBinaryFromReader( + message: GetMemberClassResponse, + reader: jspb.BinaryReader + ): GetMemberClassResponse; +} + +export namespace GetMemberClassResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: GetMemberClassResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberClass(): boolean; + clearMemberClass(): void; + getMemberClass(): models_member_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_member_class_pb.MemberClass): 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 = { + memberClass?: models_member_member_class_pb.MemberClass.AsObject; + }; + } +} + +export class UpdateMemberClassRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasParentId(): boolean; + clearParentId(): void; + getParentId(): string; + setParentId(value: string): void; + + getName(): string; + setName(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberClassRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberClassRequest + ): UpdateMemberClassRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberClassRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberClassRequest; + static deserializeBinaryFromReader( + message: UpdateMemberClassRequest, + reader: jspb.BinaryReader + ): UpdateMemberClassRequest; +} + +export namespace UpdateMemberClassRequest { + export type AsObject = { + id: string; + parentId: string; + name: string; + }; +} + +export class UpdateMemberClassResponse 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(): UpdateMemberClassResponse.Result | undefined; + setResult(value?: UpdateMemberClassResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberClassResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberClassResponse + ): UpdateMemberClassResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberClassResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberClassResponse; + static deserializeBinaryFromReader( + message: UpdateMemberClassResponse, + reader: jspb.BinaryReader + ): UpdateMemberClassResponse; +} + +export namespace UpdateMemberClassResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: UpdateMemberClassResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberClass(): boolean; + clearMemberClass(): void; + getMemberClass(): models_member_member_class_pb.MemberClass | undefined; + setMemberClass(value?: models_member_member_class_pb.MemberClass): 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 = { + memberClass?: models_member_member_class_pb.MemberClass.AsObject; + }; + } +} + +export class DeleteMemberClassRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberClassRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberClassRequest + ): DeleteMemberClassRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberClassRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberClassRequest; + static deserializeBinaryFromReader( + message: DeleteMemberClassRequest, + reader: jspb.BinaryReader + ): DeleteMemberClassRequest; +} + +export namespace DeleteMemberClassRequest { + export type AsObject = { + id: string; + }; +} + +export class DeleteMemberClassResponse 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(): DeleteMemberClassResponse.Result | undefined; + setResult(value?: DeleteMemberClassResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberClassResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberClassResponse + ): DeleteMemberClassResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberClassResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberClassResponse; + static deserializeBinaryFromReader( + message: DeleteMemberClassResponse, + reader: jspb.BinaryReader + ): DeleteMemberClassResponse; +} + +export namespace DeleteMemberClassResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: DeleteMemberClassResponse.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_class_pb.js b/src/app/modules/protobuf/c2se/backend/member_class_pb.js new file mode 100644 index 0000000..eea6165 --- /dev/null +++ b/src/app/modules/protobuf/c2se/backend/member_class_pb.js @@ -0,0 +1,3543 @@ +// source: c2se/backend/member_class.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var protobuf_rpc_error_pb = require("../../protobuf/rpc/error_pb.js"); +goog.object.extend(proto, protobuf_rpc_error_pb); +var protobuf_pagination_pagination_pb = require("../../protobuf/pagination/pagination_pb.js"); +goog.object.extend(proto, protobuf_pagination_pagination_pb); +var protobuf_pagination_search_pb = require("../../protobuf/pagination/search_pb.js"); +goog.object.extend(proto, protobuf_pagination_search_pb); +var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js"); +goog.object.extend(proto, protobuf_pagination_sort_pb); +var models_member_member_class_pb = require("../../models/member/member_class_pb.js"); +goog.object.extend(proto, models_member_member_class_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result", + null, + global +); + +proto.bet.beteran.c2se.backend.member_class.SUBJECT_CREATE_MEMBER_CLASS = + "bet.beteran.c2se.backend.member_class.CreateMemberClass"; +proto.bet.beteran.c2se.backend.member_class.SUBJECT_LIST_MEMBER_CLASSES = + "bet.beteran.c2se.backend.member_class.ListMemberClasses"; +proto.bet.beteran.c2se.backend.member_class.SUBJECT_GET_MEMBER_CLASS = + "bet.beteran.c2se.backend.member_class.GetMemberClass"; +proto.bet.beteran.c2se.backend.member_class.SUBJECT_UPDATE_MEMBER_CLASS = + "bet.beteran.c2se.backend.member_class.UpdateMemberClass"; +proto.bet.beteran.c2se.backend.member_class.SUBJECT_DELETE_MEMBER_CLASS = + "bet.beteran.c2se.backend.member_class.DeleteMemberClass"; + +/** + * 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_class.CreateMemberClassRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.displayName = + "proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest"; +} +/** + * 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_class.CreateMemberClassResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.displayName = + "proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse"; +} +/** + * 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_class.CreateMemberClassResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.ListMemberClassesRequest = + function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest + .repeatedFields_, + null + ); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.displayName = + "proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest"; +} +/** + * 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_class.ListMemberClasssResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.displayName = + "proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse"; +} +/** + * 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_class.ListMemberClasssResponse.Result = + function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse + .Result.repeatedFields_, + null + ); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.GetMemberClassRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.displayName = + "proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest"; +} +/** + * 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_class.GetMemberClassResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.displayName = + "proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse"; +} +/** + * 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_class.GetMemberClassResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.UpdateMemberClassRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.displayName = + "proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest"; +} +/** + * 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_class.UpdateMemberClassResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.displayName = + "proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse"; +} +/** + * 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_class.UpdateMemberClassResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.DeleteMemberClassRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.displayName = + "proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest"; +} +/** + * 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_class.DeleteMemberClassResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.displayName = + "proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse"; +} +/** + * 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_class.DeleteMemberClassResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.CreateMemberClassRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.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_class.CreateMemberClassRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + parentId: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + }; + + 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_class.CreateMemberClassRequest} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest(); + return proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.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_class.CreateMemberClassRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.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.setParentId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(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_class.CreateMemberClassRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.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_class.CreateMemberClassRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString(1, f); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(2, f); + } + }; + +/** + * optional string parent_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.prototype.getParentId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.prototype.setParentId = + function (value) { + return jspb.Message.setField(this, 1, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.prototype.clearParentId = + function () { + return jspb.Message.setField(this, 1, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.prototype.hasParentId = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassRequest.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 2, 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_class.CreateMemberClassResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse(); + return proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member_class + .CreateMemberClassResponse.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_class.CreateMemberClassResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse + .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_class.CreateMemberClassResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberClass: + (f = msg.getMemberClass()) && + models_member_member_class_pb.MemberClass.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_class.CreateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result(); + return proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class_pb.MemberClass(); + reader.readMessage( + value, + models_member_member_class_pb.MemberClass + .deserializeBinaryFromReader + ); + msg.setMemberClass(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_class.CreateMemberClassResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberClass(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberClass member_class = 1; + * @return {?proto.bet.beteran.member.MemberClass} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.prototype.getMemberClass = + function () { + return /** @type{?proto.bet.beteran.member.MemberClass} */ ( + jspb.Message.getWrapperField( + this, + models_member_member_class_pb.MemberClass, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberClass|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.prototype.setMemberClass = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.prototype.clearMemberClass = + function () { + return this.setMemberClass(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result.prototype.hasMemberClass = + 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_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.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_class.CreateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.CreateMemberClassResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.repeatedFields_ = + [2, 3]; + +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_class.ListMemberClassesRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.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_class.ListMemberClassesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + pagination: + (f = msg.getPagination()) && + protobuf_pagination_pagination_pb.Pagination.toObject( + includeInstance, + f + ), + searchesList: jspb.Message.toObjectList( + msg.getSearchesList(), + protobuf_pagination_search_pb.Search.toObject, + includeInstance + ), + sortsList: jspb.Message.toObjectList( + msg.getSortsList(), + protobuf_pagination_sort_pb.Sort.toObject, + includeInstance + ), + nameLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + }; + + 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_class.ListMemberClassesRequest} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest(); + return proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.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_class.ListMemberClassesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pagination_pb.Pagination(); + reader.readMessage( + value, + protobuf_pagination_pagination_pb.Pagination + .deserializeBinaryFromReader + ); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_search_pb.Search(); + reader.readMessage( + value, + protobuf_pagination_search_pb.Search.deserializeBinaryFromReader + ); + msg.addSearches(value); + break; + case 3: + var value = new protobuf_pagination_sort_pb.Sort(); + reader.readMessage( + value, + protobuf_pagination_sort_pb.Sort.deserializeBinaryFromReader + ); + msg.addSorts(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(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_class.ListMemberClassesRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.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_class.ListMemberClassesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSearchesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_search_pb.Search.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.getPagination = + function () { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField( + this, + protobuf_pagination_pagination_pb.Pagination, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Search searches = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.getSearchesList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + protobuf_pagination_search_pb.Search, + 2 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.setSearchesList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Search=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Search} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.addSearches = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.protobuf.pagination.Search, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.clearSearchesList = + function () { + return this.setSearchesList([]); + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 3; + * @return {!Array} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + protobuf_pagination_sort_pb.Sort, + 3 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.setSortsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.addSorts = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 3, + opt_value, + proto.bet.protobuf.pagination.Sort, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional string name_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.getNameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.setNameLike = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.clearNameLike = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClassesRequest.prototype.hasNameLike = + function () { + return jspb.Message.getField(this, 4) != 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_class.ListMemberClasssResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse(); + return proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse + .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_class.ListMemberClasssResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse + .Result.serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result.repeatedFields_ = + [1]; + +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_class.ListMemberClasssResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberClassesList: jspb.Message.toObjectList( + msg.getMemberClassesList(), + models_member_member_class_pb.MemberClass.toObject, + includeInstance + ), + }; + + 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_class.ListMemberClasssResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result(); + return proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class_pb.MemberClass(); + reader.readMessage( + value, + models_member_member_class_pb.MemberClass + .deserializeBinaryFromReader + ); + msg.addMemberClasses(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_class.ListMemberClasssResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberClassesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_member_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.member.MemberClass member_classes = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result.prototype.getMemberClassesList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + models_member_member_class_pb.MemberClass, + 1 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result.prototype.setMemberClassesList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.member.MemberClass=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member.MemberClass} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result.prototype.addMemberClasses = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.member.MemberClass, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result.prototype.clearMemberClassesList = + function () { + return this.setMemberClassesList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.ListMemberClasssResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.ListMemberClasssResponse.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_class.GetMemberClassRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.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_class.GetMemberClassRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.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_class.GetMemberClassRequest} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest(); + return proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.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_class.GetMemberClassRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.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_class.GetMemberClassRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.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_class.GetMemberClassRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.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_class.GetMemberClassRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassRequest.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_class.GetMemberClassResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse.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_class.GetMemberClassResponse} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse(); + return proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse + .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_class.GetMemberClassResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse + .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_class.GetMemberClassResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberClass: + (f = msg.getMemberClass()) && + models_member_member_class_pb.MemberClass.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_class.GetMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result(); + return proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class_pb.MemberClass(); + reader.readMessage( + value, + models_member_member_class_pb.MemberClass + .deserializeBinaryFromReader + ); + msg.setMemberClass(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_class.GetMemberClassResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberClass(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberClass member_class = 1; + * @return {?proto.bet.beteran.member.MemberClass} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.prototype.getMemberClass = + function () { + return /** @type{?proto.bet.beteran.member.MemberClass} */ ( + jspb.Message.getWrapperField( + this, + models_member_member_class_pb.MemberClass, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberClass|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.prototype.setMemberClass = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.prototype.clearMemberClass = + function () { + return this.setMemberClass(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result.prototype.hasMemberClass = + 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_class.GetMemberClassResponse.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_class.GetMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.GetMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.GetMemberClassResponse.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_class.UpdateMemberClassRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.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_class.UpdateMemberClassRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + parentId: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + }; + + 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_class.UpdateMemberClassRequest} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest(); + return proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.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_class.UpdateMemberClassRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.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.setParentId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(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_class.UpdateMemberClassRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.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_class.UpdateMemberClassRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.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 = message.getName(); + if (f.length > 0) { + writer.writeString(3, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string parent_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.getParentId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.setParentId = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.clearParentId = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.hasParentId = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassRequest.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 3, 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_class.UpdateMemberClassResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse(); + return proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member_class + .UpdateMemberClassResponse.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_class.UpdateMemberClassResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse + .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_class.UpdateMemberClassResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberClass: + (f = msg.getMemberClass()) && + models_member_member_class_pb.MemberClass.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_class.UpdateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result(); + return proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class_pb.MemberClass(); + reader.readMessage( + value, + models_member_member_class_pb.MemberClass + .deserializeBinaryFromReader + ); + msg.setMemberClass(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_class.UpdateMemberClassResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberClass(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_member_class_pb.MemberClass.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberClass member_class = 1; + * @return {?proto.bet.beteran.member.MemberClass} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.prototype.getMemberClass = + function () { + return /** @type{?proto.bet.beteran.member.MemberClass} */ ( + jspb.Message.getWrapperField( + this, + models_member_member_class_pb.MemberClass, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberClass|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.prototype.setMemberClass = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.prototype.clearMemberClass = + function () { + return this.setMemberClass(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result.prototype.hasMemberClass = + 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_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.UpdateMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.UpdateMemberClassResponse.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_class.DeleteMemberClassRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.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_class.DeleteMemberClassRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.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_class.DeleteMemberClassRequest} + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest(); + return proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.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_class.DeleteMemberClassRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest} + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.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_class.DeleteMemberClassRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.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_class.DeleteMemberClassRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.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_class.DeleteMemberClassRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassRequest.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_class.DeleteMemberClassResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse} + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse(); + return proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse} + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member_class + .DeleteMemberClassResponse.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_class.DeleteMemberClassResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse + .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_class.DeleteMemberClassResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result(); + return proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.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_class.DeleteMemberClassResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_class.DeleteMemberClassResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_class); diff --git a/src/app/modules/protobuf/c2se/backend/member_level_pb.d.ts b/src/app/modules/protobuf/c2se/backend/member_level_pb.d.ts new file mode 100644 index 0000000..5749ef5 --- /dev/null +++ b/src/app/modules/protobuf/c2se/backend/member_level_pb.d.ts @@ -0,0 +1,553 @@ +// package: bet.beteran.c2se.backend.member_level +// file: c2se/backend/member_level.proto + +import * as jspb from 'google-protobuf'; +import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb'; +import * as protobuf_pagination_pagination_pb from '../../protobuf/pagination/pagination_pb'; +import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search_pb'; +import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb'; +import * as models_member_member_level_pb from '../../models/member/member_level_pb'; + +export const SUBJECT_CREATE_MEMBER_LEVEL: string; +export const SUBJECT_LIST_MEMBER_LEVELS: string; +export const SUBJECT_GET_MEMBER_LEVEL: string; +export const SUBJECT_UPDATE_MEMBER_LEVEL: string; +export const SUBJECT_DELETE_MEMBER_LEVEL: string; + +export class CreateMemberLevelRequest extends jspb.Message { + getName(): string; + setName(value: string): void; + + getSortOrder(): number; + setSortOrder(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberLevelRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberLevelRequest + ): CreateMemberLevelRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberLevelRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberLevelRequest; + static deserializeBinaryFromReader( + message: CreateMemberLevelRequest, + reader: jspb.BinaryReader + ): CreateMemberLevelRequest; +} + +export namespace CreateMemberLevelRequest { + export type AsObject = { + name: string; + sortOrder: number; + }; +} + +export class CreateMemberLevelResponse 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(): CreateMemberLevelResponse.Result | undefined; + setResult(value?: CreateMemberLevelResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberLevelResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberLevelResponse + ): CreateMemberLevelResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberLevelResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberLevelResponse; + static deserializeBinaryFromReader( + message: CreateMemberLevelResponse, + reader: jspb.BinaryReader + ): CreateMemberLevelResponse; +} + +export namespace CreateMemberLevelResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: CreateMemberLevelResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberLevel(): boolean; + clearMemberLevel(): void; + getMemberLevel(): models_member_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_member_level_pb.MemberLevel): 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 = { + memberLevel?: models_member_member_level_pb.MemberLevel.AsObject; + }; + } +} + +export class ListMemberLevelesRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pagination_pb.Pagination): void; + + clearSearchesList(): void; + getSearchesList(): Array; + setSearchesList(value: Array): void; + addSearches( + value?: protobuf_pagination_search_pb.Search, + index?: number + ): protobuf_pagination_search_pb.Search; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts( + value?: protobuf_pagination_sort_pb.Sort, + index?: number + ): protobuf_pagination_sort_pb.Sort; + + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberLevelesRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMemberLevelesRequest + ): ListMemberLevelesRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMemberLevelesRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMemberLevelesRequest; + static deserializeBinaryFromReader( + message: ListMemberLevelesRequest, + reader: jspb.BinaryReader + ): ListMemberLevelesRequest; +} + +export namespace ListMemberLevelesRequest { + export type AsObject = { + pagination?: protobuf_pagination_pagination_pb.Pagination.AsObject; + searchesList: Array; + sortsList: Array; + nameLike: string; + }; +} + +export class ListMemberLevelsResponse 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(): ListMemberLevelsResponse.Result | undefined; + setResult(value?: ListMemberLevelsResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListMemberLevelsResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListMemberLevelsResponse + ): ListMemberLevelsResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListMemberLevelsResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListMemberLevelsResponse; + static deserializeBinaryFromReader( + message: ListMemberLevelsResponse, + reader: jspb.BinaryReader + ): ListMemberLevelsResponse; +} + +export namespace ListMemberLevelsResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: ListMemberLevelsResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearMemberLevelsList(): void; + getMemberLevelsList(): Array; + setMemberLevelsList( + value: Array + ): void; + addMemberLevels( + value?: models_member_member_level_pb.MemberLevel, + index?: number + ): models_member_member_level_pb.MemberLevel; + + 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 = { + memberLevelsList: Array; + }; + } +} + +export class GetMemberLevelRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberLevelRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberLevelRequest + ): GetMemberLevelRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberLevelRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberLevelRequest; + static deserializeBinaryFromReader( + message: GetMemberLevelRequest, + reader: jspb.BinaryReader + ): GetMemberLevelRequest; +} + +export namespace GetMemberLevelRequest { + export type AsObject = { + id: string; + }; +} + +export class GetMemberLevelResponse 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(): GetMemberLevelResponse.Result | undefined; + setResult(value?: GetMemberLevelResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberLevelResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberLevelResponse + ): GetMemberLevelResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberLevelResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberLevelResponse; + static deserializeBinaryFromReader( + message: GetMemberLevelResponse, + reader: jspb.BinaryReader + ): GetMemberLevelResponse; +} + +export namespace GetMemberLevelResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: GetMemberLevelResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberLevel(): boolean; + clearMemberLevel(): void; + getMemberLevel(): models_member_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_member_level_pb.MemberLevel): 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 = { + memberLevel?: models_member_member_level_pb.MemberLevel.AsObject; + }; + } +} + +export class UpdateMemberLevelRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + hasParentId(): boolean; + clearParentId(): void; + getParentId(): string; + setParentId(value: string): void; + + getName(): string; + setName(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberLevelRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberLevelRequest + ): UpdateMemberLevelRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberLevelRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberLevelRequest; + static deserializeBinaryFromReader( + message: UpdateMemberLevelRequest, + reader: jspb.BinaryReader + ): UpdateMemberLevelRequest; +} + +export namespace UpdateMemberLevelRequest { + export type AsObject = { + id: string; + parentId: string; + name: string; + }; +} + +export class UpdateMemberLevelResponse 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(): UpdateMemberLevelResponse.Result | undefined; + setResult(value?: UpdateMemberLevelResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMemberLevelResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateMemberLevelResponse + ): UpdateMemberLevelResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateMemberLevelResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateMemberLevelResponse; + static deserializeBinaryFromReader( + message: UpdateMemberLevelResponse, + reader: jspb.BinaryReader + ): UpdateMemberLevelResponse; +} + +export namespace UpdateMemberLevelResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: UpdateMemberLevelResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberLevel(): boolean; + clearMemberLevel(): void; + getMemberLevel(): models_member_member_level_pb.MemberLevel | undefined; + setMemberLevel(value?: models_member_member_level_pb.MemberLevel): 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 = { + memberLevel?: models_member_member_level_pb.MemberLevel.AsObject; + }; + } +} + +export class DeleteMemberLevelRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberLevelRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberLevelRequest + ): DeleteMemberLevelRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberLevelRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberLevelRequest; + static deserializeBinaryFromReader( + message: DeleteMemberLevelRequest, + reader: jspb.BinaryReader + ): DeleteMemberLevelRequest; +} + +export namespace DeleteMemberLevelRequest { + export type AsObject = { + id: string; + }; +} + +export class DeleteMemberLevelResponse 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(): DeleteMemberLevelResponse.Result | undefined; + setResult(value?: DeleteMemberLevelResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberLevelResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberLevelResponse + ): DeleteMemberLevelResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberLevelResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberLevelResponse; + static deserializeBinaryFromReader( + message: DeleteMemberLevelResponse, + reader: jspb.BinaryReader + ): DeleteMemberLevelResponse; +} + +export namespace DeleteMemberLevelResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: DeleteMemberLevelResponse.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_level_pb.js b/src/app/modules/protobuf/c2se/backend/member_level_pb.js new file mode 100644 index 0000000..8e18fbe --- /dev/null +++ b/src/app/modules/protobuf/c2se/backend/member_level_pb.js @@ -0,0 +1,3523 @@ +// source: c2se/backend/member_level.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +var protobuf_rpc_error_pb = require("../../protobuf/rpc/error_pb.js"); +goog.object.extend(proto, protobuf_rpc_error_pb); +var protobuf_pagination_pagination_pb = require("../../protobuf/pagination/pagination_pb.js"); +goog.object.extend(proto, protobuf_pagination_pagination_pb); +var protobuf_pagination_search_pb = require("../../protobuf/pagination/search_pb.js"); +goog.object.extend(proto, protobuf_pagination_search_pb); +var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js"); +goog.object.extend(proto, protobuf_pagination_sort_pb); +var models_member_member_level_pb = require("../../models/member/member_level_pb.js"); +goog.object.extend(proto, models_member_member_level_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result", + null, + global +); + +proto.bet.beteran.c2se.backend.member_level.SUBJECT_CREATE_MEMBER_LEVEL = + "bet.beteran.c2se.backend.member_level.CreateMemberLevel"; +proto.bet.beteran.c2se.backend.member_level.SUBJECT_LIST_MEMBER_LEVELS = + "bet.beteran.c2se.backend.member_level.ListMemberLevels"; +proto.bet.beteran.c2se.backend.member_level.SUBJECT_GET_MEMBER_LEVEL = + "bet.beteran.c2se.backend.member_level.GetMemberLevel"; +proto.bet.beteran.c2se.backend.member_level.SUBJECT_UPDATE_MEMBER_LEVEL = + "bet.beteran.c2se.backend.member_level.UpdateMemberLevel"; +proto.bet.beteran.c2se.backend.member_level.SUBJECT_DELETE_MEMBER_LEVEL = + "bet.beteran.c2se.backend.member_level.DeleteMemberLevel"; + +/** + * 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_level.CreateMemberLevelRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.displayName = + "proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest"; +} +/** + * 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_level.CreateMemberLevelResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.displayName = + "proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse"; +} +/** + * 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_level.CreateMemberLevelResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.ListMemberLevelesRequest = + function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest + .repeatedFields_, + null + ); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.displayName = + "proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest"; +} +/** + * 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_level.ListMemberLevelsResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.displayName = + "proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse"; +} +/** + * 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_level.ListMemberLevelsResponse.Result = + function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse + .Result.repeatedFields_, + null + ); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.GetMemberLevelRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.displayName = + "proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest"; +} +/** + * 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_level.GetMemberLevelResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.displayName = + "proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse"; +} +/** + * 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_level.GetMemberLevelResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.UpdateMemberLevelRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.displayName = + "proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest"; +} +/** + * 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_level.UpdateMemberLevelResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.displayName = + "proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse"; +} +/** + * 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_level.UpdateMemberLevelResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.DeleteMemberLevelRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.displayName = + "proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest"; +} +/** + * 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_level.DeleteMemberLevelResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.displayName = + "proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse"; +} +/** + * 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_level.DeleteMemberLevelResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.CreateMemberLevelRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.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_level.CreateMemberLevelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + sortOrder: jspb.Message.getFieldWithDefault(msg, 2, 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_level.CreateMemberLevelRequest} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest(); + return proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.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_level.CreateMemberLevelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.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.setName(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSortOrder(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_level.CreateMemberLevelRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.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_level.CreateMemberLevelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getSortOrder(); + if (f !== 0) { + writer.writeUint32(2, f); + } + }; + +/** + * optional string name = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional uint32 sort_order = 2; + * @return {number} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.prototype.getSortOrder = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelRequest.prototype.setSortOrder = + function (value) { + return jspb.Message.setProto3IntField(this, 2, 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_level.CreateMemberLevelResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse(); + return proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member_level + .CreateMemberLevelResponse.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_level.CreateMemberLevelResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse + .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_level.CreateMemberLevelResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberLevel: + (f = msg.getMemberLevel()) && + models_member_member_level_pb.MemberLevel.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_level.CreateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result(); + return proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level_pb.MemberLevel(); + reader.readMessage( + value, + models_member_member_level_pb.MemberLevel + .deserializeBinaryFromReader + ); + msg.setMemberLevel(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_level.CreateMemberLevelResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberLevel(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberLevel member_level = 1; + * @return {?proto.bet.beteran.member.MemberLevel} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.prototype.getMemberLevel = + function () { + return /** @type{?proto.bet.beteran.member.MemberLevel} */ ( + jspb.Message.getWrapperField( + this, + models_member_member_level_pb.MemberLevel, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberLevel|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.prototype.setMemberLevel = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.prototype.clearMemberLevel = + function () { + return this.setMemberLevel(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result.prototype.hasMemberLevel = + 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_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.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_level.CreateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.CreateMemberLevelResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.repeatedFields_ = + [2, 3]; + +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_level.ListMemberLevelesRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.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_level.ListMemberLevelesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + pagination: + (f = msg.getPagination()) && + protobuf_pagination_pagination_pb.Pagination.toObject( + includeInstance, + f + ), + searchesList: jspb.Message.toObjectList( + msg.getSearchesList(), + protobuf_pagination_search_pb.Search.toObject, + includeInstance + ), + sortsList: jspb.Message.toObjectList( + msg.getSortsList(), + protobuf_pagination_sort_pb.Sort.toObject, + includeInstance + ), + nameLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + }; + + 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_level.ListMemberLevelesRequest} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest(); + return proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.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_level.ListMemberLevelesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pagination_pb.Pagination(); + reader.readMessage( + value, + protobuf_pagination_pagination_pb.Pagination + .deserializeBinaryFromReader + ); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_search_pb.Search(); + reader.readMessage( + value, + protobuf_pagination_search_pb.Search.deserializeBinaryFromReader + ); + msg.addSearches(value); + break; + case 3: + var value = new protobuf_pagination_sort_pb.Sort(); + reader.readMessage( + value, + protobuf_pagination_sort_pb.Sort.deserializeBinaryFromReader + ); + msg.addSorts(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(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_level.ListMemberLevelesRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.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_level.ListMemberLevelesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSearchesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_search_pb.Search.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + protobuf_pagination_sort_pb.Sort.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.getPagination = + function () { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField( + this, + protobuf_pagination_pagination_pb.Pagination, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Search searches = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.getSearchesList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + protobuf_pagination_search_pb.Search, + 2 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.setSearchesList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Search=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Search} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.addSearches = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.protobuf.pagination.Search, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.clearSearchesList = + function () { + return this.setSearchesList([]); + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 3; + * @return {!Array} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + protobuf_pagination_sort_pb.Sort, + 3 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.setSortsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.addSorts = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 3, + opt_value, + proto.bet.protobuf.pagination.Sort, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional string name_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.getNameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.setNameLike = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.clearNameLike = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelesRequest.prototype.hasNameLike = + function () { + return jspb.Message.getField(this, 4) != 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_level.ListMemberLevelsResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse(); + return proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse + .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_level.ListMemberLevelsResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse + .Result.serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.repeatedFields_ = + [1]; + +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_level.ListMemberLevelsResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberLevelsList: jspb.Message.toObjectList( + msg.getMemberLevelsList(), + models_member_member_level_pb.MemberLevel.toObject, + includeInstance + ), + }; + + 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_level.ListMemberLevelsResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result(); + return proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level_pb.MemberLevel(); + reader.readMessage( + value, + models_member_member_level_pb.MemberLevel + .deserializeBinaryFromReader + ); + msg.addMemberLevels(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_level.ListMemberLevelsResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberLevelsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_member_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.member.MemberLevel member_levels = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.prototype.getMemberLevelsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + models_member_member_level_pb.MemberLevel, + 1 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.prototype.setMemberLevelsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.member.MemberLevel=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member.MemberLevel} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.prototype.addMemberLevels = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.member.MemberLevel, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result.prototype.clearMemberLevelsList = + function () { + return this.setMemberLevelsList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.ListMemberLevelsResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.ListMemberLevelsResponse.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_level.GetMemberLevelRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.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_level.GetMemberLevelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.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_level.GetMemberLevelRequest} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest(); + return proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.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_level.GetMemberLevelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.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_level.GetMemberLevelRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.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_level.GetMemberLevelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.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_level.GetMemberLevelRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelRequest.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_level.GetMemberLevelResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse(); + return proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse + .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_level.GetMemberLevelResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse + .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_level.GetMemberLevelResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberLevel: + (f = msg.getMemberLevel()) && + models_member_member_level_pb.MemberLevel.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_level.GetMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result(); + return proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level_pb.MemberLevel(); + reader.readMessage( + value, + models_member_member_level_pb.MemberLevel + .deserializeBinaryFromReader + ); + msg.setMemberLevel(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_level.GetMemberLevelResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberLevel(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberLevel member_level = 1; + * @return {?proto.bet.beteran.member.MemberLevel} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.prototype.getMemberLevel = + function () { + return /** @type{?proto.bet.beteran.member.MemberLevel} */ ( + jspb.Message.getWrapperField( + this, + models_member_member_level_pb.MemberLevel, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberLevel|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.prototype.setMemberLevel = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.prototype.clearMemberLevel = + function () { + return this.setMemberLevel(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result.prototype.hasMemberLevel = + 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_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.GetMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.GetMemberLevelResponse.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_level.UpdateMemberLevelRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.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_level.UpdateMemberLevelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + parentId: jspb.Message.getFieldWithDefault(msg, 2, ""), + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + }; + + 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_level.UpdateMemberLevelRequest} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest(); + return proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.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_level.UpdateMemberLevelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.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.setParentId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setName(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_level.UpdateMemberLevelRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.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_level.UpdateMemberLevelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.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 = message.getName(); + if (f.length > 0) { + writer.writeString(3, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string parent_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.getParentId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.setParentId = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.clearParentId = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.hasParentId = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional string name = 3; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelRequest.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 3, 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_level.UpdateMemberLevelResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse(); + return proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member_level + .UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse + .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_level.UpdateMemberLevelResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberLevel: + (f = msg.getMemberLevel()) && + models_member_member_level_pb.MemberLevel.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_level.UpdateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result(); + return proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level_pb.MemberLevel(); + reader.readMessage( + value, + models_member_member_level_pb.MemberLevel + .deserializeBinaryFromReader + ); + msg.setMemberLevel(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_level.UpdateMemberLevelResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberLevel(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_member_level_pb.MemberLevel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberLevel member_level = 1; + * @return {?proto.bet.beteran.member.MemberLevel} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.prototype.getMemberLevel = + function () { + return /** @type{?proto.bet.beteran.member.MemberLevel} */ ( + jspb.Message.getWrapperField( + this, + models_member_member_level_pb.MemberLevel, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberLevel|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.prototype.setMemberLevel = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.prototype.clearMemberLevel = + function () { + return this.setMemberLevel(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result.prototype.hasMemberLevel = + 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_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.UpdateMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.UpdateMemberLevelResponse.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_level.DeleteMemberLevelRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.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_level.DeleteMemberLevelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.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_level.DeleteMemberLevelRequest} + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest(); + return proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.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_level.DeleteMemberLevelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest} + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.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_level.DeleteMemberLevelRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.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_level.DeleteMemberLevelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.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_level.DeleteMemberLevelRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelRequest.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_level.DeleteMemberLevelResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse} + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse(); + return proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse} + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member_level + .DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse + .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_level.DeleteMemberLevelResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result(); + return proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result} + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.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_level.DeleteMemberLevelResponse} returns this + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member_level.DeleteMemberLevelResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_level); diff --git a/src/app/modules/protobuf/models/member/member_class_pb.d.ts b/src/app/modules/protobuf/models/member/member_class_pb.d.ts index 77d6851..12712cc 100644 --- a/src/app/modules/protobuf/models/member/member_class_pb.d.ts +++ b/src/app/modules/protobuf/models/member/member_class_pb.d.ts @@ -21,11 +21,6 @@ export class MemberClass extends jspb.Message { getUpdatedAt(): number; setUpdatedAt(value: number): void; - hasDeletedAt(): boolean; - clearDeletedAt(): void; - getDeletedAt(): number; - setDeletedAt(value: number): void; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MemberClass.AsObject; static toObject( @@ -54,6 +49,5 @@ export namespace MemberClass { name: string; createdAt: number; updatedAt: number; - deletedAt: number; }; } diff --git a/src/app/modules/protobuf/models/member/member_class_pb.js b/src/app/modules/protobuf/models/member/member_class_pb.js index e4406bb..e166676 100644 --- a/src/app/modules/protobuf/models/member/member_class_pb.js +++ b/src/app/modules/protobuf/models/member/member_class_pb.js @@ -83,7 +83,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) { name: jspb.Message.getFieldWithDefault(msg, 3, ""), createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0), updatedAt: jspb.Message.getFieldWithDefault(msg, 5, 0), - deletedAt: jspb.Message.getFieldWithDefault(msg, 6, 0), }; if (includeInstance) { @@ -144,10 +143,6 @@ proto.bet.beteran.member.MemberClass.deserializeBinaryFromReader = function ( var value = /** @type {number} */ (reader.readUint64()); msg.setUpdatedAt(value); break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDeletedAt(value); - break; default: reader.skipField(); break; @@ -198,10 +193,6 @@ proto.bet.beteran.member.MemberClass.serializeBinaryToWriter = function ( if (f !== 0) { writer.writeUint64(5, f); } - f = /** @type {number} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeUint64(6, f); - } }; /** @@ -300,36 +291,4 @@ proto.bet.beteran.member.MemberClass.prototype.setUpdatedAt = function (value) { return jspb.Message.setProto3IntField(this, 5, value); }; -/** - * optional uint64 deleted_at = 6; - * @return {number} - */ -proto.bet.beteran.member.MemberClass.prototype.getDeletedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberClass} returns this - */ -proto.bet.beteran.member.MemberClass.prototype.setDeletedAt = function (value) { - return jspb.Message.setField(this, 6, value); -}; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.member.MemberClass} returns this - */ -proto.bet.beteran.member.MemberClass.prototype.clearDeletedAt = function () { - return jspb.Message.setField(this, 6, undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.member.MemberClass.prototype.hasDeletedAt = function () { - return jspb.Message.getField(this, 6) != null; -}; - goog.object.extend(exports, proto.bet.beteran.member); diff --git a/src/app/modules/protobuf/models/member/member_level_pb.d.ts b/src/app/modules/protobuf/models/member/member_level_pb.d.ts index 768dbcc..454bb4d 100644 --- a/src/app/modules/protobuf/models/member/member_level_pb.d.ts +++ b/src/app/modules/protobuf/models/member/member_level_pb.d.ts @@ -19,11 +19,6 @@ export class MemberLevel extends jspb.Message { getUpdatedAt(): number; setUpdatedAt(value: number): void; - hasDeletedAt(): boolean; - clearDeletedAt(): void; - getDeletedAt(): number; - setDeletedAt(value: number): void; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MemberLevel.AsObject; static toObject( @@ -52,6 +47,5 @@ export namespace MemberLevel { sortOrder: number; createdAt: number; updatedAt: number; - deletedAt: number; }; } diff --git a/src/app/modules/protobuf/models/member/member_level_pb.js b/src/app/modules/protobuf/models/member/member_level_pb.js index 9733613..f2e09a4 100644 --- a/src/app/modules/protobuf/models/member/member_level_pb.js +++ b/src/app/modules/protobuf/models/member/member_level_pb.js @@ -83,7 +83,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) { sortOrder: jspb.Message.getFieldWithDefault(msg, 3, 0), createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0), updatedAt: jspb.Message.getFieldWithDefault(msg, 5, 0), - deletedAt: jspb.Message.getFieldWithDefault(msg, 6, 0), }; if (includeInstance) { @@ -144,10 +143,6 @@ proto.bet.beteran.member.MemberLevel.deserializeBinaryFromReader = function ( var value = /** @type {number} */ (reader.readUint64()); msg.setUpdatedAt(value); break; - case 6: - var value = /** @type {number} */ (reader.readUint64()); - msg.setDeletedAt(value); - break; default: reader.skipField(); break; @@ -198,10 +193,6 @@ proto.bet.beteran.member.MemberLevel.serializeBinaryToWriter = function ( if (f !== 0) { writer.writeUint64(5, f); } - f = /** @type {number} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeUint64(6, f); - } }; /** @@ -284,36 +275,4 @@ proto.bet.beteran.member.MemberLevel.prototype.setUpdatedAt = function (value) { return jspb.Message.setProto3IntField(this, 5, value); }; -/** - * optional uint64 deleted_at = 6; - * @return {number} - */ -proto.bet.beteran.member.MemberLevel.prototype.getDeletedAt = function () { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - -/** - * @param {number} value - * @return {!proto.bet.beteran.member.MemberLevel} returns this - */ -proto.bet.beteran.member.MemberLevel.prototype.setDeletedAt = function (value) { - return jspb.Message.setField(this, 6, value); -}; - -/** - * Clears the field making it undefined. - * @return {!proto.bet.beteran.member.MemberLevel} returns this - */ -proto.bet.beteran.member.MemberLevel.prototype.clearDeletedAt = function () { - return jspb.Message.setField(this, 6, undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.bet.beteran.member.MemberLevel.prototype.hasDeletedAt = function () { - return jspb.Message.getField(this, 6) != null; -}; - goog.object.extend(exports, proto.bet.beteran.member);