diff --git a/src/app/modules/protobuf/c2se/backend/account_pb.d.ts b/src/app/modules/protobuf/c2se/backend/account_pb.d.ts new file mode 100644 index 0000000..93cfc3b --- /dev/null +++ b/src/app/modules/protobuf/c2se/backend/account_pb.d.ts @@ -0,0 +1,9 @@ +// package: +// file: c2se/backend/account.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_CREATE_BANK: string; +export const SUBJECT_LIST_BANKS: string; +export const SUBJECT_UPDATE_BANK: string; +export const SUBJECT_DELETE_BANK: string; diff --git a/src/app/modules/protobuf/c2se/backend/account_pb.js b/src/app/modules/protobuf/c2se/backend/account_pb.js new file mode 100644 index 0000000..018e75b --- /dev/null +++ b/src/app/modules/protobuf/c2se/backend/account_pb.js @@ -0,0 +1,33 @@ +// source: c2se/backend/account.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("bet.beteran.c2se.backend.bank", null, global); + +bet.beteran.c2se.backend.bank = {}; + +bet.beteran.c2se.backend.bank.SUBJECT_CREATE_BANK = + "bet.beteran.c2se.core.network.CreateBank"; +bet.beteran.c2se.backend.bank.SUBJECT_LIST_BANKS = + "bet.beteran.c2se.core.network.ListBanks"; +bet.beteran.c2se.backend.bank.SUBJECT_UPDATE_BANK = + "bet.beteran.c2se.core.network.UpdateBank"; +bet.beteran.c2se.backend.bank.SUBJECT_DELETE_BANK = + "bet.beteran.c2se.core.network.DeleteBank"; + +goog.object.extend(exports, bet.beteran.c2se.backend.bank); diff --git a/src/app/modules/protobuf/c2se/backend/member_pb.d.ts b/src/app/modules/protobuf/c2se/backend/member_pb.d.ts index 5c1bdbd..e060d42 100644 --- a/src/app/modules/protobuf/c2se/backend/member_pb.d.ts +++ b/src/app/modules/protobuf/c2se/backend/member_pb.d.ts @@ -8,6 +8,7 @@ import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb'; import * as models_member_member_pb from '../../models/member/member_pb'; +export const SUBJECT_CREATE_MEMBER: string; export const SUBJECT_LIST_MEMBERS: string; export const SUBJECT_GET_MEMBER: string; export const SUBJECT_GET_MEMBER_BY_USERNAME: string; @@ -199,6 +200,140 @@ export namespace ListMembersResponse { } } +export class CreateMemberRequest extends jspb.Message { + getSiteId(): string; + setSiteId(value: string): void; + + getMemberClassId(): string; + setMemberClassId(value: string): void; + + getMemberLevelId(): string; + setMemberLevelId(value: string): void; + + hasReferrerMemberId(): boolean; + clearReferrerMemberId(): void; + getReferrerMemberId(): string; + setReferrerMemberId(value: string): void; + + getUsername(): string; + setUsername(value: string): void; + + getNickname(): string; + setNickname(value: string): void; + + hasMobilePhoneNumber(): boolean; + clearMobilePhoneNumber(): void; + getMobilePhoneNumber(): string; + setMobilePhoneNumber(value: string): void; + + getState(): models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; + setState( + value: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap] + ): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberRequest + ): CreateMemberRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberRequest; + static deserializeBinaryFromReader( + message: CreateMemberRequest, + reader: jspb.BinaryReader + ): CreateMemberRequest; +} + +export namespace CreateMemberRequest { + export type AsObject = { + siteId: string; + memberClassId: string; + memberLevelId: string; + referrerMemberId: string; + username: string; + nickname: string; + mobilePhoneNumber: string; + state: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]; + }; +} + +export class CreateMemberResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_error_pb.Error | undefined; + setError(value?: protobuf_rpc_error_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): CreateMemberResponse.Result | undefined; + setResult(value?: CreateMemberResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateMemberResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateMemberResponse + ): CreateMemberResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateMemberResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateMemberResponse; + static deserializeBinaryFromReader( + message: CreateMemberResponse, + reader: jspb.BinaryReader + ): CreateMemberResponse; +} + +export namespace CreateMemberResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: CreateMemberResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasMember(): boolean; + clearMember(): void; + getMember(): models_member_member_pb.MemberModel | undefined; + setMember(value?: models_member_member_pb.MemberModel): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = { + member?: models_member_member_pb.MemberModel.AsObject; + }; + } +} + export class GetMemberRequest extends jspb.Message { getId(): string; setId(value: string): void; diff --git a/src/app/modules/protobuf/c2se/backend/member_pb.js b/src/app/modules/protobuf/c2se/backend/member_pb.js index 80d6f6c..a0f5116 100644 --- a/src/app/modules/protobuf/c2se/backend/member_pb.js +++ b/src/app/modules/protobuf/c2se/backend/member_pb.js @@ -27,6 +27,21 @@ var protobuf_pagination_sort_pb = require("../../protobuf/pagination/sort_pb.js" goog.object.extend(proto, protobuf_pagination_sort_pb); var models_member_member_pb = require("../../models/member/member_pb.js"); goog.object.extend(proto, models_member_member_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member.CreateMemberRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member.CreateMemberResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result", + null, + global +); goog.exportSymbol( "proto.bet.beteran.c2se.backend.member.DeleteMemberRequest", null, @@ -103,6 +118,8 @@ goog.exportSymbol( global ); +proto.bet.beteran.c2se.backend.member.SUBJECT_CREATE_MEMBER = + "bet.beteran.c2se.backend.member.CreateMember"; proto.bet.beteran.c2se.backend.member.SUBJECT_LIST_MEMBERS = "bet.beteran.c2se.backend.member.ListMembers"; proto.bet.beteran.c2se.backend.member.SUBJECT_GET_MEMBER = @@ -208,6 +225,87 @@ if (goog.DEBUG && !COMPILED) { proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result.displayName = "proto.bet.beteran.c2se.backend.member.ListMembersResponse.Result"; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.CreateMemberRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.CreateMemberRequest.displayName = + "proto.bet.beteran.c2se.backend.member.CreateMemberRequest"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.CreateMemberResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.displayName = + "proto.bet.beteran.c2se.backend.member.CreateMemberResponse"; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result"; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1742,6 +1840,779 @@ proto.bet.beteran.c2se.backend.member.ListMembersResponse.prototype.hasResult = return jspb.Message.getField(this, 2) != null; }; +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.CreateMemberRequest.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.CreateMemberRequest.toObject = + function (includeInstance, msg) { + var f, + obj = { + siteId: jspb.Message.getFieldWithDefault(msg, 1, ""), + memberClassId: jspb.Message.getFieldWithDefault(msg, 2, ""), + memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""), + referrerMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""), + username: jspb.Message.getFieldWithDefault(msg, 5, ""), + nickname: jspb.Message.getFieldWithDefault(msg, 6, ""), + mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 7, ""), + state: jspb.Message.getFieldWithDefault(msg, 8, 0), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.member.CreateMemberRequest(); + return proto.bet.beteran.c2se.backend.member.CreateMemberRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSiteId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberClassId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMemberLevelId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setReferrerMemberId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUsername(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setNickname(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMobilePhoneNumber(value); + break; + case 8: + var value = /** @type {!proto.bet.beteran.member.MemberState} */ ( + reader.readEnum() + ); + msg.setState(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.CreateMemberRequest.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getSiteId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getMemberClassId(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getMemberLevelId(); + if (f.length > 0) { + writer.writeString(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = message.getUsername(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getNickname(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString(7, f); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum(8, f); + } + }; + +/** + * optional string site_id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getSiteId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setSiteId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string member_class_id = 2; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getMemberClassId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setMemberClassId = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional string member_level_id = 3; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getMemberLevelId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setMemberLevelId = + function (value) { + return jspb.Message.setProto3StringField(this, 3, value); + }; + +/** + * optional string referrer_member_id = 4; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getReferrerMemberId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setReferrerMemberId = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.clearReferrerMemberId = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.hasReferrerMemberId = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string username = 5; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getUsername = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setUsername = + function (value) { + return jspb.Message.setProto3StringField(this, 5, value); + }; + +/** + * optional string nickname = 6; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getNickname = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setNickname = + function (value) { + return jspb.Message.setProto3StringField(this, 6, value); + }; + +/** + * optional string mobile_phone_number = 7; + * @return {string} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getMobilePhoneNumber = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setMobilePhoneNumber = + function (value) { + return jspb.Message.setField(this, 7, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.clearMobilePhoneNumber = + function () { + return jspb.Message.setField(this, 7, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.hasMobilePhoneNumber = + function () { + return jspb.Message.getField(this, 7) != null; + }; + +/** + * optional bet.beteran.member.MemberState state = 8; + * @return {!proto.bet.beteran.member.MemberState} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.getState = + function () { + return /** @type {!proto.bet.beteran.member.MemberState} */ ( + jspb.Message.getFieldWithDefault(this, 8, 0) + ); + }; + +/** + * @param {!proto.bet.beteran.member.MemberState} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberRequest} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberRequest.prototype.setState = + function (value) { + return jspb.Message.setProto3EnumField(this, 8, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.toObject = + function (includeInstance, msg) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_error_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.toObject( + includeInstance, + f + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.member.CreateMemberResponse(); + return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_error_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_error_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result + .deserializeBinaryFromReader + ); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_rpc_error_pb.Error.serializeBinaryToWriter + ); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result + .serializeBinaryToWriter + ); + } + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.toObject( + opt_includeInstance, + this + ); + }; + + /** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + member: + (f = msg.getMember()) && + models_member_member_pb.MemberModel.toObject(includeInstance, f), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result(); + return proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_member_member_pb.MemberModel(); + reader.readMessage( + value, + models_member_member_pb.MemberModel.deserializeBinaryFromReader + ); + msg.setMember(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.serializeBinaryToWriter( + this, + writer + ); + return writer.getResultBuffer(); + }; + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getMember(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_member_member_pb.MemberModel.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.member.MemberModel member = 1; + * @return {?proto.bet.beteran.member.MemberModel} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.getMember = + function () { + return /** @type{?proto.bet.beteran.member.MemberModel} */ ( + jspb.Message.getWrapperField(this, models_member_member_pb.MemberModel, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.member.MemberModel|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.setMember = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.clearMember = + function () { + return this.setMember(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result.prototype.hasMember = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_error_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.member.CreateMemberResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.member.CreateMemberResponse} returns this + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.member.CreateMemberResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. diff --git a/src/app/modules/protobuf/c2se/common/bank_pb.d.ts b/src/app/modules/protobuf/c2se/common/bank_pb.d.ts new file mode 100644 index 0000000..ff00368 --- /dev/null +++ b/src/app/modules/protobuf/c2se/common/bank_pb.d.ts @@ -0,0 +1,487 @@ +// package: bet.beteran.c2se.common.bank +// file: c2se/common/bank.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_account_bank_pb from '../../models/account/bank_pb'; + +export class ListBanksRequest 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; + + hasShow(): boolean; + clearShow(): void; + getShow(): boolean; + setShow(value: boolean): void; + + hasCanUse(): boolean; + clearCanUse(): void; + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemoLike(): boolean; + clearMemoLike(): void; + getMemoLike(): string; + setMemoLike(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListBanksRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListBanksRequest + ): ListBanksRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListBanksRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListBanksRequest; + static deserializeBinaryFromReader( + message: ListBanksRequest, + reader: jspb.BinaryReader + ): ListBanksRequest; +} + +export namespace ListBanksRequest { + export type AsObject = { + pagination?: protobuf_pagination_pagination_pb.Pagination.AsObject; + searchesList: Array; + sortsList: Array; + nameLike: string; + show: boolean; + canUse: boolean; + memoLike: string; + }; +} + +export class ListBanksResponse 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(): ListBanksResponse.Result | undefined; + setResult(value?: ListBanksResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListBanksResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListBanksResponse + ): ListBanksResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListBanksResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListBanksResponse; + static deserializeBinaryFromReader( + message: ListBanksResponse, + reader: jspb.BinaryReader + ): ListBanksResponse; +} + +export namespace ListBanksResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: ListBanksResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearBanksList(): void; + getBanksList(): Array; + setBanksList(value: Array): void; + addBanks( + value?: models_account_bank_pb.Bank, + index?: number + ): models_account_bank_pb.Bank; + + 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 = { + banksList: Array; + }; + } +} + +export class CreateBankRequest extends jspb.Message { + getName(): string; + setName(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + hasExpiresAt(): boolean; + clearExpiresAt(): void; + getExpiresAt(): number; + setExpiresAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateBankRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateBankRequest + ): CreateBankRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateBankRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateBankRequest; + static deserializeBinaryFromReader( + message: CreateBankRequest, + reader: jspb.BinaryReader + ): CreateBankRequest; +} + +export namespace CreateBankRequest { + export type AsObject = { + name: string; + show: boolean; + canUse: boolean; + memo: string; + expiresAt: number; + }; +} + +export class CreateBankResponse 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(): CreateBankResponse.Result | undefined; + setResult(value?: CreateBankResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateBankResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateBankResponse + ): CreateBankResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateBankResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateBankResponse; + static deserializeBinaryFromReader( + message: CreateBankResponse, + reader: jspb.BinaryReader + ): CreateBankResponse; +} + +export namespace CreateBankResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: CreateBankResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasBank(): boolean; + clearBank(): void; + getBank(): models_account_bank_pb.Bank | undefined; + setBank(value?: models_account_bank_pb.Bank): 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 = { + bank?: models_account_bank_pb.Bank.AsObject; + }; + } +} + +export class UpdateBankRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getName(): string; + setName(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateBankRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateBankRequest + ): UpdateBankRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateBankRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateBankRequest; + static deserializeBinaryFromReader( + message: UpdateBankRequest, + reader: jspb.BinaryReader + ): UpdateBankRequest; +} + +export namespace UpdateBankRequest { + export type AsObject = { + id: string; + name: string; + show: boolean; + canUse: boolean; + memo: string; + }; +} + +export class UpdateBankResponse 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(): UpdateBankResponse.Result | undefined; + setResult(value?: UpdateBankResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateBankResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateBankResponse + ): UpdateBankResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateBankResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateBankResponse; + static deserializeBinaryFromReader( + message: UpdateBankResponse, + reader: jspb.BinaryReader + ): UpdateBankResponse; +} + +export namespace UpdateBankResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: UpdateBankResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasBank(): boolean; + clearBank(): void; + getBank(): models_account_bank_pb.Bank | undefined; + setBank(value?: models_account_bank_pb.Bank): 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 = { + bank?: models_account_bank_pb.Bank.AsObject; + }; + } +} + +export class DeleteBankRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteBankRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteBankRequest + ): DeleteBankRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteBankRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteBankRequest; + static deserializeBinaryFromReader( + message: DeleteBankRequest, + reader: jspb.BinaryReader + ): DeleteBankRequest; +} + +export namespace DeleteBankRequest { + export type AsObject = { + id: string; + }; +} + +export class DeleteBankResponse 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(): DeleteBankResponse.Result | undefined; + setResult(value?: DeleteBankResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteBankResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteBankResponse + ): DeleteBankResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteBankResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteBankResponse; + static deserializeBinaryFromReader( + message: DeleteBankResponse, + reader: jspb.BinaryReader + ): DeleteBankResponse; +} + +export namespace DeleteBankResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: DeleteBankResponse.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/common/bank_pb.js b/src/app/modules/protobuf/c2se/common/bank_pb.js new file mode 100644 index 0000000..bf92396 --- /dev/null +++ b/src/app/modules/protobuf/c2se/common/bank_pb.js @@ -0,0 +1,3171 @@ +// source: c2se/common/bank.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_account_bank_pb = require("../../models/account/bank_pb.js"); +goog.object.extend(proto, models_account_bank_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.CreateBankRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.CreateBankResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.DeleteBankRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.DeleteBankResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.ListBanksRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.ListBanksResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.UpdateBankRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.UpdateBankResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result", + null, + global +); +/** + * 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.common.bank.ListBanksRequest = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.common.bank.ListBanksRequest.repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.ListBanksRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.ListBanksRequest.displayName = + "proto.bet.beteran.c2se.common.bank.ListBanksRequest"; +} +/** + * 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.common.bank.ListBanksResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.ListBanksResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.ListBanksResponse.displayName = + "proto.bet.beteran.c2se.common.bank.ListBanksResponse"; +} +/** + * 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.common.bank.ListBanksResponse.Result = function ( + opt_data +) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.displayName = + "proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.CreateBankRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.CreateBankRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.CreateBankRequest.displayName = + "proto.bet.beteran.c2se.common.bank.CreateBankRequest"; +} +/** + * 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.common.bank.CreateBankResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.CreateBankResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.CreateBankResponse.displayName = + "proto.bet.beteran.c2se.common.bank.CreateBankResponse"; +} +/** + * 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.common.bank.CreateBankResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.displayName = + "proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.UpdateBankRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.UpdateBankRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.UpdateBankRequest.displayName = + "proto.bet.beteran.c2se.common.bank.UpdateBankRequest"; +} +/** + * 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.common.bank.UpdateBankResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.UpdateBankResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.UpdateBankResponse.displayName = + "proto.bet.beteran.c2se.common.bank.UpdateBankResponse"; +} +/** + * 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.common.bank.UpdateBankResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.displayName = + "proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.DeleteBankRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.DeleteBankRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.DeleteBankRequest.displayName = + "proto.bet.beteran.c2se.common.bank.DeleteBankRequest"; +} +/** + * 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.common.bank.DeleteBankResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.DeleteBankResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.DeleteBankResponse.displayName = + "proto.bet.beteran.c2se.common.bank.DeleteBankResponse"; +} +/** + * 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.common.bank.DeleteBankResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.displayName = + "proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result"; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.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.common.bank.ListBanksRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.ListBanksRequest.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.common.bank.ListBanksRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.ListBanksRequest.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, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + memoLike: jspb.Message.getFieldWithDefault(msg, 7, ""), + }; + + 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.common.bank.ListBanksRequest} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.common.bank.ListBanksRequest(); + return proto.bet.beteran.c2se.common.bank.ListBanksRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.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; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setMemoLike(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.ListBanksRequest.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.common.bank.ListBanksRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.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); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeBool(5, f); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeBool(6, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString(7, f); + } + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.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.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Search searches = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getSearchesList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + protobuf_pagination_search_pb.Search, + 2 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.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.common.bank.ListBanksRequest.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.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearSearchesList = + function () { + return this.setSearchesList([]); + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 3; + * @return {!Array} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + protobuf_pagination_sort_pb.Sort, + 3 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.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.common.bank.ListBanksRequest.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.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional string name_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getNameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setNameLike = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearNameLike = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasNameLike = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional bool show = 5; + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getShow = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 5, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setShow = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearShow = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasShow = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional bool can_use = 6; + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getCanUse = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 6, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setCanUse = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearCanUse = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasCanUse = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +/** + * optional string memo_like = 7; + * @return {string} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.getMemoLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 7, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.setMemoLike = + function (value) { + return jspb.Message.setField(this, 7, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.clearMemoLike = + function () { + return jspb.Message.setField(this, 7, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.ListBanksRequest.prototype.hasMemoLike = + function () { + return jspb.Message.getField(this, 7) != 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.common.bank.ListBanksResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.common.bank.ListBanksResponse(); + return proto.bet.beteran.c2se.common.bank.ListBanksResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse.Result + .serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + banksList: jspb.Message.toObjectList( + msg.getBanksList(), + models_account_bank_pb.Bank.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.common.bank.ListBanksResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result(); + return proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_account_bank_pb.Bank(); + reader.readMessage( + value, + models_account_bank_pb.Bank.deserializeBinaryFromReader + ); + msg.addBanks(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getBanksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_account_bank_pb.Bank.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.account.Bank banks = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.getBanksList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_account_bank_pb.Bank, 1) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.setBanksList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.account.Bank=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.account.Bank} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.addBanks = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.account.Bank, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result.prototype.clearBanksList = + function () { + return this.setBanksList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.ListBanksResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.common.bank.ListBanksResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.ListBanksResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.ListBanksResponse.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.common.bank.CreateBankRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.CreateBankRequest.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.common.bank.CreateBankRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.CreateBankRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + memo: jspb.Message.getFieldWithDefault(msg, 4, ""), + expiresAt: jspb.Message.getFieldWithDefault(msg, 5, 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.common.bank.CreateBankRequest} + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.common.bank.CreateBankRequest(); + return proto.bet.beteran.c2se.common.bank.CreateBankRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.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 {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setExpiresAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.CreateBankRequest.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.common.bank.CreateBankRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getShow(); + if (f) { + writer.writeBool(2, f); + } + f = message.getCanUse(); + if (f) { + writer.writeBool(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeUint64(5, f); + } + }; + +/** + * optional string name = 1; + * @return {string} + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional bool show = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getShow = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 2, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setShow = + function (value) { + return jspb.Message.setProto3BooleanField(this, 2, value); + }; + +/** + * optional bool can_use = 3; + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getCanUse = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 3, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setCanUse = + function (value) { + return jspb.Message.setProto3BooleanField(this, 3, value); + }; + +/** + * optional string memo = 4; + * @return {string} + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getMemo = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setMemo = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.clearMemo = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.hasMemo = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional uint64 expires_at = 5; + * @return {number} + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.getExpiresAt = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.setExpiresAt = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.clearExpiresAt = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.CreateBankRequest.prototype.hasExpiresAt = + function () { + return jspb.Message.getField(this, 5) != 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.common.bank.CreateBankResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse} + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.common.bank.CreateBankResponse(); + return proto.bet.beteran.c2se.common.bank.CreateBankResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + bank: + (f = msg.getBank()) && + models_account_bank_pb.Bank.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.common.bank.CreateBankResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result(); + return proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_account_bank_pb.Bank(); + reader.readMessage( + value, + models_account_bank_pb.Bank.deserializeBinaryFromReader + ); + msg.setBank(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getBank(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_account_bank_pb.Bank.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.account.Bank bank = 1; + * @return {?proto.bet.beteran.account.Bank} + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.getBank = + function () { + return /** @type{?proto.bet.beteran.account.Bank} */ ( + jspb.Message.getWrapperField(this, models_account_bank_pb.Bank, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.account.Bank|undefined} value + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.setBank = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.clearBank = + function () { + return this.setBank(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result.prototype.hasBank = + 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.common.bank.CreateBankResponse.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.common.bank.CreateBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.common.bank.CreateBankResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.CreateBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.CreateBankResponse.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.common.bank.UpdateBankRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.UpdateBankRequest.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.common.bank.UpdateBankRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.UpdateBankRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + memo: jspb.Message.getFieldWithDefault(msg, 5, ""), + }; + + 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.common.bank.UpdateBankRequest} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.common.bank.UpdateBankRequest(); + return proto.bet.beteran.c2se.common.bank.UpdateBankRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.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.setName(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCanUse(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.UpdateBankRequest.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.common.bank.UpdateBankRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getShow(); + if (f) { + writer.writeBool(3, f); + } + f = message.getCanUse(); + if (f) { + writer.writeBool(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getName = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setName = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional bool show = 3; + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getShow = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 3, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setShow = + function (value) { + return jspb.Message.setProto3BooleanField(this, 3, value); + }; + +/** + * optional bool can_use = 4; + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getCanUse = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 4, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setCanUse = + function (value) { + return jspb.Message.setProto3BooleanField(this, 4, value); + }; + +/** + * optional string memo = 5; + * @return {string} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.getMemo = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.setMemo = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.clearMemo = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankRequest.prototype.hasMemo = + function () { + return jspb.Message.getField(this, 5) != 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.common.bank.UpdateBankResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.common.bank.UpdateBankResponse(); + return proto.bet.beteran.c2se.common.bank.UpdateBankResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + bank: + (f = msg.getBank()) && + models_account_bank_pb.Bank.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.common.bank.UpdateBankResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result(); + return proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_account_bank_pb.Bank(); + reader.readMessage( + value, + models_account_bank_pb.Bank.deserializeBinaryFromReader + ); + msg.setBank(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getBank(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_account_bank_pb.Bank.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.account.Bank bank = 1; + * @return {?proto.bet.beteran.account.Bank} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.getBank = + function () { + return /** @type{?proto.bet.beteran.account.Bank} */ ( + jspb.Message.getWrapperField(this, models_account_bank_pb.Bank, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.account.Bank|undefined} value + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.setBank = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.clearBank = + function () { + return this.setBank(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result.prototype.hasBank = + 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.common.bank.UpdateBankResponse.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.common.bank.UpdateBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.common.bank.UpdateBankResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.UpdateBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.UpdateBankResponse.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.common.bank.DeleteBankRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.DeleteBankRequest.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.common.bank.DeleteBankRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.DeleteBankRequest.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.common.bank.DeleteBankRequest} + */ +proto.bet.beteran.c2se.common.bank.DeleteBankRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.common.bank.DeleteBankRequest(); + return proto.bet.beteran.c2se.common.bank.DeleteBankRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.common.bank.DeleteBankRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankRequest} + */ +proto.bet.beteran.c2se.common.bank.DeleteBankRequest.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.common.bank.DeleteBankRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.DeleteBankRequest.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.common.bank.DeleteBankRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.DeleteBankRequest.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.common.bank.DeleteBankRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankRequest} returns this + */ +proto.bet.beteran.c2se.common.bank.DeleteBankRequest.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.common.bank.DeleteBankResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse} + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.common.bank.DeleteBankResponse(); + return proto.bet.beteran.c2se.common.bank.DeleteBankResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result(); + return proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse.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.common.bank.DeleteBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result} + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.common.bank.DeleteBankResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.common.bank.DeleteBankResponse} returns this + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.common.bank.DeleteBankResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.common.bank); diff --git a/src/app/modules/protobuf/c2se/frontend/account_pb.d.ts b/src/app/modules/protobuf/c2se/frontend/account_pb.d.ts new file mode 100644 index 0000000..ebfe3d2 --- /dev/null +++ b/src/app/modules/protobuf/c2se/frontend/account_pb.d.ts @@ -0,0 +1,6 @@ +// package: +// file: c2se/frontend/account.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_LIST_BANKS: string; diff --git a/src/app/modules/protobuf/c2se/frontend/account_pb.js b/src/app/modules/protobuf/c2se/frontend/account_pb.js new file mode 100644 index 0000000..2c09b38 --- /dev/null +++ b/src/app/modules/protobuf/c2se/frontend/account_pb.js @@ -0,0 +1,27 @@ +// source: c2se/frontend/account.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("bet.beteran.c2se.frontend.bank", null, global); + +bet.beteran.c2se.frontend.bank = {}; + +bet.beteran.c2se.frontend.bank.SUBJECT_LIST_BANKS = + "bet.beteran.c2se.core.network.ListBanks"; + +goog.object.extend(exports, bet.beteran.c2se.frontend.bank); diff --git a/src/app/modules/protobuf/models/account/bank_pb.d.ts b/src/app/modules/protobuf/models/account/bank_pb.d.ts new file mode 100644 index 0000000..7f49c78 --- /dev/null +++ b/src/app/modules/protobuf/models/account/bank_pb.d.ts @@ -0,0 +1,58 @@ +// package: bet.beteran.account +// file: models/account/bank.proto + +import * as jspb from 'google-protobuf'; + +export class Bank extends jspb.Message { + getId(): string; + setId(value: string): void; + + getName(): string; + setName(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): string; + setMemo(value: string): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Bank.AsObject; + static toObject(includeInstance: boolean, msg: Bank): Bank.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Bank, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Bank; + static deserializeBinaryFromReader( + message: Bank, + reader: jspb.BinaryReader + ): Bank; +} + +export namespace Bank { + export type AsObject = { + id: string; + name: string; + show: boolean; + canUse: boolean; + memo: string; + createdAt: number; + updatedAt: number; + }; +} diff --git a/src/app/modules/protobuf/models/account/bank_pb.js b/src/app/modules/protobuf/models/account/bank_pb.js new file mode 100644 index 0000000..ecc2cbf --- /dev/null +++ b/src/app/modules/protobuf/models/account/bank_pb.js @@ -0,0 +1,345 @@ +// source: models/account/bank.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.account.Bank", null, global); +/** + * 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.account.Bank = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.account.Bank, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.account.Bank.displayName = "proto.bet.beteran.account.Bank"; +} + +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.account.Bank.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.account.Bank.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.account.Bank} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.account.Bank.toObject = function (includeInstance, msg) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + memo: jspb.Message.getFieldWithDefault(msg, 5, ""), + createdAt: jspb.Message.getFieldWithDefault(msg, 6, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 7, 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.account.Bank} + */ +proto.bet.beteran.account.Bank.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.account.Bank(); + return proto.bet.beteran.account.Bank.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.account.Bank} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.account.Bank} + */ +proto.bet.beteran.account.Bank.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.setName(value); + break; + case 3: + var value = /** @type {boolean} */ reader.readBool(); + msg.setShow(value); + break; + case 4: + var value = /** @type {boolean} */ reader.readBool(); + msg.setCanUse(value); + break; + case 5: + var value = /** @type {string} */ reader.readString(); + msg.setMemo(value); + break; + case 6: + var value = /** @type {number} */ reader.readUint64(); + msg.setCreatedAt(value); + break; + case 7: + var value = /** @type {number} */ reader.readUint64(); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.account.Bank.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.account.Bank.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.account.Bank} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.account.Bank.serializeBinaryToWriter = function ( + message, + writer +) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(2, f); + } + f = message.getShow(); + if (f) { + writer.writeBool(3, f); + } + f = message.getCanUse(); + if (f) { + writer.writeBool(4, f); + } + f = /** @type {string} */ jspb.Message.getField(message, 5); + if (f != null) { + writer.writeString(5, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(6, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(7, f); + } +}; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.account.Bank.prototype.getId = function () { + return /** @type {string} */ jspb.Message.getFieldWithDefault(this, 1, ""); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.account.Bank} returns this + */ +proto.bet.beteran.account.Bank.prototype.setId = function (value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + +/** + * optional string name = 2; + * @return {string} + */ +proto.bet.beteran.account.Bank.prototype.getName = function () { + return /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, ""); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.account.Bank} returns this + */ +proto.bet.beteran.account.Bank.prototype.setName = function (value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + +/** + * optional bool show = 3; + * @return {boolean} + */ +proto.bet.beteran.account.Bank.prototype.getShow = function () { + return /** @type {boolean} */ jspb.Message.getBooleanFieldWithDefault( + this, + 3, + false + ); +}; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.account.Bank} returns this + */ +proto.bet.beteran.account.Bank.prototype.setShow = function (value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + +/** + * optional bool can_use = 4; + * @return {boolean} + */ +proto.bet.beteran.account.Bank.prototype.getCanUse = function () { + return /** @type {boolean} */ jspb.Message.getBooleanFieldWithDefault( + this, + 4, + false + ); +}; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.account.Bank} returns this + */ +proto.bet.beteran.account.Bank.prototype.setCanUse = function (value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + +/** + * optional string memo = 5; + * @return {string} + */ +proto.bet.beteran.account.Bank.prototype.getMemo = function () { + return /** @type {string} */ jspb.Message.getFieldWithDefault(this, 5, ""); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.account.Bank} returns this + */ +proto.bet.beteran.account.Bank.prototype.setMemo = function (value) { + return jspb.Message.setField(this, 5, value); +}; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.account.Bank} returns this + */ +proto.bet.beteran.account.Bank.prototype.clearMemo = function () { + return jspb.Message.setField(this, 5, undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.account.Bank.prototype.hasMemo = function () { + return jspb.Message.getField(this, 5) != null; +}; + +/** + * optional uint64 created_at = 6; + * @return {number} + */ +proto.bet.beteran.account.Bank.prototype.getCreatedAt = function () { + return /** @type {number} */ jspb.Message.getFieldWithDefault(this, 6, 0); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.account.Bank} returns this + */ +proto.bet.beteran.account.Bank.prototype.setCreatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + +/** + * optional uint64 updated_at = 7; + * @return {number} + */ +proto.bet.beteran.account.Bank.prototype.getUpdatedAt = function () { + return /** @type {number} */ jspb.Message.getFieldWithDefault(this, 7, 0); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.account.Bank} returns this + */ +proto.bet.beteran.account.Bank.prototype.setUpdatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + +goog.object.extend(exports, proto.bet.beteran.account);