diff --git a/src/app/modules/protobuf/c2se/backend/site_pb.d.ts b/src/app/modules/protobuf/c2se/backend/site_pb.d.ts new file mode 100644 index 0000000..590ac81 --- /dev/null +++ b/src/app/modules/protobuf/c2se/backend/site_pb.d.ts @@ -0,0 +1,453 @@ +// package: bet.beteran.c2se.backend.site +// file: c2se/backend/site.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_domain_site_pb from '../../models/domain/site_pb'; + +export const SUBJECT_LIST_SITES: string; + +export const SUBJECT_CREATE_SITE: string; + +export const SUBJECT_UPDATE_SITE: string; + +export const SUBJECT_DELETE_SITE: string; + +export class ListSitesRequest 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; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSitesRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: ListSitesRequest + ): ListSitesRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListSitesRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListSitesRequest; + static deserializeBinaryFromReader( + message: ListSitesRequest, + reader: jspb.BinaryReader + ): ListSitesRequest; +} + +export namespace ListSitesRequest { + export type AsObject = { + pagination?: protobuf_pagination_pagination_pb.Pagination.AsObject; + searchesList: Array; + sortsList: Array; + }; +} + +export class ListSitesResponse 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(): ListSitesResponse.Result | undefined; + setResult(value?: ListSitesResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSitesResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: ListSitesResponse + ): ListSitesResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: ListSitesResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): ListSitesResponse; + static deserializeBinaryFromReader( + message: ListSitesResponse, + reader: jspb.BinaryReader + ): ListSitesResponse; +} + +export namespace ListSitesResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: ListSitesResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + clearSitesList(): void; + getSitesList(): Array; + setSitesList(value: Array): void; + addSites( + value?: models_domain_site_pb.Site, + index?: number + ): models_domain_site_pb.Site; + + 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 = { + sitesList: Array; + }; + } +} + +export class CreateSiteRequest extends jspb.Message { + getUrl(): string; + setUrl(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateSiteRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateSiteRequest + ): CreateSiteRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateSiteRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateSiteRequest; + static deserializeBinaryFromReader( + message: CreateSiteRequest, + reader: jspb.BinaryReader + ): CreateSiteRequest; +} + +export namespace CreateSiteRequest { + export type AsObject = { + url: string; + show: boolean; + canUse: boolean; + }; +} + +export class CreateSiteResponse 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(): CreateSiteResponse.Result | undefined; + setResult(value?: CreateSiteResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateSiteResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: CreateSiteResponse + ): CreateSiteResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: CreateSiteResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): CreateSiteResponse; + static deserializeBinaryFromReader( + message: CreateSiteResponse, + reader: jspb.BinaryReader + ): CreateSiteResponse; +} + +export namespace CreateSiteResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: CreateSiteResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasSite(): boolean; + clearSite(): void; + getSite(): models_domain_site_pb.Site | undefined; + setSite(value?: models_domain_site_pb.Site): 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 = { + site?: models_domain_site_pb.Site.AsObject; + }; + } +} + +export class UpdateSiteRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + getUrl(): string; + setUrl(value: string): void; + + getShow(): boolean; + setShow(value: boolean): void; + + getCanUse(): boolean; + setCanUse(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateSiteRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateSiteRequest + ): UpdateSiteRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateSiteRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateSiteRequest; + static deserializeBinaryFromReader( + message: UpdateSiteRequest, + reader: jspb.BinaryReader + ): UpdateSiteRequest; +} + +export namespace UpdateSiteRequest { + export type AsObject = { + id: string; + url: string; + show: boolean; + canUse: boolean; + }; +} + +export class UpdateSiteResponse 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(): UpdateSiteResponse.Result | undefined; + setResult(value?: UpdateSiteResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateSiteResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: UpdateSiteResponse + ): UpdateSiteResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: UpdateSiteResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): UpdateSiteResponse; + static deserializeBinaryFromReader( + message: UpdateSiteResponse, + reader: jspb.BinaryReader + ): UpdateSiteResponse; +} + +export namespace UpdateSiteResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: UpdateSiteResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + hasSite(): boolean; + clearSite(): void; + getSite(): models_domain_site_pb.Site | undefined; + setSite(value?: models_domain_site_pb.Site): 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 = { + site?: models_domain_site_pb.Site.AsObject; + }; + } +} + +export class DeleteSiteRequest extends jspb.Message { + getId(): string; + setId(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSiteRequest.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteSiteRequest + ): DeleteSiteRequest.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteSiteRequest, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteSiteRequest; + static deserializeBinaryFromReader( + message: DeleteSiteRequest, + reader: jspb.BinaryReader + ): DeleteSiteRequest; +} + +export namespace DeleteSiteRequest { + export type AsObject = { + id: string; + }; +} + +export class DeleteSiteResponse 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(): DeleteSiteResponse.Result | undefined; + setResult(value?: DeleteSiteResponse.Result): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSiteResponse.AsObject; + static toObject( + includeInstance: boolean, + msg: DeleteSiteResponse + ): DeleteSiteResponse.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: DeleteSiteResponse, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): DeleteSiteResponse; + static deserializeBinaryFromReader( + message: DeleteSiteResponse, + reader: jspb.BinaryReader + ): DeleteSiteResponse; +} + +export namespace DeleteSiteResponse { + export type AsObject = { + error?: protobuf_rpc_error_pb.Error.AsObject; + result?: DeleteSiteResponse.Result.AsObject; + }; + + export class Result extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Result.AsObject; + static toObject(includeInstance: boolean, msg: Result): Result.AsObject; + static extensions: { [key: number]: jspb.ExtensionFieldInfo }; + static extensionsBinary: { + [key: number]: jspb.ExtensionFieldBinaryInfo; + }; + static serializeBinaryToWriter( + message: Result, + writer: jspb.BinaryWriter + ): void; + static deserializeBinary(bytes: Uint8Array): Result; + static deserializeBinaryFromReader( + message: Result, + reader: jspb.BinaryReader + ): Result; + } + + export namespace Result { + export type AsObject = {}; + } +} diff --git a/src/app/modules/protobuf/c2se/backend/site_pb.js b/src/app/modules/protobuf/c2se/backend/site_pb.js new file mode 100644 index 0000000..7f2a980 --- /dev/null +++ b/src/app/modules/protobuf/c2se/backend/site_pb.js @@ -0,0 +1,2859 @@ +// source: c2se/backend/site.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_domain_site_pb = require("../../models/domain/site_pb.js"); +goog.object.extend(proto, models_domain_site_pb); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.CreateSiteRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.CreateSiteResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.DeleteSiteRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.DeleteSiteResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.ListSitesRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.ListSitesResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.UpdateSiteRequest", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.UpdateSiteResponse", + null, + global +); +goog.exportSymbol( + "proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result", + null, + global +); + +proto.bet.beteran.c2se.backend.site.SUBJECT_LIST_SITES = + "bet.beteran.c2se.backend.site.ListSites"; + +proto.bet.beteran.c2se.backend.site.SUBJECT_CREATE_SITE = + "bet.beteran.c2se.backend.site.CreateSite"; + +proto.bet.beteran.c2se.backend.site.SUBJECT_UPDATE_SITE = + "bet.beteran.c2se.backend.site.UpdateSite"; + +proto.bet.beteran.c2se.backend.site.SUBJECT_DELETE_SITE = + "bet.beteran.c2se.backend.site.DeleteSite"; + +/** + * 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.site.ListSitesRequest = function (opt_data) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.backend.site.ListSitesRequest.repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.ListSitesRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.ListSitesRequest.displayName = + "proto.bet.beteran.c2se.backend.site.ListSitesRequest"; +} +/** + * 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.site.ListSitesResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.ListSitesResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.ListSitesResponse.displayName = + "proto.bet.beteran.c2se.backend.site.ListSitesResponse"; +} +/** + * 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.site.ListSitesResponse.Result = function ( + opt_data +) { + jspb.Message.initialize( + this, + opt_data, + 0, + -1, + proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result + .repeatedFields_, + null + ); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.CreateSiteRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.CreateSiteRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.CreateSiteRequest.displayName = + "proto.bet.beteran.c2se.backend.site.CreateSiteRequest"; +} +/** + * 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.site.CreateSiteResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.CreateSiteResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.CreateSiteResponse.displayName = + "proto.bet.beteran.c2se.backend.site.CreateSiteResponse"; +} +/** + * 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.site.CreateSiteResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.UpdateSiteRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.UpdateSiteRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.displayName = + "proto.bet.beteran.c2se.backend.site.UpdateSiteRequest"; +} +/** + * 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.site.UpdateSiteResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.UpdateSiteResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.displayName = + "proto.bet.beteran.c2se.backend.site.UpdateSiteResponse"; +} +/** + * 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.site.UpdateSiteResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.DeleteSiteRequest = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.DeleteSiteRequest, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.displayName = + "proto.bet.beteran.c2se.backend.site.DeleteSiteRequest"; +} +/** + * 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.site.DeleteSiteResponse = function (opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.displayName = + "proto.bet.beteran.c2se.backend.site.DeleteSiteResponse"; +} +/** + * 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.site.DeleteSiteResponse.Result = function ( + opt_data +) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits( + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result, + jspb.Message +); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result.displayName = + "proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result"; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.repeatedFields_ = [2, 3]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.ListSitesRequest.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.site.ListSitesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.ListSitesRequest.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 + ), + }; + + 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.site.ListSitesRequest} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.site.ListSitesRequest(); + return proto.bet.beteran.c2se.backend.site.ListSitesRequest.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.site.ListSitesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.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; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.ListSitesRequest.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.site.ListSitesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.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 + ); + } + }; + +/** + * optional bet.protobuf.pagination.Pagination pagination = 1; + * @return {?proto.bet.protobuf.pagination.Pagination} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getPagination = + function () { + return /** @type{?proto.bet.protobuf.pagination.Pagination} */ ( + jspb.Message.getWrapperField( + this, + protobuf_pagination_pagination_pb.Pagination, + 1 + ) + ); + }; + +/** + * @param {?proto.bet.protobuf.pagination.Pagination|undefined} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setPagination = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearPagination = + function () { + return this.setPagination(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.hasPagination = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * repeated bet.protobuf.pagination.Search searches = 2; + * @return {!Array} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getSearchesList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + protobuf_pagination_search_pb.Search, + 2 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setSearchesList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Search=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Search} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.addSearches = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 2, + opt_value, + proto.bet.protobuf.pagination.Search, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearSearchesList = + function () { + return this.setSearchesList([]); + }; + +/** + * repeated bet.protobuf.pagination.Sort sorts = 3; + * @return {!Array} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.getSortsList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField( + this, + protobuf_pagination_sort_pb.Sort, + 3 + ) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.setSortsList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); + }; + +/** + * @param {!proto.bet.protobuf.pagination.Sort=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.protobuf.pagination.Sort} + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.addSorts = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 3, + opt_value, + proto.bet.protobuf.pagination.Sort, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesRequest.prototype.clearSortsList = + function () { + return this.setSortsList([]); + }; + +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.site.ListSitesResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse.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.site.ListSitesResponse} + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.site.ListSitesResponse(); + return proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse} + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse.Result + .serializeBinaryToWriter + ); + } + }; + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.repeatedFields_ = [ + 1, +]; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + sitesList: jspb.Message.toObjectList( + msg.getSitesList(), + models_domain_site_pb.Site.toObject, + includeInstance + ), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result(); + return proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_domain_site_pb.Site(); + reader.readMessage( + value, + models_domain_site_pb.Site.deserializeBinaryFromReader + ); + msg.addSites(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.site.ListSitesResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getSitesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + models_domain_site_pb.Site.serializeBinaryToWriter + ); + } + }; + +/** + * repeated bet.beteran.domain.Site sites = 1; + * @return {!Array} + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.prototype.getSitesList = + function () { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, models_domain_site_pb.Site, 1) + ); + }; + +/** + * @param {!Array} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.prototype.setSitesList = + function (value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); + }; + +/** + * @param {!proto.bet.beteran.domain.Site=} opt_value + * @param {number=} opt_index + * @return {!proto.bet.beteran.domain.Site} + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.prototype.addSites = + function (opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField( + this, + 1, + opt_value, + proto.bet.beteran.domain.Site, + opt_index + ); + }; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result.prototype.clearSitesList = + function () { + return this.setSitesList([]); + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.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.site.ListSitesResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.site.ListSitesResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.ListSitesResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.ListSitesResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.CreateSiteRequest.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.site.CreateSiteRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.CreateSiteRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + url: jspb.Message.getFieldWithDefault(msg, 1, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + }; + + 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.site.CreateSiteRequest} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.site.CreateSiteRequest(); + return proto.bet.beteran.c2se.backend.site.CreateSiteRequest.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.site.CreateSiteRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteRequest.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.setUrl(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; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.CreateSiteRequest.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.site.CreateSiteRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.CreateSiteRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getUrl(); + 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); + } + }; + +/** + * optional string url = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.getUrl = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.setUrl = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional bool show = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.getShow = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 2, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.setShow = + function (value) { + return jspb.Message.setProto3BooleanField(this, 2, value); + }; + +/** + * optional bool can_use = 3; + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.getCanUse = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 3, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.CreateSiteRequest.prototype.setCanUse = + function (value) { + return jspb.Message.setProto3BooleanField(this, 3, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.CreateSiteResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.CreateSiteResponse.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.site.CreateSiteResponse} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.site.CreateSiteResponse(); + return proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.CreateSiteResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.CreateSiteResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.CreateSiteResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.CreateSiteResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.CreateSiteResponse.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.site.CreateSiteResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.CreateSiteResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + site: + (f = msg.getSite()) && + models_domain_site_pb.Site.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.site.CreateSiteResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result(); + return proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.CreateSiteResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_domain_site_pb.Site(); + reader.readMessage( + value, + models_domain_site_pb.Site.deserializeBinaryFromReader + ); + msg.setSite(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.site.CreateSiteResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.CreateSiteResponse.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.site.CreateSiteResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getSite(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_domain_site_pb.Site.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.domain.Site site = 1; + * @return {?proto.bet.beteran.domain.Site} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.prototype.getSite = + function () { + return /** @type{?proto.bet.beteran.domain.Site} */ ( + jspb.Message.getWrapperField(this, models_domain_site_pb.Site, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.domain.Site|undefined} value + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.prototype.setSite = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.prototype.clearSite = + function () { + return this.setSite(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result.prototype.hasSite = + 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.site.CreateSiteResponse.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.site.CreateSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.site.CreateSiteResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.CreateSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.CreateSiteResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.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.site.UpdateSiteRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + url: jspb.Message.getFieldWithDefault(msg, 2, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + canUse: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + }; + + 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.site.UpdateSiteRequest} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.site.UpdateSiteRequest(); + return proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.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.site.UpdateSiteRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.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.setUrl(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; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.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.site.UpdateSiteRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + f = message.getUrl(); + 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); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +/** + * optional string url = 2; + * @return {string} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getUrl = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 2, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setUrl = + function (value) { + return jspb.Message.setProto3StringField(this, 2, value); + }; + +/** + * optional bool show = 3; + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getShow = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 3, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setShow = + function (value) { + return jspb.Message.setProto3BooleanField(this, 3, value); + }; + +/** + * optional bool can_use = 4; + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.getCanUse = + function () { + return /** @type {boolean} */ ( + jspb.Message.getBooleanFieldWithDefault(this, 4, false) + ); + }; + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteRequest.prototype.setCanUse = + function (value) { + return jspb.Message.setProto3BooleanField(this, 4, 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.site.UpdateSiteResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.UpdateSiteResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.UpdateSiteResponse.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.site.UpdateSiteResponse} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.site.UpdateSiteResponse(); + return proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.UpdateSiteResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.UpdateSiteResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.UpdateSiteResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.UpdateSiteResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.UpdateSiteResponse.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.site.UpdateSiteResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.UpdateSiteResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = { + site: + (f = msg.getSite()) && + models_domain_site_pb.Site.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.site.UpdateSiteResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result(); + return proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.UpdateSiteResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new models_domain_site_pb.Site(); + reader.readMessage( + value, + models_domain_site_pb.Site.deserializeBinaryFromReader + ); + msg.setSite(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.site.UpdateSiteResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.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.site.UpdateSiteResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getSite(); + if (f != null) { + writer.writeMessage( + 1, + f, + models_domain_site_pb.Site.serializeBinaryToWriter + ); + } + }; + +/** + * optional bet.beteran.domain.Site site = 1; + * @return {?proto.bet.beteran.domain.Site} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.prototype.getSite = + function () { + return /** @type{?proto.bet.beteran.domain.Site} */ ( + jspb.Message.getWrapperField(this, models_domain_site_pb.Site, 1) + ); + }; + +/** + * @param {?proto.bet.beteran.domain.Site|undefined} value + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.prototype.setSite = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result} returns this + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.prototype.clearSite = + function () { + return this.setSite(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result.prototype.hasSite = + 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.site.UpdateSiteResponse.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.site.UpdateSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.UpdateSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.UpdateSiteResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.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.site.DeleteSiteRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.toObject = function ( + includeInstance, + msg + ) { + var f, + obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteRequest} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.site.DeleteSiteRequest(); + return proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.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.site.DeleteSiteRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteRequest} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.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.site.DeleteSiteRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString(1, f); + } + }; + +/** + * optional string id = 1; + * @return {string} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.prototype.getId = + function () { + return /** @type {string} */ ( + jspb.Message.getFieldWithDefault(this, 1, "") + ); + }; + +/** + * @param {string} value + * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteRequest} returns this + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteRequest.prototype.setId = + function (value) { + return jspb.Message.setProto3StringField(this, 1, value); + }; + +if (jspb.Message.GENERATE_TO_OBJECT) { + /** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse.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.site.DeleteSiteResponse} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.bet.beteran.c2se.backend.site.DeleteSiteResponse(); + return proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteResponse} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse.Result(); + reader.readMessage( + value, + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse.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.site.DeleteSiteResponse.Result.prototype.toObject = + function (opt_includeInstance) { + return proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse.Result} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result.toObject = + function (includeInstance, msg) { + var f, + obj = {}; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; + }; +} + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result.deserializeBinary = + function (bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = + new proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result(); + return proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse.Result} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result.deserializeBinaryFromReader = + function (msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; + }; + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result.prototype.serializeBinary = + function () { + var writer = new jspb.BinaryWriter(); + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse.Result} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result.serializeBinaryToWriter = + function (message, writer) { + var f = undefined; + }; + +/** + * optional bet.protobuf.rpc.Error error = 1; + * @return {?proto.bet.protobuf.rpc.Error} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.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.site.DeleteSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.setError = + function (value) { + return jspb.Message.setWrapperField(this, 1, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.clearError = + function () { + return this.setError(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.hasError = + function () { + return jspb.Message.getField(this, 1) != null; + }; + +/** + * optional Result result = 2; + * @return {?proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.getResult = + function () { + return /** @type{?proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result} */ ( + jspb.Message.getWrapperField( + this, + proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result, + 2 + ) + ); + }; + +/** + * @param {?proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.Result|undefined} value + * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.setResult = + function (value) { + return jspb.Message.setWrapperField(this, 2, value); + }; + +/** + * Clears the message field making it undefined. + * @return {!proto.bet.beteran.c2se.backend.site.DeleteSiteResponse} returns this + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.clearResult = + function () { + return this.setResult(undefined); + }; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.backend.site.DeleteSiteResponse.prototype.hasResult = + function () { + return jspb.Message.getField(this, 2) != null; + }; + +goog.object.extend(exports, proto.bet.beteran.c2se.backend.site);