From cea7d0152bdee13081a4ed2e2be36afe210b05d0 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 18 Aug 2022 03:39:55 +0000 Subject: [PATCH 1/2] vendor is added --- src/app/modules/proto/c2se/api/vendor_pb.d.ts | 188 +++ src/app/modules/proto/c2se/api/vendor_pb.js | 1271 +++++++++++++++++ .../proto/c2se/backend/api/vendor_pb.d.ts | 6 + .../proto/c2se/backend/api/vendor_pb.js | 27 + .../modules/proto/models/api/vendor_pb.d.ts | 76 + src/app/modules/proto/models/api/vendor_pb.js | 455 ++++++ 6 files changed, 2023 insertions(+) create mode 100644 src/app/modules/proto/c2se/api/vendor_pb.d.ts create mode 100644 src/app/modules/proto/c2se/api/vendor_pb.js create mode 100644 src/app/modules/proto/c2se/backend/api/vendor_pb.d.ts create mode 100644 src/app/modules/proto/c2se/backend/api/vendor_pb.js create mode 100644 src/app/modules/proto/models/api/vendor_pb.d.ts create mode 100644 src/app/modules/proto/models/api/vendor_pb.js diff --git a/src/app/modules/proto/c2se/api/vendor_pb.d.ts b/src/app/modules/proto/c2se/api/vendor_pb.d.ts new file mode 100644 index 0000000..51eaa13 --- /dev/null +++ b/src/app/modules/proto/c2se/api/vendor_pb.d.ts @@ -0,0 +1,188 @@ +// package: bet.beteran.c2se.api.vendor +// file: c2se/api/vendor.proto + +import * as jspb from 'google-protobuf'; +import * as protobuf_rpc_pb from '../../protobuf/rpc_pb'; +import * as protobuf_pagination_pb from '../../protobuf/pagination_pb'; +import * as models_core_network_pb from '../../models/core/network_pb'; +import * as models_api_vendor_pb from '../../models/api/vendor_pb'; + +export class ListVendorsRequest extends jspb.Message { + hasPagination(): boolean; + clearPagination(): void; + getPagination(): protobuf_pagination_pb.Pagination | undefined; + setPagination(value?: protobuf_pagination_pb.Pagination): void; + + clearSortsList(): void; + getSortsList(): Array; + setSortsList(value: Array): void; + addSorts( + value?: protobuf_pagination_pb.Sort, + index?: number + ): protobuf_pagination_pb.Sort; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): ListVendorsRequest.Search | undefined; + setSearch(value?: ListVendorsRequest.Search): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListVendorsRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListVendorsRequest + ): ListVendorsRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListVendorsRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListVendorsRequest; + static deserializeBinaryFromReader( + message: ListVendorsRequest, + reader: jspb.BinaryReader + ): ListVendorsRequest; +} + +export namespace ListVendorsRequest { + export type AsObject = { + pagination?: protobuf_pagination_pb.Pagination.AsObject; + sortsList: Array; + search?: ListVendorsRequest.Search.AsObject; + }; + + export class Search extends jspb.Message { + hasCompanyId(): boolean; + clearCompanyId(): void; + getCompanyId(): number; + setCompanyId(value: number): void; + + hasVendorId(): boolean; + clearVendorId(): void; + getVendorId(): number; + setVendorId(value: number): void; + + hasKeyLike(): boolean; + clearKeyLike(): void; + getKeyLike(): string; + setKeyLike(value: string): void; + + hasNameLike(): boolean; + clearNameLike(): void; + getNameLike(): string; + setNameLike(value: string): void; + + hasCategoryLike(): boolean; + clearCategoryLike(): void; + getCategoryLike(): string; + setCategoryLike(value: string): void; + + hasIsEnable(): boolean; + clearIsEnable(): void; + getIsEnable(): string; + setIsEnable(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Search.AsObject; + static toObject(includeInstance: boolean, msg: Search): Search.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Search, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Search; + static deserializeBinaryFromReader( + message: Search, + reader: jspb.BinaryReader + ): Search; + } + + export namespace Search { + export type AsObject = { + companyId: number; + vendorId: number; + keyLike: string; + nameLike: string; + categoryLike: string; + isEnable: string; + }; + } +} + +export class ListVendorsResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): protobuf_rpc_pb.Error | undefined; + setError(value?: protobuf_rpc_pb.Error): void; + + hasResult(): boolean; + clearResult(): void; + getResult(): ListVendorsResponse.Result | undefined; + setResult(value?: ListVendorsResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListVendorsResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListVendorsResponse + ): ListVendorsResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListVendorsResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListVendorsResponse; + static deserializeBinaryFromReader( + message: ListVendorsResponse, + reader: jspb.BinaryReader + ): ListVendorsResponse; +} + +export namespace ListVendorsResponse { + export type AsObject = { + error?: protobuf_rpc_pb.Error.AsObject; + result?: ListVendorsResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearVendorsList(): void; + getVendorsList(): Array; + setVendorsList(value: Array): void; + addVendors( + value?: models_api_vendor_pb.Vendor, + index?: number + ): models_api_vendor_pb.Vendor; + + 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 = { + vendorsList: Array; + }; + } +} diff --git a/src/app/modules/proto/c2se/api/vendor_pb.js b/src/app/modules/proto/c2se/api/vendor_pb.js new file mode 100644 index 0000000..ccfed2d --- /dev/null +++ b/src/app/modules/proto/c2se/api/vendor_pb.js @@ -0,0 +1,1271 @@ +// source: c2se/api/vendor.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_pb = require("../../protobuf/rpc_pb.js"); +goog.object.extend(proto, protobuf_rpc_pb); +var protobuf_pagination_pb = require("../../protobuf/pagination_pb.js"); +goog.object.extend(proto, protobuf_pagination_pb); +var models_core_network_pb = require("../../models/core/network_pb.js"); +goog.object.extend(proto, models_core_network_pb); +var models_api_vendor_pb = require("../../models/api/vendor_pb.js"); +goog.object.extend(proto, models_api_vendor_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.api.vendor.ListVendorsRequest = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.displayName = + "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest"; +} +/** + * 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.api.vendor.ListVendorsRequest.Search = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.displayName = + "proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search"; +} +/** + * 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.api.vendor.ListVendorsResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.displayName = + "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse"; +} +/** + * 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.api.vendor.ListVendorsResponse.Result = function ( + opt_data +) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result + .repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.displayName = + "proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result"; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.repeatedFields_ = [2]; + +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.api.vendor.ListVendorsRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.api.vendor.ListVendorsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + pagination: + (f = msg.getPagination()) && + protobuf_pagination_pb.Pagination.toObject(includeInstance, f), + sortsList: jspb.Message.toObjectList( + msg.getSortsList(), + protobuf_pagination_pb.Sort.toObject, + includeInstance + ), + search: + (f = msg.getSearch()) && + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.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.api.vendor.ListVendorsRequest} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.api.vendor.ListVendorsRequest(); + return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_pagination_pb.Pagination(); + reader.readMessage( + value, + protobuf_pagination_pb.Pagination.deserializeBinaryFromReader + ); + msg.setPagination(value); + break; + case 2: + var value = new protobuf_pagination_pb.Sort(); + reader.readMessage( + value, + protobuf_pagination_pb.Sort.deserializeBinaryFromReader + ); + msg.addSorts(value); + break; + case 3: + var value = + new proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search(); + reader.readMessage( + value, + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search + .deserializeBinaryFromReader + ); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.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.api.vendor.ListVendorsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 1, + f, + protobuf_pagination_pb.Pagination.serializeBinaryToWriter + ); + } + f = message.getSortsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + protobuf_pagination_pb.Sort.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search + .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.api.vendor.ListVendorsRequest.Search.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.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.api.vendor.ListVendorsRequest.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.toObject = + function (includeInstance, msg) { + var f, + obj = { + companyId: jspb.Message.getFieldWithDefault(msg, 1, 0), + vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0), + keyLike: jspb.Message.getFieldWithDefault(msg, 3, ""), + nameLike: jspb.Message.getFieldWithDefault(msg, 4, ""), + categoryLike: jspb.Message.getFieldWithDefault(msg, 5, ""), + isEnable: jspb.Message.getFieldWithDefault(msg, 6, ""), + }; + + 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.api.vendor.ListVendorsRequest.Search} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search(); + return proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCompanyId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setVendorId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyLike(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setNameLike(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setCategoryLike(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setIsEnable(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.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.api.vendor.ListVendorsRequest.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64(1, f); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64(2, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString(3, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString(4, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeString(5, f); + } + f = /** @type {string} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeString(6, f); + } + }; + +/** + * optional uint64 company_id = 1; + * @return {number} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getCompanyId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setCompanyId = + function (value) { + return jspb.Message.setField(this, 1, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearCompanyId = + function () { + return jspb.Message.setField(this, 1, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasCompanyId = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional uint64 vendor_id = 2; + * @return {number} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getVendorId = + function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + }; + +/** + * @param {number} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setVendorId = + function (value) { + return jspb.Message.setField(this, 2, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearVendorId = + function () { + return jspb.Message.setField(this, 2, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasVendorId = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +/** + * optional string key_like = 3; + * @return {string} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getKeyLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 3, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setKeyLike = + function (value) { + return jspb.Message.setField(this, 3, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearKeyLike = + function () { + return jspb.Message.setField(this, 3, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasKeyLike = + function () { + return jspb.Message.getField(this, 3) != null; + }; + +/** + * optional string name_like = 4; + * @return {string} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getNameLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 4, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setNameLike = + function (value) { + return jspb.Message.setField(this, 4, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearNameLike = + function () { + return jspb.Message.setField(this, 4, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasNameLike = + function () { + return jspb.Message.getField(this, 4) != null; + }; + +/** + * optional string category_like = 5; + * @return {string} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getCategoryLike = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 5, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setCategoryLike = + function (value) { + return jspb.Message.setField(this, 5, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearCategoryLike = + function () { + return jspb.Message.setField(this, 5, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasCategoryLike = + function () { + return jspb.Message.getField(this, 5) != null; + }; + +/** + * optional string is_enable = 6; + * @return {string} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.getIsEnable = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 6, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.setIsEnable = + function (value) { + return jspb.Message.setField(this, 6, value); + }; + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.clearIsEnable = + function () { + return jspb.Message.setField(this, 6, undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search.prototype.hasIsEnable = + function () { + return jspb.Message.getField(this, 6) != null; + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.getPagination = + function () { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField(this, protobuf_pagination_pb.Pagination, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, protobuf_pagination_pb.Sort, 2) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.setSortsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.addSorts = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.protobuf.pagination.Sort, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +/** + * optional Search search = 3; + * @return {?proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.getSearch = + function () { + return /** @type{?proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search, + 3 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.Search|undefined} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.setSearch = + function (value) { + return jspb.Message.setWrapperField(this, 3, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsRequest} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.clearSearch = + function () { + return this.setSearch(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsRequest.prototype.hasSearch = + function () { + return jspb.Message.getField(this, 3) != 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.api.vendor.ListVendorsResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.api.vendor.ListVendorsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + error: + (f = msg.getError()) && + protobuf_rpc_pb.Error.toObject(includeInstance, f), + result: + (f = msg.getResult()) && + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.api.vendor.ListVendorsResponse} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.api.vendor.ListVendorsResponse(); + return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.deserializeBinaryFromReader( + msg, + reader + ); + }; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new protobuf_rpc_pb.Error(); + reader.readMessage( + value, + protobuf_rpc_pb.Error.deserializeBinaryFromReader + ); + msg.setError(value); + break; + case 2: + var value = + new proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.api.vendor.ListVendorsResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.api.vendor.ListVendorsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage(1, f, protobuf_rpc_pb.Error.serializeBinaryToWriter); + } + f = message.getResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result + .serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.api.vendor.ListVendorsResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.api.vendor.ListVendorsResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + vendorsList: jspb.Message.toObjectList( + msg.getVendorsList(), + models_api_vendor_pb.Vendor.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.api.vendor.ListVendorsResponse.Result} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result(); + return proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.api.vendor.ListVendorsResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_api_vendor_pb.Vendor(); + reader.readMessage( + value, + models_api_vendor_pb.Vendor.deserializeBinaryFromReader + ); + msg.addVendors(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.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.api.vendor.ListVendorsResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getVendorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_api_vendor_pb.Vendor.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.api.vendor.Vendor vendors = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.getVendorsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_api_vendor_pb.Vendor, 1) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.setVendorsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.api.vendor.Vendor=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.api.vendor.Vendor} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.addVendors = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.api.vendor.Vendor, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result.prototype.clearVendorsList = + function () { + return this.setVendorsList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.getError = + function () { + return /** @type{?proto.bet.protobuf.rpc.Error} */ ( + jspb.Message.getWrapperField(this, protobuf_rpc_pb.Error, 1) + ); + }; + +/** + * @param {?proto.bet.protobuf.rpc.Error|undefined} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.api.vendor.ListVendorsResponse} returns this + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.api.vendor.ListVendorsResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.api.vendor); diff --git a/src/app/modules/proto/c2se/backend/api/vendor_pb.d.ts b/src/app/modules/proto/c2se/backend/api/vendor_pb.d.ts new file mode 100644 index 0000000..71ecba1 --- /dev/null +++ b/src/app/modules/proto/c2se/backend/api/vendor_pb.d.ts @@ -0,0 +1,6 @@ +// package: bet.beteran.c2se.backend.api.vendor +// file: c2se/backend/api/vendor.proto + +import * as jspb from 'google-protobuf'; + +export const SUBJECT_LIST_VENDORS: string; diff --git a/src/app/modules/proto/c2se/backend/api/vendor_pb.js b/src/app/modules/proto/c2se/backend/api/vendor_pb.js new file mode 100644 index 0000000..f0a70cf --- /dev/null +++ b/src/app/modules/proto/c2se/backend/api/vendor_pb.js @@ -0,0 +1,27 @@ +// source: c2se/backend/api/vendor.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require("google-protobuf"); +var goog = jspb; +var global = function () { + return this || window || global || self || Function("return this")(); +}.call(null); + +goog.exportSymbol("proto.bet.beteran.c2se.backend.api.vendor", null, global); + +proto.bet.beteran.c2se.backend.api.vendor = {}; + +proto.bet.beteran.c2se.backend.api.vendor.SUBJECT_LIST_VENDORS = + "bet.beteran.c2se.backend.api.vendor.ListVendors"; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.api.vendor); diff --git a/src/app/modules/proto/models/api/vendor_pb.d.ts b/src/app/modules/proto/models/api/vendor_pb.d.ts new file mode 100644 index 0000000..0db403b --- /dev/null +++ b/src/app/modules/proto/models/api/vendor_pb.d.ts @@ -0,0 +1,76 @@ +// package: bet.beteran.api.vendor +// file: models/api/vendor.proto + +import * as jspb from 'google-protobuf'; + +export class Vendor extends jspb.Message { + getId(): number; + setId(value: number): void; + + getCompanyId(): number; + setCompanyId(value: number): void; + + getVendorId(): number; + setVendorId(value: number): void; + + getKey(): string; + setKey(value: string): void; + + getName(): string; + setName(value: string): void; + + getCategory(): string; + setCategory(value: string): void; + + getMaxBetCasino(): number; + setMaxBetCasino(value: number): void; + + getMaxBetSlot(): number; + setMaxBetSlot(value: number): void; + + getIsEnable(): string; + setIsEnable(value: string): void; + + getBetCount(): number; + setBetCount(value: number): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Vendor.AsObject; + static toObject(includeInstance: boolean, msg: Vendor): Vendor.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Vendor, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Vendor; + static deserializeBinaryFromReader( + message: Vendor, + reader: jspb.BinaryReader + ): Vendor; +} + +export namespace Vendor { + export type AsObject = { + id: number; + companyId: number; + vendorId: number; + key: string; + name: string; + category: string; + maxBetCasino: number; + maxBetSlot: number; + isEnable: string; + betCount: number; + createdAt: number; + updatedAt: number; + }; +} diff --git a/src/app/modules/proto/models/api/vendor_pb.js b/src/app/modules/proto/models/api/vendor_pb.js new file mode 100644 index 0000000..7a7acfc --- /dev/null +++ b/src/app/modules/proto/models/api/vendor_pb.js @@ -0,0 +1,455 @@ +// source: models/api/vendor.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.api.vendor.Vendor", 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.api.vendor.Vendor = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.bet.beteran.api.vendor.Vendor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.api.vendor.Vendor.displayName = + "proto.bet.beteran.api.vendor.Vendor"; +} + +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.api.vendor.Vendor.prototype.toObject = function ( + opt_includeInstance + ) { + return proto.bet.beteran.api.vendor.Vendor.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.api.vendor.Vendor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.api.vendor.Vendor.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 0), + companyId: jspb.Message.getFieldWithDefault(msg, 2, 0), + vendorId: jspb.Message.getFieldWithDefault(msg, 3, 0), + key: jspb.Message.getFieldWithDefault(msg, 4, ""), + name: jspb.Message.getFieldWithDefault(msg, 5, ""), + category: jspb.Message.getFieldWithDefault(msg, 6, ""), + maxBetCasino: jspb.Message.getFieldWithDefault(msg, 7, 0), + maxBetSlot: jspb.Message.getFieldWithDefault(msg, 8, 0), + isEnable: jspb.Message.getFieldWithDefault(msg, 9, ""), + betCount: jspb.Message.getFieldWithDefault(msg, 10, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 11, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 12, 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.api.vendor.Vendor} + */ +proto.bet.beteran.api.vendor.Vendor.deserializeBinary = function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.api.vendor.Vendor(); + return proto.bet.beteran.api.vendor.Vendor.deserializeBinaryFromReader( + msg, + reader + ); +}; + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.bet.beteran.api.vendor.Vendor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.api.vendor.Vendor} + */ +proto.bet.beteran.api.vendor.Vendor.deserializeBinaryFromReader = function ( + msg, + reader +) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCompanyId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setVendorId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setCategory(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaxBetCasino(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaxBetSlot(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setIsEnable(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBetCount(value); + break; + case 11: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 12: + 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.api.vendor.Vendor.prototype.serializeBinary = function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.api.vendor.Vendor.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.api.vendor.Vendor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.api.vendor.Vendor.serializeBinaryToWriter = function ( + message, + writer +) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeUint64(1, f); + } + f = message.getCompanyId(); + if (f !== 0) { + writer.writeUint64(2, f); + } + f = message.getVendorId(); + if (f !== 0) { + writer.writeUint64(3, f); + } + f = message.getKey(); + if (f.length > 0) { + writer.writeString(4, f); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString(5, f); + } + f = message.getCategory(); + if (f.length > 0) { + writer.writeString(6, f); + } + f = message.getMaxBetCasino(); + if (f !== 0) { + writer.writeUint64(7, f); + } + f = message.getMaxBetSlot(); + if (f !== 0) { + writer.writeUint64(8, f); + } + f = message.getIsEnable(); + if (f.length > 0) { + writer.writeString(9, f); + } + f = message.getBetCount(); + if (f !== 0) { + writer.writeUint64(10, f); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64(11, f); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64(12, f); + } +}; + +/** + * optional uint64 id = 1; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setId = function (value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + +/** + * optional uint64 company_id = 2; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getCompanyId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setCompanyId = function (value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + +/** + * optional uint64 vendor_id = 3; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getVendorId = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setVendorId = function (value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + +/** + * optional string key = 4; + * @return {string} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getKey = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setKey = function (value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + +/** + * optional string name = 5; + * @return {string} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getName = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setName = function (value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + +/** + * optional string category = 6; + * @return {string} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getCategory = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setCategory = function (value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + +/** + * optional uint64 max_bet_casino = 7; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getMaxBetCasino = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setMaxBetCasino = function ( + value +) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + +/** + * optional uint64 max_bet_slot = 8; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getMaxBetSlot = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setMaxBetSlot = function (value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + +/** + * optional string is_enable = 9; + * @return {string} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getIsEnable = function () { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + +/** + * @param {string} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setIsEnable = function (value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + +/** + * optional uint64 bet_count = 10; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getBetCount = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setBetCount = function (value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + +/** + * optional uint64 created_at = 11; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getCreatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setCreatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + +/** + * optional uint64 updated_at = 12; + * @return {number} + */ +proto.bet.beteran.api.vendor.Vendor.prototype.getUpdatedAt = function () { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + +/** + * @param {number} value + * @return {!proto.bet.beteran.api.vendor.Vendor} returns this + */ +proto.bet.beteran.api.vendor.Vendor.prototype.setUpdatedAt = function (value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + +goog.object.extend(exports, proto.bet.beteran.api.vendor); From ca2be7e6e28476fecad5b864037914a43269a742 Mon Sep 17 00:00:00 2001 From: JUNG YI DAM Date: Thu, 18 Aug 2022 03:54:22 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=EC=98=A4=ED=83=80=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/modules/admin/bank/deposit/components/list.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/admin/bank/deposit/components/list.component.ts b/src/app/modules/admin/bank/deposit/components/list.component.ts index 783d371..67c945e 100644 --- a/src/app/modules/admin/bank/deposit/components/list.component.ts +++ b/src/app/modules/admin/bank/deposit/components/list.component.ts @@ -121,7 +121,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy { this.bankDeposit$ = of(listBankDepositResult.getMemberBankDepositsList()); console.log( - 'bankWithdraw: ', + 'bankDeposit: ', listBankDepositResult.getMemberBankDepositsList() );