协议更新
This commit is contained in:
Vendored
+414
@@ -4603,6 +4603,420 @@ toJSON(): { [k: string]: any };
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a CSFBCodeReq. */
|
||||
interface ICSFBCodeReq {
|
||||
|
||||
/** CSFBCodeReq pixelAppId */
|
||||
pixelAppId?: (string|null);
|
||||
|
||||
/** CSFBCodeReq fbc */
|
||||
fbc?: (string|null);
|
||||
|
||||
/** CSFBCodeReq fbp */
|
||||
fbp?: (string|null);
|
||||
|
||||
/** CSFBCodeReq userAgent */
|
||||
userAgent?: (string|null);
|
||||
}
|
||||
|
||||
/** Represents a CSFBCodeReq. */
|
||||
class CSFBCodeReq implements ICSFBCodeReq {
|
||||
|
||||
/**
|
||||
* Constructs a new CSFBCodeReq.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.ICSFBCodeReq);
|
||||
|
||||
/** CSFBCodeReq pixelAppId. */
|
||||
pixelAppId: string;
|
||||
|
||||
/** CSFBCodeReq fbc. */
|
||||
fbc: string;
|
||||
|
||||
/** CSFBCodeReq fbp. */
|
||||
fbp: string;
|
||||
|
||||
/** CSFBCodeReq userAgent. */
|
||||
userAgent: string;
|
||||
|
||||
/**
|
||||
* Creates a new CSFBCodeReq instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns CSFBCodeReq instance
|
||||
*/
|
||||
static create(properties?: cs.ICSFBCodeReq): cs.CSFBCodeReq;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSFBCodeReq message. Does not implicitly {@link cs.CSFBCodeReq.verify|verify} messages.
|
||||
* @param message CSFBCodeReq message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.ICSFBCodeReq, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSFBCodeReq message, length delimited. Does not implicitly {@link cs.CSFBCodeReq.verify|verify} messages.
|
||||
* @param message CSFBCodeReq message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.ICSFBCodeReq, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a CSFBCodeReq message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns CSFBCodeReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.CSFBCodeReq;
|
||||
|
||||
/**
|
||||
* Decodes a CSFBCodeReq message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns CSFBCodeReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.CSFBCodeReq;
|
||||
|
||||
/**
|
||||
* Verifies a CSFBCodeReq message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a CSFBCodeReq message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns CSFBCodeReq
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.CSFBCodeReq;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSFBCodeReq message. Also converts values to other types if specified.
|
||||
* @param message CSFBCodeReq
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.CSFBCodeReq, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this CSFBCodeReq to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSFBCodeReq
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a CSFBCodeRes. */
|
||||
interface ICSFBCodeRes {
|
||||
|
||||
/** CSFBCodeRes fbCode */
|
||||
fbCode?: (string|null);
|
||||
}
|
||||
|
||||
/** Represents a CSFBCodeRes. */
|
||||
class CSFBCodeRes implements ICSFBCodeRes {
|
||||
|
||||
/**
|
||||
* Constructs a new CSFBCodeRes.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.ICSFBCodeRes);
|
||||
|
||||
/** CSFBCodeRes fbCode. */
|
||||
fbCode: string;
|
||||
|
||||
/**
|
||||
* Creates a new CSFBCodeRes instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns CSFBCodeRes instance
|
||||
*/
|
||||
static create(properties?: cs.ICSFBCodeRes): cs.CSFBCodeRes;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSFBCodeRes message. Does not implicitly {@link cs.CSFBCodeRes.verify|verify} messages.
|
||||
* @param message CSFBCodeRes message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.ICSFBCodeRes, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSFBCodeRes message, length delimited. Does not implicitly {@link cs.CSFBCodeRes.verify|verify} messages.
|
||||
* @param message CSFBCodeRes message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.ICSFBCodeRes, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a CSFBCodeRes message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns CSFBCodeRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.CSFBCodeRes;
|
||||
|
||||
/**
|
||||
* Decodes a CSFBCodeRes message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns CSFBCodeRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.CSFBCodeRes;
|
||||
|
||||
/**
|
||||
* Verifies a CSFBCodeRes message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a CSFBCodeRes message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns CSFBCodeRes
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.CSFBCodeRes;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSFBCodeRes message. Also converts values to other types if specified.
|
||||
* @param message CSFBCodeRes
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.CSFBCodeRes, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this CSFBCodeRes to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSFBCodeRes
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** EnmPointEvent enum. */
|
||||
enum EnmPointEvent {
|
||||
EPE_FBCode = 0,
|
||||
EPE_LoadA = 1,
|
||||
EPE_LoadB = 2,
|
||||
EPE_LoadGame = 3
|
||||
}
|
||||
|
||||
/** Properties of a CSPointEventReq. */
|
||||
interface ICSPointEventReq {
|
||||
|
||||
/** CSPointEventReq fbCode */
|
||||
fbCode?: (string|null);
|
||||
|
||||
/** CSPointEventReq point */
|
||||
point?: (number|null);
|
||||
}
|
||||
|
||||
/** Represents a CSPointEventReq. */
|
||||
class CSPointEventReq implements ICSPointEventReq {
|
||||
|
||||
/**
|
||||
* Constructs a new CSPointEventReq.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.ICSPointEventReq);
|
||||
|
||||
/** CSPointEventReq fbCode. */
|
||||
fbCode: string;
|
||||
|
||||
/** CSPointEventReq point. */
|
||||
point: number;
|
||||
|
||||
/**
|
||||
* Creates a new CSPointEventReq instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns CSPointEventReq instance
|
||||
*/
|
||||
static create(properties?: cs.ICSPointEventReq): cs.CSPointEventReq;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSPointEventReq message. Does not implicitly {@link cs.CSPointEventReq.verify|verify} messages.
|
||||
* @param message CSPointEventReq message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.ICSPointEventReq, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSPointEventReq message, length delimited. Does not implicitly {@link cs.CSPointEventReq.verify|verify} messages.
|
||||
* @param message CSPointEventReq message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.ICSPointEventReq, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a CSPointEventReq message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns CSPointEventReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.CSPointEventReq;
|
||||
|
||||
/**
|
||||
* Decodes a CSPointEventReq message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns CSPointEventReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.CSPointEventReq;
|
||||
|
||||
/**
|
||||
* Verifies a CSPointEventReq message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a CSPointEventReq message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns CSPointEventReq
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.CSPointEventReq;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSPointEventReq message. Also converts values to other types if specified.
|
||||
* @param message CSPointEventReq
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.CSPointEventReq, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this CSPointEventReq to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSPointEventReq
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a CSPointEventRes. */
|
||||
interface ICSPointEventRes {
|
||||
}
|
||||
|
||||
/** Represents a CSPointEventRes. */
|
||||
class CSPointEventRes implements ICSPointEventRes {
|
||||
|
||||
/**
|
||||
* Constructs a new CSPointEventRes.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.ICSPointEventRes);
|
||||
|
||||
/**
|
||||
* Creates a new CSPointEventRes instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns CSPointEventRes instance
|
||||
*/
|
||||
static create(properties?: cs.ICSPointEventRes): cs.CSPointEventRes;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSPointEventRes message. Does not implicitly {@link cs.CSPointEventRes.verify|verify} messages.
|
||||
* @param message CSPointEventRes message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.ICSPointEventRes, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSPointEventRes message, length delimited. Does not implicitly {@link cs.CSPointEventRes.verify|verify} messages.
|
||||
* @param message CSPointEventRes message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.ICSPointEventRes, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a CSPointEventRes message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns CSPointEventRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.CSPointEventRes;
|
||||
|
||||
/**
|
||||
* Decodes a CSPointEventRes message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns CSPointEventRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.CSPointEventRes;
|
||||
|
||||
/**
|
||||
* Verifies a CSPointEventRes message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a CSPointEventRes message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns CSPointEventRes
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.CSPointEventRes;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSPointEventRes message. Also converts values to other types if specified.
|
||||
* @param message CSPointEventRes
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.CSPointEventRes, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this CSPointEventRes to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSPointEventRes
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Category enum. */
|
||||
enum Category {
|
||||
Category_mature = 0,
|
||||
|
||||
@@ -10715,6 +10715,910 @@ $root.cs = (function() {
|
||||
return CSRecommendRes;
|
||||
})();
|
||||
|
||||
cs.CSFBCodeReq = (function() {
|
||||
|
||||
/**
|
||||
* Properties of a CSFBCodeReq.
|
||||
* @memberof cs
|
||||
* @interface ICSFBCodeReq
|
||||
* @property {string|null} [pixelAppId] CSFBCodeReq pixelAppId
|
||||
* @property {string|null} [fbc] CSFBCodeReq fbc
|
||||
* @property {string|null} [fbp] CSFBCodeReq fbp
|
||||
* @property {string|null} [userAgent] CSFBCodeReq userAgent
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new CSFBCodeReq.
|
||||
* @memberof cs
|
||||
* @classdesc Represents a CSFBCodeReq.
|
||||
* @implements ICSFBCodeReq
|
||||
* @constructor
|
||||
* @param {cs.ICSFBCodeReq=} [properties] Properties to set
|
||||
*/
|
||||
function CSFBCodeReq(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]];
|
||||
}
|
||||
|
||||
/**
|
||||
* CSFBCodeReq pixelAppId.
|
||||
* @member {string} pixelAppId
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @instance
|
||||
*/
|
||||
CSFBCodeReq.prototype.pixelAppId = "";
|
||||
|
||||
/**
|
||||
* CSFBCodeReq fbc.
|
||||
* @member {string} fbc
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @instance
|
||||
*/
|
||||
CSFBCodeReq.prototype.fbc = "";
|
||||
|
||||
/**
|
||||
* CSFBCodeReq fbp.
|
||||
* @member {string} fbp
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @instance
|
||||
*/
|
||||
CSFBCodeReq.prototype.fbp = "";
|
||||
|
||||
/**
|
||||
* CSFBCodeReq userAgent.
|
||||
* @member {string} userAgent
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @instance
|
||||
*/
|
||||
CSFBCodeReq.prototype.userAgent = "";
|
||||
|
||||
/**
|
||||
* Creates a new CSFBCodeReq instance using the specified properties.
|
||||
* @function create
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @static
|
||||
* @param {cs.ICSFBCodeReq=} [properties] Properties to set
|
||||
* @returns {cs.CSFBCodeReq} CSFBCodeReq instance
|
||||
*/
|
||||
CSFBCodeReq.create = function create(properties) {
|
||||
return new CSFBCodeReq(properties);
|
||||
};
|
||||
|
||||
/**
|
||||
* Encodes the specified CSFBCodeReq message. Does not implicitly {@link cs.CSFBCodeReq.verify|verify} messages.
|
||||
* @function encode
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @static
|
||||
* @param {cs.ICSFBCodeReq} message CSFBCodeReq message or plain object to encode
|
||||
* @param {$protobuf.Writer} [writer] Writer to encode to
|
||||
* @returns {$protobuf.Writer} Writer
|
||||
*/
|
||||
CSFBCodeReq.encode = function encode(message, writer) {
|
||||
if (!writer)
|
||||
writer = $Writer.create();
|
||||
if (message.pixelAppId != null && Object.hasOwnProperty.call(message, "pixelAppId"))
|
||||
writer.uint32(/* id 1, wireType 2 =*/10).string(message.pixelAppId);
|
||||
if (message.fbc != null && Object.hasOwnProperty.call(message, "fbc"))
|
||||
writer.uint32(/* id 2, wireType 2 =*/18).string(message.fbc);
|
||||
if (message.fbp != null && Object.hasOwnProperty.call(message, "fbp"))
|
||||
writer.uint32(/* id 3, wireType 2 =*/26).string(message.fbp);
|
||||
if (message.userAgent != null && Object.hasOwnProperty.call(message, "userAgent"))
|
||||
writer.uint32(/* id 4, wireType 2 =*/34).string(message.userAgent);
|
||||
return writer;
|
||||
};
|
||||
|
||||
/**
|
||||
* Encodes the specified CSFBCodeReq message, length delimited. Does not implicitly {@link cs.CSFBCodeReq.verify|verify} messages.
|
||||
* @function encodeDelimited
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @static
|
||||
* @param {cs.ICSFBCodeReq} message CSFBCodeReq message or plain object to encode
|
||||
* @param {$protobuf.Writer} [writer] Writer to encode to
|
||||
* @returns {$protobuf.Writer} Writer
|
||||
*/
|
||||
CSFBCodeReq.encodeDelimited = function encodeDelimited(message, writer) {
|
||||
return this.encode(message, writer).ldelim();
|
||||
};
|
||||
|
||||
/**
|
||||
* Decodes a CSFBCodeReq message from the specified reader or buffer.
|
||||
* @function decode
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @static
|
||||
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
||||
* @param {number} [length] Message length if known beforehand
|
||||
* @returns {cs.CSFBCodeReq} CSFBCodeReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
CSFBCodeReq.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.cs.CSFBCodeReq();
|
||||
while (reader.pos < end) {
|
||||
var tag = reader.uint32();
|
||||
if (tag === error)
|
||||
break;
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
message.pixelAppId = reader.string();
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
message.fbc = reader.string();
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
message.fbp = reader.string();
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
message.userAgent = reader.string();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
reader.skipType(tag & 7);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return message;
|
||||
};
|
||||
|
||||
/**
|
||||
* Decodes a CSFBCodeReq message from the specified reader or buffer, length delimited.
|
||||
* @function decodeDelimited
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @static
|
||||
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
||||
* @returns {cs.CSFBCodeReq} CSFBCodeReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
CSFBCodeReq.decodeDelimited = function decodeDelimited(reader) {
|
||||
if (!(reader instanceof $Reader))
|
||||
reader = new $Reader(reader);
|
||||
return this.decode(reader, reader.uint32());
|
||||
};
|
||||
|
||||
/**
|
||||
* Verifies a CSFBCodeReq message.
|
||||
* @function verify
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @static
|
||||
* @param {Object.<string,*>} message Plain object to verify
|
||||
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
CSFBCodeReq.verify = function verify(message) {
|
||||
if (typeof message !== "object" || message === null)
|
||||
return "object expected";
|
||||
if (message.pixelAppId != null && message.hasOwnProperty("pixelAppId"))
|
||||
if (!$util.isString(message.pixelAppId))
|
||||
return "pixelAppId: string expected";
|
||||
if (message.fbc != null && message.hasOwnProperty("fbc"))
|
||||
if (!$util.isString(message.fbc))
|
||||
return "fbc: string expected";
|
||||
if (message.fbp != null && message.hasOwnProperty("fbp"))
|
||||
if (!$util.isString(message.fbp))
|
||||
return "fbp: string expected";
|
||||
if (message.userAgent != null && message.hasOwnProperty("userAgent"))
|
||||
if (!$util.isString(message.userAgent))
|
||||
return "userAgent: string expected";
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a CSFBCodeReq message from a plain object. Also converts values to their respective internal types.
|
||||
* @function fromObject
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @static
|
||||
* @param {Object.<string,*>} object Plain object
|
||||
* @returns {cs.CSFBCodeReq} CSFBCodeReq
|
||||
*/
|
||||
CSFBCodeReq.fromObject = function fromObject(object) {
|
||||
if (object instanceof $root.cs.CSFBCodeReq)
|
||||
return object;
|
||||
var message = new $root.cs.CSFBCodeReq();
|
||||
if (object.pixelAppId != null)
|
||||
message.pixelAppId = String(object.pixelAppId);
|
||||
if (object.fbc != null)
|
||||
message.fbc = String(object.fbc);
|
||||
if (object.fbp != null)
|
||||
message.fbp = String(object.fbp);
|
||||
if (object.userAgent != null)
|
||||
message.userAgent = String(object.userAgent);
|
||||
return message;
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSFBCodeReq message. Also converts values to other types if specified.
|
||||
* @function toObject
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @static
|
||||
* @param {cs.CSFBCodeReq} message CSFBCodeReq
|
||||
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
||||
* @returns {Object.<string,*>} Plain object
|
||||
*/
|
||||
CSFBCodeReq.toObject = function toObject(message, options) {
|
||||
if (!options)
|
||||
options = {};
|
||||
var object = {};
|
||||
if (options.defaults) {
|
||||
object.pixelAppId = "";
|
||||
object.fbc = "";
|
||||
object.fbp = "";
|
||||
object.userAgent = "";
|
||||
}
|
||||
if (message.pixelAppId != null && message.hasOwnProperty("pixelAppId"))
|
||||
object.pixelAppId = message.pixelAppId;
|
||||
if (message.fbc != null && message.hasOwnProperty("fbc"))
|
||||
object.fbc = message.fbc;
|
||||
if (message.fbp != null && message.hasOwnProperty("fbp"))
|
||||
object.fbp = message.fbp;
|
||||
if (message.userAgent != null && message.hasOwnProperty("userAgent"))
|
||||
object.userAgent = message.userAgent;
|
||||
return object;
|
||||
};
|
||||
|
||||
/**
|
||||
* Converts this CSFBCodeReq to JSON.
|
||||
* @function toJSON
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @instance
|
||||
* @returns {Object.<string,*>} JSON object
|
||||
*/
|
||||
CSFBCodeReq.prototype.toJSON = function toJSON() {
|
||||
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSFBCodeReq
|
||||
* @function getTypeUrl
|
||||
* @memberof cs.CSFBCodeReq
|
||||
* @static
|
||||
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns {string} The default type url
|
||||
*/
|
||||
CSFBCodeReq.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
||||
if (typeUrlPrefix === undefined) {
|
||||
typeUrlPrefix = "type.googleapis.com";
|
||||
}
|
||||
return typeUrlPrefix + "/cs.CSFBCodeReq";
|
||||
};
|
||||
|
||||
return CSFBCodeReq;
|
||||
})();
|
||||
|
||||
cs.CSFBCodeRes = (function() {
|
||||
|
||||
/**
|
||||
* Properties of a CSFBCodeRes.
|
||||
* @memberof cs
|
||||
* @interface ICSFBCodeRes
|
||||
* @property {string|null} [fbCode] CSFBCodeRes fbCode
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new CSFBCodeRes.
|
||||
* @memberof cs
|
||||
* @classdesc Represents a CSFBCodeRes.
|
||||
* @implements ICSFBCodeRes
|
||||
* @constructor
|
||||
* @param {cs.ICSFBCodeRes=} [properties] Properties to set
|
||||
*/
|
||||
function CSFBCodeRes(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]];
|
||||
}
|
||||
|
||||
/**
|
||||
* CSFBCodeRes fbCode.
|
||||
* @member {string} fbCode
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @instance
|
||||
*/
|
||||
CSFBCodeRes.prototype.fbCode = "";
|
||||
|
||||
/**
|
||||
* Creates a new CSFBCodeRes instance using the specified properties.
|
||||
* @function create
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @static
|
||||
* @param {cs.ICSFBCodeRes=} [properties] Properties to set
|
||||
* @returns {cs.CSFBCodeRes} CSFBCodeRes instance
|
||||
*/
|
||||
CSFBCodeRes.create = function create(properties) {
|
||||
return new CSFBCodeRes(properties);
|
||||
};
|
||||
|
||||
/**
|
||||
* Encodes the specified CSFBCodeRes message. Does not implicitly {@link cs.CSFBCodeRes.verify|verify} messages.
|
||||
* @function encode
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @static
|
||||
* @param {cs.ICSFBCodeRes} message CSFBCodeRes message or plain object to encode
|
||||
* @param {$protobuf.Writer} [writer] Writer to encode to
|
||||
* @returns {$protobuf.Writer} Writer
|
||||
*/
|
||||
CSFBCodeRes.encode = function encode(message, writer) {
|
||||
if (!writer)
|
||||
writer = $Writer.create();
|
||||
if (message.fbCode != null && Object.hasOwnProperty.call(message, "fbCode"))
|
||||
writer.uint32(/* id 1, wireType 2 =*/10).string(message.fbCode);
|
||||
return writer;
|
||||
};
|
||||
|
||||
/**
|
||||
* Encodes the specified CSFBCodeRes message, length delimited. Does not implicitly {@link cs.CSFBCodeRes.verify|verify} messages.
|
||||
* @function encodeDelimited
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @static
|
||||
* @param {cs.ICSFBCodeRes} message CSFBCodeRes message or plain object to encode
|
||||
* @param {$protobuf.Writer} [writer] Writer to encode to
|
||||
* @returns {$protobuf.Writer} Writer
|
||||
*/
|
||||
CSFBCodeRes.encodeDelimited = function encodeDelimited(message, writer) {
|
||||
return this.encode(message, writer).ldelim();
|
||||
};
|
||||
|
||||
/**
|
||||
* Decodes a CSFBCodeRes message from the specified reader or buffer.
|
||||
* @function decode
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @static
|
||||
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
||||
* @param {number} [length] Message length if known beforehand
|
||||
* @returns {cs.CSFBCodeRes} CSFBCodeRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
CSFBCodeRes.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.cs.CSFBCodeRes();
|
||||
while (reader.pos < end) {
|
||||
var tag = reader.uint32();
|
||||
if (tag === error)
|
||||
break;
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
message.fbCode = reader.string();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
reader.skipType(tag & 7);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return message;
|
||||
};
|
||||
|
||||
/**
|
||||
* Decodes a CSFBCodeRes message from the specified reader or buffer, length delimited.
|
||||
* @function decodeDelimited
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @static
|
||||
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
||||
* @returns {cs.CSFBCodeRes} CSFBCodeRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
CSFBCodeRes.decodeDelimited = function decodeDelimited(reader) {
|
||||
if (!(reader instanceof $Reader))
|
||||
reader = new $Reader(reader);
|
||||
return this.decode(reader, reader.uint32());
|
||||
};
|
||||
|
||||
/**
|
||||
* Verifies a CSFBCodeRes message.
|
||||
* @function verify
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @static
|
||||
* @param {Object.<string,*>} message Plain object to verify
|
||||
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
CSFBCodeRes.verify = function verify(message) {
|
||||
if (typeof message !== "object" || message === null)
|
||||
return "object expected";
|
||||
if (message.fbCode != null && message.hasOwnProperty("fbCode"))
|
||||
if (!$util.isString(message.fbCode))
|
||||
return "fbCode: string expected";
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a CSFBCodeRes message from a plain object. Also converts values to their respective internal types.
|
||||
* @function fromObject
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @static
|
||||
* @param {Object.<string,*>} object Plain object
|
||||
* @returns {cs.CSFBCodeRes} CSFBCodeRes
|
||||
*/
|
||||
CSFBCodeRes.fromObject = function fromObject(object) {
|
||||
if (object instanceof $root.cs.CSFBCodeRes)
|
||||
return object;
|
||||
var message = new $root.cs.CSFBCodeRes();
|
||||
if (object.fbCode != null)
|
||||
message.fbCode = String(object.fbCode);
|
||||
return message;
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSFBCodeRes message. Also converts values to other types if specified.
|
||||
* @function toObject
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @static
|
||||
* @param {cs.CSFBCodeRes} message CSFBCodeRes
|
||||
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
||||
* @returns {Object.<string,*>} Plain object
|
||||
*/
|
||||
CSFBCodeRes.toObject = function toObject(message, options) {
|
||||
if (!options)
|
||||
options = {};
|
||||
var object = {};
|
||||
if (options.defaults)
|
||||
object.fbCode = "";
|
||||
if (message.fbCode != null && message.hasOwnProperty("fbCode"))
|
||||
object.fbCode = message.fbCode;
|
||||
return object;
|
||||
};
|
||||
|
||||
/**
|
||||
* Converts this CSFBCodeRes to JSON.
|
||||
* @function toJSON
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @instance
|
||||
* @returns {Object.<string,*>} JSON object
|
||||
*/
|
||||
CSFBCodeRes.prototype.toJSON = function toJSON() {
|
||||
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSFBCodeRes
|
||||
* @function getTypeUrl
|
||||
* @memberof cs.CSFBCodeRes
|
||||
* @static
|
||||
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns {string} The default type url
|
||||
*/
|
||||
CSFBCodeRes.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
||||
if (typeUrlPrefix === undefined) {
|
||||
typeUrlPrefix = "type.googleapis.com";
|
||||
}
|
||||
return typeUrlPrefix + "/cs.CSFBCodeRes";
|
||||
};
|
||||
|
||||
return CSFBCodeRes;
|
||||
})();
|
||||
|
||||
/**
|
||||
* EnmPointEvent enum.
|
||||
* @name cs.EnmPointEvent
|
||||
* @enum {number}
|
||||
* @property {number} EPE_FBCode=0 EPE_FBCode value
|
||||
* @property {number} EPE_LoadA=1 EPE_LoadA value
|
||||
* @property {number} EPE_LoadB=2 EPE_LoadB value
|
||||
* @property {number} EPE_LoadGame=3 EPE_LoadGame value
|
||||
*/
|
||||
cs.EnmPointEvent = (function() {
|
||||
var valuesById = {}, values = Object.create(valuesById);
|
||||
values[valuesById[0] = "EPE_FBCode"] = 0;
|
||||
values[valuesById[1] = "EPE_LoadA"] = 1;
|
||||
values[valuesById[2] = "EPE_LoadB"] = 2;
|
||||
values[valuesById[3] = "EPE_LoadGame"] = 3;
|
||||
return values;
|
||||
})();
|
||||
|
||||
cs.CSPointEventReq = (function() {
|
||||
|
||||
/**
|
||||
* Properties of a CSPointEventReq.
|
||||
* @memberof cs
|
||||
* @interface ICSPointEventReq
|
||||
* @property {string|null} [fbCode] CSPointEventReq fbCode
|
||||
* @property {number|null} [point] CSPointEventReq point
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new CSPointEventReq.
|
||||
* @memberof cs
|
||||
* @classdesc Represents a CSPointEventReq.
|
||||
* @implements ICSPointEventReq
|
||||
* @constructor
|
||||
* @param {cs.ICSPointEventReq=} [properties] Properties to set
|
||||
*/
|
||||
function CSPointEventReq(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]];
|
||||
}
|
||||
|
||||
/**
|
||||
* CSPointEventReq fbCode.
|
||||
* @member {string} fbCode
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @instance
|
||||
*/
|
||||
CSPointEventReq.prototype.fbCode = "";
|
||||
|
||||
/**
|
||||
* CSPointEventReq point.
|
||||
* @member {number} point
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @instance
|
||||
*/
|
||||
CSPointEventReq.prototype.point = 0;
|
||||
|
||||
/**
|
||||
* Creates a new CSPointEventReq instance using the specified properties.
|
||||
* @function create
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @static
|
||||
* @param {cs.ICSPointEventReq=} [properties] Properties to set
|
||||
* @returns {cs.CSPointEventReq} CSPointEventReq instance
|
||||
*/
|
||||
CSPointEventReq.create = function create(properties) {
|
||||
return new CSPointEventReq(properties);
|
||||
};
|
||||
|
||||
/**
|
||||
* Encodes the specified CSPointEventReq message. Does not implicitly {@link cs.CSPointEventReq.verify|verify} messages.
|
||||
* @function encode
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @static
|
||||
* @param {cs.ICSPointEventReq} message CSPointEventReq message or plain object to encode
|
||||
* @param {$protobuf.Writer} [writer] Writer to encode to
|
||||
* @returns {$protobuf.Writer} Writer
|
||||
*/
|
||||
CSPointEventReq.encode = function encode(message, writer) {
|
||||
if (!writer)
|
||||
writer = $Writer.create();
|
||||
if (message.fbCode != null && Object.hasOwnProperty.call(message, "fbCode"))
|
||||
writer.uint32(/* id 1, wireType 2 =*/10).string(message.fbCode);
|
||||
if (message.point != null && Object.hasOwnProperty.call(message, "point"))
|
||||
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.point);
|
||||
return writer;
|
||||
};
|
||||
|
||||
/**
|
||||
* Encodes the specified CSPointEventReq message, length delimited. Does not implicitly {@link cs.CSPointEventReq.verify|verify} messages.
|
||||
* @function encodeDelimited
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @static
|
||||
* @param {cs.ICSPointEventReq} message CSPointEventReq message or plain object to encode
|
||||
* @param {$protobuf.Writer} [writer] Writer to encode to
|
||||
* @returns {$protobuf.Writer} Writer
|
||||
*/
|
||||
CSPointEventReq.encodeDelimited = function encodeDelimited(message, writer) {
|
||||
return this.encode(message, writer).ldelim();
|
||||
};
|
||||
|
||||
/**
|
||||
* Decodes a CSPointEventReq message from the specified reader or buffer.
|
||||
* @function decode
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @static
|
||||
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
||||
* @param {number} [length] Message length if known beforehand
|
||||
* @returns {cs.CSPointEventReq} CSPointEventReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
CSPointEventReq.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.cs.CSPointEventReq();
|
||||
while (reader.pos < end) {
|
||||
var tag = reader.uint32();
|
||||
if (tag === error)
|
||||
break;
|
||||
switch (tag >>> 3) {
|
||||
case 1: {
|
||||
message.fbCode = reader.string();
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
message.point = reader.int32();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
reader.skipType(tag & 7);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return message;
|
||||
};
|
||||
|
||||
/**
|
||||
* Decodes a CSPointEventReq message from the specified reader or buffer, length delimited.
|
||||
* @function decodeDelimited
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @static
|
||||
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
||||
* @returns {cs.CSPointEventReq} CSPointEventReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
CSPointEventReq.decodeDelimited = function decodeDelimited(reader) {
|
||||
if (!(reader instanceof $Reader))
|
||||
reader = new $Reader(reader);
|
||||
return this.decode(reader, reader.uint32());
|
||||
};
|
||||
|
||||
/**
|
||||
* Verifies a CSPointEventReq message.
|
||||
* @function verify
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @static
|
||||
* @param {Object.<string,*>} message Plain object to verify
|
||||
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
CSPointEventReq.verify = function verify(message) {
|
||||
if (typeof message !== "object" || message === null)
|
||||
return "object expected";
|
||||
if (message.fbCode != null && message.hasOwnProperty("fbCode"))
|
||||
if (!$util.isString(message.fbCode))
|
||||
return "fbCode: string expected";
|
||||
if (message.point != null && message.hasOwnProperty("point"))
|
||||
if (!$util.isInteger(message.point))
|
||||
return "point: integer expected";
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a CSPointEventReq message from a plain object. Also converts values to their respective internal types.
|
||||
* @function fromObject
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @static
|
||||
* @param {Object.<string,*>} object Plain object
|
||||
* @returns {cs.CSPointEventReq} CSPointEventReq
|
||||
*/
|
||||
CSPointEventReq.fromObject = function fromObject(object) {
|
||||
if (object instanceof $root.cs.CSPointEventReq)
|
||||
return object;
|
||||
var message = new $root.cs.CSPointEventReq();
|
||||
if (object.fbCode != null)
|
||||
message.fbCode = String(object.fbCode);
|
||||
if (object.point != null)
|
||||
message.point = object.point | 0;
|
||||
return message;
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSPointEventReq message. Also converts values to other types if specified.
|
||||
* @function toObject
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @static
|
||||
* @param {cs.CSPointEventReq} message CSPointEventReq
|
||||
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
||||
* @returns {Object.<string,*>} Plain object
|
||||
*/
|
||||
CSPointEventReq.toObject = function toObject(message, options) {
|
||||
if (!options)
|
||||
options = {};
|
||||
var object = {};
|
||||
if (options.defaults) {
|
||||
object.fbCode = "";
|
||||
object.point = 0;
|
||||
}
|
||||
if (message.fbCode != null && message.hasOwnProperty("fbCode"))
|
||||
object.fbCode = message.fbCode;
|
||||
if (message.point != null && message.hasOwnProperty("point"))
|
||||
object.point = message.point;
|
||||
return object;
|
||||
};
|
||||
|
||||
/**
|
||||
* Converts this CSPointEventReq to JSON.
|
||||
* @function toJSON
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @instance
|
||||
* @returns {Object.<string,*>} JSON object
|
||||
*/
|
||||
CSPointEventReq.prototype.toJSON = function toJSON() {
|
||||
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSPointEventReq
|
||||
* @function getTypeUrl
|
||||
* @memberof cs.CSPointEventReq
|
||||
* @static
|
||||
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns {string} The default type url
|
||||
*/
|
||||
CSPointEventReq.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
||||
if (typeUrlPrefix === undefined) {
|
||||
typeUrlPrefix = "type.googleapis.com";
|
||||
}
|
||||
return typeUrlPrefix + "/cs.CSPointEventReq";
|
||||
};
|
||||
|
||||
return CSPointEventReq;
|
||||
})();
|
||||
|
||||
cs.CSPointEventRes = (function() {
|
||||
|
||||
/**
|
||||
* Properties of a CSPointEventRes.
|
||||
* @memberof cs
|
||||
* @interface ICSPointEventRes
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new CSPointEventRes.
|
||||
* @memberof cs
|
||||
* @classdesc Represents a CSPointEventRes.
|
||||
* @implements ICSPointEventRes
|
||||
* @constructor
|
||||
* @param {cs.ICSPointEventRes=} [properties] Properties to set
|
||||
*/
|
||||
function CSPointEventRes(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]];
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new CSPointEventRes instance using the specified properties.
|
||||
* @function create
|
||||
* @memberof cs.CSPointEventRes
|
||||
* @static
|
||||
* @param {cs.ICSPointEventRes=} [properties] Properties to set
|
||||
* @returns {cs.CSPointEventRes} CSPointEventRes instance
|
||||
*/
|
||||
CSPointEventRes.create = function create(properties) {
|
||||
return new CSPointEventRes(properties);
|
||||
};
|
||||
|
||||
/**
|
||||
* Encodes the specified CSPointEventRes message. Does not implicitly {@link cs.CSPointEventRes.verify|verify} messages.
|
||||
* @function encode
|
||||
* @memberof cs.CSPointEventRes
|
||||
* @static
|
||||
* @param {cs.ICSPointEventRes} message CSPointEventRes message or plain object to encode
|
||||
* @param {$protobuf.Writer} [writer] Writer to encode to
|
||||
* @returns {$protobuf.Writer} Writer
|
||||
*/
|
||||
CSPointEventRes.encode = function encode(message, writer) {
|
||||
if (!writer)
|
||||
writer = $Writer.create();
|
||||
return writer;
|
||||
};
|
||||
|
||||
/**
|
||||
* Encodes the specified CSPointEventRes message, length delimited. Does not implicitly {@link cs.CSPointEventRes.verify|verify} messages.
|
||||
* @function encodeDelimited
|
||||
* @memberof cs.CSPointEventRes
|
||||
* @static
|
||||
* @param {cs.ICSPointEventRes} message CSPointEventRes message or plain object to encode
|
||||
* @param {$protobuf.Writer} [writer] Writer to encode to
|
||||
* @returns {$protobuf.Writer} Writer
|
||||
*/
|
||||
CSPointEventRes.encodeDelimited = function encodeDelimited(message, writer) {
|
||||
return this.encode(message, writer).ldelim();
|
||||
};
|
||||
|
||||
/**
|
||||
* Decodes a CSPointEventRes message from the specified reader or buffer.
|
||||
* @function decode
|
||||
* @memberof cs.CSPointEventRes
|
||||
* @static
|
||||
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
||||
* @param {number} [length] Message length if known beforehand
|
||||
* @returns {cs.CSPointEventRes} CSPointEventRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
CSPointEventRes.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.cs.CSPointEventRes();
|
||||
while (reader.pos < end) {
|
||||
var tag = reader.uint32();
|
||||
if (tag === error)
|
||||
break;
|
||||
switch (tag >>> 3) {
|
||||
default:
|
||||
reader.skipType(tag & 7);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return message;
|
||||
};
|
||||
|
||||
/**
|
||||
* Decodes a CSPointEventRes message from the specified reader or buffer, length delimited.
|
||||
* @function decodeDelimited
|
||||
* @memberof cs.CSPointEventRes
|
||||
* @static
|
||||
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
||||
* @returns {cs.CSPointEventRes} CSPointEventRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
CSPointEventRes.decodeDelimited = function decodeDelimited(reader) {
|
||||
if (!(reader instanceof $Reader))
|
||||
reader = new $Reader(reader);
|
||||
return this.decode(reader, reader.uint32());
|
||||
};
|
||||
|
||||
/**
|
||||
* Verifies a CSPointEventRes message.
|
||||
* @function verify
|
||||
* @memberof cs.CSPointEventRes
|
||||
* @static
|
||||
* @param {Object.<string,*>} message Plain object to verify
|
||||
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
CSPointEventRes.verify = function verify(message) {
|
||||
if (typeof message !== "object" || message === null)
|
||||
return "object expected";
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a CSPointEventRes message from a plain object. Also converts values to their respective internal types.
|
||||
* @function fromObject
|
||||
* @memberof cs.CSPointEventRes
|
||||
* @static
|
||||
* @param {Object.<string,*>} object Plain object
|
||||
* @returns {cs.CSPointEventRes} CSPointEventRes
|
||||
*/
|
||||
CSPointEventRes.fromObject = function fromObject(object) {
|
||||
if (object instanceof $root.cs.CSPointEventRes)
|
||||
return object;
|
||||
return new $root.cs.CSPointEventRes();
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSPointEventRes message. Also converts values to other types if specified.
|
||||
* @function toObject
|
||||
* @memberof cs.CSPointEventRes
|
||||
* @static
|
||||
* @param {cs.CSPointEventRes} message CSPointEventRes
|
||||
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
||||
* @returns {Object.<string,*>} Plain object
|
||||
*/
|
||||
CSPointEventRes.toObject = function toObject() {
|
||||
return {};
|
||||
};
|
||||
|
||||
/**
|
||||
* Converts this CSPointEventRes to JSON.
|
||||
* @function toJSON
|
||||
* @memberof cs.CSPointEventRes
|
||||
* @instance
|
||||
* @returns {Object.<string,*>} JSON object
|
||||
*/
|
||||
CSPointEventRes.prototype.toJSON = function toJSON() {
|
||||
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSPointEventRes
|
||||
* @function getTypeUrl
|
||||
* @memberof cs.CSPointEventRes
|
||||
* @static
|
||||
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns {string} The default type url
|
||||
*/
|
||||
CSPointEventRes.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
||||
if (typeUrlPrefix === undefined) {
|
||||
typeUrlPrefix = "type.googleapis.com";
|
||||
}
|
||||
return typeUrlPrefix + "/cs.CSPointEventRes";
|
||||
};
|
||||
|
||||
return CSPointEventRes;
|
||||
})();
|
||||
|
||||
/**
|
||||
* Category enum.
|
||||
* @name cs.Category
|
||||
|
||||
+1
-1
Submodule proto_cs updated: ac9f5df0b3...3e88ff3f84
+1
-1
Submodule xchat_cfg updated: cee552a128...a6d2828704
Reference in New Issue
Block a user