diff --git a/src/app/modules/proto/c2se/backend/member_referrer_pb.d.ts b/src/app/modules/proto/c2se/backend/member_referrer_pb.d.ts index 4959224..6cd4a26 100644 --- a/src/app/modules/proto/c2se/backend/member_referrer_pb.d.ts +++ b/src/app/modules/proto/c2se/backend/member_referrer_pb.d.ts @@ -4,7 +4,10 @@ import * as jspb from 'google-protobuf'; export const SUBJECT_CREATE_MEMBER_REFERRER: string; +export const SUBJECT_CREATE_MEMBER_REFERRERs: string; export const SUBJECT_LIST_MEMBER_REFERRERS: string; export const SUBJECT_GET_MEMBER_REFERRER: string; +export const SUBJECT_GET_MEMBER_REFERRER_BY_CODE: string; export const SUBJECT_UPDATE_MEMBER_REFERRER: string; export const SUBJECT_DELETE_MEMBER_REFERRER: string; +export const SUBJECT_DELETE_MEMBER_REFERRERS: string; diff --git a/src/app/modules/proto/c2se/backend/member_referrer_pb.js b/src/app/modules/proto/c2se/backend/member_referrer_pb.js index 20388bf..5b47f84 100644 --- a/src/app/modules/proto/c2se/backend/member_referrer_pb.js +++ b/src/app/modules/proto/c2se/backend/member_referrer_pb.js @@ -27,13 +27,19 @@ proto.bet.beteran.c2se.backend.member_referrer = {}; proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_CREATE_MEMBER_REFERRER = "bet.beteran.c2se.backend.member_referrer.CreateMemberReferrer"; +proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_CREATE_MEMBER_REFERRERS = + "bet.beteran.c2se.backend.member_referrer.CreateMemberReferrers"; proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_LIST_MEMBER_REFERRERS = "bet.beteran.c2se.backend.member_referrer.ListMemberReferrers"; proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_GET_MEMBER_REFERRER = "bet.beteran.c2se.backend.member_referrer.GetMemberReferrer"; +proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_GET_MEMBER_REFERRER_BY_CODE = + "bet.beteran.c2se.backend.member_referrer.GetMemberReferrerByCode"; proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_UPDATE_MEMBER_REFERRER = "bet.beteran.c2se.backend.member_referrer.UpdateMemberReferrer"; proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_DELETE_MEMBER_REFERRER = "bet.beteran.c2se.backend.member_referrer.DeleteMemberReferrer"; +proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_DELETE_MEMBER_REFERRERS = + "bet.beteran.c2se.backend.member_referrer.DeleteMemberReferrers"; goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_referrer); diff --git a/src/app/modules/proto/c2se/frontend/member_referrer_pb.d.ts b/src/app/modules/proto/c2se/frontend/member_referrer_pb.d.ts new file mode 100644 index 0000000..5aca66f --- /dev/null +++ b/src/app/modules/proto/c2se/frontend/member_referrer_pb.d.ts @@ -0,0 +1,6 @@ +// package: bet.beteran.c2se.frontend.member_referrer +// file: c2se/frontend/member_referrer.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_GET_MEMBER_REFERRER_BY_CODE: string; diff --git a/src/app/modules/proto/c2se/frontend/member_referrer_pb.js b/src/app/modules/proto/c2se/frontend/member_referrer_pb.js new file mode 100644 index 0000000..03bfd25 --- /dev/null +++ b/src/app/modules/proto/c2se/frontend/member_referrer_pb.js @@ -0,0 +1,31 @@ +// source: c2se/frontend/member_referrer.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); + +goog.exportSymbol( + "proto.bet.beteran.c2se.frontend.member_referrer", + null, + global +); + +proto.bet.beteran.c2se.frontend.member_referrer = {}; + +proto.bet.beteran.c2se.frontend.member_referrer.SUBJECT_GET_MEMBER_REFERRER_BY_CODE = + "bet.beteran.c2se.frontend.member_referrer.GetMemberReferrerByCode"; + +goog.object.extend(exports, proto.bet.beteran.c2se.frontend.member_referrer); diff --git a/src/app/modules/proto/c2se/member_referrer_pb.d.ts b/src/app/modules/proto/c2se/member_referrer_pb.d.ts index fcf8475..972160f 100644 --- a/src/app/modules/proto/c2se/member_referrer_pb.d.ts +++ b/src/app/modules/proto/c2se/member_referrer_pb.d.ts @@ -110,6 +110,113 @@ export namespace CreateMemberReferrerResponse { } } +export class CreateMemberReferrersRequest extends jspb.Message { + clearMemberIdsList(): void; + getMemberIdsList(): Array; + setMemberIdsList(value: Array): void; + addMemberIds(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberReferrersRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberReferrersRequest + ): CreateMemberReferrersRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberReferrersRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberReferrersRequest; + static deserializeBinaryFromReader( + message: CreateMemberReferrersRequest, + reader: jspb.BinaryReader + ): CreateMemberReferrersRequest; +} + +export namespace CreateMemberReferrersRequest { + export type AsObject = { + memberIdsList: Array; + }; +} + +export class CreateMemberReferrersResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateMemberReferrersResponse.Result | undefined; + setResult(value?: CreateMemberReferrersResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberReferrersResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberReferrersResponse + ): CreateMemberReferrersResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberReferrersResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberReferrersResponse; + static deserializeBinaryFromReader( + message: CreateMemberReferrersResponse, + reader: jspb.BinaryReader + ): CreateMemberReferrersResponse; +} + +export namespace CreateMemberReferrersResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: CreateMemberReferrersResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearMemberReferrersList(): void; + getMemberReferrersList(): Array; + setMemberReferrersList( + value: Array + ): void; + addMemberReferrers( + value?: models_member_referrer_pb.MemberReferrerModel, + index?: number + ): models_member_referrer_pb.MemberReferrerModel; + + 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 = { + memberReferrersList: Array; + }; + } +} + export class ListMemberReferrersRequest extends jspb.Message { hasPagination(): boolean; clearPagination(): void; @@ -378,6 +485,110 @@ export namespace GetMemberReferrerResponse { } } +export class GetMemberReferrerByCodeRequest extends jspb.Message { + getCode(): string; + setCode(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberReferrerByCodeRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberReferrerByCodeRequest + ): GetMemberReferrerByCodeRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberReferrerByCodeRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberReferrerByCodeRequest; + static deserializeBinaryFromReader( + message: GetMemberReferrerByCodeRequest, + reader: jspb.BinaryReader + ): GetMemberReferrerByCodeRequest; +} + +export namespace GetMemberReferrerByCodeRequest { + export type AsObject = { + code: string; + }; +} + +export class GetMemberReferrerByCodeResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): GetMemberReferrerByCodeResponse.Result | undefined; + setResult(value?: GetMemberReferrerByCodeResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMemberReferrerByCodeResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: GetMemberReferrerByCodeResponse + ): GetMemberReferrerByCodeResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: GetMemberReferrerByCodeResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): GetMemberReferrerByCodeResponse; + static deserializeBinaryFromReader( + message: GetMemberReferrerByCodeResponse, + reader: jspb.BinaryReader + ): GetMemberReferrerByCodeResponse; +} + +export namespace GetMemberReferrerByCodeResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: GetMemberReferrerByCodeResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMemberReferrer(): boolean; + clearMemberReferrer(): void; + getMemberReferrer(): + | models_member_referrer_pb.MemberReferrerModel + | undefined; + setMemberReferrer( + value?: models_member_referrer_pb.MemberReferrerModel + ): 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 = { + memberReferrer?: models_member_referrer_pb.MemberReferrerModel.AsObject; + }; + } +} + export class UpdateMemberReferrerRequest extends jspb.Message { getId(): string; setId(value: string): void; @@ -584,3 +795,98 @@ export namespace DeleteMemberReferrerResponse { export type AsObject = {}; } } + +export class DeleteMemberReferrersRequest extends jspb.Message { + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): void; + addIds(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberReferrersRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberReferrersRequest + ): DeleteMemberReferrersRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberReferrersRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberReferrersRequest; + static deserializeBinaryFromReader( + message: DeleteMemberReferrersRequest, + reader: jspb.BinaryReader + ): DeleteMemberReferrersRequest; +} + +export namespace DeleteMemberReferrersRequest { + export type AsObject = { + idsList: Array; + }; +} + +export class DeleteMemberReferrersResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): DeleteMemberReferrersResponse.Result | undefined; + setResult(value?: DeleteMemberReferrersResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMemberReferrersResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteMemberReferrersResponse + ): DeleteMemberReferrersResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteMemberReferrersResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteMemberReferrersResponse; + static deserializeBinaryFromReader( + message: DeleteMemberReferrersResponse, + reader: jspb.BinaryReader + ): DeleteMemberReferrersResponse; +} + +export namespace DeleteMemberReferrersResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: DeleteMemberReferrersResponse.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/proto/c2se/member_referrer_pb.js b/src/app/modules/proto/c2se/member_referrer_pb.js index 2eace03..f91d6a4 100644 --- a/src/app/modules/proto/c2se/member_referrer_pb.js +++ b/src/app/modules/proto/c2se/member_referrer_pb.js @@ -38,6 +38,21 @@ goog.exportSymbol( null, global ); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result", + null, + global +); goog.exportSymbol( "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerRequest", null, @@ -53,6 +68,36 @@ goog.exportSymbol( null, global ); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result", + null, + global +); goog.exportSymbol( "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerRequest", null, @@ -183,6 +228,101 @@ if (goog.DEBUG && !COMPILED) { proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.Result.displayName = "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.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.member_referrer.CreateMemberReferrersRequest = function ( + opt_data +) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest + .repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.displayName = + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest"; +} +/** + * 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.member_referrer.CreateMemberReferrersResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.displayName = + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse"; +} +/** + * 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.member_referrer.CreateMemberReferrersResponse.Result = + function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse + .Result.repeatedFields_, + null + ); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result.displayName = + "proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result"; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -385,6 +525,84 @@ if (goog.DEBUG && !COMPILED) { proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.Result.displayName = "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.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.member_referrer.GetMemberReferrerByCodeRequest = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.displayName = + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest"; +} +/** + * 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.member_referrer.GetMemberReferrerByCodeResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.displayName = + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse"; +} +/** + * 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.member_referrer.GetMemberReferrerByCodeResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result.displayName = + "proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result"; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -545,6 +763,93 @@ if (goog.DEBUG && !COMPILED) { proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.Result.displayName = "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.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.member_referrer.DeleteMemberReferrersRequest = function ( + opt_data +) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest + .repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.displayName = + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest"; +} +/** + * 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.member_referrer.DeleteMemberReferrersResponse = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.displayName = + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse"; +} +/** + * 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.member_referrer.DeleteMemberReferrersResponse.Result = + function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); + }; +goog.inherits( + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result.displayName = + "proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result"; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** @@ -1085,6 +1390,587 @@ proto.bet.beteran.c2se.member_referrer.CreateMemberReferrerResponse.prototype.ha return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.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.member_referrer.CreateMemberReferrersRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.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.member_referrer.CreateMemberReferrersRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberIdsList: + (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.member_referrer.CreateMemberReferrersRequest} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest(); + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.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.addMemberIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.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.member_referrer.CreateMemberReferrersRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberIdsList(); + if (f.length > 0) { + writer.writeRepeatedString(1, f); + } + }; + +/** + * repeated string member_ids = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.prototype.getMemberIdsList = + function () { + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 1) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.prototype.setMemberIdsList = + function (value) { + return jspb.Message.setField(this, 1, value || []); + }; + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.prototype.addMemberIds = + function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersRequest.prototype.clearMemberIdsList = + function () { + return this.setMemberIdsList([]); + }; + +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.member_referrer.CreateMemberReferrersResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.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.member_referrer.CreateMemberReferrersResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.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.member_referrer.CreateMemberReferrersResponse} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse(); + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse + .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.member_referrer.CreateMemberReferrersResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.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.member_referrer.CreateMemberReferrersResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse + .Result.serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.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.member_referrer.CreateMemberReferrersResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.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.member_referrer.CreateMemberReferrersResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberReferrersList: jspb.Message.toObjectList( + msg.getMemberReferrersList(), + models_member_referrer_pb.MemberReferrerModel.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.member_referrer.CreateMemberReferrersResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result(); + return proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.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.member_referrer.CreateMemberReferrersResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.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_referrer_pb.MemberReferrerModel(); + reader.readMessage( + value, + models_member_referrer_pb.MemberReferrerModel + .deserializeBinaryFromReader + ); + msg.addMemberReferrers(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.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.member_referrer.CreateMemberReferrersResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberReferrersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_member_referrer_pb.MemberReferrerModel.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.member_referrer.MemberReferrerModel member_referrers = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result.prototype.getMemberReferrersList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + models_member_referrer_pb.MemberReferrerModel, + 1 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result.prototype.setMemberReferrersList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.member_referrer.MemberReferrerModel=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result.prototype.addMemberReferrers = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.member_referrer.MemberReferrerModel, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result.prototype.clearMemberReferrersList = + function () { + return this.setMemberReferrersList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.CreateMemberReferrersResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + /** * List of repeated fields within this message type. * @private {!Array} @@ -2595,6 +3481,546 @@ proto.bet.beteran.c2se.member_referrer.GetMemberReferrerResponse.prototype.hasRe 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.member_referrer.GetMemberReferrerByCodeRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.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.member_referrer.GetMemberReferrerByCodeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + code: 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.member_referrer.GetMemberReferrerByCodeRequest} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest(); + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.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.setCode(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.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.member_referrer.GetMemberReferrerByCodeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getCode(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string code = 1; + * @return {string} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.prototype.getCode = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeRequest.prototype.setCode = + 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.member_referrer.GetMemberReferrerByCodeResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.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.member_referrer.GetMemberReferrerByCodeResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.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.member_referrer.GetMemberReferrerByCodeResponse} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse(); + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_referrer + .GetMemberReferrerByCodeResponse.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.member_referrer.GetMemberReferrerByCodeResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.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.member_referrer.GetMemberReferrerByCodeResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse + .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.member_referrer.GetMemberReferrerByCodeResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.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.member_referrer.GetMemberReferrerByCodeResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + memberReferrer: + (f = msg.getMemberReferrer()) && + models_member_referrer_pb.MemberReferrerModel.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.member_referrer.GetMemberReferrerByCodeResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result(); + return proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.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.member_referrer.GetMemberReferrerByCodeResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.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_referrer_pb.MemberReferrerModel(); + reader.readMessage( + value, + models_member_referrer_pb.MemberReferrerModel + .deserializeBinaryFromReader + ); + msg.setMemberReferrer(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.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.member_referrer.GetMemberReferrerByCodeResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMemberReferrer(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_referrer_pb.MemberReferrerModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member_referrer.MemberReferrerModel member_referrer = 1; + * @return {?proto.bet.beteran.member_referrer.MemberReferrerModel} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result.prototype.getMemberReferrer = + function () { + return /** @type{?proto.bet.beteran.member_referrer.MemberReferrerModel} */ ( + jspb.Message.getWrapperField( + this, + models_member_referrer_pb.MemberReferrerModel, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.member_referrer.MemberReferrerModel|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result.prototype.setMemberReferrer = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result.prototype.clearMemberReferrer = + function () { + return this.setMemberReferrer(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result.prototype.hasMemberReferrer = + 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.member_referrer.GetMemberReferrerByCodeResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.GetMemberReferrerByCodeResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -3683,4 +5109,505 @@ proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrerResponse.prototype.ha return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.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.member_referrer.DeleteMemberReferrersRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.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.member_referrer.DeleteMemberReferrersRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + idsList: + (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.member_referrer.DeleteMemberReferrersRequest} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest(); + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.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.addIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.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.member_referrer.DeleteMemberReferrersRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString(1, f); + } + }; + +/** + * repeated string ids = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.prototype.getIdsList = + function () { + return /** @type {!Array} */ ( + jspb.Message.getRepeatedField(this, 1) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.prototype.setIdsList = + function (value) { + return jspb.Message.setField(this, 1, value || []); + }; + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.prototype.addIds = + function (value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersRequest.prototype.clearIdsList = + function () { + return this.setIdsList([]); + }; + +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.member_referrer.DeleteMemberReferrersResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.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.member_referrer.DeleteMemberReferrersResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.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.member_referrer.DeleteMemberReferrersResponse} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse(); + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse + .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.member_referrer.DeleteMemberReferrersResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.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.member_referrer.DeleteMemberReferrersResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse + .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.member_referrer.DeleteMemberReferrersResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.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.member_referrer.DeleteMemberReferrersResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.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.member_referrer.DeleteMemberReferrersResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result(); + return proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.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.member_referrer.DeleteMemberReferrersResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.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.member_referrer.DeleteMemberReferrersResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.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.member_referrer.DeleteMemberReferrersResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.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.member_referrer.DeleteMemberReferrersResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse + .Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse} returns this + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_referrer.DeleteMemberReferrersResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + goog.object.extend(exports, proto.bet.beteran.c2se.member_referrer);