rpc is changed
This commit is contained in:
parent
b69c09f0c1
commit
d80ff7368a
170
src/app/modules/protobuf/protobuf/rpc/error_pb.d.ts
vendored
170
src/app/modules/protobuf/protobuf/rpc/error_pb.d.ts
vendored
|
@ -4,11 +4,114 @@
|
||||||
import * as jspb from 'google-protobuf';
|
import * as jspb from 'google-protobuf';
|
||||||
|
|
||||||
export class Error extends jspb.Message {
|
export class Error extends jspb.Message {
|
||||||
|
static readonly PARSE: number;
|
||||||
|
static readonly INVALID_REQUEST: number;
|
||||||
|
static readonly INVALID_PARAMS: number;
|
||||||
|
static readonly INTERNAL: number;
|
||||||
|
static readonly SERVER_00: number;
|
||||||
|
static readonly SERVER_01: number;
|
||||||
|
static readonly SERVER_02: number;
|
||||||
|
static readonly SERVER_03: number;
|
||||||
|
static readonly SERVER_04: number;
|
||||||
|
static readonly SERVER_05: number;
|
||||||
|
static readonly SERVER_06: number;
|
||||||
|
static readonly SERVER_07: number;
|
||||||
|
static readonly SERVER_08: number;
|
||||||
|
static readonly SERVER_09: number;
|
||||||
|
static readonly SERVER_10: number;
|
||||||
|
static readonly SERVER_11: number;
|
||||||
|
static readonly SERVER_12: number;
|
||||||
|
static readonly SERVER_13: number;
|
||||||
|
static readonly SERVER_14: number;
|
||||||
|
static readonly SERVER_15: number;
|
||||||
|
static readonly SERVER_16: number;
|
||||||
|
static readonly SERVER_17: number;
|
||||||
|
static readonly SERVER_18: number;
|
||||||
|
static readonly SERVER_19: number;
|
||||||
|
static readonly SERVER_20: number;
|
||||||
|
static readonly SERVER_21: number;
|
||||||
|
static readonly SERVER_22: number;
|
||||||
|
static readonly SERVER_23: number;
|
||||||
|
static readonly SERVER_24: number;
|
||||||
|
static readonly SERVER_25: number;
|
||||||
|
static readonly SERVER_26: number;
|
||||||
|
static readonly SERVER_27: number;
|
||||||
|
static readonly SERVER_28: number;
|
||||||
|
static readonly SERVER_29: number;
|
||||||
|
static readonly SERVER_30: number;
|
||||||
|
static readonly SERVER_31: number;
|
||||||
|
static readonly SERVER_32: number;
|
||||||
|
static readonly SERVER_33: number;
|
||||||
|
static readonly SERVER_34: number;
|
||||||
|
static readonly SERVER_35: number;
|
||||||
|
static readonly SERVER_36: number;
|
||||||
|
static readonly SERVER_37: number;
|
||||||
|
static readonly SERVER_38: number;
|
||||||
|
static readonly SERVER_39: number;
|
||||||
|
static readonly SERVER_40: number;
|
||||||
|
static readonly SERVER_41: number;
|
||||||
|
static readonly SERVER_42: number;
|
||||||
|
static readonly SERVER_43: number;
|
||||||
|
static readonly SERVER_44: number;
|
||||||
|
static readonly SERVER_45: number;
|
||||||
|
static readonly SERVER_46: number;
|
||||||
|
static readonly SERVER_47: number;
|
||||||
|
static readonly SERVER_48: number;
|
||||||
|
static readonly SERVER_49: number;
|
||||||
|
static readonly SERVER_50: number;
|
||||||
|
static readonly SERVER_51: number;
|
||||||
|
static readonly SERVER_52: number;
|
||||||
|
static readonly SERVER_53: number;
|
||||||
|
static readonly SERVER_54: number;
|
||||||
|
static readonly SERVER_55: number;
|
||||||
|
static readonly SERVER_56: number;
|
||||||
|
static readonly SERVER_57: number;
|
||||||
|
static readonly SERVER_58: number;
|
||||||
|
static readonly SERVER_59: number;
|
||||||
|
static readonly SERVER_60: number;
|
||||||
|
static readonly SERVER_61: number;
|
||||||
|
static readonly SERVER_62: number;
|
||||||
|
static readonly SERVER_63: number;
|
||||||
|
static readonly SERVER_64: number;
|
||||||
|
static readonly SERVER_65: number;
|
||||||
|
static readonly SERVER_66: number;
|
||||||
|
static readonly SERVER_67: number;
|
||||||
|
static readonly SERVER_68: number;
|
||||||
|
static readonly SERVER_69: number;
|
||||||
|
static readonly SERVER_70: number;
|
||||||
|
static readonly SERVER_71: number;
|
||||||
|
static readonly SERVER_72: number;
|
||||||
|
static readonly SERVER_73: number;
|
||||||
|
static readonly SERVER_74: number;
|
||||||
|
static readonly SERVER_75: number;
|
||||||
|
static readonly SERVER_76: number;
|
||||||
|
static readonly SERVER_77: number;
|
||||||
|
static readonly SERVER_78: number;
|
||||||
|
static readonly SERVER_79: number;
|
||||||
|
static readonly SERVER_80: number;
|
||||||
|
static readonly SERVER_81: number;
|
||||||
|
static readonly SERVER_82: number;
|
||||||
|
static readonly SERVER_83: number;
|
||||||
|
static readonly SERVER_84: number;
|
||||||
|
static readonly SERVER_85: number;
|
||||||
|
static readonly SERVER_86: number;
|
||||||
|
static readonly SERVER_87: number;
|
||||||
|
static readonly SERVER_88: number;
|
||||||
|
static readonly SERVER_89: number;
|
||||||
|
static readonly SERVER_90: number;
|
||||||
|
static readonly SERVER_91: number;
|
||||||
|
static readonly SERVER_92: number;
|
||||||
|
static readonly SERVER_93: number;
|
||||||
|
static readonly SERVER_94: number;
|
||||||
|
static readonly SERVER_95: number;
|
||||||
|
static readonly SERVER_96: number;
|
||||||
|
static readonly SERVER_97: number;
|
||||||
|
static readonly SERVER_98: number;
|
||||||
|
static readonly SERVER_99: number;
|
||||||
|
|
||||||
getCode(): number;
|
getCode(): number;
|
||||||
setCode(value: number): void;
|
setCode(value: number): void;
|
||||||
|
|
||||||
hasMessage(): boolean;
|
|
||||||
clearMessage(): void;
|
|
||||||
getMessage(): string;
|
getMessage(): string;
|
||||||
setMessage(value: string): void;
|
setMessage(value: string): void;
|
||||||
|
|
||||||
|
@ -44,3 +147,66 @@ export namespace Error {
|
||||||
data: Uint8Array | string;
|
data: Uint8Array | string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class InvalidParamsDetail extends jspb.Message {
|
||||||
|
getLocation(): string;
|
||||||
|
setLocation(value: string): void;
|
||||||
|
|
||||||
|
getParam(): string;
|
||||||
|
setParam(value: string): void;
|
||||||
|
|
||||||
|
getValue(): string;
|
||||||
|
setValue(value: string): void;
|
||||||
|
|
||||||
|
getErrorType(): InvalidParamsTypeMap[keyof InvalidParamsTypeMap];
|
||||||
|
setErrorType(value: InvalidParamsTypeMap[keyof InvalidParamsTypeMap]): void;
|
||||||
|
|
||||||
|
getMessage(): string;
|
||||||
|
setMessage(value: string): void;
|
||||||
|
|
||||||
|
serializeBinary(): Uint8Array;
|
||||||
|
toObject(includeInstance?: boolean): InvalidParamsDetail.AsObject;
|
||||||
|
static toObject(
|
||||||
|
includeInstance: boolean,
|
||||||
|
msg: InvalidParamsDetail
|
||||||
|
): InvalidParamsDetail.AsObject;
|
||||||
|
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||||
|
static extensionsBinary: {
|
||||||
|
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||||
|
};
|
||||||
|
static serializeBinaryToWriter(
|
||||||
|
message: InvalidParamsDetail,
|
||||||
|
writer: jspb.BinaryWriter
|
||||||
|
): void;
|
||||||
|
static deserializeBinary(bytes: Uint8Array): InvalidParamsDetail;
|
||||||
|
static deserializeBinaryFromReader(
|
||||||
|
message: InvalidParamsDetail,
|
||||||
|
reader: jspb.BinaryReader
|
||||||
|
): InvalidParamsDetail;
|
||||||
|
}
|
||||||
|
|
||||||
|
export namespace InvalidParamsDetail {
|
||||||
|
export type AsObject = {
|
||||||
|
location: string;
|
||||||
|
param: string;
|
||||||
|
value: string;
|
||||||
|
errorType: InvalidParamsTypeMap[keyof InvalidParamsTypeMap];
|
||||||
|
message: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface InvalidParamsTypeMap {
|
||||||
|
NONE: 0;
|
||||||
|
DATE_TIME: 1;
|
||||||
|
DECIMAL: 2;
|
||||||
|
EQUALS_TO: 3;
|
||||||
|
FLOAT: 4;
|
||||||
|
INTEGER: 5;
|
||||||
|
RANGE: 6;
|
||||||
|
REG_EX: 7;
|
||||||
|
REQUIRED: 8;
|
||||||
|
STRING_LENGTH: 9;
|
||||||
|
URL: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const InvalidParamsType: InvalidParamsTypeMap;
|
||||||
|
|
|
@ -18,6 +18,8 @@ var global = function () {
|
||||||
}.call(null);
|
}.call(null);
|
||||||
|
|
||||||
goog.exportSymbol("proto.bet.protobuf.rpc.Error", null, global);
|
goog.exportSymbol("proto.bet.protobuf.rpc.Error", null, global);
|
||||||
|
goog.exportSymbol("proto.bet.protobuf.rpc.InvalidParamsDetail", null, global);
|
||||||
|
goog.exportSymbol("proto.bet.protobuf.rpc.InvalidParamsType", null, global);
|
||||||
/**
|
/**
|
||||||
* Generated by JsPbCodeGenerator.
|
* Generated by JsPbCodeGenerator.
|
||||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
@ -39,6 +41,28 @@ if (goog.DEBUG && !COMPILED) {
|
||||||
*/
|
*/
|
||||||
proto.bet.protobuf.rpc.Error.displayName = "proto.bet.protobuf.rpc.Error";
|
proto.bet.protobuf.rpc.Error.displayName = "proto.bet.protobuf.rpc.Error";
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 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.protobuf.rpc.InvalidParamsDetail = function (opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.bet.protobuf.rpc.InvalidParamsDetail, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.displayName =
|
||||||
|
"proto.bet.protobuf.rpc.InvalidParamsDetail";
|
||||||
|
}
|
||||||
|
|
||||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
/**
|
/**
|
||||||
|
@ -83,6 +107,111 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
proto.bet.protobuf.rpc.Error.PARSE = -32700;
|
||||||
|
proto.bet.protobuf.rpc.Error.INVALID_REQUEST = -32600;
|
||||||
|
proto.bet.protobuf.rpc.Error.INVALID_PARAMS = -32602;
|
||||||
|
proto.bet.protobuf.rpc.Error.INTERNAL = -32603;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_00 = -32000;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_01 = -32001;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_02 = -32002;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_03 = -32003;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_04 = -32004;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_05 = -32005;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_06 = -32006;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_07 = -32007;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_08 = -32008;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_09 = -32009;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_10 = -32010;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_11 = -32011;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_12 = -32012;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_13 = -32013;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_14 = -32014;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_15 = -32015;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_16 = -32016;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_17 = -32017;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_18 = -32018;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_19 = -32019;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_20 = -32020;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_21 = -32021;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_22 = -32022;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_23 = -32023;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_24 = -32024;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_25 = -32025;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_26 = -32026;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_27 = -32027;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_28 = -32028;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_29 = -32029;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_30 = -32030;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_31 = -32031;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_32 = -32032;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_33 = -32033;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_34 = -32034;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_35 = -32035;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_36 = -32036;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_37 = -32037;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_38 = -32038;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_39 = -32039;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_40 = -32040;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_41 = -32041;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_42 = -32042;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_43 = -32043;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_44 = -32044;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_45 = -32045;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_46 = -32046;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_47 = -32047;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_48 = -32048;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_49 = -32049;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_50 = -32050;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_51 = -32051;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_52 = -32052;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_53 = -32053;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_54 = -32054;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_55 = -32055;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_56 = -32056;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_57 = -32057;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_58 = -32058;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_59 = -32059;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_60 = -32060;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_61 = -32061;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_62 = -32062;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_63 = -32063;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_64 = -32064;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_65 = -32065;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_66 = -32066;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_67 = -32067;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_68 = -32068;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_69 = -32069;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_70 = -32070;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_71 = -32071;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_72 = -32072;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_73 = -32073;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_74 = -32074;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_75 = -32075;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_76 = -32076;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_77 = -32077;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_78 = -32078;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_79 = -32079;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_80 = -32080;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_81 = -32081;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_82 = -32082;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_83 = -32083;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_84 = -32084;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_85 = -32085;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_86 = -32086;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_87 = -32087;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_88 = -32088;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_89 = -32089;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_90 = -32090;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_91 = -32091;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_92 = -32092;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_93 = -32093;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_94 = -32094;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_95 = -32095;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_96 = -32096;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_97 = -32097;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_98 = -32098;
|
||||||
|
proto.bet.protobuf.rpc.Error.SERVER_99 = -32099;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deserializes binary data (in protobuf wire format).
|
* Deserializes binary data (in protobuf wire format).
|
||||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
@ -157,8 +286,8 @@ proto.bet.protobuf.rpc.Error.serializeBinaryToWriter = function (
|
||||||
if (f !== 0) {
|
if (f !== 0) {
|
||||||
writer.writeInt32(1, f);
|
writer.writeInt32(1, f);
|
||||||
}
|
}
|
||||||
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
f = message.getMessage();
|
||||||
if (f != null) {
|
if (f.length > 0) {
|
||||||
writer.writeString(2, f);
|
writer.writeString(2, f);
|
||||||
}
|
}
|
||||||
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
|
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3));
|
||||||
|
@ -196,23 +325,7 @@ proto.bet.protobuf.rpc.Error.prototype.getMessage = function () {
|
||||||
* @return {!proto.bet.protobuf.rpc.Error} returns this
|
* @return {!proto.bet.protobuf.rpc.Error} returns this
|
||||||
*/
|
*/
|
||||||
proto.bet.protobuf.rpc.Error.prototype.setMessage = function (value) {
|
proto.bet.protobuf.rpc.Error.prototype.setMessage = function (value) {
|
||||||
return jspb.Message.setField(this, 2, value);
|
return jspb.Message.setProto3StringField(this, 2, value);
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Clears the field making it undefined.
|
|
||||||
* @return {!proto.bet.protobuf.rpc.Error} returns this
|
|
||||||
*/
|
|
||||||
proto.bet.protobuf.rpc.Error.prototype.clearMessage = function () {
|
|
||||||
return jspb.Message.setField(this, 2, undefined);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether this field is set.
|
|
||||||
* @return {boolean}
|
|
||||||
*/
|
|
||||||
proto.bet.protobuf.rpc.Error.prototype.hasMessage = function () {
|
|
||||||
return jspb.Message.getField(this, 2) != null;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -269,4 +382,274 @@ proto.bet.protobuf.rpc.Error.prototype.hasData = function () {
|
||||||
return jspb.Message.getField(this, 3) != null;
|
return jspb.Message.getField(this, 3) != null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, 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.protobuf.rpc.InvalidParamsDetail.prototype.toObject = function (
|
||||||
|
opt_includeInstance
|
||||||
|
) {
|
||||||
|
return proto.bet.protobuf.rpc.InvalidParamsDetail.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.protobuf.rpc.InvalidParamsDetail} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.toObject = function (
|
||||||
|
includeInstance,
|
||||||
|
msg
|
||||||
|
) {
|
||||||
|
var f,
|
||||||
|
obj = {
|
||||||
|
location: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||||
|
param: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
|
value: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||||
|
errorType: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||||
|
message: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.bet.protobuf.rpc.InvalidParamsDetail}
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.deserializeBinary = function (
|
||||||
|
bytes
|
||||||
|
) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.bet.protobuf.rpc.InvalidParamsDetail();
|
||||||
|
return proto.bet.protobuf.rpc.InvalidParamsDetail.deserializeBinaryFromReader(
|
||||||
|
msg,
|
||||||
|
reader
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.bet.protobuf.rpc.InvalidParamsDetail} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.bet.protobuf.rpc.InvalidParamsDetail}
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.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.setLocation(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setParam(value);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setValue(value);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = /** @type {!proto.bet.protobuf.rpc.InvalidParamsType} */ (
|
||||||
|
reader.readEnum()
|
||||||
|
);
|
||||||
|
msg.setErrorType(value);
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setMessage(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.serializeBinary =
|
||||||
|
function () {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.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.protobuf.rpc.InvalidParamsDetail} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.serializeBinaryToWriter = function (
|
||||||
|
message,
|
||||||
|
writer
|
||||||
|
) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getLocation();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(1, f);
|
||||||
|
}
|
||||||
|
f = message.getParam();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(2, f);
|
||||||
|
}
|
||||||
|
f = message.getValue();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(3, f);
|
||||||
|
}
|
||||||
|
f = message.getErrorType();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(4, f);
|
||||||
|
}
|
||||||
|
f = message.getMessage();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(5, f);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string location = 1;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.getLocation = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.setLocation = function (
|
||||||
|
value
|
||||||
|
) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string param = 2;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.getParam = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.setParam = function (
|
||||||
|
value
|
||||||
|
) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string value = 3;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.getValue = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.setValue = function (
|
||||||
|
value
|
||||||
|
) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional InvalidParamsType error_type = 4;
|
||||||
|
* @return {!proto.bet.protobuf.rpc.InvalidParamsType}
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.getErrorType =
|
||||||
|
function () {
|
||||||
|
return /** @type {!proto.bet.protobuf.rpc.InvalidParamsType} */ (
|
||||||
|
jspb.Message.getFieldWithDefault(this, 4, 0)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.bet.protobuf.rpc.InvalidParamsType} value
|
||||||
|
* @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.setErrorType = function (
|
||||||
|
value
|
||||||
|
) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string message = 5;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.getMessage = function () {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.bet.protobuf.rpc.InvalidParamsDetail} returns this
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsDetail.prototype.setMessage = function (
|
||||||
|
value
|
||||||
|
) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 5, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @enum {number}
|
||||||
|
*/
|
||||||
|
proto.bet.protobuf.rpc.InvalidParamsType = {
|
||||||
|
NONE: 0,
|
||||||
|
DATE_TIME: 1,
|
||||||
|
DECIMAL: 2,
|
||||||
|
EQUALS_TO: 3,
|
||||||
|
FLOAT: 4,
|
||||||
|
INTEGER: 5,
|
||||||
|
RANGE: 6,
|
||||||
|
REG_EX: 7,
|
||||||
|
REQUIRED: 8,
|
||||||
|
STRING_LENGTH: 9,
|
||||||
|
URL: 10,
|
||||||
|
};
|
||||||
|
|
||||||
goog.object.extend(exports, proto.bet.protobuf.rpc);
|
goog.object.extend(exports, proto.bet.protobuf.rpc);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user