UNPKG

node-cs2

Version:

Modern CS2/CS:GO Game Coordinator integration with latest GameTracking-CS2 protobuf definitions. Includes support for highlight_reel, wrapped_sticker, variations, Promise-based API, crate opening, sticker/patch/keychain operations, and all modern CS2 fiel

978 lines (897 loc) 382 kB
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ (function(global, factory) { /* global define, require, module */ /* AMD */ if (typeof define === 'function' && define.amd) define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) module.exports = factory(require("protobufjs/minimal")); })(this, function($protobuf) { "use strict"; // Common aliases var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; // Exported root namespace var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); $root.CHelpRequestLogs_UploadUserApplicationLog_Request = (function() { /** * Properties of a CHelpRequestLogs_UploadUserApplicationLog_Request. * @exports ICHelpRequestLogs_UploadUserApplicationLog_Request * @interface ICHelpRequestLogs_UploadUserApplicationLog_Request * @property {number|null} [appid] CHelpRequestLogs_UploadUserApplicationLog_Request appid * @property {string|null} [log_type] CHelpRequestLogs_UploadUserApplicationLog_Request log_type * @property {string|null} [version_string] CHelpRequestLogs_UploadUserApplicationLog_Request version_string * @property {string|null} [log_contents] CHelpRequestLogs_UploadUserApplicationLog_Request log_contents */ /** * Constructs a new CHelpRequestLogs_UploadUserApplicationLog_Request. * @exports CHelpRequestLogs_UploadUserApplicationLog_Request * @classdesc Represents a CHelpRequestLogs_UploadUserApplicationLog_Request. * @implements ICHelpRequestLogs_UploadUserApplicationLog_Request * @constructor * @param {ICHelpRequestLogs_UploadUserApplicationLog_Request=} [properties] Properties to set */ function CHelpRequestLogs_UploadUserApplicationLog_Request(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * CHelpRequestLogs_UploadUserApplicationLog_Request appid. * @member {number} appid * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @instance */ CHelpRequestLogs_UploadUserApplicationLog_Request.prototype.appid = 0; /** * CHelpRequestLogs_UploadUserApplicationLog_Request log_type. * @member {string} log_type * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @instance */ CHelpRequestLogs_UploadUserApplicationLog_Request.prototype.log_type = ""; /** * CHelpRequestLogs_UploadUserApplicationLog_Request version_string. * @member {string} version_string * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @instance */ CHelpRequestLogs_UploadUserApplicationLog_Request.prototype.version_string = ""; /** * CHelpRequestLogs_UploadUserApplicationLog_Request log_contents. * @member {string} log_contents * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @instance */ CHelpRequestLogs_UploadUserApplicationLog_Request.prototype.log_contents = ""; /** * Creates a new CHelpRequestLogs_UploadUserApplicationLog_Request instance using the specified properties. * @function create * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @static * @param {ICHelpRequestLogs_UploadUserApplicationLog_Request=} [properties] Properties to set * @returns {CHelpRequestLogs_UploadUserApplicationLog_Request} CHelpRequestLogs_UploadUserApplicationLog_Request instance */ CHelpRequestLogs_UploadUserApplicationLog_Request.create = function create(properties) { return new CHelpRequestLogs_UploadUserApplicationLog_Request(properties); }; /** * Encodes the specified CHelpRequestLogs_UploadUserApplicationLog_Request message. Does not implicitly {@link CHelpRequestLogs_UploadUserApplicationLog_Request.verify|verify} messages. * @function encode * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @static * @param {ICHelpRequestLogs_UploadUserApplicationLog_Request} message CHelpRequestLogs_UploadUserApplicationLog_Request message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ CHelpRequestLogs_UploadUserApplicationLog_Request.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.appid != null && Object.hasOwnProperty.call(message, "appid")) writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.appid); if (message.log_type != null && Object.hasOwnProperty.call(message, "log_type")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.log_type); if (message.version_string != null && Object.hasOwnProperty.call(message, "version_string")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.version_string); if (message.log_contents != null && Object.hasOwnProperty.call(message, "log_contents")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.log_contents); return writer; }; /** * Encodes the specified CHelpRequestLogs_UploadUserApplicationLog_Request message, length delimited. Does not implicitly {@link CHelpRequestLogs_UploadUserApplicationLog_Request.verify|verify} messages. * @function encodeDelimited * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @static * @param {ICHelpRequestLogs_UploadUserApplicationLog_Request} message CHelpRequestLogs_UploadUserApplicationLog_Request message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ CHelpRequestLogs_UploadUserApplicationLog_Request.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** * Decodes a CHelpRequestLogs_UploadUserApplicationLog_Request message from the specified reader or buffer. * @function decode * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {CHelpRequestLogs_UploadUserApplicationLog_Request} CHelpRequestLogs_UploadUserApplicationLog_Request * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CHelpRequestLogs_UploadUserApplicationLog_Request.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CHelpRequestLogs_UploadUserApplicationLog_Request(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { message.appid = reader.uint32(); break; } case 2: { message.log_type = reader.string(); break; } case 3: { message.version_string = reader.string(); break; } case 4: { message.log_contents = reader.string(); break; } default: reader.skipType(tag & 7); break; } } return message; }; /** * Decodes a CHelpRequestLogs_UploadUserApplicationLog_Request message from the specified reader or buffer, length delimited. * @function decodeDelimited * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {CHelpRequestLogs_UploadUserApplicationLog_Request} CHelpRequestLogs_UploadUserApplicationLog_Request * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CHelpRequestLogs_UploadUserApplicationLog_Request.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a CHelpRequestLogs_UploadUserApplicationLog_Request message. * @function verify * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @static * @param {Object.<string,*>} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ CHelpRequestLogs_UploadUserApplicationLog_Request.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.appid != null && message.hasOwnProperty("appid")) if (!$util.isInteger(message.appid)) return "appid: integer expected"; if (message.log_type != null && message.hasOwnProperty("log_type")) if (!$util.isString(message.log_type)) return "log_type: string expected"; if (message.version_string != null && message.hasOwnProperty("version_string")) if (!$util.isString(message.version_string)) return "version_string: string expected"; if (message.log_contents != null && message.hasOwnProperty("log_contents")) if (!$util.isString(message.log_contents)) return "log_contents: string expected"; return null; }; /** * Creates a CHelpRequestLogs_UploadUserApplicationLog_Request message from a plain object. Also converts values to their respective internal types. * @function fromObject * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @static * @param {Object.<string,*>} object Plain object * @returns {CHelpRequestLogs_UploadUserApplicationLog_Request} CHelpRequestLogs_UploadUserApplicationLog_Request */ CHelpRequestLogs_UploadUserApplicationLog_Request.fromObject = function fromObject(object) { if (object instanceof $root.CHelpRequestLogs_UploadUserApplicationLog_Request) return object; var message = new $root.CHelpRequestLogs_UploadUserApplicationLog_Request(); if (object.appid != null) message.appid = object.appid >>> 0; if (object.log_type != null) message.log_type = String(object.log_type); if (object.version_string != null) message.version_string = String(object.version_string); if (object.log_contents != null) message.log_contents = String(object.log_contents); return message; }; /** * Creates a plain object from a CHelpRequestLogs_UploadUserApplicationLog_Request message. Also converts values to other types if specified. * @function toObject * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @static * @param {CHelpRequestLogs_UploadUserApplicationLog_Request} message CHelpRequestLogs_UploadUserApplicationLog_Request * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.<string,*>} Plain object */ CHelpRequestLogs_UploadUserApplicationLog_Request.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.appid = 0; object.log_type = ""; object.version_string = ""; object.log_contents = ""; } if (message.appid != null && message.hasOwnProperty("appid")) object.appid = message.appid; if (message.log_type != null && message.hasOwnProperty("log_type")) object.log_type = message.log_type; if (message.version_string != null && message.hasOwnProperty("version_string")) object.version_string = message.version_string; if (message.log_contents != null && message.hasOwnProperty("log_contents")) object.log_contents = message.log_contents; return object; }; /** * Converts this CHelpRequestLogs_UploadUserApplicationLog_Request to JSON. * @function toJSON * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @instance * @returns {Object.<string,*>} JSON object */ CHelpRequestLogs_UploadUserApplicationLog_Request.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** * Gets the default type url for CHelpRequestLogs_UploadUserApplicationLog_Request * @function getTypeUrl * @memberof CHelpRequestLogs_UploadUserApplicationLog_Request * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ CHelpRequestLogs_UploadUserApplicationLog_Request.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } return typeUrlPrefix + "/CHelpRequestLogs_UploadUserApplicationLog_Request"; }; return CHelpRequestLogs_UploadUserApplicationLog_Request; })(); $root.CHelpRequestLogs_UploadUserApplicationLog_Response = (function() { /** * Properties of a CHelpRequestLogs_UploadUserApplicationLog_Response. * @exports ICHelpRequestLogs_UploadUserApplicationLog_Response * @interface ICHelpRequestLogs_UploadUserApplicationLog_Response * @property {number|Long|null} [id] CHelpRequestLogs_UploadUserApplicationLog_Response id */ /** * Constructs a new CHelpRequestLogs_UploadUserApplicationLog_Response. * @exports CHelpRequestLogs_UploadUserApplicationLog_Response * @classdesc Represents a CHelpRequestLogs_UploadUserApplicationLog_Response. * @implements ICHelpRequestLogs_UploadUserApplicationLog_Response * @constructor * @param {ICHelpRequestLogs_UploadUserApplicationLog_Response=} [properties] Properties to set */ function CHelpRequestLogs_UploadUserApplicationLog_Response(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * CHelpRequestLogs_UploadUserApplicationLog_Response id. * @member {number|Long} id * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @instance */ CHelpRequestLogs_UploadUserApplicationLog_Response.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** * Creates a new CHelpRequestLogs_UploadUserApplicationLog_Response instance using the specified properties. * @function create * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @static * @param {ICHelpRequestLogs_UploadUserApplicationLog_Response=} [properties] Properties to set * @returns {CHelpRequestLogs_UploadUserApplicationLog_Response} CHelpRequestLogs_UploadUserApplicationLog_Response instance */ CHelpRequestLogs_UploadUserApplicationLog_Response.create = function create(properties) { return new CHelpRequestLogs_UploadUserApplicationLog_Response(properties); }; /** * Encodes the specified CHelpRequestLogs_UploadUserApplicationLog_Response message. Does not implicitly {@link CHelpRequestLogs_UploadUserApplicationLog_Response.verify|verify} messages. * @function encode * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @static * @param {ICHelpRequestLogs_UploadUserApplicationLog_Response} message CHelpRequestLogs_UploadUserApplicationLog_Response message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ CHelpRequestLogs_UploadUserApplicationLog_Response.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id); return writer; }; /** * Encodes the specified CHelpRequestLogs_UploadUserApplicationLog_Response message, length delimited. Does not implicitly {@link CHelpRequestLogs_UploadUserApplicationLog_Response.verify|verify} messages. * @function encodeDelimited * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @static * @param {ICHelpRequestLogs_UploadUserApplicationLog_Response} message CHelpRequestLogs_UploadUserApplicationLog_Response message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ CHelpRequestLogs_UploadUserApplicationLog_Response.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** * Decodes a CHelpRequestLogs_UploadUserApplicationLog_Response message from the specified reader or buffer. * @function decode * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {CHelpRequestLogs_UploadUserApplicationLog_Response} CHelpRequestLogs_UploadUserApplicationLog_Response * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CHelpRequestLogs_UploadUserApplicationLog_Response.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CHelpRequestLogs_UploadUserApplicationLog_Response(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { message.id = reader.uint64(); break; } default: reader.skipType(tag & 7); break; } } return message; }; /** * Decodes a CHelpRequestLogs_UploadUserApplicationLog_Response message from the specified reader or buffer, length delimited. * @function decodeDelimited * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {CHelpRequestLogs_UploadUserApplicationLog_Response} CHelpRequestLogs_UploadUserApplicationLog_Response * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CHelpRequestLogs_UploadUserApplicationLog_Response.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a CHelpRequestLogs_UploadUserApplicationLog_Response message. * @function verify * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @static * @param {Object.<string,*>} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ CHelpRequestLogs_UploadUserApplicationLog_Response.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) return "id: integer|Long expected"; return null; }; /** * Creates a CHelpRequestLogs_UploadUserApplicationLog_Response message from a plain object. Also converts values to their respective internal types. * @function fromObject * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @static * @param {Object.<string,*>} object Plain object * @returns {CHelpRequestLogs_UploadUserApplicationLog_Response} CHelpRequestLogs_UploadUserApplicationLog_Response */ CHelpRequestLogs_UploadUserApplicationLog_Response.fromObject = function fromObject(object) { if (object instanceof $root.CHelpRequestLogs_UploadUserApplicationLog_Response) return object; var message = new $root.CHelpRequestLogs_UploadUserApplicationLog_Response(); if (object.id != null) if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = true; else if (typeof object.id === "string") message.id = parseInt(object.id, 10); else if (typeof object.id === "number") message.id = object.id; else if (typeof object.id === "object") message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); return message; }; /** * Creates a plain object from a CHelpRequestLogs_UploadUserApplicationLog_Response message. Also converts values to other types if specified. * @function toObject * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @static * @param {CHelpRequestLogs_UploadUserApplicationLog_Response} message CHelpRequestLogs_UploadUserApplicationLog_Response * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.<string,*>} Plain object */ CHelpRequestLogs_UploadUserApplicationLog_Response.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) if ($util.Long) { var long = new $util.Long(0, 0, true); object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.id = options.longs === String ? "0" : 0; if (message.id != null && message.hasOwnProperty("id")) if (typeof message.id === "number") object.id = options.longs === String ? String(message.id) : message.id; else object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; return object; }; /** * Converts this CHelpRequestLogs_UploadUserApplicationLog_Response to JSON. * @function toJSON * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @instance * @returns {Object.<string,*>} JSON object */ CHelpRequestLogs_UploadUserApplicationLog_Response.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** * Gets the default type url for CHelpRequestLogs_UploadUserApplicationLog_Response * @function getTypeUrl * @memberof CHelpRequestLogs_UploadUserApplicationLog_Response * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ CHelpRequestLogs_UploadUserApplicationLog_Response.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } return typeUrlPrefix + "/CHelpRequestLogs_UploadUserApplicationLog_Response"; }; return CHelpRequestLogs_UploadUserApplicationLog_Response; })(); $root.HelpRequestLogs = (function() { /** * Constructs a new HelpRequestLogs service. * @exports HelpRequestLogs * @classdesc Represents a HelpRequestLogs * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ function HelpRequestLogs(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } (HelpRequestLogs.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = HelpRequestLogs; /** * Creates new HelpRequestLogs service using the specified rpc implementation. * @function create * @memberof HelpRequestLogs * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited * @returns {HelpRequestLogs} RPC service. Useful where requests and/or responses are streamed. */ HelpRequestLogs.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** * Callback as used by {@link HelpRequestLogs#uploadUserApplicationLog}. * @memberof HelpRequestLogs * @typedef UploadUserApplicationLogCallback * @type {function} * @param {Error|null} error Error, if any * @param {CHelpRequestLogs_UploadUserApplicationLog_Response} [response] CHelpRequestLogs_UploadUserApplicationLog_Response */ /** * Calls UploadUserApplicationLog. * @function uploadUserApplicationLog * @memberof HelpRequestLogs * @instance * @param {ICHelpRequestLogs_UploadUserApplicationLog_Request} request CHelpRequestLogs_UploadUserApplicationLog_Request message or plain object * @param {HelpRequestLogs.UploadUserApplicationLogCallback} callback Node-style callback called with the error, if any, and CHelpRequestLogs_UploadUserApplicationLog_Response * @returns {undefined} * @variation 1 */ Object.defineProperty(HelpRequestLogs.prototype.uploadUserApplicationLog = function uploadUserApplicationLog(request, callback) { return this.rpcCall(uploadUserApplicationLog, $root.CHelpRequestLogs_UploadUserApplicationLog_Request, $root.CHelpRequestLogs_UploadUserApplicationLog_Response, request, callback); }, "name", { value: "UploadUserApplicationLog" }); /** * Calls UploadUserApplicationLog. * @function uploadUserApplicationLog * @memberof HelpRequestLogs * @instance * @param {ICHelpRequestLogs_UploadUserApplicationLog_Request} request CHelpRequestLogs_UploadUserApplicationLog_Request message or plain object * @returns {Promise<CHelpRequestLogs_UploadUserApplicationLog_Response>} Promise * @variation 2 */ return HelpRequestLogs; })(); /** * EProtoExecutionSite enum. * @exports EProtoExecutionSite * @enum {number} * @property {number} k_EProtoExecutionSiteUnknown=0 k_EProtoExecutionSiteUnknown value * @property {number} k_EProtoExecutionSiteSteamClient=3 k_EProtoExecutionSiteSteamClient value */ $root.EProtoExecutionSite = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "k_EProtoExecutionSiteUnknown"] = 0; values[valuesById[3] = "k_EProtoExecutionSiteSteamClient"] = 3; return values; })(); $root.google = (function() { /** * Namespace google. * @exports google * @namespace */ var google = {}; google.protobuf = (function() { /** * Namespace protobuf. * @memberof google * @namespace */ var protobuf = {}; protobuf.FileDescriptorSet = (function() { /** * Properties of a FileDescriptorSet. * @memberof google.protobuf * @interface IFileDescriptorSet * @property {Array.<google.protobuf.IFileDescriptorProto>|null} [file] FileDescriptorSet file */ /** * Constructs a new FileDescriptorSet. * @memberof google.protobuf * @classdesc Represents a FileDescriptorSet. * @implements IFileDescriptorSet * @constructor * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set */ function FileDescriptorSet(properties) { this.file = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * FileDescriptorSet file. * @member {Array.<google.protobuf.IFileDescriptorProto>} file * @memberof google.protobuf.FileDescriptorSet * @instance */ FileDescriptorSet.prototype.file = $util.emptyArray; /** * Creates a new FileDescriptorSet instance using the specified properties. * @function create * @memberof google.protobuf.FileDescriptorSet * @static * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance */ FileDescriptorSet.create = function create(properties) { return new FileDescriptorSet(properties); }; /** * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. * @function encode * @memberof google.protobuf.FileDescriptorSet * @static * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ FileDescriptorSet.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.file != null && message.file.length) for (var i = 0; i < message.file.length; ++i) $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. * @function encodeDelimited * @memberof google.protobuf.FileDescriptorSet * @static * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** * Decodes a FileDescriptorSet message from the specified reader or buffer. * @function decode * @memberof google.protobuf.FileDescriptorSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FileDescriptorSet.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { if (!(message.file && message.file.length)) message.file = []; message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); break; } default: reader.skipType(tag & 7); break; } } return message; }; /** * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. * @function decodeDelimited * @memberof google.protobuf.FileDescriptorSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** * Verifies a FileDescriptorSet message. * @function verify * @memberof google.protobuf.FileDescriptorSet * @static * @param {Object.<string,*>} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FileDescriptorSet.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.file != null && message.hasOwnProperty("file")) { if (!Array.isArray(message.file)) return "file: array expected"; for (var i = 0; i < message.file.length; ++i) { var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); if (error) return "file." + error; } } return null; }; /** * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. * @function fromObject * @memberof google.protobuf.FileDescriptorSet * @static * @param {Object.<string,*>} object Plain object * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet */ FileDescriptorSet.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.FileDescriptorSet) return object; var message = new $root.google.protobuf.FileDescriptorSet(); if (object.file) { if (!Array.isArray(object.file)) throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); message.file = []; for (var i = 0; i < object.file.length; ++i) { if (typeof object.file[i] !== "object") throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); } } return message; }; /** * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. * @function toObject * @memberof google.protobuf.FileDescriptorSet * @static * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.<string,*>} Plain object */ FileDescriptorSet.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) object.file = []; if (message.file && message.file.length) { object.file = []; for (var j = 0; j < message.file.length; ++j) object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); } return object; }; /** * Converts this FileDescriptorSet to JSON. * @function toJSON * @memberof google.protobuf.FileDescriptorSet * @instance * @returns {Object.<string,*>} JSON object */ FileDescriptorSet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** * Gets the default type url for FileDescriptorSet * @function getTypeUrl * @memberof google.protobuf.FileDescriptorSet * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; }; return FileDescriptorSet; })(); protobuf.FileDescriptorProto = (function() { /** * Properties of a FileDescriptorProto. * @memberof google.protobuf * @interface IFileDescriptorProto * @property {string|null} [name] FileDescriptorProto name * @property {string|null} ["package"] FileDescriptorProto package * @property {Array.<string>|null} [dependency] FileDescriptorProto dependency * @property {Array.<google.protobuf.IDescriptorProto>|null} [message_type] FileDescriptorProto message_type * @property {Array.<google.protobuf.IEnumDescriptorProto>|null} [enum_type] FileDescriptorProto enum_type * @property {Array.<google.protobuf.IServiceDescriptorProto>|null} [service] FileDescriptorProto service * @property {Array.<google.protobuf.IFieldDescriptorProto>|null} [extension] FileDescriptorProto extension * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options * @property {google.protobuf.ISourceCodeInfo|null} [source_code_info] FileDescriptorProto source_code_info */ /** * Constructs a new FileDescriptorProto. * @memberof google.protobuf * @classdesc Represents a FileDescriptorProto. * @implements IFileDescriptorProto * @constructor * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set */ function FileDescriptorProto(properties) { this.dependency = []; this.message_type = []; this.enum_type = []; this.service = []; this.extension = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** * FileDescriptorProto name. * @member {string} name * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.name = ""; /** * FileDescriptorProto package. * @member {string} package * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype["package"] = ""; /** * FileDescriptorProto dependency. * @member {Array.<string>} dependency * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.dependency = $util.emptyArray; /** * FileDescriptorProto message_type. * @member {Array.<google.protobuf.IDescriptorProto>} message_type * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.message_type = $util.emptyArray; /** * FileDescriptorProto enum_type. * @member {Array.<google.protobuf.IEnumDescriptorProto>} enum_type * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.enum_type = $util.emptyArray; /** * FileDescriptorProto service. * @member {Array.<google.protobuf.IServiceDescriptorProto>} service * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.service = $util.emptyArray; /** * FileDescriptorProto extension. * @member {Array.<google.protobuf.IFieldDescriptorProto>} extension * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.extension = $util.emptyArray; /** * FileDescriptorProto options. * @member {google.protobuf.IFileOptions|null|undefined} options * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.options = null; /** * FileDescriptorProto source_code_info. * @member {google.protobuf.ISourceCodeInfo|null|undefined} source_code_info * @memberof google.protobuf.FileDescriptorProto * @instance */ FileDescriptorProto.prototype.source_code_info = null; /** * Creates a new FileDescriptorProto instance using the specified properties. * @function create * @memberof google.protobuf.FileDescriptorProto * @static * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance */ FileDescriptorProto.create = function create(properties) { return new FileDescriptorProto(properties); }; /** * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. * @function encode * @memberof google.protobuf.FileDescriptorProto * @static * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ FileDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); if (message.dependency != null && message.dependency.length) for (var i = 0; i < message.dependency.length; ++i)