Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nice-grpc-error-details

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nice-grpc-error-details - npm Package Compare versions

Comparing version 0.1.9 to 0.2.0

4

lib/ErrorDetails.d.ts

@@ -1,3 +0,3 @@

import { BadRequest, DebugInfo, ErrorInfo, Help, LocalizedMessage, PreconditionFailure, QuotaFailure, RequestInfo, ResourceInfo, RetryInfo } from './proto/google/rpc/error_details';
import { BadRequest, BadRequest_FieldViolation, DebugInfo, ErrorInfo, Help, LocalizedMessage, PreconditionFailure, PreconditionFailure_Violation, QuotaFailure, QuotaFailure_Violation, RequestInfo, ResourceInfo, RetryInfo } from './proto/google/rpc/error_details';
import { Any } from './proto/google/protobuf/any';
export type ErrorDetails = RetryInfo | DebugInfo | QuotaFailure | ErrorInfo | PreconditionFailure | BadRequest | RequestInfo | ResourceInfo | Help | LocalizedMessage | Any;
export type ErrorDetails = RetryInfo | DebugInfo | QuotaFailure | QuotaFailure_Violation | ErrorInfo | PreconditionFailure | PreconditionFailure_Violation | BadRequest | BadRequest_FieldViolation | RequestInfo | ResourceInfo | Help | LocalizedMessage | Any;

@@ -10,5 +10,8 @@ "use strict";

error_details_1.QuotaFailure,
error_details_1.QuotaFailure_Violation,
error_details_1.ErrorInfo,
error_details_1.PreconditionFailure,
error_details_1.PreconditionFailure_Violation,
error_details_1.BadRequest,
error_details_1.BadRequest_FieldViolation,
error_details_1.RequestInfo,

@@ -15,0 +18,0 @@ error_details_1.ResourceInfo,

@@ -23,3 +23,3 @@ "use strict";

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -31,11 +31,18 @@ const message = createBaseAny();

case 1:
if (tag != 10) {
break;
}
message.typeUrl = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.value = reader.bytes();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -42,0 +49,0 @@ return message;

@@ -24,3 +24,3 @@ "use strict";

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -32,11 +32,18 @@ const message = createBaseDuration();

case 1:
if (tag != 8) {
break;
}
message.seconds = longToNumber(reader.int64());
break;
continue;
case 2:
if (tag != 16) {
break;
}
message.nanos = reader.int32();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -43,0 +50,0 @@ return message;

@@ -21,3 +21,3 @@ "use strict";

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -29,8 +29,12 @@ const message = createBaseRetryInfo();

case 1:
if (tag != 10) {
break;
}
message.retryDelay = duration_1.Duration.decode(reader, reader.uint32());
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -66,3 +70,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -74,11 +78,18 @@ const message = createBaseDebugInfo();

case 1:
if (tag != 10) {
break;
}
message.stackEntries.push(reader.string());
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.detail = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -111,3 +122,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -119,8 +130,12 @@ const message = createBaseQuotaFailure();

case 1:
if (tag != 10) {
break;
}
message.violations.push(exports.QuotaFailure_Violation.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -155,3 +170,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -163,11 +178,18 @@ const message = createBaseQuotaFailure_Violation();

case 1:
if (tag != 10) {
break;
}
message.subject = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.description = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -206,3 +228,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -214,8 +236,17 @@ const message = createBaseErrorInfo();

case 1:
if (tag != 10) {
break;
}
message.reason = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.domain = reader.string();
break;
continue;
case 3:
if (tag != 26) {
break;
}
const entry3 = exports.ErrorInfo_MetadataEntry.decode(reader, reader.uint32());

@@ -225,7 +256,8 @@ if (entry3.value !== undefined) {

}
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -267,3 +299,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -275,11 +307,18 @@ const message = createBaseErrorInfo_MetadataEntry();

case 1:
if (tag != 10) {
break;
}
message.key = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.value = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -312,3 +351,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -320,8 +359,12 @@ const message = createBasePreconditionFailure();

case 1:
if (tag != 10) {
break;
}
message.violations.push(exports.PreconditionFailure_Violation.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -359,3 +402,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -367,14 +410,24 @@ const message = createBasePreconditionFailure_Violation();

case 1:
if (tag != 10) {
break;
}
message.type = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.subject = reader.string();
break;
continue;
case 3:
if (tag != 26) {
break;
}
message.description = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -408,3 +461,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -416,8 +469,12 @@ const message = createBaseBadRequest();

case 1:
if (tag != 10) {
break;
}
message.fieldViolations.push(exports.BadRequest_FieldViolation.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -452,3 +509,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -460,11 +517,18 @@ const message = createBaseBadRequest_FieldViolation();

case 1:
if (tag != 10) {
break;
}
message.field = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.description = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -500,3 +564,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -508,11 +572,18 @@ const message = createBaseRequestInfo();

case 1:
if (tag != 10) {
break;
}
message.requestId = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.servingData = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -554,3 +625,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -562,17 +633,30 @@ const message = createBaseResourceInfo();

case 1:
if (tag != 10) {
break;
}
message.resourceType = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.resourceName = reader.string();
break;
continue;
case 3:
if (tag != 26) {
break;
}
message.owner = reader.string();
break;
continue;
case 4:
if (tag != 34) {
break;
}
message.description = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -607,3 +691,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -615,8 +699,12 @@ const message = createBaseHelp();

case 1:
if (tag != 10) {
break;
}
message.links.push(exports.Help_Link.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -651,3 +739,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -659,11 +747,18 @@ const message = createBaseHelp_Link();

case 1:
if (tag != 10) {
break;
}
message.description = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.url = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -699,3 +794,3 @@ return message;

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -707,11 +802,18 @@ const message = createBaseLocalizedMessage();

case 1:
if (tag != 10) {
break;
}
message.locale = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.message = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -718,0 +820,0 @@ return message;

@@ -27,3 +27,3 @@ "use strict";

decode(input, length) {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -35,14 +35,24 @@ const message = createBaseStatus();

case 1:
if (tag != 8) {
break;
}
message.code = reader.int32();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.message = reader.string();
break;
continue;
case 3:
if (tag != 26) {
break;
}
message.details.push(any_1.Any.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -49,0 +59,0 @@ return message;

{
"name": "nice-grpc-error-details",
"version": "0.1.9",
"version": "0.2.0",
"description": "gRPC rich error model implementation for nice-grpc",

@@ -35,3 +35,3 @@ "repository": "deeplay-io/nice-grpc",

},
"gitHead": "a2987f236be78513ea607faf691c9471d640bd0e"
"gitHead": "44aa57051cbb9e8886fb5eb2bbdf626483ffe03e"
}
import {
BadRequest,
BadRequest_FieldViolation,
DebugInfo,

@@ -8,3 +9,5 @@ ErrorInfo,

PreconditionFailure,
PreconditionFailure_Violation,
QuotaFailure,
QuotaFailure_Violation,
RequestInfo,

@@ -21,5 +24,8 @@ ResourceInfo,

| QuotaFailure
| QuotaFailure_Violation
| ErrorInfo
| PreconditionFailure
| PreconditionFailure_Violation
| BadRequest
| BadRequest_FieldViolation
| RequestInfo

@@ -35,5 +41,8 @@ | ResourceInfo

QuotaFailure,
QuotaFailure_Violation,
ErrorInfo,
PreconditionFailure,
PreconditionFailure_Violation,
BadRequest,
BadRequest_FieldViolation,
RequestInfo,

@@ -40,0 +49,0 @@ ResourceInfo,

@@ -144,3 +144,3 @@ /* eslint-disable */

decode(input: _m0.Reader | Uint8Array, length?: number): Any {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -152,11 +152,20 @@ const message = createBaseAny();

case 1:
if (tag != 10) {
break;
}
message.typeUrl = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.value = reader.bytes();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -163,0 +172,0 @@ return message;

@@ -105,3 +105,3 @@ /* eslint-disable */

decode(input: _m0.Reader | Uint8Array, length?: number): Duration {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -113,11 +113,20 @@ const message = createBaseDuration();

case 1:
if (tag != 8) {
break;
}
message.seconds = longToNumber(reader.int64() as Long);
break;
continue;
case 2:
if (tag != 16) {
break;
}
message.nanos = reader.int32();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -124,0 +133,0 @@ return message;

@@ -304,3 +304,3 @@ /* eslint-disable */

decode(input: _m0.Reader | Uint8Array, length?: number): RetryInfo {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -312,8 +312,13 @@ const message = createBaseRetryInfo();

case 1:
if (tag != 10) {
break;
}
message.retryDelay = Duration.decode(reader, reader.uint32());
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -356,3 +361,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): DebugInfo {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -364,11 +369,20 @@ const message = createBaseDebugInfo();

case 1:
if (tag != 10) {
break;
}
message.stackEntries.push(reader.string());
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.detail = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -407,3 +421,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): QuotaFailure {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -415,8 +429,13 @@ const message = createBaseQuotaFailure();

case 1:
if (tag != 10) {
break;
}
message.violations.push(QuotaFailure_Violation.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -457,3 +476,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): QuotaFailure_Violation {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -465,11 +484,20 @@ const message = createBaseQuotaFailure_Violation();

case 1:
if (tag != 10) {
break;
}
message.subject = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.description = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -517,3 +545,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): ErrorInfo {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -525,8 +553,20 @@ const message = createBaseErrorInfo();

case 1:
if (tag != 10) {
break;
}
message.reason = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.domain = reader.string();
break;
continue;
case 3:
if (tag != 26) {
break;
}
const entry3 = ErrorInfo_MetadataEntry.decode(reader, reader.uint32());

@@ -536,7 +576,8 @@ if (entry3.value !== undefined) {

}
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -584,3 +625,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): ErrorInfo_MetadataEntry {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -592,11 +633,20 @@ const message = createBaseErrorInfo_MetadataEntry();

case 1:
if (tag != 10) {
break;
}
message.key = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.value = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -635,3 +685,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): PreconditionFailure {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -643,8 +693,13 @@ const message = createBasePreconditionFailure();

case 1:
if (tag != 10) {
break;
}
message.violations.push(PreconditionFailure_Violation.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -688,3 +743,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): PreconditionFailure_Violation {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -696,14 +751,27 @@ const message = createBasePreconditionFailure_Violation();

case 1:
if (tag != 10) {
break;
}
message.type = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.subject = reader.string();
break;
continue;
case 3:
if (tag != 26) {
break;
}
message.description = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -743,3 +811,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): BadRequest {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -751,8 +819,13 @@ const message = createBaseBadRequest();

case 1:
if (tag != 10) {
break;
}
message.fieldViolations.push(BadRequest_FieldViolation.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -793,3 +866,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): BadRequest_FieldViolation {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -801,11 +874,20 @@ const message = createBaseBadRequest_FieldViolation();

case 1:
if (tag != 10) {
break;
}
message.field = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.description = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -847,3 +929,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): RequestInfo {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -855,11 +937,20 @@ const message = createBaseRequestInfo();

case 1:
if (tag != 10) {
break;
}
message.requestId = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.servingData = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -907,3 +998,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): ResourceInfo {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -915,17 +1006,34 @@ const message = createBaseResourceInfo();

case 1:
if (tag != 10) {
break;
}
message.resourceType = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.resourceName = reader.string();
break;
continue;
case 3:
if (tag != 26) {
break;
}
message.owner = reader.string();
break;
continue;
case 4:
if (tag != 34) {
break;
}
message.description = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -966,3 +1074,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): Help {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -974,8 +1082,13 @@ const message = createBaseHelp();

case 1:
if (tag != 10) {
break;
}
message.links.push(Help_Link.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -1016,3 +1129,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): Help_Link {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -1024,11 +1137,20 @@ const message = createBaseHelp_Link();

case 1:
if (tag != 10) {
break;
}
message.description = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.url = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -1070,3 +1192,3 @@ return message;

decode(input: _m0.Reader | Uint8Array, length?: number): LocalizedMessage {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -1078,11 +1200,20 @@ const message = createBaseLocalizedMessage();

case 1:
if (tag != 10) {
break;
}
message.locale = reader.string();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.message = reader.string();
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -1089,0 +1220,0 @@ return message;

@@ -55,3 +55,3 @@ /* eslint-disable */

decode(input: _m0.Reader | Uint8Array, length?: number): Status {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;

@@ -63,14 +63,27 @@ const message = createBaseStatus();

case 1:
if (tag != 8) {
break;
}
message.code = reader.int32();
break;
continue;
case 2:
if (tag != 18) {
break;
}
message.message = reader.string();
break;
continue;
case 3:
if (tag != 26) {
break;
}
message.details.push(Any.decode(reader, reader.uint32()));
break;
default:
reader.skipType(tag & 7);
break;
continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
}
reader.skipType(tag & 7);
}

@@ -77,0 +90,0 @@ return message;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc