From 25112b949dcd1e9a167514c2975f01eb6af9ce53 Mon Sep 17 00:00:00 2001 From: Hoseong Lee <154545063+hleekeeper@users.noreply.github.com> Date: Fri, 17 Apr 2026 14:33:14 -0500 Subject: [PATCH 01/10] BE-6955 Added new REST API callers keeperDriveRecordsAdd and keeperDriveRecordsUpdate (#123) * Updated the protobuf generation commands * Updated protobuf files * Added keeperDriveRecordsAdd and keeperDriveRecordsUpdate * Updated the protobufs * Ran format:check * fixed the wrong namespace used for the keeperDriveRecordsAdd caller --- keeperapi/package.json | 4 +- keeperapi/src/proto.d.ts | 1743 +- keeperapi/src/proto.js | 51256 ++++++++------------------------ keeperapi/src/restMessages.ts | 11 + 4 files changed, 13408 insertions(+), 39606 deletions(-) diff --git a/keeperapi/package.json b/keeperapi/package.json index 80202e0..5e6ca2c 100644 --- a/keeperapi/package.json +++ b/keeperapi/package.json @@ -10,8 +10,8 @@ "scripts": { "start": "rollup -cw", "build": "node ./scripts/cleanDistFolder.js && rollup -c && cp src/proto.d.ts dist", - "update-proto:es6": "pbjs -t static-module -w es6 -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto ../../keeperapp-protobuf/router.proto && pbts -o src/proto.d.ts src/proto.js", - "update-proto:cjs": "pbjs -t json-module -w commonjs -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/router.proto && pbjs -t static-module -w commonjs ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto ../../keeperapp-protobuf/router.proto | pbts -o src/proto.d.ts -", + "update-proto:es6": "pbjs -t static-module -w es6 -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto ../../keeperapp-protobuf/router.proto ../../keeperapp-protobuf/record_endpoints.proto && pbts -o src/proto.d.ts src/proto.js", + "update-proto:cjs": "pbjs -t json-module -w commonjs -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto ../../keeperapp-protobuf/router.proto ../../keeperapp-protobuf/record_endpoints.proto && pbjs -t static-module -w commonjs ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto ../../keeperapp-protobuf/router.proto ../../keeperapp-protobuf/record_endpoints.proto | pbts -o src/proto.d.ts -", "format": "prettier --write .", "format:check": "prettier --check .", "test": "jest", diff --git a/keeperapi/src/proto.d.ts b/keeperapi/src/proto.d.ts index 5d1d7b0..4274271 100644 --- a/keeperapi/src/proto.d.ts +++ b/keeperapi/src/proto.d.ts @@ -18130,6 +18130,9 @@ export namespace Authentication { /** PasskeyRegistrationFinalization friendlyName. */ public friendlyName?: (string|null); + /** PasskeyRegistrationFinalization _friendlyName. */ + public _friendlyName?: "friendlyName"; + /** * Creates a new PasskeyRegistrationFinalization instance using the specified properties. * @param [properties] Properties to set @@ -18263,6 +18266,12 @@ export namespace Authentication { /** PasskeyAuthenticationRequest encryptedLoginToken. */ public encryptedLoginToken?: (Uint8Array|null); + /** PasskeyAuthenticationRequest _username. */ + public _username?: "username"; + + /** PasskeyAuthenticationRequest _encryptedLoginToken. */ + public _encryptedLoginToken?: "encryptedLoginToken"; + /** * Creates a new PasskeyAuthenticationRequest instance using the specified properties. * @param [properties] Properties to set @@ -18372,6 +18381,9 @@ export namespace Authentication { /** PasskeyAuthenticationResponse encryptedLoginToken. */ public encryptedLoginToken?: (Uint8Array|null); + /** PasskeyAuthenticationResponse _encryptedLoginToken. */ + public _encryptedLoginToken?: "encryptedLoginToken"; + /** * Creates a new PasskeyAuthenticationResponse instance using the specified properties. * @param [properties] Properties to set @@ -18487,6 +18499,9 @@ export namespace Authentication { /** PasskeyValidationRequest encryptedLoginToken. */ public encryptedLoginToken?: (Uint8Array|null); + /** PasskeyValidationRequest _encryptedLoginToken. */ + public _encryptedLoginToken?: "encryptedLoginToken"; + /** * Creates a new PasskeyValidationRequest instance using the specified properties. * @param [properties] Properties to set @@ -18699,6 +18714,9 @@ export namespace Authentication { /** UpdatePasskeyRequest friendlyName. */ public friendlyName?: (string|null); + /** UpdatePasskeyRequest _friendlyName. */ + public _friendlyName?: "friendlyName"; + /** * Creates a new UpdatePasskeyRequest instance using the specified properties. * @param [properties] Properties to set @@ -83851,6 +83869,9 @@ export namespace NotificationCenter { /** NotificationSendRequest predefinedUid. */ public predefinedUid?: (Uint8Array|null); + /** NotificationSendRequest _predefinedUid. */ + public _predefinedUid?: "predefinedUid"; + /** * Creates a new NotificationSendRequest instance using the specified properties. * @param [properties] Properties to set @@ -86910,6 +86931,284 @@ export namespace record { public static getTypeUrl(typeUrlPrefix?: string): string; } } + + /** Properties of a RecordsAddRequest. */ + interface IRecordsAddRequest { + + /** RecordsAddRequest records */ + records?: (record.v3.IRecordAdd[]|null); + + /** RecordsAddRequest clientTime */ + clientTime?: (number|Long|null); + + /** RecordsAddRequest securityDataKeyType */ + securityDataKeyType?: (Records.RecordKeyType|null); + } + + /** Represents a RecordsAddRequest. */ + class RecordsAddRequest implements IRecordsAddRequest { + + /** + * Constructs a new RecordsAddRequest. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.IRecordsAddRequest); + + /** RecordsAddRequest records. */ + public records: record.v3.IRecordAdd[]; + + /** RecordsAddRequest clientTime. */ + public clientTime: (number|Long); + + /** RecordsAddRequest securityDataKeyType. */ + public securityDataKeyType: Records.RecordKeyType; + + /** + * Creates a new RecordsAddRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordsAddRequest instance + */ + public static create(properties?: record.v3.IRecordsAddRequest): record.v3.RecordsAddRequest; + + /** + * Encodes the specified RecordsAddRequest message. Does not implicitly {@link record.v3.RecordsAddRequest.verify|verify} messages. + * @param message RecordsAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.IRecordsAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecordsAddRequest message, length delimited. Does not implicitly {@link record.v3.RecordsAddRequest.verify|verify} messages. + * @param message RecordsAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: record.v3.IRecordsAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecordsAddRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordsAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): record.v3.RecordsAddRequest; + + /** + * Decodes a RecordsAddRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecordsAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): record.v3.RecordsAddRequest; + + /** + * Verifies a RecordsAddRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RecordsAddRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordsAddRequest + */ + public static fromObject(object: { [k: string]: any }): record.v3.RecordsAddRequest; + + /** + * Creates a plain object from a RecordsAddRequest message. Also converts values to other types if specified. + * @param message RecordsAddRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.RecordsAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordsAddRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordsAddRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RecordAdd. */ + interface IRecordAdd { + + /** RecordAdd recordUid */ + recordUid?: (Uint8Array|null); + + /** RecordAdd recordKey */ + recordKey?: (Uint8Array|null); + + /** RecordAdd recordKeyType */ + recordKeyType?: (Folder.EncryptedKeyType|null); + + /** + * Record creates in root folder is encrypted by user key. + * Record creates in non-root folder is encrypted by folder key. + */ + recordKeyEncryptedBy?: (Folder.FolderKeyEncryptionType|null); + + /** RecordAdd clientModifiedTime */ + clientModifiedTime?: (number|Long|null); + + /** RecordAdd data */ + data?: (Uint8Array|null); + + /** RecordAdd nonSharedData */ + nonSharedData?: (Uint8Array|null); + + /** RecordAdd folderUid */ + folderUid?: (Uint8Array|null); + + /** RecordAdd recordLinks */ + recordLinks?: (Records.IRecordLink[]|null); + + /** RecordAdd audit */ + audit?: (Records.IRecordAudit|null); + + /** RecordAdd securityData */ + securityData?: (Records.ISecurityData|null); + + /** RecordAdd securityScoreData */ + securityScoreData?: (Records.ISecurityScoreData|null); + } + + /** Represents a RecordAdd. */ + class RecordAdd implements IRecordAdd { + + /** + * Constructs a new RecordAdd. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.IRecordAdd); + + /** RecordAdd recordUid. */ + public recordUid: Uint8Array; + + /** RecordAdd recordKey. */ + public recordKey: Uint8Array; + + /** RecordAdd recordKeyType. */ + public recordKeyType: Folder.EncryptedKeyType; + + /** + * Record creates in root folder is encrypted by user key. + * Record creates in non-root folder is encrypted by folder key. + */ + public recordKeyEncryptedBy: Folder.FolderKeyEncryptionType; + + /** RecordAdd clientModifiedTime. */ + public clientModifiedTime: (number|Long); + + /** RecordAdd data. */ + public data: Uint8Array; + + /** RecordAdd nonSharedData. */ + public nonSharedData: Uint8Array; + + /** RecordAdd folderUid. */ + public folderUid: Uint8Array; + + /** RecordAdd recordLinks. */ + public recordLinks: Records.IRecordLink[]; + + /** RecordAdd audit. */ + public audit?: (Records.IRecordAudit|null); + + /** RecordAdd securityData. */ + public securityData?: (Records.ISecurityData|null); + + /** RecordAdd securityScoreData. */ + public securityScoreData?: (Records.ISecurityScoreData|null); + + /** + * Creates a new RecordAdd instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordAdd instance + */ + public static create(properties?: record.v3.IRecordAdd): record.v3.RecordAdd; + + /** + * Encodes the specified RecordAdd message. Does not implicitly {@link record.v3.RecordAdd.verify|verify} messages. + * @param message RecordAdd message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecordAdd message, length delimited. Does not implicitly {@link record.v3.RecordAdd.verify|verify} messages. + * @param message RecordAdd message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: record.v3.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecordAdd message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordAdd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): record.v3.RecordAdd; + + /** + * Decodes a RecordAdd message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecordAdd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): record.v3.RecordAdd; + + /** + * Verifies a RecordAdd message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RecordAdd message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordAdd + */ + public static fromObject(object: { [k: string]: any }): record.v3.RecordAdd; + + /** + * Creates a plain object from a RecordAdd message. Also converts values to other types if specified. + * @param message RecordAdd + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.RecordAdd, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordAdd to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordAdd + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } } @@ -94407,6 +94706,12 @@ export namespace BI { /** PurchaseOptions externalCheckout. */ public externalCheckout?: (boolean|null); + /** PurchaseOptions _inConsole. */ + public _inConsole?: "inConsole"; + + /** PurchaseOptions _externalCheckout. */ + public _externalCheckout?: "externalCheckout"; + /** * Creates a new PurchaseOptions instance using the specified properties. * @param [properties] Properties to set @@ -94576,6 +94881,45 @@ export namespace BI { /** AddonPurchaseOptions nhiTier. */ public nhiTier?: (BI.IPurchaseOptions|null); + /** AddonPurchaseOptions _storage. */ + public _storage?: "storage"; + + /** AddonPurchaseOptions _audit. */ + public _audit?: "audit"; + + /** AddonPurchaseOptions _breachwatch. */ + public _breachwatch?: "breachwatch"; + + /** AddonPurchaseOptions _chat. */ + public _chat?: "chat"; + + /** AddonPurchaseOptions _compliance. */ + public _compliance?: "compliance"; + + /** AddonPurchaseOptions _professionalServicesSilver. */ + public _professionalServicesSilver?: "professionalServicesSilver"; + + /** AddonPurchaseOptions _professionalServicesPlatinum. */ + public _professionalServicesPlatinum?: "professionalServicesPlatinum"; + + /** AddonPurchaseOptions _pam. */ + public _pam?: "pam"; + + /** AddonPurchaseOptions _epm. */ + public _epm?: "epm"; + + /** AddonPurchaseOptions _secretsManager. */ + public _secretsManager?: "secretsManager"; + + /** AddonPurchaseOptions _connectionManager. */ + public _connectionManager?: "connectionManager"; + + /** AddonPurchaseOptions _remoteBrowserIsolation. */ + public _remoteBrowserIsolation?: "remoteBrowserIsolation"; + + /** AddonPurchaseOptions _nhiTier. */ + public _nhiTier?: "nhiTier"; + /** * Creates a new AddonPurchaseOptions instance using the specified properties. * @param [properties] Properties to set @@ -97271,22 +97615,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Edition enum. */ - enum Edition { - EDITION_UNKNOWN = 0, - EDITION_LEGACY = 900, - EDITION_PROTO2 = 998, - EDITION_PROTO3 = 999, - EDITION_2023 = 1000, - EDITION_2024 = 1001, - EDITION_1_TEST_ONLY = 1, - EDITION_2_TEST_ONLY = 2, - EDITION_99997_TEST_ONLY = 99997, - EDITION_99998_TEST_ONLY = 99998, - EDITION_99999_TEST_ONLY = 99999, - EDITION_MAX = 2147483647 - } - /** Properties of a FileDescriptorProto. */ interface IFileDescriptorProto { @@ -97305,9 +97633,6 @@ export namespace google { /** FileDescriptorProto weakDependency */ weakDependency?: (number[]|null); - /** FileDescriptorProto optionDependency */ - optionDependency?: (string[]|null); - /** FileDescriptorProto messageType */ messageType?: (google.protobuf.IDescriptorProto[]|null); @@ -97328,9 +97653,6 @@ export namespace google { /** FileDescriptorProto syntax */ syntax?: (string|null); - - /** FileDescriptorProto edition */ - edition?: (google.protobuf.Edition|null); } /** Represents a FileDescriptorProto. */ @@ -97357,9 +97679,6 @@ export namespace google { /** FileDescriptorProto weakDependency. */ public weakDependency: number[]; - /** FileDescriptorProto optionDependency. */ - public optionDependency: string[]; - /** FileDescriptorProto messageType. */ public messageType: google.protobuf.IDescriptorProto[]; @@ -97381,9 +97700,6 @@ export namespace google { /** FileDescriptorProto syntax. */ public syntax: string; - /** FileDescriptorProto edition. */ - public edition: google.protobuf.Edition; - /** * Creates a new FileDescriptorProto instance using the specified properties. * @param [properties] Properties to set @@ -97494,9 +97810,6 @@ export namespace google { /** DescriptorProto reservedName */ reservedName?: (string[]|null); - - /** DescriptorProto visibility */ - visibility?: (google.protobuf.SymbolVisibility|null); } /** Represents a DescriptorProto. */ @@ -97538,9 +97851,6 @@ export namespace google { /** DescriptorProto reservedName. */ public reservedName: string[]; - /** DescriptorProto visibility. */ - public visibility: google.protobuf.SymbolVisibility; - /** * Creates a new DescriptorProto instance using the specified properties. * @param [properties] Properties to set @@ -97629,9 +97939,6 @@ export namespace google { /** ExtensionRange end */ end?: (number|null); - - /** ExtensionRange options */ - options?: (google.protobuf.IExtensionRangeOptions|null); } /** Represents an ExtensionRange. */ @@ -97649,9 +97956,6 @@ export namespace google { /** ExtensionRange end. */ public end: number; - /** ExtensionRange options. */ - public options?: (google.protobuf.IExtensionRangeOptions|null); - /** * Creates a new ExtensionRange instance using the specified properties. * @param [properties] Properties to set @@ -97834,251 +98138,6 @@ export namespace google { } } - /** Properties of an ExtensionRangeOptions. */ - interface IExtensionRangeOptions { - - /** ExtensionRangeOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - - /** ExtensionRangeOptions declaration */ - declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null); - - /** ExtensionRangeOptions features */ - features?: (google.protobuf.IFeatureSet|null); - - /** ExtensionRangeOptions verification */ - verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|null); - } - - /** Represents an ExtensionRangeOptions. */ - class ExtensionRangeOptions implements IExtensionRangeOptions { - - /** - * Constructs a new ExtensionRangeOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IExtensionRangeOptions); - - /** ExtensionRangeOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** ExtensionRangeOptions declaration. */ - public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[]; - - /** ExtensionRangeOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); - - /** ExtensionRangeOptions verification. */ - public verification: google.protobuf.ExtensionRangeOptions.VerificationState; - - /** - * Creates a new ExtensionRangeOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtensionRangeOptions instance - */ - public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; - - /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @param message ExtensionRangeOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @param message ExtensionRangeOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtensionRangeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions; - - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExtensionRangeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions; - - /** - * Verifies an ExtensionRangeOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExtensionRangeOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; - - /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. - * @param message ExtensionRangeOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExtensionRangeOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ExtensionRangeOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ExtensionRangeOptions { - - /** Properties of a Declaration. */ - interface IDeclaration { - - /** Declaration number */ - number?: (number|null); - - /** Declaration fullName */ - fullName?: (string|null); - - /** Declaration type */ - type?: (string|null); - - /** Declaration reserved */ - reserved?: (boolean|null); - - /** Declaration repeated */ - repeated?: (boolean|null); - } - - /** Represents a Declaration. */ - class Declaration implements IDeclaration { - - /** - * Constructs a new Declaration. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration); - - /** Declaration number. */ - public number: number; - - /** Declaration fullName. */ - public fullName: string; - - /** Declaration type. */ - public type: string; - - /** Declaration reserved. */ - public reserved: boolean; - - /** Declaration repeated. */ - public repeated: boolean; - - /** - * Creates a new Declaration instance using the specified properties. - * @param [properties] Properties to set - * @returns Declaration instance - */ - public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration; - - /** - * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. - * @param message Declaration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. - * @param message Declaration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Declaration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Declaration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions.Declaration; - - /** - * Decodes a Declaration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Declaration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions.Declaration; - - /** - * Verifies a Declaration message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Declaration message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Declaration - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration; - - /** - * Creates a plain object from a Declaration message. Also converts values to other types if specified. - * @param message Declaration - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Declaration to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Declaration - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** VerificationState enum. */ - enum VerificationState { - DECLARATION = 0, - UNVERIFIED = 1 - } - } - /** Properties of a FieldDescriptorProto. */ interface IFieldDescriptorProto { @@ -98111,9 +98170,6 @@ export namespace google { /** FieldDescriptorProto options */ options?: (google.protobuf.IFieldOptions|null); - - /** FieldDescriptorProto proto3Optional */ - proto3Optional?: (boolean|null); } /** Represents a FieldDescriptorProto. */ @@ -98155,9 +98211,6 @@ export namespace google { /** FieldDescriptorProto options. */ public options?: (google.protobuf.IFieldOptions|null); - /** FieldDescriptorProto proto3Optional. */ - public proto3Optional: boolean; - /** * Creates a new FieldDescriptorProto instance using the specified properties. * @param [properties] Properties to set @@ -98263,8 +98316,8 @@ export namespace google { /** Label enum. */ enum Label { LABEL_OPTIONAL = 1, - LABEL_REPEATED = 3, - LABEL_REQUIRED = 2 + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 } } @@ -98382,15 +98435,6 @@ export namespace google { /** EnumDescriptorProto options */ options?: (google.protobuf.IEnumOptions|null); - - /** EnumDescriptorProto reservedRange */ - reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); - - /** EnumDescriptorProto reservedName */ - reservedName?: (string[]|null); - - /** EnumDescriptorProto visibility */ - visibility?: (google.protobuf.SymbolVisibility|null); } /** Represents an EnumDescriptorProto. */ @@ -98411,15 +98455,6 @@ export namespace google { /** EnumDescriptorProto options. */ public options?: (google.protobuf.IEnumOptions|null); - /** EnumDescriptorProto reservedRange. */ - public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; - - /** EnumDescriptorProto reservedName. */ - public reservedName: string[]; - - /** EnumDescriptorProto visibility. */ - public visibility: google.protobuf.SymbolVisibility; - /** * Creates a new EnumDescriptorProto instance using the specified properties. * @param [properties] Properties to set @@ -98498,112 +98533,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace EnumDescriptorProto { - - /** Properties of an EnumReservedRange. */ - interface IEnumReservedRange { - - /** EnumReservedRange start */ - start?: (number|null); - - /** EnumReservedRange end */ - end?: (number|null); - } - - /** Represents an EnumReservedRange. */ - class EnumReservedRange implements IEnumReservedRange { - - /** - * Constructs a new EnumReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); - - /** EnumReservedRange start. */ - public start: number; - - /** EnumReservedRange end. */ - public end: number; - - /** - * Creates a new EnumReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumReservedRange instance - */ - public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; - - /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @param message EnumReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @param message EnumReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange; - - /** - * Verifies an EnumReservedRange message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumReservedRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; - - /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @param message EnumReservedRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EnumReservedRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EnumReservedRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - /** Properties of an EnumValueDescriptorProto. */ interface IEnumValueDescriptorProto { @@ -98994,24 +98923,6 @@ export namespace google { /** FileOptions csharpNamespace */ csharpNamespace?: (string|null); - /** FileOptions swiftPrefix */ - swiftPrefix?: (string|null); - - /** FileOptions phpClassPrefix */ - phpClassPrefix?: (string|null); - - /** FileOptions phpNamespace */ - phpNamespace?: (string|null); - - /** FileOptions phpMetadataNamespace */ - phpMetadataNamespace?: (string|null); - - /** FileOptions rubyPackage */ - rubyPackage?: (string|null); - - /** FileOptions features */ - features?: (google.protobuf.IFeatureSet|null); - /** FileOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -99067,24 +98978,6 @@ export namespace google { /** FileOptions csharpNamespace. */ public csharpNamespace: string; - /** FileOptions swiftPrefix. */ - public swiftPrefix: string; - - /** FileOptions phpClassPrefix. */ - public phpClassPrefix: string; - - /** FileOptions phpNamespace. */ - public phpNamespace: string; - - /** FileOptions phpMetadataNamespace. */ - public phpMetadataNamespace: string; - - /** FileOptions rubyPackage. */ - public rubyPackage: string; - - /** FileOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); - /** FileOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -99191,12 +99084,6 @@ export namespace google { /** MessageOptions mapEntry */ mapEntry?: (boolean|null); - /** MessageOptions deprecatedLegacyJsonFieldConflicts */ - deprecatedLegacyJsonFieldConflicts?: (boolean|null); - - /** MessageOptions features */ - features?: (google.protobuf.IFeatureSet|null); - /** MessageOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -99222,12 +99109,6 @@ export namespace google { /** MessageOptions mapEntry. */ public mapEntry: boolean; - /** MessageOptions deprecatedLegacyJsonFieldConflicts. */ - public deprecatedLegacyJsonFieldConflicts: boolean; - - /** MessageOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); - /** MessageOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -99324,33 +99205,12 @@ export namespace google { /** FieldOptions lazy */ lazy?: (boolean|null); - /** FieldOptions unverifiedLazy */ - unverifiedLazy?: (boolean|null); - /** FieldOptions deprecated */ deprecated?: (boolean|null); /** FieldOptions weak */ weak?: (boolean|null); - /** FieldOptions debugRedact */ - debugRedact?: (boolean|null); - - /** FieldOptions retention */ - retention?: (google.protobuf.FieldOptions.OptionRetention|null); - - /** FieldOptions targets */ - targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null); - - /** FieldOptions editionDefaults */ - editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null); - - /** FieldOptions features */ - features?: (google.protobuf.IFeatureSet|null); - - /** FieldOptions featureSupport */ - featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); - /** FieldOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -99376,33 +99236,12 @@ export namespace google { /** FieldOptions lazy. */ public lazy: boolean; - /** FieldOptions unverifiedLazy. */ - public unverifiedLazy: boolean; - /** FieldOptions deprecated. */ public deprecated: boolean; /** FieldOptions weak. */ public weak: boolean; - /** FieldOptions debugRedact. */ - public debugRedact: boolean; - - /** FieldOptions retention. */ - public retention: google.protobuf.FieldOptions.OptionRetention; - - /** FieldOptions targets. */ - public targets: google.protobuf.FieldOptions.OptionTargetType[]; - - /** FieldOptions editionDefaults. */ - public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[]; - - /** FieldOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); - - /** FieldOptions featureSupport. */ - public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); - /** FieldOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -99499,253 +99338,11 @@ export namespace google { JS_STRING = 1, JS_NUMBER = 2 } - - /** OptionRetention enum. */ - enum OptionRetention { - RETENTION_UNKNOWN = 0, - RETENTION_RUNTIME = 1, - RETENTION_SOURCE = 2 - } - - /** OptionTargetType enum. */ - enum OptionTargetType { - TARGET_TYPE_UNKNOWN = 0, - TARGET_TYPE_FILE = 1, - TARGET_TYPE_EXTENSION_RANGE = 2, - TARGET_TYPE_MESSAGE = 3, - TARGET_TYPE_FIELD = 4, - TARGET_TYPE_ONEOF = 5, - TARGET_TYPE_ENUM = 6, - TARGET_TYPE_ENUM_ENTRY = 7, - TARGET_TYPE_SERVICE = 8, - TARGET_TYPE_METHOD = 9 - } - - /** Properties of an EditionDefault. */ - interface IEditionDefault { - - /** EditionDefault edition */ - edition?: (google.protobuf.Edition|null); - - /** EditionDefault value */ - value?: (string|null); - } - - /** Represents an EditionDefault. */ - class EditionDefault implements IEditionDefault { - - /** - * Constructs a new EditionDefault. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.FieldOptions.IEditionDefault); - - /** EditionDefault edition. */ - public edition: google.protobuf.Edition; - - /** EditionDefault value. */ - public value: string; - - /** - * Creates a new EditionDefault instance using the specified properties. - * @param [properties] Properties to set - * @returns EditionDefault instance - */ - public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault; - - /** - * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. - * @param message EditionDefault message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. - * @param message EditionDefault message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EditionDefault message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions.EditionDefault; - - /** - * Decodes an EditionDefault message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions.EditionDefault; - - /** - * Verifies an EditionDefault message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EditionDefault - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault; - - /** - * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. - * @param message EditionDefault - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EditionDefault to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EditionDefault - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FeatureSupport. */ - interface IFeatureSupport { - - /** FeatureSupport editionIntroduced */ - editionIntroduced?: (google.protobuf.Edition|null); - - /** FeatureSupport editionDeprecated */ - editionDeprecated?: (google.protobuf.Edition|null); - - /** FeatureSupport deprecationWarning */ - deprecationWarning?: (string|null); - - /** FeatureSupport editionRemoved */ - editionRemoved?: (google.protobuf.Edition|null); - } - - /** Represents a FeatureSupport. */ - class FeatureSupport implements IFeatureSupport { - - /** - * Constructs a new FeatureSupport. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.FieldOptions.IFeatureSupport); - - /** FeatureSupport editionIntroduced. */ - public editionIntroduced: google.protobuf.Edition; - - /** FeatureSupport editionDeprecated. */ - public editionDeprecated: google.protobuf.Edition; - - /** FeatureSupport deprecationWarning. */ - public deprecationWarning: string; - - /** FeatureSupport editionRemoved. */ - public editionRemoved: google.protobuf.Edition; - - /** - * Creates a new FeatureSupport instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureSupport instance - */ - public static create(properties?: google.protobuf.FieldOptions.IFeatureSupport): google.protobuf.FieldOptions.FeatureSupport; - - /** - * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages. - * @param message FeatureSupport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages. - * @param message FeatureSupport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureSupport message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureSupport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions.FeatureSupport; - - /** - * Decodes a FeatureSupport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureSupport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions.FeatureSupport; - - /** - * Verifies a FeatureSupport message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureSupport - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.FeatureSupport; - - /** - * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified. - * @param message FeatureSupport - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldOptions.FeatureSupport, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureSupport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FeatureSupport - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } } /** Properties of an OneofOptions. */ interface IOneofOptions { - /** OneofOptions features */ - features?: (google.protobuf.IFeatureSet|null); - /** OneofOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -99759,9 +99356,6 @@ export namespace google { */ constructor(properties?: google.protobuf.IOneofOptions); - /** OneofOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); - /** OneofOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -99852,12 +99446,6 @@ export namespace google { /** EnumOptions deprecated */ deprecated?: (boolean|null); - /** EnumOptions deprecatedLegacyJsonFieldConflicts */ - deprecatedLegacyJsonFieldConflicts?: (boolean|null); - - /** EnumOptions features */ - features?: (google.protobuf.IFeatureSet|null); - /** EnumOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -99877,12 +99465,6 @@ export namespace google { /** EnumOptions deprecated. */ public deprecated: boolean; - /** EnumOptions deprecatedLegacyJsonFieldConflicts. */ - public deprecatedLegacyJsonFieldConflicts: boolean; - - /** EnumOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); - /** EnumOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -99970,15 +99552,6 @@ export namespace google { /** EnumValueOptions deprecated */ deprecated?: (boolean|null); - /** EnumValueOptions features */ - features?: (google.protobuf.IFeatureSet|null); - - /** EnumValueOptions debugRedact */ - debugRedact?: (boolean|null); - - /** EnumValueOptions featureSupport */ - featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); - /** EnumValueOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } @@ -99995,15 +99568,6 @@ export namespace google { /** EnumValueOptions deprecated. */ public deprecated: boolean; - /** EnumValueOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); - - /** EnumValueOptions debugRedact. */ - public debugRedact: boolean; - - /** EnumValueOptions featureSupport. */ - public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); - /** EnumValueOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -100088,9 +99652,6 @@ export namespace google { /** Properties of a ServiceOptions. */ interface IServiceOptions { - /** ServiceOptions features */ - features?: (google.protobuf.IFeatureSet|null); - /** ServiceOptions deprecated */ deprecated?: (boolean|null); @@ -100107,9 +99668,6 @@ export namespace google { */ constructor(properties?: google.protobuf.IServiceOptions); - /** ServiceOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); - /** ServiceOptions deprecated. */ public deprecated: boolean; @@ -100200,12 +99758,6 @@ export namespace google { /** MethodOptions deprecated */ deprecated?: (boolean|null); - /** MethodOptions idempotencyLevel */ - idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null); - - /** MethodOptions features */ - features?: (google.protobuf.IFeatureSet|null); - /** MethodOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -100225,12 +99777,6 @@ export namespace google { /** MethodOptions deprecated. */ public deprecated: boolean; - /** MethodOptions idempotencyLevel. */ - public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; - - /** MethodOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); - /** MethodOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -100312,16 +99858,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MethodOptions { - - /** IdempotencyLevel enum. */ - enum IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - NO_SIDE_EFFECTS = 1, - IDEMPOTENT = 2 - } - } - /** Properties of an UninterpretedOption. */ interface IUninterpretedOption { @@ -100561,522 +100097,6 @@ export namespace google { } } - /** Properties of a FeatureSet. */ - interface IFeatureSet { - - /** FeatureSet fieldPresence */ - fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|null); - - /** FeatureSet enumType */ - enumType?: (google.protobuf.FeatureSet.EnumType|null); - - /** FeatureSet repeatedFieldEncoding */ - repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|null); - - /** FeatureSet utf8Validation */ - utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|null); - - /** FeatureSet messageEncoding */ - messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|null); - - /** FeatureSet jsonFormat */ - jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|null); - - /** FeatureSet enforceNamingStyle */ - enforceNamingStyle?: (google.protobuf.FeatureSet.EnforceNamingStyle|null); - - /** FeatureSet defaultSymbolVisibility */ - defaultSymbolVisibility?: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null); - } - - /** Represents a FeatureSet. */ - class FeatureSet implements IFeatureSet { - - /** - * Constructs a new FeatureSet. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFeatureSet); - - /** FeatureSet fieldPresence. */ - public fieldPresence: google.protobuf.FeatureSet.FieldPresence; - - /** FeatureSet enumType. */ - public enumType: google.protobuf.FeatureSet.EnumType; - - /** FeatureSet repeatedFieldEncoding. */ - public repeatedFieldEncoding: google.protobuf.FeatureSet.RepeatedFieldEncoding; - - /** FeatureSet utf8Validation. */ - public utf8Validation: google.protobuf.FeatureSet.Utf8Validation; - - /** FeatureSet messageEncoding. */ - public messageEncoding: google.protobuf.FeatureSet.MessageEncoding; - - /** FeatureSet jsonFormat. */ - public jsonFormat: google.protobuf.FeatureSet.JsonFormat; - - /** FeatureSet enforceNamingStyle. */ - public enforceNamingStyle: google.protobuf.FeatureSet.EnforceNamingStyle; - - /** FeatureSet defaultSymbolVisibility. */ - public defaultSymbolVisibility: google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility; - - /** - * Creates a new FeatureSet instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureSet instance - */ - public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet; - - /** - * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. - * @param message FeatureSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. - * @param message FeatureSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureSet message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet; - - /** - * Decodes a FeatureSet message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet; - - /** - * Verifies a FeatureSet message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureSet - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet; - - /** - * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. - * @param message FeatureSet - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureSet to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FeatureSet - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace FeatureSet { - - /** FieldPresence enum. */ - enum FieldPresence { - FIELD_PRESENCE_UNKNOWN = 0, - EXPLICIT = 1, - IMPLICIT = 2, - LEGACY_REQUIRED = 3 - } - - /** EnumType enum. */ - enum EnumType { - ENUM_TYPE_UNKNOWN = 0, - OPEN = 1, - CLOSED = 2 - } - - /** RepeatedFieldEncoding enum. */ - enum RepeatedFieldEncoding { - REPEATED_FIELD_ENCODING_UNKNOWN = 0, - PACKED = 1, - EXPANDED = 2 - } - - /** Utf8Validation enum. */ - enum Utf8Validation { - UTF8_VALIDATION_UNKNOWN = 0, - VERIFY = 2, - NONE = 3 - } - - /** MessageEncoding enum. */ - enum MessageEncoding { - MESSAGE_ENCODING_UNKNOWN = 0, - LENGTH_PREFIXED = 1, - DELIMITED = 2 - } - - /** JsonFormat enum. */ - enum JsonFormat { - JSON_FORMAT_UNKNOWN = 0, - ALLOW = 1, - LEGACY_BEST_EFFORT = 2 - } - - /** EnforceNamingStyle enum. */ - enum EnforceNamingStyle { - ENFORCE_NAMING_STYLE_UNKNOWN = 0, - STYLE2024 = 1, - STYLE_LEGACY = 2 - } - - /** Properties of a VisibilityFeature. */ - interface IVisibilityFeature { - } - - /** Represents a VisibilityFeature. */ - class VisibilityFeature implements IVisibilityFeature { - - /** - * Constructs a new VisibilityFeature. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.FeatureSet.IVisibilityFeature); - - /** - * Creates a new VisibilityFeature instance using the specified properties. - * @param [properties] Properties to set - * @returns VisibilityFeature instance - */ - public static create(properties?: google.protobuf.FeatureSet.IVisibilityFeature): google.protobuf.FeatureSet.VisibilityFeature; - - /** - * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages. - * @param message VisibilityFeature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages. - * @param message VisibilityFeature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VisibilityFeature message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VisibilityFeature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet.VisibilityFeature; - - /** - * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VisibilityFeature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet.VisibilityFeature; - - /** - * Verifies a VisibilityFeature message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VisibilityFeature - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet.VisibilityFeature; - - /** - * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified. - * @param message VisibilityFeature - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FeatureSet.VisibilityFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VisibilityFeature to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VisibilityFeature - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace VisibilityFeature { - - /** DefaultSymbolVisibility enum. */ - enum DefaultSymbolVisibility { - DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0, - EXPORT_ALL = 1, - EXPORT_TOP_LEVEL = 2, - LOCAL_ALL = 3, - STRICT = 4 - } - } - } - - /** Properties of a FeatureSetDefaults. */ - interface IFeatureSetDefaults { - - /** FeatureSetDefaults defaults */ - defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null); - - /** FeatureSetDefaults minimumEdition */ - minimumEdition?: (google.protobuf.Edition|null); - - /** FeatureSetDefaults maximumEdition */ - maximumEdition?: (google.protobuf.Edition|null); - } - - /** Represents a FeatureSetDefaults. */ - class FeatureSetDefaults implements IFeatureSetDefaults { - - /** - * Constructs a new FeatureSetDefaults. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFeatureSetDefaults); - - /** FeatureSetDefaults defaults. */ - public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]; - - /** FeatureSetDefaults minimumEdition. */ - public minimumEdition: google.protobuf.Edition; - - /** FeatureSetDefaults maximumEdition. */ - public maximumEdition: google.protobuf.Edition; - - /** - * Creates a new FeatureSetDefaults instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureSetDefaults instance - */ - public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults; - - /** - * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. - * @param message FeatureSetDefaults message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. - * @param message FeatureSetDefaults message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureSetDefaults message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureSetDefaults - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults; - - /** - * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureSetDefaults - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults; - - /** - * Verifies a FeatureSetDefaults message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureSetDefaults - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults; - - /** - * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. - * @param message FeatureSetDefaults - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureSetDefaults to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FeatureSetDefaults - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace FeatureSetDefaults { - - /** Properties of a FeatureSetEditionDefault. */ - interface IFeatureSetEditionDefault { - - /** FeatureSetEditionDefault edition */ - edition?: (google.protobuf.Edition|null); - - /** FeatureSetEditionDefault overridableFeatures */ - overridableFeatures?: (google.protobuf.IFeatureSet|null); - - /** FeatureSetEditionDefault fixedFeatures */ - fixedFeatures?: (google.protobuf.IFeatureSet|null); - } - - /** Represents a FeatureSetEditionDefault. */ - class FeatureSetEditionDefault implements IFeatureSetEditionDefault { - - /** - * Constructs a new FeatureSetEditionDefault. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault); - - /** FeatureSetEditionDefault edition. */ - public edition: google.protobuf.Edition; - - /** FeatureSetEditionDefault overridableFeatures. */ - public overridableFeatures?: (google.protobuf.IFeatureSet|null); - - /** FeatureSetEditionDefault fixedFeatures. */ - public fixedFeatures?: (google.protobuf.IFeatureSet|null); - - /** - * Creates a new FeatureSetEditionDefault instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureSetEditionDefault instance - */ - public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; - - /** - * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. - * @param message FeatureSetEditionDefault message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. - * @param message FeatureSetEditionDefault message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureSetEditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; - - /** - * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureSetEditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; - - /** - * Verifies a FeatureSetEditionDefault message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureSetEditionDefault - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; - - /** - * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. - * @param message FeatureSetEditionDefault - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureSetEditionDefault to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FeatureSetEditionDefault - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - /** Properties of a SourceCodeInfo. */ interface ISourceCodeInfo { @@ -101411,9 +100431,6 @@ export namespace google { /** Annotation end */ end?: (number|null); - - /** Annotation semantic */ - semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); } /** Represents an Annotation. */ @@ -101437,9 +100454,6 @@ export namespace google { /** Annotation end. */ public end: number; - /** Annotation semantic. */ - public semantic: google.protobuf.GeneratedCodeInfo.Annotation.Semantic; - /** * Creates a new Annotation instance using the specified properties. * @param [properties] Properties to set @@ -101517,23 +100531,6 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } - - namespace Annotation { - - /** Semantic enum. */ - enum Semantic { - NONE = 0, - SET = 1, - ALIAS = 2 - } - } - } - - /** SymbolVisibility enum. */ - enum SymbolVisibility { - VISIBILITY_UNSET = 0, - VISIBILITY_LOCAL = 1, - VISIBILITY_EXPORT = 2 } /** Properties of a Struct. */ @@ -103017,6 +102014,9 @@ export namespace Router { /** RouterRecordRotationRequest saasConfiguration. */ public saasConfiguration?: (Uint8Array|null); + /** RouterRecordRotationRequest _saasConfiguration. */ + public _saasConfiguration?: "saasConfiguration"; + /** * Creates a new RouterRecordRotationRequest instance using the specified properties. * @param [properties] Properties to set @@ -105409,6 +104409,9 @@ export namespace Router { /** PAMNetworkConfigurationRequest rotations. */ public rotations: Router.IRouterRecordRotationRequest[]; + /** PAMNetworkConfigurationRequest _networkSettings. */ + public _networkSettings?: "networkSettings"; + /** * Creates a new PAMNetworkConfigurationRequest instance using the specified properties. * @param [properties] Properties to set @@ -109089,6 +108092,12 @@ export namespace PAM { /** PAMRecordingsRequest closeReasons. */ public closeReasons: number[]; + /** PAMRecordingsRequest _rangeStart. */ + public _rangeStart?: "rangeStart"; + + /** PAMRecordingsRequest _rangeEnd. */ + public _rangeEnd?: "rangeEnd"; + /** * Creates a new PAMRecordingsRequest instance using the specified properties. * @param [properties] Properties to set @@ -109706,6 +108715,30 @@ export namespace PAM { /** PAMResourceConfig keeperAiSettings. */ public keeperAiSettings?: (Uint8Array|null); + /** PAMResourceConfig _networkUid. */ + public _networkUid?: "networkUid"; + + /** PAMResourceConfig _adminUid. */ + public _adminUid?: "adminUid"; + + /** PAMResourceConfig _meta. */ + public _meta?: "meta"; + + /** PAMResourceConfig _connectionSettings. */ + public _connectionSettings?: "connectionSettings"; + + /** PAMResourceConfig _connectUsers. */ + public _connectUsers?: "connectUsers"; + + /** PAMResourceConfig _domainUid. */ + public _domainUid?: "domainUid"; + + /** PAMResourceConfig _jitSettings. */ + public _jitSettings?: "jitSettings"; + + /** PAMResourceConfig _keeperAiSettings. */ + public _keeperAiSettings?: "keeperAiSettings"; + /** * Creates a new PAMResourceConfig instance using the specified properties. * @param [properties] Properties to set @@ -109930,6 +108963,18 @@ export namespace PAM { /** PAMUniversalSyncConfig vaultName. */ public vaultName?: (Uint8Array|null); + /** PAMUniversalSyncConfig _enabled. */ + public _enabled?: "enabled"; + + /** PAMUniversalSyncConfig _dryRunEnabled. */ + public _dryRunEnabled?: "dryRunEnabled"; + + /** PAMUniversalSyncConfig _syncIdentity. */ + public _syncIdentity?: "syncIdentity"; + + /** PAMUniversalSyncConfig _vaultName. */ + public _vaultName?: "vaultName"; + /** * Creates a new PAMUniversalSyncConfig instance using the specified properties. * @param [properties] Properties to set diff --git a/keeperapi/src/proto.js b/keeperapi/src/proto.js index 35d648c..cbc9112 100644 --- a/keeperapi/src/proto.js +++ b/keeperapi/src/proto.js @@ -236,7 +236,7 @@ export const Authentication = $root.Authentication = (() => { function QrcMessageKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -301,13 +301,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QrcMessageKey.encode = function encode(message, writer, q) { + QrcMessageKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.clientEcPublicKey != null && Object.hasOwnProperty.call(message, "clientEcPublicKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.clientEcPublicKey); if (message.mlKemEncapsulatedKey != null && Object.hasOwnProperty.call(message, "mlKemEncapsulatedKey")) @@ -345,18 +341,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QrcMessageKey.decode = function decode(reader, length, error, long) { + QrcMessageKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.QrcMessageKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.clientEcPublicKey = reader.bytes(); @@ -379,7 +369,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -410,13 +400,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QrcMessageKey.verify = function verify(message, long) { + QrcMessageKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.clientEcPublicKey != null && message.hasOwnProperty("clientEcPublicKey")) if (!(message.clientEcPublicKey && typeof message.clientEcPublicKey.length === "number" || $util.isString(message.clientEcPublicKey))) return "clientEcPublicKey: buffer expected"; @@ -443,13 +429,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.QrcMessageKey} QrcMessageKey */ - QrcMessageKey.fromObject = function fromObject(object, long) { + QrcMessageKey.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.QrcMessageKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.QrcMessageKey(); if (object.clientEcPublicKey != null) if (typeof object.clientEcPublicKey === "string") @@ -482,13 +464,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QrcMessageKey.toObject = function toObject(message, options, q) { + QrcMessageKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -584,7 +562,7 @@ export const Authentication = $root.Authentication = (() => { function ApiRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -673,13 +651,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiRequest.encode = function encode(message, writer, q) { + ApiRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedTransmissionKey != null && Object.hasOwnProperty.call(message, "encryptedTransmissionKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedTransmissionKey); if (message.publicKeyId != null && Object.hasOwnProperty.call(message, "publicKeyId")) @@ -695,7 +669,7 @@ export const Authentication = $root.Authentication = (() => { if (message.subEnvironment != null && Object.hasOwnProperty.call(message, "subEnvironment")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.subEnvironment); if (message.qrcMessageKey != null && Object.hasOwnProperty.call(message, "qrcMessageKey")) - $root.Authentication.QrcMessageKey.encode(message.qrcMessageKey, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Authentication.QrcMessageKey.encode(message.qrcMessageKey, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; @@ -723,18 +697,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApiRequest.decode = function decode(reader, length, error, long) { + ApiRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApiRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedTransmissionKey = reader.bytes(); @@ -765,11 +733,11 @@ export const Authentication = $root.Authentication = (() => { break; } case 8: { - message.qrcMessageKey = $root.Authentication.QrcMessageKey.decode(reader, reader.uint32(), undefined, long + 1); + message.qrcMessageKey = $root.Authentication.QrcMessageKey.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -800,13 +768,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApiRequest.verify = function verify(message, long) { + ApiRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedTransmissionKey != null && message.hasOwnProperty("encryptedTransmissionKey")) if (!(message.encryptedTransmissionKey && typeof message.encryptedTransmissionKey.length === "number" || $util.isString(message.encryptedTransmissionKey))) return "encryptedTransmissionKey: buffer expected"; @@ -829,7 +793,7 @@ export const Authentication = $root.Authentication = (() => { if (!$util.isString(message.subEnvironment)) return "subEnvironment: string expected"; if (message.qrcMessageKey != null && message.hasOwnProperty("qrcMessageKey")) { - let error = $root.Authentication.QrcMessageKey.verify(message.qrcMessageKey, long + 1); + let error = $root.Authentication.QrcMessageKey.verify(message.qrcMessageKey); if (error) return "qrcMessageKey." + error; } @@ -844,13 +808,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ApiRequest} ApiRequest */ - ApiRequest.fromObject = function fromObject(object, long) { + ApiRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ApiRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ApiRequest(); if (object.encryptedTransmissionKey != null) if (typeof object.encryptedTransmissionKey === "string") @@ -875,7 +835,7 @@ export const Authentication = $root.Authentication = (() => { if (object.qrcMessageKey != null) { if (typeof object.qrcMessageKey !== "object") throw TypeError(".Authentication.ApiRequest.qrcMessageKey: object expected"); - message.qrcMessageKey = $root.Authentication.QrcMessageKey.fromObject(object.qrcMessageKey, long + 1); + message.qrcMessageKey = $root.Authentication.QrcMessageKey.fromObject(object.qrcMessageKey); } return message; }; @@ -889,13 +849,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApiRequest.toObject = function toObject(message, options, q) { + ApiRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -934,7 +890,7 @@ export const Authentication = $root.Authentication = (() => { if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) object.subEnvironment = message.subEnvironment; if (message.qrcMessageKey != null && message.hasOwnProperty("qrcMessageKey")) - object.qrcMessageKey = $root.Authentication.QrcMessageKey.toObject(message.qrcMessageKey, options, q + 1); + object.qrcMessageKey = $root.Authentication.QrcMessageKey.toObject(message.qrcMessageKey, options); return object; }; @@ -990,7 +946,7 @@ export const Authentication = $root.Authentication = (() => { function ApiRequestPayload(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -1047,13 +1003,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiRequestPayload.encode = function encode(message, writer, q) { + ApiRequestPayload.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.payload); if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) @@ -1089,18 +1041,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApiRequestPayload.decode = function decode(reader, length, error, long) { + ApiRequestPayload.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApiRequestPayload(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.payload = reader.bytes(); @@ -1119,7 +1065,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -1150,13 +1096,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApiRequestPayload.verify = function verify(message, long) { + ApiRequestPayload.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.payload != null && message.hasOwnProperty("payload")) if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) return "payload: buffer expected"; @@ -1180,13 +1122,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ApiRequestPayload} ApiRequestPayload */ - ApiRequestPayload.fromObject = function fromObject(object, long) { + ApiRequestPayload.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ApiRequestPayload) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ApiRequestPayload(); if (object.payload != null) if (typeof object.payload === "string") @@ -1217,13 +1155,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApiRequestPayload.toObject = function toObject(message, options, q) { + ApiRequestPayload.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -1310,7 +1244,7 @@ export const Authentication = $root.Authentication = (() => { function Transform(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -1351,13 +1285,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Transform.encode = function encode(message, writer, q) { + Transform.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) @@ -1389,18 +1319,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Transform.decode = function decode(reader, length, error, long) { + Transform.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.Transform(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.key = reader.bytes(); @@ -1411,7 +1335,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -1442,13 +1366,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Transform.verify = function verify(message, long) { + Transform.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.key != null && message.hasOwnProperty("key")) if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) return "key: buffer expected"; @@ -1466,13 +1386,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.Transform} Transform */ - Transform.fromObject = function fromObject(object, long) { + Transform.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.Transform) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.Transform(); if (object.key != null) if (typeof object.key === "string") @@ -1496,13 +1412,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Transform.toObject = function toObject(message, options, q) { + Transform.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -1580,7 +1492,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -1645,13 +1557,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceRequest.encode = function encode(message, writer, q) { + DeviceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientVersion); if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) @@ -1689,18 +1597,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceRequest.decode = function decode(reader, length, error, long) { + DeviceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.clientVersion = reader.string(); @@ -1723,7 +1625,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -1754,13 +1656,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceRequest.verify = function verify(message, long) { + DeviceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) if (!$util.isString(message.clientVersion)) return "clientVersion: string expected"; @@ -1794,13 +1692,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeviceRequest} DeviceRequest */ - DeviceRequest.fromObject = function fromObject(object, long) { + DeviceRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeviceRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeviceRequest(); if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); @@ -1846,13 +1740,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceRequest.toObject = function toObject(message, options, q) { + DeviceRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.clientVersion = ""; @@ -1925,7 +1815,7 @@ export const Authentication = $root.Authentication = (() => { function AuthRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -1974,13 +1864,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuthRequest.encode = function encode(message, writer, q) { + AuthRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientVersion); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -2014,18 +1900,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuthRequest.decode = function decode(reader, length, error, long) { + AuthRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AuthRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.clientVersion = reader.string(); @@ -2040,7 +1920,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -2071,13 +1951,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuthRequest.verify = function verify(message, long) { + AuthRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) if (!$util.isString(message.clientVersion)) return "clientVersion: string expected"; @@ -2098,13 +1974,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AuthRequest} AuthRequest */ - AuthRequest.fromObject = function fromObject(object, long) { + AuthRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AuthRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AuthRequest(); if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); @@ -2127,13 +1999,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuthRequest.toObject = function toObject(message, options, q) { + AuthRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.clientVersion = ""; @@ -2211,7 +2079,7 @@ export const Authentication = $root.Authentication = (() => { this.passwordMatchDescription = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -2284,13 +2152,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NewUserMinimumParams.encode = function encode(message, writer, q) { + NewUserMinimumParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.minimumIterations != null && Object.hasOwnProperty.call(message, "minimumIterations")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.minimumIterations); if (message.passwordMatchRegex != null && message.passwordMatchRegex.length) @@ -2332,18 +2196,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NewUserMinimumParams.decode = function decode(reader, length, error, long) { + NewUserMinimumParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.NewUserMinimumParams(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.minimumIterations = reader.int32(); @@ -2374,7 +2232,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -2405,13 +2263,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NewUserMinimumParams.verify = function verify(message, long) { + NewUserMinimumParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.minimumIterations != null && message.hasOwnProperty("minimumIterations")) if (!$util.isInteger(message.minimumIterations)) return "minimumIterations: integer expected"; @@ -2449,13 +2303,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.NewUserMinimumParams} NewUserMinimumParams */ - NewUserMinimumParams.fromObject = function fromObject(object, long) { + NewUserMinimumParams.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.NewUserMinimumParams) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.NewUserMinimumParams(); if (object.minimumIterations != null) message.minimumIterations = object.minimumIterations | 0; @@ -2494,13 +2344,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NewUserMinimumParams.toObject = function toObject(message, options, q) { + NewUserMinimumParams.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.passwordMatchRegex = []; @@ -2590,7 +2436,7 @@ export const Authentication = $root.Authentication = (() => { function PreLoginRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -2639,15 +2485,11 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PreLoginRequest.encode = function encode(message, writer, q) { + PreLoginRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) - $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.loginType); if (message.twoFactorToken != null && Object.hasOwnProperty.call(message, "twoFactorToken")) @@ -2679,21 +2521,15 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PreLoginRequest.decode = function decode(reader, length, error, long) { + PreLoginRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PreLoginRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32(), undefined, long + 1); + message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32()); break; } case 2: { @@ -2705,7 +2541,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -2736,15 +2572,11 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PreLoginRequest.verify = function verify(message, long) { + PreLoginRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.authRequest != null && message.hasOwnProperty("authRequest")) { - let error = $root.Authentication.AuthRequest.verify(message.authRequest, long + 1); + let error = $root.Authentication.AuthRequest.verify(message.authRequest); if (error) return "authRequest." + error; } @@ -2775,18 +2607,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PreLoginRequest} PreLoginRequest */ - PreLoginRequest.fromObject = function fromObject(object, long) { + PreLoginRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PreLoginRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PreLoginRequest(); if (object.authRequest != null) { if (typeof object.authRequest !== "object") throw TypeError(".Authentication.PreLoginRequest.authRequest: object expected"); - message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest, long + 1); + message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest); } switch (object.loginType) { default: @@ -2841,13 +2669,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PreLoginRequest.toObject = function toObject(message, options, q) { + PreLoginRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.authRequest = null; @@ -2861,7 +2685,7 @@ export const Authentication = $root.Authentication = (() => { } } if (message.authRequest != null && message.hasOwnProperty("authRequest")) - object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options, q + 1); + object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options); if (message.loginType != null && message.hasOwnProperty("loginType")) object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; if (message.twoFactorToken != null && message.hasOwnProperty("twoFactorToken")) @@ -2925,7 +2749,7 @@ export const Authentication = $root.Authentication = (() => { function LoginRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -3014,15 +2838,11 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoginRequest.encode = function encode(message, writer, q) { + LoginRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) - $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.loginType); if (message.authenticationHashPrime != null && Object.hasOwnProperty.call(message, "authenticationHashPrime")) @@ -3064,21 +2884,15 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoginRequest.decode = function decode(reader, length, error, long) { + LoginRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.LoginRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32(), undefined, long + 1); + message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32()); break; } case 2: { @@ -3110,7 +2924,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -3141,15 +2955,11 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoginRequest.verify = function verify(message, long) { + LoginRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.authRequest != null && message.hasOwnProperty("authRequest")) { - let error = $root.Authentication.AuthRequest.verify(message.authRequest, long + 1); + let error = $root.Authentication.AuthRequest.verify(message.authRequest); if (error) return "authRequest." + error; } @@ -3195,18 +3005,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.LoginRequest} LoginRequest */ - LoginRequest.fromObject = function fromObject(object, long) { + LoginRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.LoginRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.LoginRequest(); if (object.authRequest != null) { if (typeof object.authRequest !== "object") throw TypeError(".Authentication.LoginRequest.authRequest: object expected"); - message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest, long + 1); + message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest); } switch (object.loginType) { default: @@ -3277,13 +3083,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoginRequest.toObject = function toObject(message, options, q) { + LoginRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.authRequest = null; @@ -3314,7 +3116,7 @@ export const Authentication = $root.Authentication = (() => { object.platform = ""; } if (message.authRequest != null && message.hasOwnProperty("authRequest")) - object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options, q + 1); + object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options); if (message.loginType != null && message.hasOwnProperty("loginType")) object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; if (message.authenticationHashPrime != null && message.hasOwnProperty("authenticationHashPrime")) @@ -3382,7 +3184,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -3423,13 +3225,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceResponse.encode = function encode(message, writer, q) { + DeviceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -3461,18 +3259,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceResponse.decode = function decode(reader, length, error, long) { + DeviceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -3483,7 +3275,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -3514,13 +3306,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceResponse.verify = function verify(message, long) { + DeviceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -3545,13 +3333,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeviceResponse} DeviceResponse */ - DeviceResponse.fromObject = function fromObject(object, long) { + DeviceResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeviceResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeviceResponse(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -3594,13 +3378,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceResponse.toObject = function toObject(message, options, q) { + DeviceResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -3672,7 +3452,7 @@ export const Authentication = $root.Authentication = (() => { function Salt(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -3737,13 +3517,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Salt.encode = function encode(message, writer, q) { + Salt.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.iterations); if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) @@ -3781,18 +3557,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Salt.decode = function decode(reader, length, error, long) { + Salt.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.Salt(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.iterations = reader.int32(); @@ -3815,7 +3585,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -3846,13 +3616,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Salt.verify = function verify(message, long) { + Salt.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.iterations != null && message.hasOwnProperty("iterations")) if (!$util.isInteger(message.iterations)) return "iterations: integer expected"; @@ -3879,13 +3645,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.Salt} Salt */ - Salt.fromObject = function fromObject(object, long) { + Salt.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.Salt) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.Salt(); if (object.iterations != null) message.iterations = object.iterations | 0; @@ -3915,13 +3677,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Salt.toObject = function toObject(message, options, q) { + Salt.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.iterations = 0; @@ -4004,7 +3762,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorChannel(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -4037,13 +3795,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorChannel.encode = function encode(message, writer, q) { + TwoFactorChannel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); return writer; @@ -4073,25 +3827,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorChannel.decode = function decode(reader, length, error, long) { + TwoFactorChannel.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorChannel(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.type = reader.int32(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -4122,13 +3870,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorChannel.verify = function verify(message, long) { + TwoFactorChannel.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.type != null && message.hasOwnProperty("type")) if (!$util.isInteger(message.type)) return "type: integer expected"; @@ -4143,13 +3887,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorChannel} TwoFactorChannel */ - TwoFactorChannel.fromObject = function fromObject(object, long) { + TwoFactorChannel.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorChannel) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorChannel(); if (object.type != null) message.type = object.type | 0; @@ -4165,13 +3905,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorChannel.toObject = function toObject(message, options, q) { + TwoFactorChannel.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.type = 0; @@ -4337,7 +4073,7 @@ export const Authentication = $root.Authentication = (() => { function StartLoginRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -4466,13 +4202,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartLoginRequest.encode = function encode(message, writer, q) { + StartLoginRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -4526,18 +4258,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartLoginRequest.decode = function decode(reader, length, error, long) { + StartLoginRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.StartLoginRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -4592,7 +4318,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -4623,13 +4349,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartLoginRequest.verify = function verify(message, long) { + StartLoginRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -4698,13 +4420,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.StartLoginRequest} StartLoginRequest */ - StartLoginRequest.fromObject = function fromObject(object, long) { + StartLoginRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.StartLoginRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.StartLoginRequest(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -4822,13 +4540,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartLoginRequest.toObject = function toObject(message, options, q) { + StartLoginRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -4976,7 +4690,7 @@ export const Authentication = $root.Authentication = (() => { this.salt = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -5129,13 +4843,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoginResponse.encode = function encode(message, writer, q) { + LoginResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.loginState != null && Object.hasOwnProperty.call(message, "loginState")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.loginState); if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) @@ -5158,10 +4868,10 @@ export const Authentication = $root.Authentication = (() => { writer.uint32(/* id 10, wireType 2 =*/82).string(message.url); if (message.channels != null && message.channels.length) for (let i = 0; i < message.channels.length; ++i) - $root.Authentication.TwoFactorChannelInfo.encode(message.channels[i], writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.Authentication.TwoFactorChannelInfo.encode(message.channels[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.salt != null && message.salt.length) for (let i = 0; i < message.salt.length; ++i) - $root.Authentication.Salt.encode(message.salt[i], writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim(); + $root.Authentication.Salt.encode(message.salt[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.cloneCode != null && Object.hasOwnProperty.call(message, "cloneCode")) writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.cloneCode); if (message.stateSpecificValue != null && Object.hasOwnProperty.call(message, "stateSpecificValue")) @@ -5197,18 +4907,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoginResponse.decode = function decode(reader, length, error, long) { + LoginResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.LoginResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.loginState = reader.int32(); @@ -5253,13 +4957,13 @@ export const Authentication = $root.Authentication = (() => { case 11: { if (!(message.channels && message.channels.length)) message.channels = []; - message.channels.push($root.Authentication.TwoFactorChannelInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.channels.push($root.Authentication.TwoFactorChannelInfo.decode(reader, reader.uint32())); break; } case 12: { if (!(message.salt && message.salt.length)) message.salt = []; - message.salt.push($root.Authentication.Salt.decode(reader, reader.uint32(), undefined, long + 1)); + message.salt.push($root.Authentication.Salt.decode(reader, reader.uint32())); break; } case 13: { @@ -5279,7 +4983,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -5310,13 +5014,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoginResponse.verify = function verify(message, long) { + LoginResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.loginState != null && message.hasOwnProperty("loginState")) switch (message.loginState) { default: @@ -5400,7 +5100,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.channels)) return "channels: array expected"; for (let i = 0; i < message.channels.length; ++i) { - let error = $root.Authentication.TwoFactorChannelInfo.verify(message.channels[i], long + 1); + let error = $root.Authentication.TwoFactorChannelInfo.verify(message.channels[i]); if (error) return "channels." + error; } @@ -5409,7 +5109,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.salt)) return "salt: array expected"; for (let i = 0; i < message.salt.length; ++i) { - let error = $root.Authentication.Salt.verify(message.salt[i], long + 1); + let error = $root.Authentication.Salt.verify(message.salt[i]); if (error) return "salt." + error; } @@ -5437,13 +5137,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.LoginResponse} LoginResponse */ - LoginResponse.fromObject = function fromObject(object, long) { + LoginResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.LoginResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.LoginResponse(); switch (object.loginState) { default: @@ -5662,7 +5358,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.channels.length; ++i) { if (typeof object.channels[i] !== "object") throw TypeError(".Authentication.LoginResponse.channels: object expected"); - message.channels[i] = $root.Authentication.TwoFactorChannelInfo.fromObject(object.channels[i], long + 1); + message.channels[i] = $root.Authentication.TwoFactorChannelInfo.fromObject(object.channels[i]); } } if (object.salt) { @@ -5672,7 +5368,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.salt.length; ++i) { if (typeof object.salt[i] !== "object") throw TypeError(".Authentication.LoginResponse.salt: object expected"); - message.salt[i] = $root.Authentication.Salt.fromObject(object.salt[i], long + 1); + message.salt[i] = $root.Authentication.Salt.fromObject(object.salt[i]); } } if (object.cloneCode != null) @@ -5698,13 +5394,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoginResponse.toObject = function toObject(message, options, q) { + LoginResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.channels = []; @@ -5779,12 +5471,12 @@ export const Authentication = $root.Authentication = (() => { if (message.channels && message.channels.length) { object.channels = []; for (let j = 0; j < message.channels.length; ++j) - object.channels[j] = $root.Authentication.TwoFactorChannelInfo.toObject(message.channels[j], options, q + 1); + object.channels[j] = $root.Authentication.TwoFactorChannelInfo.toObject(message.channels[j], options); } if (message.salt && message.salt.length) { object.salt = []; for (let j = 0; j < message.salt.length; ++j) - object.salt[j] = $root.Authentication.Salt.toObject(message.salt[j], options, q + 1); + object.salt[j] = $root.Authentication.Salt.toObject(message.salt[j], options); } if (message.cloneCode != null && message.hasOwnProperty("cloneCode")) object.cloneCode = options.bytes === String ? $util.base64.encode(message.cloneCode, 0, message.cloneCode.length) : options.bytes === Array ? Array.prototype.slice.call(message.cloneCode) : message.cloneCode; @@ -5850,7 +5542,7 @@ export const Authentication = $root.Authentication = (() => { function SwitchListElement(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -5915,13 +5607,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SwitchListElement.encode = function encode(message, writer, q) { + SwitchListElement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) @@ -5959,18 +5647,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SwitchListElement.decode = function decode(reader, length, error, long) { + SwitchListElement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SwitchListElement(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -5993,7 +5675,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -6024,13 +5706,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SwitchListElement.verify = function verify(message, long) { + SwitchListElement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -6057,13 +5735,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SwitchListElement} SwitchListElement */ - SwitchListElement.fromObject = function fromObject(object, long) { + SwitchListElement.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SwitchListElement) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SwitchListElement(); if (object.username != null) message.username = String(object.username); @@ -6087,13 +5761,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SwitchListElement.toObject = function toObject(message, options, q) { + SwitchListElement.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -6165,7 +5835,7 @@ export const Authentication = $root.Authentication = (() => { this.elements = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -6198,16 +5868,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SwitchListResponse.encode = function encode(message, writer, q) { + SwitchListResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.elements != null && message.elements.length) for (let i = 0; i < message.elements.length; ++i) - $root.Authentication.SwitchListElement.encode(message.elements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.SwitchListElement.encode(message.elements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -6235,27 +5901,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SwitchListResponse.decode = function decode(reader, length, error, long) { + SwitchListResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SwitchListResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.elements && message.elements.length)) message.elements = []; - message.elements.push($root.Authentication.SwitchListElement.decode(reader, reader.uint32(), undefined, long + 1)); + message.elements.push($root.Authentication.SwitchListElement.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -6286,18 +5946,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SwitchListResponse.verify = function verify(message, long) { + SwitchListResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.elements != null && message.hasOwnProperty("elements")) { if (!Array.isArray(message.elements)) return "elements: array expected"; for (let i = 0; i < message.elements.length; ++i) { - let error = $root.Authentication.SwitchListElement.verify(message.elements[i], long + 1); + let error = $root.Authentication.SwitchListElement.verify(message.elements[i]); if (error) return "elements." + error; } @@ -6313,13 +5969,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SwitchListResponse} SwitchListResponse */ - SwitchListResponse.fromObject = function fromObject(object, long) { + SwitchListResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SwitchListResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SwitchListResponse(); if (object.elements) { if (!Array.isArray(object.elements)) @@ -6328,7 +5980,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.elements.length; ++i) { if (typeof object.elements[i] !== "object") throw TypeError(".Authentication.SwitchListResponse.elements: object expected"); - message.elements[i] = $root.Authentication.SwitchListElement.fromObject(object.elements[i], long + 1); + message.elements[i] = $root.Authentication.SwitchListElement.fromObject(object.elements[i]); } } return message; @@ -6343,20 +5995,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SwitchListResponse.toObject = function toObject(message, options, q) { + SwitchListResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.elements = []; if (message.elements && message.elements.length) { object.elements = []; for (let j = 0; j < message.elements.length; ++j) - object.elements[j] = $root.Authentication.SwitchListElement.toObject(message.elements[j], options, q + 1); + object.elements[j] = $root.Authentication.SwitchListElement.toObject(message.elements[j], options); } return object; }; @@ -6415,7 +6063,7 @@ export const Authentication = $root.Authentication = (() => { function SsoUserInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -6488,13 +6136,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoUserInfo.encode = function encode(message, writer, q) { + SsoUserInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.companyName != null && Object.hasOwnProperty.call(message, "companyName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.companyName); if (message.samlRequest != null && Object.hasOwnProperty.call(message, "samlRequest")) @@ -6534,18 +6178,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoUserInfo.decode = function decode(reader, length, error, long) { + SsoUserInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SsoUserInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.companyName = reader.string(); @@ -6572,7 +6210,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -6603,13 +6241,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoUserInfo.verify = function verify(message, long) { + SsoUserInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.companyName != null && message.hasOwnProperty("companyName")) if (!$util.isString(message.companyName)) return "companyName: string expected"; @@ -6639,13 +6273,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SsoUserInfo} SsoUserInfo */ - SsoUserInfo.fromObject = function fromObject(object, long) { + SsoUserInfo.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SsoUserInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SsoUserInfo(); if (object.companyName != null) message.companyName = String(object.companyName); @@ -6671,13 +6301,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoUserInfo.toObject = function toObject(message, options, q) { + SsoUserInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.companyName = ""; @@ -6756,7 +6382,7 @@ export const Authentication = $root.Authentication = (() => { this.OBSOLETE_FIELD = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -6813,23 +6439,19 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PreLoginResponse.encode = function encode(message, writer, q) { + PreLoginResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.deviceStatus); if (message.salt != null && message.salt.length) for (let i = 0; i < message.salt.length; ++i) - $root.Authentication.Salt.encode(message.salt[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Authentication.Salt.encode(message.salt[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.OBSOLETE_FIELD != null && message.OBSOLETE_FIELD.length) for (let i = 0; i < message.OBSOLETE_FIELD.length; ++i) - $root.Authentication.TwoFactorChannel.encode(message.OBSOLETE_FIELD[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Authentication.TwoFactorChannel.encode(message.OBSOLETE_FIELD[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.ssoUserInfo != null && Object.hasOwnProperty.call(message, "ssoUserInfo")) - $root.Authentication.SsoUserInfo.encode(message.ssoUserInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Authentication.SsoUserInfo.encode(message.ssoUserInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -6857,18 +6479,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PreLoginResponse.decode = function decode(reader, length, error, long) { + PreLoginResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PreLoginResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.deviceStatus = reader.int32(); @@ -6877,21 +6493,21 @@ export const Authentication = $root.Authentication = (() => { case 2: { if (!(message.salt && message.salt.length)) message.salt = []; - message.salt.push($root.Authentication.Salt.decode(reader, reader.uint32(), undefined, long + 1)); + message.salt.push($root.Authentication.Salt.decode(reader, reader.uint32())); break; } case 3: { if (!(message.OBSOLETE_FIELD && message.OBSOLETE_FIELD.length)) message.OBSOLETE_FIELD = []; - message.OBSOLETE_FIELD.push($root.Authentication.TwoFactorChannel.decode(reader, reader.uint32(), undefined, long + 1)); + message.OBSOLETE_FIELD.push($root.Authentication.TwoFactorChannel.decode(reader, reader.uint32())); break; } case 4: { - message.ssoUserInfo = $root.Authentication.SsoUserInfo.decode(reader, reader.uint32(), undefined, long + 1); + message.ssoUserInfo = $root.Authentication.SsoUserInfo.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -6922,13 +6538,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PreLoginResponse.verify = function verify(message, long) { + PreLoginResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) switch (message.deviceStatus) { default: @@ -6943,7 +6555,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.salt)) return "salt: array expected"; for (let i = 0; i < message.salt.length; ++i) { - let error = $root.Authentication.Salt.verify(message.salt[i], long + 1); + let error = $root.Authentication.Salt.verify(message.salt[i]); if (error) return "salt." + error; } @@ -6952,13 +6564,13 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.OBSOLETE_FIELD)) return "OBSOLETE_FIELD: array expected"; for (let i = 0; i < message.OBSOLETE_FIELD.length; ++i) { - let error = $root.Authentication.TwoFactorChannel.verify(message.OBSOLETE_FIELD[i], long + 1); + let error = $root.Authentication.TwoFactorChannel.verify(message.OBSOLETE_FIELD[i]); if (error) return "OBSOLETE_FIELD." + error; } } if (message.ssoUserInfo != null && message.hasOwnProperty("ssoUserInfo")) { - let error = $root.Authentication.SsoUserInfo.verify(message.ssoUserInfo, long + 1); + let error = $root.Authentication.SsoUserInfo.verify(message.ssoUserInfo); if (error) return "ssoUserInfo." + error; } @@ -6973,13 +6585,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PreLoginResponse} PreLoginResponse */ - PreLoginResponse.fromObject = function fromObject(object, long) { + PreLoginResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PreLoginResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PreLoginResponse(); switch (object.deviceStatus) { default: @@ -7012,7 +6620,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.salt.length; ++i) { if (typeof object.salt[i] !== "object") throw TypeError(".Authentication.PreLoginResponse.salt: object expected"); - message.salt[i] = $root.Authentication.Salt.fromObject(object.salt[i], long + 1); + message.salt[i] = $root.Authentication.Salt.fromObject(object.salt[i]); } } if (object.OBSOLETE_FIELD) { @@ -7022,13 +6630,13 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.OBSOLETE_FIELD.length; ++i) { if (typeof object.OBSOLETE_FIELD[i] !== "object") throw TypeError(".Authentication.PreLoginResponse.OBSOLETE_FIELD: object expected"); - message.OBSOLETE_FIELD[i] = $root.Authentication.TwoFactorChannel.fromObject(object.OBSOLETE_FIELD[i], long + 1); + message.OBSOLETE_FIELD[i] = $root.Authentication.TwoFactorChannel.fromObject(object.OBSOLETE_FIELD[i]); } } if (object.ssoUserInfo != null) { if (typeof object.ssoUserInfo !== "object") throw TypeError(".Authentication.PreLoginResponse.ssoUserInfo: object expected"); - message.ssoUserInfo = $root.Authentication.SsoUserInfo.fromObject(object.ssoUserInfo, long + 1); + message.ssoUserInfo = $root.Authentication.SsoUserInfo.fromObject(object.ssoUserInfo); } return message; }; @@ -7042,13 +6650,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PreLoginResponse.toObject = function toObject(message, options, q) { + PreLoginResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.salt = []; @@ -7063,15 +6667,15 @@ export const Authentication = $root.Authentication = (() => { if (message.salt && message.salt.length) { object.salt = []; for (let j = 0; j < message.salt.length; ++j) - object.salt[j] = $root.Authentication.Salt.toObject(message.salt[j], options, q + 1); + object.salt[j] = $root.Authentication.Salt.toObject(message.salt[j], options); } if (message.OBSOLETE_FIELD && message.OBSOLETE_FIELD.length) { object.OBSOLETE_FIELD = []; for (let j = 0; j < message.OBSOLETE_FIELD.length; ++j) - object.OBSOLETE_FIELD[j] = $root.Authentication.TwoFactorChannel.toObject(message.OBSOLETE_FIELD[j], options, q + 1); + object.OBSOLETE_FIELD[j] = $root.Authentication.TwoFactorChannel.toObject(message.OBSOLETE_FIELD[j], options); } if (message.ssoUserInfo != null && message.hasOwnProperty("ssoUserInfo")) - object.ssoUserInfo = $root.Authentication.SsoUserInfo.toObject(message.ssoUserInfo, options, q + 1); + object.ssoUserInfo = $root.Authentication.SsoUserInfo.toObject(message.ssoUserInfo, options); return object; }; @@ -7124,7 +6728,7 @@ export const Authentication = $root.Authentication = (() => { function LoginAsUserRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -7157,13 +6761,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoginAsUserRequest.encode = function encode(message, writer, q) { + LoginAsUserRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); return writer; @@ -7193,25 +6793,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoginAsUserRequest.decode = function decode(reader, length, error, long) { + LoginAsUserRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.LoginAsUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -7242,13 +6836,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoginAsUserRequest.verify = function verify(message, long) { + LoginAsUserRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -7263,13 +6853,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.LoginAsUserRequest} LoginAsUserRequest */ - LoginAsUserRequest.fromObject = function fromObject(object, long) { + LoginAsUserRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.LoginAsUserRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.LoginAsUserRequest(); if (object.username != null) message.username = String(object.username); @@ -7285,13 +6871,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoginAsUserRequest.toObject = function toObject(message, options, q) { + LoginAsUserRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.username = ""; @@ -7350,7 +6932,7 @@ export const Authentication = $root.Authentication = (() => { function LoginAsUserResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -7391,13 +6973,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoginAsUserResponse.encode = function encode(message, writer, q) { + LoginAsUserResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSessionToken); if (message.encryptedSharedAccountKey != null && Object.hasOwnProperty.call(message, "encryptedSharedAccountKey")) @@ -7429,18 +7007,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoginAsUserResponse.decode = function decode(reader, length, error, long) { + LoginAsUserResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.LoginAsUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedSessionToken = reader.bytes(); @@ -7451,7 +7023,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -7482,13 +7054,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoginAsUserResponse.verify = function verify(message, long) { + LoginAsUserResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) return "encryptedSessionToken: buffer expected"; @@ -7506,13 +7074,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.LoginAsUserResponse} LoginAsUserResponse */ - LoginAsUserResponse.fromObject = function fromObject(object, long) { + LoginAsUserResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.LoginAsUserResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.LoginAsUserResponse(); if (object.encryptedSessionToken != null) if (typeof object.encryptedSessionToken === "string") @@ -7536,13 +7100,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoginAsUserResponse.toObject = function toObject(message, options, q) { + LoginAsUserResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -7632,7 +7192,7 @@ export const Authentication = $root.Authentication = (() => { function ValidateAuthHashRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -7681,13 +7241,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateAuthHashRequest.encode = function encode(message, writer, q) { + ValidateAuthHashRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.passwordMethod != null && Object.hasOwnProperty.call(message, "passwordMethod")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.passwordMethod); if (message.authResponse != null && Object.hasOwnProperty.call(message, "authResponse")) @@ -7721,18 +7277,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateAuthHashRequest.decode = function decode(reader, length, error, long) { + ValidateAuthHashRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ValidateAuthHashRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.passwordMethod = reader.int32(); @@ -7747,7 +7297,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -7778,13 +7328,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateAuthHashRequest.verify = function verify(message, long) { + ValidateAuthHashRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.passwordMethod != null && message.hasOwnProperty("passwordMethod")) switch (message.passwordMethod) { default: @@ -7810,13 +7356,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ValidateAuthHashRequest} ValidateAuthHashRequest */ - ValidateAuthHashRequest.fromObject = function fromObject(object, long) { + ValidateAuthHashRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ValidateAuthHashRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ValidateAuthHashRequest(); switch (object.passwordMethod) { default: @@ -7856,13 +7398,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateAuthHashRequest.toObject = function toObject(message, options, q) { + ValidateAuthHashRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.passwordMethod = options.enums === String ? "ENTERED" : 0; @@ -8028,7 +7566,7 @@ export const Authentication = $root.Authentication = (() => { this.capabilities = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -8125,13 +7663,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorChannelInfo.encode = function encode(message, writer, q) { + TwoFactorChannelInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.channelType != null && Object.hasOwnProperty.call(message, "channelType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.channelType); if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) @@ -8178,18 +7712,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorChannelInfo.decode = function decode(reader, length, error, long) { + TwoFactorChannelInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorChannelInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.channelType = reader.int32(); @@ -8230,7 +7758,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -8261,13 +7789,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorChannelInfo.verify = function verify(message, long) { + TwoFactorChannelInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.channelType != null && message.hasOwnProperty("channelType")) switch (message.channelType) { default: @@ -8341,13 +7865,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorChannelInfo} TwoFactorChannelInfo */ - TwoFactorChannelInfo.fromObject = function fromObject(object, long) { + TwoFactorChannelInfo.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorChannelInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorChannelInfo(); switch (object.channelType) { default: @@ -8449,7 +7969,7 @@ export const Authentication = $root.Authentication = (() => { } if (object.createdOn != null) if ($util.Long) - message.createdOn = $util.Long.fromValue(object.createdOn, false); + (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; else if (typeof object.createdOn === "string") message.createdOn = parseInt(object.createdOn, 10); else if (typeof object.createdOn === "number") @@ -8500,13 +8020,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorChannelInfo.toObject = function toObject(message, options, q) { + TwoFactorChannelInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.capabilities = []; @@ -8525,9 +8041,9 @@ export const Authentication = $root.Authentication = (() => { object.maxExpiration = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.createdOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.createdOn = options.longs === String ? "0" : 0; object.lastFrequency = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; } if (message.channelType != null && message.hasOwnProperty("channelType")) @@ -8548,9 +8064,7 @@ export const Authentication = $root.Authentication = (() => { if (message.maxExpiration != null && message.hasOwnProperty("maxExpiration")) object.maxExpiration = options.enums === String ? $root.Authentication.TwoFactorExpiration[message.maxExpiration] === undefined ? message.maxExpiration : $root.Authentication.TwoFactorExpiration[message.maxExpiration] : message.maxExpiration; if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.createdOn = typeof message.createdOn === "number" ? BigInt(message.createdOn) : $util.Long.fromBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0, false).toBigInt(); - else if (typeof message.createdOn === "number") + if (typeof message.createdOn === "number") object.createdOn = options.longs === String ? String(message.createdOn) : message.createdOn; else object.createdOn = options.longs === String ? $util.Long.prototype.toString.call(message.createdOn) : options.longs === Number ? new $util.LongBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0).toNumber() : message.createdOn; @@ -8634,7 +8148,7 @@ export const Authentication = $root.Authentication = (() => { this.capabilities = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -8691,13 +8205,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorDuoStatus.encode = function encode(message, writer, q) { + TwoFactorDuoStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.capabilities != null && message.capabilities.length) for (let i = 0; i < message.capabilities.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.capabilities[i]); @@ -8734,18 +8244,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorDuoStatus.decode = function decode(reader, length, error, long) { + TwoFactorDuoStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorDuoStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.capabilities && message.capabilities.length)) @@ -8766,7 +8270,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -8797,13 +8301,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorDuoStatus.verify = function verify(message, long) { + TwoFactorDuoStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.capabilities != null && message.hasOwnProperty("capabilities")) { if (!Array.isArray(message.capabilities)) return "capabilities: array expected"; @@ -8831,13 +8331,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorDuoStatus} TwoFactorDuoStatus */ - TwoFactorDuoStatus.fromObject = function fromObject(object, long) { + TwoFactorDuoStatus.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorDuoStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorDuoStatus(); if (object.capabilities) { if (!Array.isArray(object.capabilities)) @@ -8864,13 +8360,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorDuoStatus.toObject = function toObject(message, options, q) { + TwoFactorDuoStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.capabilities = []; @@ -8946,7 +8438,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorAddRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -9011,13 +8503,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorAddRequest.encode = function encode(message, writer, q) { + TwoFactorAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.channelType != null && Object.hasOwnProperty.call(message, "channelType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.channelType); if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) @@ -9055,18 +8543,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorAddRequest.decode = function decode(reader, length, error, long) { + TwoFactorAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.channelType = reader.int32(); @@ -9089,7 +8571,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -9120,13 +8602,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorAddRequest.verify = function verify(message, long) { + TwoFactorAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.channelType != null && message.hasOwnProperty("channelType")) switch (message.channelType) { default: @@ -9176,13 +8654,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorAddRequest} TwoFactorAddRequest */ - TwoFactorAddRequest.fromObject = function fromObject(object, long) { + TwoFactorAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorAddRequest(); switch (object.channelType) { default: @@ -9289,13 +8763,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorAddRequest.toObject = function toObject(message, options, q) { + TwoFactorAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.channelType = options.enums === String ? "TWO_FA_CT_NONE" : 0; @@ -9373,7 +8843,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorRenameRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -9414,13 +8884,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorRenameRequest.encode = function encode(message, writer, q) { + TwoFactorRenameRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.channelUid); if (message.channelName != null && Object.hasOwnProperty.call(message, "channelName")) @@ -9452,18 +8918,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorRenameRequest.decode = function decode(reader, length, error, long) { + TwoFactorRenameRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorRenameRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.channelUid = reader.bytes(); @@ -9474,7 +8934,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -9505,13 +8965,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorRenameRequest.verify = function verify(message, long) { + TwoFactorRenameRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.channelUid != null && message.hasOwnProperty("channelUid")) if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) return "channelUid: buffer expected"; @@ -9529,13 +8985,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorRenameRequest} TwoFactorRenameRequest */ - TwoFactorRenameRequest.fromObject = function fromObject(object, long) { + TwoFactorRenameRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorRenameRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorRenameRequest(); if (object.channelUid != null) if (typeof object.channelUid === "string") @@ -9556,13 +9008,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorRenameRequest.toObject = function toObject(message, options, q) { + TwoFactorRenameRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -9632,7 +9080,7 @@ export const Authentication = $root.Authentication = (() => { this.backupKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -9673,13 +9121,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorAddResponse.encode = function encode(message, writer, q) { + TwoFactorAddResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.challenge); if (message.backupKeys != null && message.backupKeys.length) @@ -9712,18 +9156,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorAddResponse.decode = function decode(reader, length, error, long) { + TwoFactorAddResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.challenge = reader.string(); @@ -9736,7 +9174,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -9767,13 +9205,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorAddResponse.verify = function verify(message, long) { + TwoFactorAddResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.challenge != null && message.hasOwnProperty("challenge")) if (!$util.isString(message.challenge)) return "challenge: string expected"; @@ -9795,13 +9229,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorAddResponse} TwoFactorAddResponse */ - TwoFactorAddResponse.fromObject = function fromObject(object, long) { + TwoFactorAddResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorAddResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorAddResponse(); if (object.challenge != null) message.challenge = String(object.challenge); @@ -9824,13 +9254,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorAddResponse.toObject = function toObject(message, options, q) { + TwoFactorAddResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.backupKeys = []; @@ -9895,7 +9321,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorDeleteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -9928,13 +9354,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorDeleteRequest.encode = function encode(message, writer, q) { + TwoFactorDeleteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.channelUid); return writer; @@ -9964,25 +9386,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorDeleteRequest.decode = function decode(reader, length, error, long) { + TwoFactorDeleteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorDeleteRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.channelUid = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -10013,13 +9429,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorDeleteRequest.verify = function verify(message, long) { + TwoFactorDeleteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.channelUid != null && message.hasOwnProperty("channelUid")) if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) return "channelUid: buffer expected"; @@ -10034,13 +9446,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorDeleteRequest} TwoFactorDeleteRequest */ - TwoFactorDeleteRequest.fromObject = function fromObject(object, long) { + TwoFactorDeleteRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorDeleteRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorDeleteRequest(); if (object.channelUid != null) if (typeof object.channelUid === "string") @@ -10059,13 +9467,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorDeleteRequest.toObject = function toObject(message, options, q) { + TwoFactorDeleteRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -10131,7 +9535,7 @@ export const Authentication = $root.Authentication = (() => { this.channels = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -10172,16 +9576,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorListResponse.encode = function encode(message, writer, q) { + TwoFactorListResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.channels != null && message.channels.length) for (let i = 0; i < message.channels.length; ++i) - $root.Authentication.TwoFactorChannelInfo.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.TwoFactorChannelInfo.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.expireOn != null && Object.hasOwnProperty.call(message, "expireOn")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expireOn); return writer; @@ -10211,23 +9611,17 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorListResponse.decode = function decode(reader, length, error, long) { + TwoFactorListResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorListResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.channels && message.channels.length)) message.channels = []; - message.channels.push($root.Authentication.TwoFactorChannelInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.channels.push($root.Authentication.TwoFactorChannelInfo.decode(reader, reader.uint32())); break; } case 2: { @@ -10235,7 +9629,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -10266,18 +9660,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorListResponse.verify = function verify(message, long) { + TwoFactorListResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.channels != null && message.hasOwnProperty("channels")) { if (!Array.isArray(message.channels)) return "channels: array expected"; for (let i = 0; i < message.channels.length; ++i) { - let error = $root.Authentication.TwoFactorChannelInfo.verify(message.channels[i], long + 1); + let error = $root.Authentication.TwoFactorChannelInfo.verify(message.channels[i]); if (error) return "channels." + error; } @@ -10296,13 +9686,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorListResponse} TwoFactorListResponse */ - TwoFactorListResponse.fromObject = function fromObject(object, long) { + TwoFactorListResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorListResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorListResponse(); if (object.channels) { if (!Array.isArray(object.channels)) @@ -10311,12 +9697,12 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.channels.length; ++i) { if (typeof object.channels[i] !== "object") throw TypeError(".Authentication.TwoFactorListResponse.channels: object expected"); - message.channels[i] = $root.Authentication.TwoFactorChannelInfo.fromObject(object.channels[i], long + 1); + message.channels[i] = $root.Authentication.TwoFactorChannelInfo.fromObject(object.channels[i]); } } if (object.expireOn != null) if ($util.Long) - message.expireOn = $util.Long.fromValue(object.expireOn, false); + (message.expireOn = $util.Long.fromValue(object.expireOn)).unsigned = false; else if (typeof object.expireOn === "string") message.expireOn = parseInt(object.expireOn, 10); else if (typeof object.expireOn === "number") @@ -10335,31 +9721,25 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorListResponse.toObject = function toObject(message, options, q) { + TwoFactorListResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.channels = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expireOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expireOn = options.longs === String ? "0" : 0; if (message.channels && message.channels.length) { object.channels = []; for (let j = 0; j < message.channels.length; ++j) - object.channels[j] = $root.Authentication.TwoFactorChannelInfo.toObject(message.channels[j], options, q + 1); + object.channels[j] = $root.Authentication.TwoFactorChannelInfo.toObject(message.channels[j], options); } if (message.expireOn != null && message.hasOwnProperty("expireOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expireOn = typeof message.expireOn === "number" ? BigInt(message.expireOn) : $util.Long.fromBits(message.expireOn.low >>> 0, message.expireOn.high >>> 0, false).toBigInt(); - else if (typeof message.expireOn === "number") + if (typeof message.expireOn === "number") object.expireOn = options.longs === String ? String(message.expireOn) : message.expireOn; else object.expireOn = options.longs === String ? $util.Long.prototype.toString.call(message.expireOn) : options.longs === Number ? new $util.LongBits(message.expireOn.low >>> 0, message.expireOn.high >>> 0).toNumber() : message.expireOn; @@ -10415,7 +9795,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorUpdateExpirationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -10448,13 +9828,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorUpdateExpirationRequest.encode = function encode(message, writer, q) { + TwoFactorUpdateExpirationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.expireIn != null && Object.hasOwnProperty.call(message, "expireIn")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.expireIn); return writer; @@ -10484,25 +9860,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorUpdateExpirationRequest.decode = function decode(reader, length, error, long) { + TwoFactorUpdateExpirationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorUpdateExpirationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.expireIn = reader.int32(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -10533,13 +9903,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorUpdateExpirationRequest.verify = function verify(message, long) { + TwoFactorUpdateExpirationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.expireIn != null && message.hasOwnProperty("expireIn")) switch (message.expireIn) { default: @@ -10563,13 +9929,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorUpdateExpirationRequest} TwoFactorUpdateExpirationRequest */ - TwoFactorUpdateExpirationRequest.fromObject = function fromObject(object, long) { + TwoFactorUpdateExpirationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorUpdateExpirationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorUpdateExpirationRequest(); switch (object.expireIn) { default: @@ -10615,13 +9977,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorUpdateExpirationRequest.toObject = function toObject(message, options, q) { + TwoFactorUpdateExpirationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.expireIn = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; @@ -10683,7 +10041,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorValidateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -10748,13 +10106,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorValidateRequest.encode = function encode(message, writer, q) { + TwoFactorValidateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) @@ -10792,18 +10146,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorValidateRequest.decode = function decode(reader, length, error, long) { + TwoFactorValidateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorValidateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedLoginToken = reader.bytes(); @@ -10826,7 +10174,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -10857,13 +10205,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorValidateRequest.verify = function verify(message, long) { + TwoFactorValidateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) return "encryptedLoginToken: buffer expected"; @@ -10910,13 +10254,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorValidateRequest} TwoFactorValidateRequest */ - TwoFactorValidateRequest.fromObject = function fromObject(object, long) { + TwoFactorValidateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorValidateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorValidateRequest(); if (object.encryptedLoginToken != null) if (typeof object.encryptedLoginToken === "string") @@ -11014,13 +10354,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorValidateRequest.toObject = function toObject(message, options, q) { + TwoFactorValidateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -11103,7 +10439,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorValidateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -11136,13 +10472,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorValidateResponse.encode = function encode(message, writer, q) { + TwoFactorValidateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); return writer; @@ -11172,25 +10504,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorValidateResponse.decode = function decode(reader, length, error, long) { + TwoFactorValidateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorValidateResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedLoginToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -11221,13 +10547,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorValidateResponse.verify = function verify(message, long) { + TwoFactorValidateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) return "encryptedLoginToken: buffer expected"; @@ -11242,13 +10564,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorValidateResponse} TwoFactorValidateResponse */ - TwoFactorValidateResponse.fromObject = function fromObject(object, long) { + TwoFactorValidateResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorValidateResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorValidateResponse(); if (object.encryptedLoginToken != null) if (typeof object.encryptedLoginToken === "string") @@ -11267,13 +10585,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorValidateResponse.toObject = function toObject(message, options, q) { + TwoFactorValidateResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -11340,7 +10654,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorSendPushRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -11397,13 +10711,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorSendPushRequest.encode = function encode(message, writer, q) { + TwoFactorSendPushRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); if (message.pushType != null && Object.hasOwnProperty.call(message, "pushType")) @@ -11439,18 +10749,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorSendPushRequest.decode = function decode(reader, length, error, long) { + TwoFactorSendPushRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorSendPushRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedLoginToken = reader.bytes(); @@ -11469,7 +10773,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -11500,13 +10804,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorSendPushRequest.verify = function verify(message, long) { + TwoFactorSendPushRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) return "encryptedLoginToken: buffer expected"; @@ -11549,13 +10849,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TwoFactorSendPushRequest} TwoFactorSendPushRequest */ - TwoFactorSendPushRequest.fromObject = function fromObject(object, long) { + TwoFactorSendPushRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TwoFactorSendPushRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TwoFactorSendPushRequest(); if (object.encryptedLoginToken != null) if (typeof object.encryptedLoginToken === "string") @@ -11647,13 +10943,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorSendPushRequest.toObject = function toObject(message, options, q) { + TwoFactorSendPushRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -11737,7 +11029,7 @@ export const Authentication = $root.Authentication = (() => { function License(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -11802,13 +11094,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - License.encode = function encode(message, writer, q) { + License.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.created != null && Object.hasOwnProperty.call(message, "created")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.created); if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) @@ -11846,18 +11134,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - License.decode = function decode(reader, length, error, long) { + License.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.License(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.created = reader.int64(); @@ -11880,7 +11162,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -11911,13 +11193,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - License.verify = function verify(message, long) { + License.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.created != null && message.hasOwnProperty("created")) if (!$util.isInteger(message.created) && !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high))) return "created: integer|Long expected"; @@ -11951,17 +11229,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.License} License */ - License.fromObject = function fromObject(object, long) { + License.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.License) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.License(); if (object.created != null) if ($util.Long) - message.created = $util.Long.fromValue(object.created, false); + (message.created = $util.Long.fromValue(object.created)).unsigned = false; else if (typeof object.created === "string") message.created = parseInt(object.created, 10); else if (typeof object.created === "number") @@ -11970,7 +11244,7 @@ export const Authentication = $root.Authentication = (() => { message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -12017,40 +11291,32 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - License.toObject = function toObject(message, options, q) { + License.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.created = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.created = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.licenseStatus = options.enums === String ? "OTHER" : 0; object.paid = false; object.message = ""; } if (message.created != null && message.hasOwnProperty("created")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.created = typeof message.created === "number" ? BigInt(message.created) : $util.Long.fromBits(message.created.low >>> 0, message.created.high >>> 0, false).toBigInt(); - else if (typeof message.created === "number") + if (typeof message.created === "number") object.created = options.longs === String ? String(message.created) : message.created; else object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -12132,7 +11398,7 @@ export const Authentication = $root.Authentication = (() => { function OwnerlessRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -12181,13 +11447,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OwnerlessRecord.encode = function encode(message, writer, q) { + OwnerlessRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) @@ -12221,18 +11483,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OwnerlessRecord.decode = function decode(reader, length, error, long) { + OwnerlessRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.OwnerlessRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -12247,7 +11503,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -12278,13 +11534,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OwnerlessRecord.verify = function verify(message, long) { + OwnerlessRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -12305,13 +11557,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.OwnerlessRecord} OwnerlessRecord */ - OwnerlessRecord.fromObject = function fromObject(object, long) { + OwnerlessRecord.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.OwnerlessRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.OwnerlessRecord(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -12337,13 +11585,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OwnerlessRecord.toObject = function toObject(message, options, q) { + OwnerlessRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -12421,7 +11665,7 @@ export const Authentication = $root.Authentication = (() => { this.ownerlessRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -12454,16 +11698,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OwnerlessRecords.encode = function encode(message, writer, q) { + OwnerlessRecords.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ownerlessRecord != null && message.ownerlessRecord.length) for (let i = 0; i < message.ownerlessRecord.length; ++i) - $root.Authentication.OwnerlessRecord.encode(message.ownerlessRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.OwnerlessRecord.encode(message.ownerlessRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -12491,27 +11731,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OwnerlessRecords.decode = function decode(reader, length, error, long) { + OwnerlessRecords.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.OwnerlessRecords(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.ownerlessRecord && message.ownerlessRecord.length)) message.ownerlessRecord = []; - message.ownerlessRecord.push($root.Authentication.OwnerlessRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.ownerlessRecord.push($root.Authentication.OwnerlessRecord.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -12542,18 +11776,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OwnerlessRecords.verify = function verify(message, long) { + OwnerlessRecords.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ownerlessRecord != null && message.hasOwnProperty("ownerlessRecord")) { if (!Array.isArray(message.ownerlessRecord)) return "ownerlessRecord: array expected"; for (let i = 0; i < message.ownerlessRecord.length; ++i) { - let error = $root.Authentication.OwnerlessRecord.verify(message.ownerlessRecord[i], long + 1); + let error = $root.Authentication.OwnerlessRecord.verify(message.ownerlessRecord[i]); if (error) return "ownerlessRecord." + error; } @@ -12569,13 +11799,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.OwnerlessRecords} OwnerlessRecords */ - OwnerlessRecords.fromObject = function fromObject(object, long) { + OwnerlessRecords.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.OwnerlessRecords) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.OwnerlessRecords(); if (object.ownerlessRecord) { if (!Array.isArray(object.ownerlessRecord)) @@ -12584,7 +11810,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.ownerlessRecord.length; ++i) { if (typeof object.ownerlessRecord[i] !== "object") throw TypeError(".Authentication.OwnerlessRecords.ownerlessRecord: object expected"); - message.ownerlessRecord[i] = $root.Authentication.OwnerlessRecord.fromObject(object.ownerlessRecord[i], long + 1); + message.ownerlessRecord[i] = $root.Authentication.OwnerlessRecord.fromObject(object.ownerlessRecord[i]); } } return message; @@ -12599,20 +11825,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OwnerlessRecords.toObject = function toObject(message, options, q) { + OwnerlessRecords.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.ownerlessRecord = []; if (message.ownerlessRecord && message.ownerlessRecord.length) { object.ownerlessRecord = []; for (let j = 0; j < message.ownerlessRecord.length; ++j) - object.ownerlessRecord[j] = $root.Authentication.OwnerlessRecord.toObject(message.ownerlessRecord[j], options, q + 1); + object.ownerlessRecord[j] = $root.Authentication.OwnerlessRecord.toObject(message.ownerlessRecord[j], options); } return object; }; @@ -12674,7 +11896,7 @@ export const Authentication = $root.Authentication = (() => { function UserAuthRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -12771,13 +11993,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserAuthRequest.encode = function encode(message, writer, q) { + UserAuthRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) @@ -12823,18 +12041,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserAuthRequest.decode = function decode(reader, length, error, long) { + UserAuthRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserAuthRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); @@ -12873,7 +12085,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -12904,13 +12116,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserAuthRequest.verify = function verify(message, long) { + UserAuthRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -12959,13 +12167,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.UserAuthRequest} UserAuthRequest */ - UserAuthRequest.fromObject = function fromObject(object, long) { + UserAuthRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.UserAuthRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.UserAuthRequest(); if (object.uid != null) if (typeof object.uid === "string") @@ -13046,13 +12250,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserAuthRequest.toObject = function toObject(message, options, q) { + UserAuthRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -13166,7 +12366,7 @@ export const Authentication = $root.Authentication = (() => { this.uid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -13199,13 +12399,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UidRequest.encode = function encode(message, writer, q) { + UidRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && message.uid.length) for (let i = 0; i < message.uid.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid[i]); @@ -13236,18 +12432,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UidRequest.decode = function decode(reader, length, error, long) { + UidRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UidRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.uid && message.uid.length)) @@ -13256,7 +12446,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -13287,13 +12477,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UidRequest.verify = function verify(message, long) { + UidRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) { if (!Array.isArray(message.uid)) return "uid: array expected"; @@ -13312,13 +12498,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.UidRequest} UidRequest */ - UidRequest.fromObject = function fromObject(object, long) { + UidRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.UidRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.UidRequest(); if (object.uid) { if (!Array.isArray(object.uid)) @@ -13342,13 +12524,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UidRequest.toObject = function toObject(message, options, q) { + UidRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uid = []; @@ -13415,7 +12593,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceUpdateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -13496,13 +12674,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceUpdateRequest.encode = function encode(message, writer, q) { + DeviceUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) @@ -13544,18 +12718,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceUpdateRequest.decode = function decode(reader, length, error, long) { + DeviceUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -13586,7 +12754,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -13617,13 +12785,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceUpdateRequest.verify = function verify(message, long) { + DeviceUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -13670,13 +12834,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeviceUpdateRequest} DeviceUpdateRequest */ - DeviceUpdateRequest.fromObject = function fromObject(object, long) { + DeviceUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeviceUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeviceUpdateRequest(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -13754,13 +12914,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceUpdateRequest.toObject = function toObject(message, options, q) { + DeviceUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -13855,7 +13011,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceUpdateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -13936,13 +13092,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceUpdateResponse.encode = function encode(message, writer, q) { + DeviceUpdateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) @@ -13984,18 +13136,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceUpdateResponse.decode = function decode(reader, length, error, long) { + DeviceUpdateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -14026,7 +13172,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -14057,13 +13203,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceUpdateResponse.verify = function verify(message, long) { + DeviceUpdateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -14110,13 +13252,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeviceUpdateResponse} DeviceUpdateResponse */ - DeviceUpdateResponse.fromObject = function fromObject(object, long) { + DeviceUpdateResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeviceUpdateResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeviceUpdateResponse(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -14194,13 +13332,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceUpdateResponse.toObject = function toObject(message, options, q) { + DeviceUpdateResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -14294,7 +13428,7 @@ export const Authentication = $root.Authentication = (() => { function RegisterDeviceInRegionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -14367,13 +13501,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisterDeviceInRegionRequest.encode = function encode(message, writer, q) { + RegisterDeviceInRegionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) @@ -14413,18 +13543,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisterDeviceInRegionRequest.decode = function decode(reader, length, error, long) { + RegisterDeviceInRegionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RegisterDeviceInRegionRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -14451,7 +13575,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -14482,13 +13606,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RegisterDeviceInRegionRequest.verify = function verify(message, long) { + RegisterDeviceInRegionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -14525,13 +13645,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.RegisterDeviceInRegionRequest} RegisterDeviceInRegionRequest */ - RegisterDeviceInRegionRequest.fromObject = function fromObject(object, long) { + RegisterDeviceInRegionRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.RegisterDeviceInRegionRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.RegisterDeviceInRegionRequest(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -14585,13 +13701,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RegisterDeviceInRegionRequest.toObject = function toObject(message, options, q) { + RegisterDeviceInRegionRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -14686,7 +13798,7 @@ export const Authentication = $root.Authentication = (() => { function RegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -14791,17 +13903,13 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegistrationRequest.encode = function encode(message, writer, q) { + RegistrationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) - $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.userAuthRequest != null && Object.hasOwnProperty.call(message, "userAuthRequest")) - $root.Authentication.UserAuthRequest.encode(message.userAuthRequest, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Authentication.UserAuthRequest.encode(message.userAuthRequest, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "encryptedClientKey")) writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedClientKey); if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) @@ -14845,25 +13953,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegistrationRequest.decode = function decode(reader, length, error, long) { + RegistrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32(), undefined, long + 1); + message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32()); break; } case 2: { - message.userAuthRequest = $root.Authentication.UserAuthRequest.decode(reader, reader.uint32(), undefined, long + 1); + message.userAuthRequest = $root.Authentication.UserAuthRequest.decode(reader, reader.uint32()); break; } case 3: { @@ -14899,7 +14001,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -14930,20 +14032,16 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RegistrationRequest.verify = function verify(message, long) { + RegistrationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.authRequest != null && message.hasOwnProperty("authRequest")) { - let error = $root.Authentication.AuthRequest.verify(message.authRequest, long + 1); + let error = $root.Authentication.AuthRequest.verify(message.authRequest); if (error) return "authRequest." + error; } if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) { - let error = $root.Authentication.UserAuthRequest.verify(message.userAuthRequest, long + 1); + let error = $root.Authentication.UserAuthRequest.verify(message.userAuthRequest); if (error) return "userAuthRequest." + error; } @@ -14982,23 +14080,19 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.RegistrationRequest} RegistrationRequest */ - RegistrationRequest.fromObject = function fromObject(object, long) { + RegistrationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.RegistrationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.RegistrationRequest(); if (object.authRequest != null) { if (typeof object.authRequest !== "object") throw TypeError(".Authentication.RegistrationRequest.authRequest: object expected"); - message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest, long + 1); + message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest); } if (object.userAuthRequest != null) { if (typeof object.userAuthRequest !== "object") throw TypeError(".Authentication.RegistrationRequest.userAuthRequest: object expected"); - message.userAuthRequest = $root.Authentication.UserAuthRequest.fromObject(object.userAuthRequest, long + 1); + message.userAuthRequest = $root.Authentication.UserAuthRequest.fromObject(object.userAuthRequest); } if (object.encryptedClientKey != null) if (typeof object.encryptedClientKey === "string") @@ -15049,13 +14143,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RegistrationRequest.toObject = function toObject(message, options, q) { + RegistrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.authRequest = null; @@ -15112,9 +14202,9 @@ export const Authentication = $root.Authentication = (() => { } } if (message.authRequest != null && message.hasOwnProperty("authRequest")) - object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options, q + 1); + object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options); if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) - object.userAuthRequest = $root.Authentication.UserAuthRequest.toObject(message.userAuthRequest, options, q + 1); + object.userAuthRequest = $root.Authentication.UserAuthRequest.toObject(message.userAuthRequest, options); if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) @@ -15187,7 +14277,7 @@ export const Authentication = $root.Authentication = (() => { function ConvertUserToV3Request(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -15252,17 +14342,13 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConvertUserToV3Request.encode = function encode(message, writer, q) { + ConvertUserToV3Request.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) - $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.userAuthRequest != null && Object.hasOwnProperty.call(message, "userAuthRequest")) - $root.Authentication.UserAuthRequest.encode(message.userAuthRequest, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Authentication.UserAuthRequest.encode(message.userAuthRequest, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "encryptedClientKey")) writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedClientKey); if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) @@ -15296,25 +14382,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConvertUserToV3Request.decode = function decode(reader, length, error, long) { + ConvertUserToV3Request.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ConvertUserToV3Request(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32(), undefined, long + 1); + message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32()); break; } case 2: { - message.userAuthRequest = $root.Authentication.UserAuthRequest.decode(reader, reader.uint32(), undefined, long + 1); + message.userAuthRequest = $root.Authentication.UserAuthRequest.decode(reader, reader.uint32()); break; } case 3: { @@ -15330,7 +14410,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -15361,20 +14441,16 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConvertUserToV3Request.verify = function verify(message, long) { + ConvertUserToV3Request.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.authRequest != null && message.hasOwnProperty("authRequest")) { - let error = $root.Authentication.AuthRequest.verify(message.authRequest, long + 1); + let error = $root.Authentication.AuthRequest.verify(message.authRequest); if (error) return "authRequest." + error; } if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) { - let error = $root.Authentication.UserAuthRequest.verify(message.userAuthRequest, long + 1); + let error = $root.Authentication.UserAuthRequest.verify(message.userAuthRequest); if (error) return "userAuthRequest." + error; } @@ -15398,23 +14474,19 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ConvertUserToV3Request} ConvertUserToV3Request */ - ConvertUserToV3Request.fromObject = function fromObject(object, long) { + ConvertUserToV3Request.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ConvertUserToV3Request) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ConvertUserToV3Request(); if (object.authRequest != null) { if (typeof object.authRequest !== "object") throw TypeError(".Authentication.ConvertUserToV3Request.authRequest: object expected"); - message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest, long + 1); + message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest); } if (object.userAuthRequest != null) { if (typeof object.userAuthRequest !== "object") throw TypeError(".Authentication.ConvertUserToV3Request.userAuthRequest: object expected"); - message.userAuthRequest = $root.Authentication.UserAuthRequest.fromObject(object.userAuthRequest, long + 1); + message.userAuthRequest = $root.Authentication.UserAuthRequest.fromObject(object.userAuthRequest); } if (object.encryptedClientKey != null) if (typeof object.encryptedClientKey === "string") @@ -15443,13 +14515,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConvertUserToV3Request.toObject = function toObject(message, options, q) { + ConvertUserToV3Request.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.authRequest = null; @@ -15477,9 +14545,9 @@ export const Authentication = $root.Authentication = (() => { } } if (message.authRequest != null && message.hasOwnProperty("authRequest")) - object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options, q + 1); + object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options); if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) - object.userAuthRequest = $root.Authentication.UserAuthRequest.toObject(message.userAuthRequest, options, q + 1); + object.userAuthRequest = $root.Authentication.UserAuthRequest.toObject(message.userAuthRequest, options); if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) @@ -15538,7 +14606,7 @@ export const Authentication = $root.Authentication = (() => { function RevisionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -15571,13 +14639,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RevisionResponse.encode = function encode(message, writer, q) { + RevisionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); return writer; @@ -15607,25 +14671,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RevisionResponse.decode = function decode(reader, length, error, long) { + RevisionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RevisionResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.revision = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -15656,13 +14714,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RevisionResponse.verify = function verify(message, long) { + RevisionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.revision != null && message.hasOwnProperty("revision")) if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) return "revision: integer|Long expected"; @@ -15677,17 +14731,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.RevisionResponse} RevisionResponse */ - RevisionResponse.fromObject = function fromObject(object, long) { + RevisionResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.RevisionResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.RevisionResponse(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -15706,24 +14756,18 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RevisionResponse.toObject = function toObject(message, options, q) { + RevisionResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -15779,7 +14823,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeEmailRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -15812,13 +14856,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeEmailRequest.encode = function encode(message, writer, q) { + ChangeEmailRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.newEmail != null && Object.hasOwnProperty.call(message, "newEmail")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.newEmail); return writer; @@ -15848,25 +14888,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeEmailRequest.decode = function decode(reader, length, error, long) { + ChangeEmailRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeEmailRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.newEmail = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -15897,13 +14931,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeEmailRequest.verify = function verify(message, long) { + ChangeEmailRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.newEmail != null && message.hasOwnProperty("newEmail")) if (!$util.isString(message.newEmail)) return "newEmail: string expected"; @@ -15918,13 +14948,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ChangeEmailRequest} ChangeEmailRequest */ - ChangeEmailRequest.fromObject = function fromObject(object, long) { + ChangeEmailRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ChangeEmailRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ChangeEmailRequest(); if (object.newEmail != null) message.newEmail = String(object.newEmail); @@ -15940,13 +14966,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeEmailRequest.toObject = function toObject(message, options, q) { + ChangeEmailRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.newEmail = ""; @@ -16004,7 +15026,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeEmailResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -16037,13 +15059,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeEmailResponse.encode = function encode(message, writer, q) { + ChangeEmailResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedChangeEmailToken != null && Object.hasOwnProperty.call(message, "encryptedChangeEmailToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedChangeEmailToken); return writer; @@ -16073,25 +15091,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeEmailResponse.decode = function decode(reader, length, error, long) { + ChangeEmailResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeEmailResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedChangeEmailToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -16122,13 +15134,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeEmailResponse.verify = function verify(message, long) { + ChangeEmailResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedChangeEmailToken != null && message.hasOwnProperty("encryptedChangeEmailToken")) if (!(message.encryptedChangeEmailToken && typeof message.encryptedChangeEmailToken.length === "number" || $util.isString(message.encryptedChangeEmailToken))) return "encryptedChangeEmailToken: buffer expected"; @@ -16143,13 +15151,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ChangeEmailResponse} ChangeEmailResponse */ - ChangeEmailResponse.fromObject = function fromObject(object, long) { + ChangeEmailResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ChangeEmailResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ChangeEmailResponse(); if (object.encryptedChangeEmailToken != null) if (typeof object.encryptedChangeEmailToken === "string") @@ -16168,13 +15172,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeEmailResponse.toObject = function toObject(message, options, q) { + ChangeEmailResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -16238,7 +15238,7 @@ export const Authentication = $root.Authentication = (() => { function EmailVerificationLinkResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -16271,13 +15271,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmailVerificationLinkResponse.encode = function encode(message, writer, q) { + EmailVerificationLinkResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.emailVerified != null && Object.hasOwnProperty.call(message, "emailVerified")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.emailVerified); return writer; @@ -16307,25 +15303,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmailVerificationLinkResponse.decode = function decode(reader, length, error, long) { + EmailVerificationLinkResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EmailVerificationLinkResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.emailVerified = reader.bool(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -16356,13 +15346,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EmailVerificationLinkResponse.verify = function verify(message, long) { + EmailVerificationLinkResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.emailVerified != null && message.hasOwnProperty("emailVerified")) if (typeof message.emailVerified !== "boolean") return "emailVerified: boolean expected"; @@ -16377,13 +15363,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.EmailVerificationLinkResponse} EmailVerificationLinkResponse */ - EmailVerificationLinkResponse.fromObject = function fromObject(object, long) { + EmailVerificationLinkResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.EmailVerificationLinkResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.EmailVerificationLinkResponse(); if (object.emailVerified != null) message.emailVerified = Boolean(object.emailVerified); @@ -16399,13 +15381,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmailVerificationLinkResponse.toObject = function toObject(message, options, q) { + EmailVerificationLinkResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.emailVerified = false; @@ -16464,7 +15442,7 @@ export const Authentication = $root.Authentication = (() => { function SecurityData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -16505,13 +15483,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityData.encode = function encode(message, writer, q) { + SecurityData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -16543,18 +15517,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityData.decode = function decode(reader, length, error, long) { + SecurityData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); @@ -16565,7 +15533,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -16596,13 +15564,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityData.verify = function verify(message, long) { + SecurityData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -16620,13 +15584,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SecurityData} SecurityData */ - SecurityData.fromObject = function fromObject(object, long) { + SecurityData.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SecurityData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SecurityData(); if (object.uid != null) if (typeof object.uid === "string") @@ -16650,13 +15610,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityData.toObject = function toObject(message, options, q) { + SecurityData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -16732,7 +15688,7 @@ export const Authentication = $root.Authentication = (() => { function SecurityScoreData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -16781,13 +15737,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityScoreData.encode = function encode(message, writer, q) { + SecurityScoreData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -16821,18 +15773,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityScoreData.decode = function decode(reader, length, error, long) { + SecurityScoreData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityScoreData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); @@ -16847,7 +15793,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -16878,13 +15824,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityScoreData.verify = function verify(message, long) { + SecurityScoreData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -16905,13 +15847,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SecurityScoreData} SecurityScoreData */ - SecurityScoreData.fromObject = function fromObject(object, long) { + SecurityScoreData.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SecurityScoreData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SecurityScoreData(); if (object.uid != null) if (typeof object.uid === "string") @@ -16925,7 +15863,7 @@ export const Authentication = $root.Authentication = (() => { message.data = object.data; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -16944,13 +15882,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityScoreData.toObject = function toObject(message, options, q) { + SecurityScoreData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -16969,18 +15903,16 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.uid != null && message.hasOwnProperty("uid")) object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -17042,7 +15974,7 @@ export const Authentication = $root.Authentication = (() => { this.recordSecurityScoreData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -17099,24 +16031,20 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityDataRequest.encode = function encode(message, writer, q) { + SecurityDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordSecurityData != null && message.recordSecurityData.length) for (let i = 0; i < message.recordSecurityData.length; ++i) - $root.Authentication.SecurityData.encode(message.recordSecurityData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.SecurityData.encode(message.recordSecurityData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.masterPasswordSecurityData != null && message.masterPasswordSecurityData.length) for (let i = 0; i < message.masterPasswordSecurityData.length; ++i) - $root.Authentication.SecurityData.encode(message.masterPasswordSecurityData[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Authentication.SecurityData.encode(message.masterPasswordSecurityData[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.encryptionType); if (message.recordSecurityScoreData != null && message.recordSecurityScoreData.length) for (let i = 0; i < message.recordSecurityScoreData.length; ++i) - $root.Authentication.SecurityScoreData.encode(message.recordSecurityScoreData[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Authentication.SecurityScoreData.encode(message.recordSecurityScoreData[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -17144,29 +16072,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityDataRequest.decode = function decode(reader, length, error, long) { + SecurityDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordSecurityData && message.recordSecurityData.length)) message.recordSecurityData = []; - message.recordSecurityData.push($root.Authentication.SecurityData.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordSecurityData.push($root.Authentication.SecurityData.decode(reader, reader.uint32())); break; } case 2: { if (!(message.masterPasswordSecurityData && message.masterPasswordSecurityData.length)) message.masterPasswordSecurityData = []; - message.masterPasswordSecurityData.push($root.Authentication.SecurityData.decode(reader, reader.uint32(), undefined, long + 1)); + message.masterPasswordSecurityData.push($root.Authentication.SecurityData.decode(reader, reader.uint32())); break; } case 3: { @@ -17176,11 +16098,11 @@ export const Authentication = $root.Authentication = (() => { case 4: { if (!(message.recordSecurityScoreData && message.recordSecurityScoreData.length)) message.recordSecurityScoreData = []; - message.recordSecurityScoreData.push($root.Authentication.SecurityScoreData.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordSecurityScoreData.push($root.Authentication.SecurityScoreData.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -17211,18 +16133,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityDataRequest.verify = function verify(message, long) { + SecurityDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordSecurityData != null && message.hasOwnProperty("recordSecurityData")) { if (!Array.isArray(message.recordSecurityData)) return "recordSecurityData: array expected"; for (let i = 0; i < message.recordSecurityData.length; ++i) { - let error = $root.Authentication.SecurityData.verify(message.recordSecurityData[i], long + 1); + let error = $root.Authentication.SecurityData.verify(message.recordSecurityData[i]); if (error) return "recordSecurityData." + error; } @@ -17231,7 +16149,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.masterPasswordSecurityData)) return "masterPasswordSecurityData: array expected"; for (let i = 0; i < message.masterPasswordSecurityData.length; ++i) { - let error = $root.Authentication.SecurityData.verify(message.masterPasswordSecurityData[i], long + 1); + let error = $root.Authentication.SecurityData.verify(message.masterPasswordSecurityData[i]); if (error) return "masterPasswordSecurityData." + error; } @@ -17251,7 +16169,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.recordSecurityScoreData)) return "recordSecurityScoreData: array expected"; for (let i = 0; i < message.recordSecurityScoreData.length; ++i) { - let error = $root.Authentication.SecurityScoreData.verify(message.recordSecurityScoreData[i], long + 1); + let error = $root.Authentication.SecurityScoreData.verify(message.recordSecurityScoreData[i]); if (error) return "recordSecurityScoreData." + error; } @@ -17267,13 +16185,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SecurityDataRequest} SecurityDataRequest */ - SecurityDataRequest.fromObject = function fromObject(object, long) { + SecurityDataRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SecurityDataRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SecurityDataRequest(); if (object.recordSecurityData) { if (!Array.isArray(object.recordSecurityData)) @@ -17282,7 +16196,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.recordSecurityData.length; ++i) { if (typeof object.recordSecurityData[i] !== "object") throw TypeError(".Authentication.SecurityDataRequest.recordSecurityData: object expected"); - message.recordSecurityData[i] = $root.Authentication.SecurityData.fromObject(object.recordSecurityData[i], long + 1); + message.recordSecurityData[i] = $root.Authentication.SecurityData.fromObject(object.recordSecurityData[i]); } } if (object.masterPasswordSecurityData) { @@ -17292,7 +16206,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.masterPasswordSecurityData.length; ++i) { if (typeof object.masterPasswordSecurityData[i] !== "object") throw TypeError(".Authentication.SecurityDataRequest.masterPasswordSecurityData: object expected"); - message.masterPasswordSecurityData[i] = $root.Authentication.SecurityData.fromObject(object.masterPasswordSecurityData[i], long + 1); + message.masterPasswordSecurityData[i] = $root.Authentication.SecurityData.fromObject(object.masterPasswordSecurityData[i]); } } switch (object.encryptionType) { @@ -17330,7 +16244,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.recordSecurityScoreData.length; ++i) { if (typeof object.recordSecurityScoreData[i] !== "object") throw TypeError(".Authentication.SecurityDataRequest.recordSecurityScoreData: object expected"); - message.recordSecurityScoreData[i] = $root.Authentication.SecurityScoreData.fromObject(object.recordSecurityScoreData[i], long + 1); + message.recordSecurityScoreData[i] = $root.Authentication.SecurityScoreData.fromObject(object.recordSecurityScoreData[i]); } } return message; @@ -17345,13 +16259,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityDataRequest.toObject = function toObject(message, options, q) { + SecurityDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.recordSecurityData = []; @@ -17363,19 +16273,19 @@ export const Authentication = $root.Authentication = (() => { if (message.recordSecurityData && message.recordSecurityData.length) { object.recordSecurityData = []; for (let j = 0; j < message.recordSecurityData.length; ++j) - object.recordSecurityData[j] = $root.Authentication.SecurityData.toObject(message.recordSecurityData[j], options, q + 1); + object.recordSecurityData[j] = $root.Authentication.SecurityData.toObject(message.recordSecurityData[j], options); } if (message.masterPasswordSecurityData && message.masterPasswordSecurityData.length) { object.masterPasswordSecurityData = []; for (let j = 0; j < message.masterPasswordSecurityData.length; ++j) - object.masterPasswordSecurityData[j] = $root.Authentication.SecurityData.toObject(message.masterPasswordSecurityData[j], options, q + 1); + object.masterPasswordSecurityData[j] = $root.Authentication.SecurityData.toObject(message.masterPasswordSecurityData[j], options); } if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) object.encryptionType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptionType] === undefined ? message.encryptionType : $root.Enterprise.EncryptedKeyType[message.encryptionType] : message.encryptionType; if (message.recordSecurityScoreData && message.recordSecurityScoreData.length) { object.recordSecurityScoreData = []; for (let j = 0; j < message.recordSecurityScoreData.length; ++j) - object.recordSecurityScoreData[j] = $root.Authentication.SecurityScoreData.toObject(message.recordSecurityScoreData[j], options, q + 1); + object.recordSecurityScoreData[j] = $root.Authentication.SecurityScoreData.toObject(message.recordSecurityScoreData[j], options); } return object; }; @@ -17436,7 +16346,7 @@ export const Authentication = $root.Authentication = (() => { function SecurityReportIncrementalData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -17525,13 +16435,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityReportIncrementalData.encode = function encode(message, writer, q) { + SecurityReportIncrementalData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.currentSecurityData != null && Object.hasOwnProperty.call(message, "currentSecurityData")) @@ -17575,18 +16481,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityReportIncrementalData.decode = function decode(reader, length, error, long) { + SecurityReportIncrementalData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityReportIncrementalData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -17621,7 +16521,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -17652,13 +16552,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityReportIncrementalData.verify = function verify(message, long) { + SecurityReportIncrementalData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -17710,17 +16606,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SecurityReportIncrementalData} SecurityReportIncrementalData */ - SecurityReportIncrementalData.fromObject = function fromObject(object, long) { + SecurityReportIncrementalData.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SecurityReportIncrementalData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SecurityReportIncrementalData(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -17734,7 +16626,7 @@ export const Authentication = $root.Authentication = (() => { message.currentSecurityData = object.currentSecurityData; if (object.currentSecurityDataRevision != null) if ($util.Long) - message.currentSecurityDataRevision = $util.Long.fromValue(object.currentSecurityDataRevision, false); + (message.currentSecurityDataRevision = $util.Long.fromValue(object.currentSecurityDataRevision)).unsigned = false; else if (typeof object.currentSecurityDataRevision === "string") message.currentSecurityDataRevision = parseInt(object.currentSecurityDataRevision, 10); else if (typeof object.currentSecurityDataRevision === "number") @@ -17748,7 +16640,7 @@ export const Authentication = $root.Authentication = (() => { message.oldSecurityData = object.oldSecurityData; if (object.oldSecurityDataRevision != null) if ($util.Long) - message.oldSecurityDataRevision = $util.Long.fromValue(object.oldSecurityDataRevision, false); + (message.oldSecurityDataRevision = $util.Long.fromValue(object.oldSecurityDataRevision)).unsigned = false; else if (typeof object.oldSecurityDataRevision === "string") message.oldSecurityDataRevision = parseInt(object.oldSecurityDataRevision, 10); else if (typeof object.oldSecurityDataRevision === "number") @@ -17828,20 +16720,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityReportIncrementalData.toObject = function toObject(message, options, q) { + SecurityReportIncrementalData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.currentSecurityData = ""; else { @@ -17851,9 +16739,9 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.currentSecurityDataRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.currentSecurityDataRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.currentSecurityDataRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.currentSecurityDataRevision = options.longs === String ? "0" : 0; if (options.bytes === String) object.oldSecurityData = ""; else { @@ -17863,9 +16751,9 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.oldSecurityDataRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.oldSecurityDataRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.oldSecurityDataRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.oldSecurityDataRevision = options.longs === String ? "0" : 0; object.currentDataEncryptionType = options.enums === String ? "KT_NO_KEY" : 0; object.oldDataEncryptionType = options.enums === String ? "KT_NO_KEY" : 0; if (options.bytes === String) @@ -17877,27 +16765,21 @@ export const Authentication = $root.Authentication = (() => { } } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.currentSecurityData != null && message.hasOwnProperty("currentSecurityData")) object.currentSecurityData = options.bytes === String ? $util.base64.encode(message.currentSecurityData, 0, message.currentSecurityData.length) : options.bytes === Array ? Array.prototype.slice.call(message.currentSecurityData) : message.currentSecurityData; if (message.currentSecurityDataRevision != null && message.hasOwnProperty("currentSecurityDataRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.currentSecurityDataRevision = typeof message.currentSecurityDataRevision === "number" ? BigInt(message.currentSecurityDataRevision) : $util.Long.fromBits(message.currentSecurityDataRevision.low >>> 0, message.currentSecurityDataRevision.high >>> 0, false).toBigInt(); - else if (typeof message.currentSecurityDataRevision === "number") + if (typeof message.currentSecurityDataRevision === "number") object.currentSecurityDataRevision = options.longs === String ? String(message.currentSecurityDataRevision) : message.currentSecurityDataRevision; else object.currentSecurityDataRevision = options.longs === String ? $util.Long.prototype.toString.call(message.currentSecurityDataRevision) : options.longs === Number ? new $util.LongBits(message.currentSecurityDataRevision.low >>> 0, message.currentSecurityDataRevision.high >>> 0).toNumber() : message.currentSecurityDataRevision; if (message.oldSecurityData != null && message.hasOwnProperty("oldSecurityData")) object.oldSecurityData = options.bytes === String ? $util.base64.encode(message.oldSecurityData, 0, message.oldSecurityData.length) : options.bytes === Array ? Array.prototype.slice.call(message.oldSecurityData) : message.oldSecurityData; if (message.oldSecurityDataRevision != null && message.hasOwnProperty("oldSecurityDataRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.oldSecurityDataRevision = typeof message.oldSecurityDataRevision === "number" ? BigInt(message.oldSecurityDataRevision) : $util.Long.fromBits(message.oldSecurityDataRevision.low >>> 0, message.oldSecurityDataRevision.high >>> 0, false).toBigInt(); - else if (typeof message.oldSecurityDataRevision === "number") + if (typeof message.oldSecurityDataRevision === "number") object.oldSecurityDataRevision = options.longs === String ? String(message.oldSecurityDataRevision) : message.oldSecurityDataRevision; else object.oldSecurityDataRevision = options.longs === String ? $util.Long.prototype.toString.call(message.oldSecurityDataRevision) : options.longs === Number ? new $util.LongBits(message.oldSecurityDataRevision.low >>> 0, message.oldSecurityDataRevision.high >>> 0).toNumber() : message.oldSecurityDataRevision; @@ -17968,7 +16850,7 @@ export const Authentication = $root.Authentication = (() => { this.securityReportIncrementalData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -18065,13 +16947,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityReport.encode = function encode(message, writer, q) { + SecurityReport.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.encryptedReportData != null && Object.hasOwnProperty.call(message, "encryptedReportData")) @@ -18086,7 +16964,7 @@ export const Authentication = $root.Authentication = (() => { writer.uint32(/* id 6, wireType 0 =*/48).int32(message.numberOfReusedPassword); if (message.securityReportIncrementalData != null && message.securityReportIncrementalData.length) for (let i = 0; i < message.securityReportIncrementalData.length; ++i) - $root.Authentication.SecurityReportIncrementalData.encode(message.securityReportIncrementalData[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Authentication.SecurityReportIncrementalData.encode(message.securityReportIncrementalData[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 8, wireType 0 =*/64).int32(message.userId); if (message.hasOldEncryption != null && Object.hasOwnProperty.call(message, "hasOldEncryption")) @@ -18118,18 +16996,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityReport.decode = function decode(reader, length, error, long) { + SecurityReport.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityReport(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -18158,7 +17030,7 @@ export const Authentication = $root.Authentication = (() => { case 7: { if (!(message.securityReportIncrementalData && message.securityReportIncrementalData.length)) message.securityReportIncrementalData = []; - message.securityReportIncrementalData.push($root.Authentication.SecurityReportIncrementalData.decode(reader, reader.uint32(), undefined, long + 1)); + message.securityReportIncrementalData.push($root.Authentication.SecurityReportIncrementalData.decode(reader, reader.uint32())); break; } case 8: { @@ -18170,7 +17042,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -18201,13 +17073,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityReport.verify = function verify(message, long) { + SecurityReport.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -18230,7 +17098,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.securityReportIncrementalData)) return "securityReportIncrementalData: array expected"; for (let i = 0; i < message.securityReportIncrementalData.length; ++i) { - let error = $root.Authentication.SecurityReportIncrementalData.verify(message.securityReportIncrementalData[i], long + 1); + let error = $root.Authentication.SecurityReportIncrementalData.verify(message.securityReportIncrementalData[i]); if (error) return "securityReportIncrementalData." + error; } @@ -18252,17 +17120,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SecurityReport} SecurityReport */ - SecurityReport.fromObject = function fromObject(object, long) { + SecurityReport.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SecurityReport) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SecurityReport(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -18276,7 +17140,7 @@ export const Authentication = $root.Authentication = (() => { message.encryptedReportData = object.encryptedReportData; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -18287,7 +17151,7 @@ export const Authentication = $root.Authentication = (() => { message.twoFactor = String(object.twoFactor); if (object.lastLogin != null) if ($util.Long) - message.lastLogin = $util.Long.fromValue(object.lastLogin, false); + (message.lastLogin = $util.Long.fromValue(object.lastLogin)).unsigned = false; else if (typeof object.lastLogin === "string") message.lastLogin = parseInt(object.lastLogin, 10); else if (typeof object.lastLogin === "number") @@ -18303,7 +17167,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.securityReportIncrementalData.length; ++i) { if (typeof object.securityReportIncrementalData[i] !== "object") throw TypeError(".Authentication.SecurityReport.securityReportIncrementalData: object expected"); - message.securityReportIncrementalData[i] = $root.Authentication.SecurityReportIncrementalData.fromObject(object.securityReportIncrementalData[i], long + 1); + message.securityReportIncrementalData[i] = $root.Authentication.SecurityReportIncrementalData.fromObject(object.securityReportIncrementalData[i]); } } if (object.userId != null) @@ -18322,22 +17186,18 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityReport.toObject = function toObject(message, options, q) { + SecurityReport.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.securityReportIncrementalData = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.encryptedReportData = ""; else { @@ -18347,41 +17207,35 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; object.twoFactor = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastLogin = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastLogin = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastLogin = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastLogin = options.longs === String ? "0" : 0; object.numberOfReusedPassword = 0; object.userId = 0; object.hasOldEncryption = false; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.encryptedReportData != null && message.hasOwnProperty("encryptedReportData")) object.encryptedReportData = options.bytes === String ? $util.base64.encode(message.encryptedReportData, 0, message.encryptedReportData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedReportData) : message.encryptedReportData; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; if (message.twoFactor != null && message.hasOwnProperty("twoFactor")) object.twoFactor = message.twoFactor; if (message.lastLogin != null && message.hasOwnProperty("lastLogin")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastLogin = typeof message.lastLogin === "number" ? BigInt(message.lastLogin) : $util.Long.fromBits(message.lastLogin.low >>> 0, message.lastLogin.high >>> 0, false).toBigInt(); - else if (typeof message.lastLogin === "number") + if (typeof message.lastLogin === "number") object.lastLogin = options.longs === String ? String(message.lastLogin) : message.lastLogin; else object.lastLogin = options.longs === String ? $util.Long.prototype.toString.call(message.lastLogin) : options.longs === Number ? new $util.LongBits(message.lastLogin.low >>> 0, message.lastLogin.high >>> 0).toNumber() : message.lastLogin; @@ -18390,7 +17244,7 @@ export const Authentication = $root.Authentication = (() => { if (message.securityReportIncrementalData && message.securityReportIncrementalData.length) { object.securityReportIncrementalData = []; for (let j = 0; j < message.securityReportIncrementalData.length; ++j) - object.securityReportIncrementalData[j] = $root.Authentication.SecurityReportIncrementalData.toObject(message.securityReportIncrementalData[j], options, q + 1); + object.securityReportIncrementalData[j] = $root.Authentication.SecurityReportIncrementalData.toObject(message.securityReportIncrementalData[j], options); } if (message.userId != null && message.hasOwnProperty("userId")) object.userId = message.userId; @@ -18450,7 +17304,7 @@ export const Authentication = $root.Authentication = (() => { this.securityReport = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -18491,16 +17345,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityReportSaveRequest.encode = function encode(message, writer, q) { + SecurityReportSaveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.securityReport != null && message.securityReport.length) for (let i = 0; i < message.securityReport.length; ++i) - $root.Authentication.SecurityReport.encode(message.securityReport[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.SecurityReport.encode(message.securityReport[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.continuationToken); return writer; @@ -18530,23 +17380,17 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityReportSaveRequest.decode = function decode(reader, length, error, long) { + SecurityReportSaveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityReportSaveRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.securityReport && message.securityReport.length)) message.securityReport = []; - message.securityReport.push($root.Authentication.SecurityReport.decode(reader, reader.uint32(), undefined, long + 1)); + message.securityReport.push($root.Authentication.SecurityReport.decode(reader, reader.uint32())); break; } case 2: { @@ -18554,7 +17398,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -18585,18 +17429,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityReportSaveRequest.verify = function verify(message, long) { + SecurityReportSaveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.securityReport != null && message.hasOwnProperty("securityReport")) { if (!Array.isArray(message.securityReport)) return "securityReport: array expected"; for (let i = 0; i < message.securityReport.length; ++i) { - let error = $root.Authentication.SecurityReport.verify(message.securityReport[i], long + 1); + let error = $root.Authentication.SecurityReport.verify(message.securityReport[i]); if (error) return "securityReport." + error; } @@ -18615,13 +17455,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SecurityReportSaveRequest} SecurityReportSaveRequest */ - SecurityReportSaveRequest.fromObject = function fromObject(object, long) { + SecurityReportSaveRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SecurityReportSaveRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SecurityReportSaveRequest(); if (object.securityReport) { if (!Array.isArray(object.securityReport)) @@ -18630,7 +17466,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.securityReport.length; ++i) { if (typeof object.securityReport[i] !== "object") throw TypeError(".Authentication.SecurityReportSaveRequest.securityReport: object expected"); - message.securityReport[i] = $root.Authentication.SecurityReport.fromObject(object.securityReport[i], long + 1); + message.securityReport[i] = $root.Authentication.SecurityReport.fromObject(object.securityReport[i]); } } if (object.continuationToken != null) @@ -18650,13 +17486,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityReportSaveRequest.toObject = function toObject(message, options, q) { + SecurityReportSaveRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.securityReport = []; @@ -18671,7 +17503,7 @@ export const Authentication = $root.Authentication = (() => { if (message.securityReport && message.securityReport.length) { object.securityReport = []; for (let j = 0; j < message.securityReport.length; ++j) - object.securityReport[j] = $root.Authentication.SecurityReport.toObject(message.securityReport[j], options, q + 1); + object.securityReport[j] = $root.Authentication.SecurityReport.toObject(message.securityReport[j], options); } if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; @@ -18727,7 +17559,7 @@ export const Authentication = $root.Authentication = (() => { function SecurityReportRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -18760,13 +17592,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityReportRequest.encode = function encode(message, writer, q) { + SecurityReportRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.fromPage != null && Object.hasOwnProperty.call(message, "fromPage")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.fromPage); return writer; @@ -18796,25 +17624,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityReportRequest.decode = function decode(reader, length, error, long) { + SecurityReportRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityReportRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.fromPage = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -18845,13 +17667,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityReportRequest.verify = function verify(message, long) { + SecurityReportRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.fromPage != null && message.hasOwnProperty("fromPage")) if (!$util.isInteger(message.fromPage) && !(message.fromPage && $util.isInteger(message.fromPage.low) && $util.isInteger(message.fromPage.high))) return "fromPage: integer|Long expected"; @@ -18866,17 +17684,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SecurityReportRequest} SecurityReportRequest */ - SecurityReportRequest.fromObject = function fromObject(object, long) { + SecurityReportRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SecurityReportRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SecurityReportRequest(); if (object.fromPage != null) if ($util.Long) - message.fromPage = $util.Long.fromValue(object.fromPage, false); + (message.fromPage = $util.Long.fromValue(object.fromPage)).unsigned = false; else if (typeof object.fromPage === "string") message.fromPage = parseInt(object.fromPage, 10); else if (typeof object.fromPage === "number") @@ -18895,24 +17709,18 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityReportRequest.toObject = function toObject(message, options, q) { + SecurityReportRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fromPage = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.fromPage = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.fromPage = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.fromPage = options.longs === String ? "0" : 0; if (message.fromPage != null && message.hasOwnProperty("fromPage")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.fromPage = typeof message.fromPage === "number" ? BigInt(message.fromPage) : $util.Long.fromBits(message.fromPage.low >>> 0, message.fromPage.high >>> 0, false).toBigInt(); - else if (typeof message.fromPage === "number") + if (typeof message.fromPage === "number") object.fromPage = options.longs === String ? String(message.fromPage) : message.fromPage; else object.fromPage = options.longs === String ? $util.Long.prototype.toString.call(message.fromPage) : options.longs === Number ? new $util.LongBits(message.fromPage.low >>> 0, message.fromPage.high >>> 0).toNumber() : message.fromPage; @@ -18976,7 +17784,7 @@ export const Authentication = $root.Authentication = (() => { this.securityReport = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -19065,18 +17873,14 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityReportResponse.encode = function encode(message, writer, q) { + SecurityReportResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterprisePrivateKey != null && Object.hasOwnProperty.call(message, "enterprisePrivateKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.enterprisePrivateKey); if (message.securityReport != null && message.securityReport.length) for (let i = 0; i < message.securityReport.length; ++i) - $root.Authentication.SecurityReport.encode(message.securityReport[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Authentication.SecurityReport.encode(message.securityReport[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.asOfRevision != null && Object.hasOwnProperty.call(message, "asOfRevision")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.asOfRevision); if (message.fromPage != null && Object.hasOwnProperty.call(message, "fromPage")) @@ -19116,18 +17920,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityReportResponse.decode = function decode(reader, length, error, long) { + SecurityReportResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityReportResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterprisePrivateKey = reader.bytes(); @@ -19136,7 +17934,7 @@ export const Authentication = $root.Authentication = (() => { case 2: { if (!(message.securityReport && message.securityReport.length)) message.securityReport = []; - message.securityReport.push($root.Authentication.SecurityReport.decode(reader, reader.uint32(), undefined, long + 1)); + message.securityReport.push($root.Authentication.SecurityReport.decode(reader, reader.uint32())); break; } case 3: { @@ -19164,7 +17962,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -19195,13 +17993,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityReportResponse.verify = function verify(message, long) { + SecurityReportResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterprisePrivateKey != null && message.hasOwnProperty("enterprisePrivateKey")) if (!(message.enterprisePrivateKey && typeof message.enterprisePrivateKey.length === "number" || $util.isString(message.enterprisePrivateKey))) return "enterprisePrivateKey: buffer expected"; @@ -19209,7 +18003,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.securityReport)) return "securityReport: array expected"; for (let i = 0; i < message.securityReport.length; ++i) { - let error = $root.Authentication.SecurityReport.verify(message.securityReport[i], long + 1); + let error = $root.Authentication.SecurityReport.verify(message.securityReport[i]); if (error) return "securityReport." + error; } @@ -19243,13 +18037,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SecurityReportResponse} SecurityReportResponse */ - SecurityReportResponse.fromObject = function fromObject(object, long) { + SecurityReportResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SecurityReportResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SecurityReportResponse(); if (object.enterprisePrivateKey != null) if (typeof object.enterprisePrivateKey === "string") @@ -19263,12 +18053,12 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.securityReport.length; ++i) { if (typeof object.securityReport[i] !== "object") throw TypeError(".Authentication.SecurityReportResponse.securityReport: object expected"); - message.securityReport[i] = $root.Authentication.SecurityReport.fromObject(object.securityReport[i], long + 1); + message.securityReport[i] = $root.Authentication.SecurityReport.fromObject(object.securityReport[i]); } } if (object.asOfRevision != null) if ($util.Long) - message.asOfRevision = $util.Long.fromValue(object.asOfRevision, false); + (message.asOfRevision = $util.Long.fromValue(object.asOfRevision)).unsigned = false; else if (typeof object.asOfRevision === "string") message.asOfRevision = parseInt(object.asOfRevision, 10); else if (typeof object.asOfRevision === "number") @@ -19277,7 +18067,7 @@ export const Authentication = $root.Authentication = (() => { message.asOfRevision = new $util.LongBits(object.asOfRevision.low >>> 0, object.asOfRevision.high >>> 0).toNumber(); if (object.fromPage != null) if ($util.Long) - message.fromPage = $util.Long.fromValue(object.fromPage, false); + (message.fromPage = $util.Long.fromValue(object.fromPage)).unsigned = false; else if (typeof object.fromPage === "string") message.fromPage = parseInt(object.fromPage, 10); else if (typeof object.fromPage === "number") @@ -19286,7 +18076,7 @@ export const Authentication = $root.Authentication = (() => { message.fromPage = new $util.LongBits(object.fromPage.low >>> 0, object.fromPage.high >>> 0).toNumber(); if (object.toPage != null) if ($util.Long) - message.toPage = $util.Long.fromValue(object.toPage, false); + (message.toPage = $util.Long.fromValue(object.toPage)).unsigned = false; else if (typeof object.toPage === "string") message.toPage = parseInt(object.toPage, 10); else if (typeof object.toPage === "number") @@ -19314,13 +18104,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityReportResponse.toObject = function toObject(message, options, q) { + SecurityReportResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.securityReport = []; @@ -19334,19 +18120,19 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.asOfRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.asOfRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.asOfRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.asOfRevision = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fromPage = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.fromPage = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.fromPage = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.fromPage = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.toPage = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.toPage = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.toPage = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.toPage = options.longs === String ? "0" : 0; object.complete = false; if (options.bytes === String) object.enterpriseEccPrivateKey = ""; @@ -19362,26 +18148,20 @@ export const Authentication = $root.Authentication = (() => { if (message.securityReport && message.securityReport.length) { object.securityReport = []; for (let j = 0; j < message.securityReport.length; ++j) - object.securityReport[j] = $root.Authentication.SecurityReport.toObject(message.securityReport[j], options, q + 1); + object.securityReport[j] = $root.Authentication.SecurityReport.toObject(message.securityReport[j], options); } if (message.asOfRevision != null && message.hasOwnProperty("asOfRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.asOfRevision = typeof message.asOfRevision === "number" ? BigInt(message.asOfRevision) : $util.Long.fromBits(message.asOfRevision.low >>> 0, message.asOfRevision.high >>> 0, false).toBigInt(); - else if (typeof message.asOfRevision === "number") + if (typeof message.asOfRevision === "number") object.asOfRevision = options.longs === String ? String(message.asOfRevision) : message.asOfRevision; else object.asOfRevision = options.longs === String ? $util.Long.prototype.toString.call(message.asOfRevision) : options.longs === Number ? new $util.LongBits(message.asOfRevision.low >>> 0, message.asOfRevision.high >>> 0).toNumber() : message.asOfRevision; if (message.fromPage != null && message.hasOwnProperty("fromPage")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.fromPage = typeof message.fromPage === "number" ? BigInt(message.fromPage) : $util.Long.fromBits(message.fromPage.low >>> 0, message.fromPage.high >>> 0, false).toBigInt(); - else if (typeof message.fromPage === "number") + if (typeof message.fromPage === "number") object.fromPage = options.longs === String ? String(message.fromPage) : message.fromPage; else object.fromPage = options.longs === String ? $util.Long.prototype.toString.call(message.fromPage) : options.longs === Number ? new $util.LongBits(message.fromPage.low >>> 0, message.fromPage.high >>> 0).toNumber() : message.fromPage; if (message.toPage != null && message.hasOwnProperty("toPage")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.toPage = typeof message.toPage === "number" ? BigInt(message.toPage) : $util.Long.fromBits(message.toPage.low >>> 0, message.toPage.high >>> 0, false).toBigInt(); - else if (typeof message.toPage === "number") + if (typeof message.toPage === "number") object.toPage = options.longs === String ? String(message.toPage) : message.toPage; else object.toPage = options.longs === String ? $util.Long.prototype.toString.call(message.toPage) : options.longs === Number ? new $util.LongBits(message.toPage.low >>> 0, message.toPage.high >>> 0).toNumber() : message.toPage; @@ -19443,7 +18223,7 @@ export const Authentication = $root.Authentication = (() => { function IncrementalSecurityDataRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -19476,13 +18256,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IncrementalSecurityDataRequest.encode = function encode(message, writer, q) { + IncrementalSecurityDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); return writer; @@ -19512,25 +18288,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IncrementalSecurityDataRequest.decode = function decode(reader, length, error, long) { + IncrementalSecurityDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.IncrementalSecurityDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.continuationToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -19561,13 +18331,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IncrementalSecurityDataRequest.verify = function verify(message, long) { + IncrementalSecurityDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) return "continuationToken: buffer expected"; @@ -19582,13 +18348,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.IncrementalSecurityDataRequest} IncrementalSecurityDataRequest */ - IncrementalSecurityDataRequest.fromObject = function fromObject(object, long) { + IncrementalSecurityDataRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.IncrementalSecurityDataRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.IncrementalSecurityDataRequest(); if (object.continuationToken != null) if (typeof object.continuationToken === "string") @@ -19607,13 +18369,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IncrementalSecurityDataRequest.toObject = function toObject(message, options, q) { + IncrementalSecurityDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -19679,7 +18437,7 @@ export const Authentication = $root.Authentication = (() => { this.securityReportIncrementalData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -19720,16 +18478,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IncrementalSecurityDataResponse.encode = function encode(message, writer, q) { + IncrementalSecurityDataResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.securityReportIncrementalData != null && message.securityReportIncrementalData.length) for (let i = 0; i < message.securityReportIncrementalData.length; ++i) - $root.Authentication.SecurityReportIncrementalData.encode(message.securityReportIncrementalData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.SecurityReportIncrementalData.encode(message.securityReportIncrementalData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.continuationToken); return writer; @@ -19759,23 +18513,17 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IncrementalSecurityDataResponse.decode = function decode(reader, length, error, long) { + IncrementalSecurityDataResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.IncrementalSecurityDataResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.securityReportIncrementalData && message.securityReportIncrementalData.length)) message.securityReportIncrementalData = []; - message.securityReportIncrementalData.push($root.Authentication.SecurityReportIncrementalData.decode(reader, reader.uint32(), undefined, long + 1)); + message.securityReportIncrementalData.push($root.Authentication.SecurityReportIncrementalData.decode(reader, reader.uint32())); break; } case 2: { @@ -19783,7 +18531,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -19814,18 +18562,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IncrementalSecurityDataResponse.verify = function verify(message, long) { + IncrementalSecurityDataResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.securityReportIncrementalData != null && message.hasOwnProperty("securityReportIncrementalData")) { if (!Array.isArray(message.securityReportIncrementalData)) return "securityReportIncrementalData: array expected"; for (let i = 0; i < message.securityReportIncrementalData.length; ++i) { - let error = $root.Authentication.SecurityReportIncrementalData.verify(message.securityReportIncrementalData[i], long + 1); + let error = $root.Authentication.SecurityReportIncrementalData.verify(message.securityReportIncrementalData[i]); if (error) return "securityReportIncrementalData." + error; } @@ -19844,13 +18588,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.IncrementalSecurityDataResponse} IncrementalSecurityDataResponse */ - IncrementalSecurityDataResponse.fromObject = function fromObject(object, long) { + IncrementalSecurityDataResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.IncrementalSecurityDataResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.IncrementalSecurityDataResponse(); if (object.securityReportIncrementalData) { if (!Array.isArray(object.securityReportIncrementalData)) @@ -19859,7 +18599,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.securityReportIncrementalData.length; ++i) { if (typeof object.securityReportIncrementalData[i] !== "object") throw TypeError(".Authentication.IncrementalSecurityDataResponse.securityReportIncrementalData: object expected"); - message.securityReportIncrementalData[i] = $root.Authentication.SecurityReportIncrementalData.fromObject(object.securityReportIncrementalData[i], long + 1); + message.securityReportIncrementalData[i] = $root.Authentication.SecurityReportIncrementalData.fromObject(object.securityReportIncrementalData[i]); } } if (object.continuationToken != null) @@ -19879,13 +18619,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IncrementalSecurityDataResponse.toObject = function toObject(message, options, q) { + IncrementalSecurityDataResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.securityReportIncrementalData = []; @@ -19900,7 +18636,7 @@ export const Authentication = $root.Authentication = (() => { if (message.securityReportIncrementalData && message.securityReportIncrementalData.length) { object.securityReportIncrementalData = []; for (let j = 0; j < message.securityReportIncrementalData.length; ++j) - object.securityReportIncrementalData[j] = $root.Authentication.SecurityReportIncrementalData.toObject(message.securityReportIncrementalData[j], options, q + 1); + object.securityReportIncrementalData[j] = $root.Authentication.SecurityReportIncrementalData.toObject(message.securityReportIncrementalData[j], options); } if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; @@ -19956,7 +18692,7 @@ export const Authentication = $root.Authentication = (() => { function ReusedPasswordsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -19989,13 +18725,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReusedPasswordsRequest.encode = function encode(message, writer, q) { + ReusedPasswordsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.count != null && Object.hasOwnProperty.call(message, "count")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); return writer; @@ -20025,25 +18757,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReusedPasswordsRequest.decode = function decode(reader, length, error, long) { + ReusedPasswordsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ReusedPasswordsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.count = reader.int32(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -20074,13 +18800,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReusedPasswordsRequest.verify = function verify(message, long) { + ReusedPasswordsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.count != null && message.hasOwnProperty("count")) if (!$util.isInteger(message.count)) return "count: integer expected"; @@ -20095,13 +18817,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ReusedPasswordsRequest} ReusedPasswordsRequest */ - ReusedPasswordsRequest.fromObject = function fromObject(object, long) { + ReusedPasswordsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ReusedPasswordsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ReusedPasswordsRequest(); if (object.count != null) message.count = object.count | 0; @@ -20117,13 +18835,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReusedPasswordsRequest.toObject = function toObject(message, options, q) { + ReusedPasswordsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.count = 0; @@ -20182,7 +18896,7 @@ export const Authentication = $root.Authentication = (() => { function SummaryConsoleReport(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -20223,13 +18937,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummaryConsoleReport.encode = function encode(message, writer, q) { + SummaryConsoleReport.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.reportType != null && Object.hasOwnProperty.call(message, "reportType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.reportType); if (message.reportData != null && Object.hasOwnProperty.call(message, "reportData")) @@ -20261,18 +18971,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummaryConsoleReport.decode = function decode(reader, length, error, long) { + SummaryConsoleReport.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SummaryConsoleReport(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.reportType = reader.int32(); @@ -20283,7 +18987,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -20314,13 +19018,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummaryConsoleReport.verify = function verify(message, long) { + SummaryConsoleReport.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.reportType != null && message.hasOwnProperty("reportType")) if (!$util.isInteger(message.reportType)) return "reportType: integer expected"; @@ -20338,13 +19038,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SummaryConsoleReport} SummaryConsoleReport */ - SummaryConsoleReport.fromObject = function fromObject(object, long) { + SummaryConsoleReport.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SummaryConsoleReport) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SummaryConsoleReport(); if (object.reportType != null) message.reportType = object.reportType | 0; @@ -20365,13 +19061,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummaryConsoleReport.toObject = function toObject(message, options, q) { + SummaryConsoleReport.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.reportType = 0; @@ -20462,7 +19154,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeToKeyTypeOne(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -20519,13 +19211,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeToKeyTypeOne.encode = function encode(message, writer, q) { + ChangeToKeyTypeOne.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objectType); if (message.primaryUid != null && Object.hasOwnProperty.call(message, "primaryUid")) @@ -20561,18 +19249,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeToKeyTypeOne.decode = function decode(reader, length, error, long) { + ChangeToKeyTypeOne.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeToKeyTypeOne(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.objectType = reader.int32(); @@ -20591,7 +19273,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -20622,13 +19304,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeToKeyTypeOne.verify = function verify(message, long) { + ChangeToKeyTypeOne.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.objectType != null && message.hasOwnProperty("objectType")) switch (message.objectType) { default: @@ -20660,13 +19338,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ChangeToKeyTypeOne} ChangeToKeyTypeOne */ - ChangeToKeyTypeOne.fromObject = function fromObject(object, long) { + ChangeToKeyTypeOne.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ChangeToKeyTypeOne) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ChangeToKeyTypeOne(); switch (object.objectType) { default: @@ -20723,13 +19397,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeToKeyTypeOne.toObject = function toObject(message, options, q) { + ChangeToKeyTypeOne.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.objectType = options.enums === String ? "RECORD" : 0; @@ -20816,7 +19486,7 @@ export const Authentication = $root.Authentication = (() => { this.changeToKeyTypeOne = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -20849,16 +19519,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeToKeyTypeOneRequest.encode = function encode(message, writer, q) { + ChangeToKeyTypeOneRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.changeToKeyTypeOne != null && message.changeToKeyTypeOne.length) for (let i = 0; i < message.changeToKeyTypeOne.length; ++i) - $root.Authentication.ChangeToKeyTypeOne.encode(message.changeToKeyTypeOne[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.ChangeToKeyTypeOne.encode(message.changeToKeyTypeOne[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -20886,27 +19552,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeToKeyTypeOneRequest.decode = function decode(reader, length, error, long) { + ChangeToKeyTypeOneRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeToKeyTypeOneRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.changeToKeyTypeOne && message.changeToKeyTypeOne.length)) message.changeToKeyTypeOne = []; - message.changeToKeyTypeOne.push($root.Authentication.ChangeToKeyTypeOne.decode(reader, reader.uint32(), undefined, long + 1)); + message.changeToKeyTypeOne.push($root.Authentication.ChangeToKeyTypeOne.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -20937,18 +19597,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeToKeyTypeOneRequest.verify = function verify(message, long) { + ChangeToKeyTypeOneRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.changeToKeyTypeOne != null && message.hasOwnProperty("changeToKeyTypeOne")) { if (!Array.isArray(message.changeToKeyTypeOne)) return "changeToKeyTypeOne: array expected"; for (let i = 0; i < message.changeToKeyTypeOne.length; ++i) { - let error = $root.Authentication.ChangeToKeyTypeOne.verify(message.changeToKeyTypeOne[i], long + 1); + let error = $root.Authentication.ChangeToKeyTypeOne.verify(message.changeToKeyTypeOne[i]); if (error) return "changeToKeyTypeOne." + error; } @@ -20964,13 +19620,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ChangeToKeyTypeOneRequest} ChangeToKeyTypeOneRequest */ - ChangeToKeyTypeOneRequest.fromObject = function fromObject(object, long) { + ChangeToKeyTypeOneRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ChangeToKeyTypeOneRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ChangeToKeyTypeOneRequest(); if (object.changeToKeyTypeOne) { if (!Array.isArray(object.changeToKeyTypeOne)) @@ -20979,7 +19631,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.changeToKeyTypeOne.length; ++i) { if (typeof object.changeToKeyTypeOne[i] !== "object") throw TypeError(".Authentication.ChangeToKeyTypeOneRequest.changeToKeyTypeOne: object expected"); - message.changeToKeyTypeOne[i] = $root.Authentication.ChangeToKeyTypeOne.fromObject(object.changeToKeyTypeOne[i], long + 1); + message.changeToKeyTypeOne[i] = $root.Authentication.ChangeToKeyTypeOne.fromObject(object.changeToKeyTypeOne[i]); } } return message; @@ -20994,20 +19646,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeToKeyTypeOneRequest.toObject = function toObject(message, options, q) { + ChangeToKeyTypeOneRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.changeToKeyTypeOne = []; if (message.changeToKeyTypeOne && message.changeToKeyTypeOne.length) { object.changeToKeyTypeOne = []; for (let j = 0; j < message.changeToKeyTypeOne.length; ++j) - object.changeToKeyTypeOne[j] = $root.Authentication.ChangeToKeyTypeOne.toObject(message.changeToKeyTypeOne[j], options, q + 1); + object.changeToKeyTypeOne[j] = $root.Authentication.ChangeToKeyTypeOne.toObject(message.changeToKeyTypeOne[j], options); } return object; }; @@ -21064,7 +19712,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeToKeyTypeOneStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -21121,13 +19769,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeToKeyTypeOneStatus.encode = function encode(message, writer, q) { + ChangeToKeyTypeOneStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.type != null && Object.hasOwnProperty.call(message, "type")) @@ -21163,18 +19807,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeToKeyTypeOneStatus.decode = function decode(reader, length, error, long) { + ChangeToKeyTypeOneStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeToKeyTypeOneStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); @@ -21193,7 +19831,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -21224,13 +19862,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeToKeyTypeOneStatus.verify = function verify(message, long) { + ChangeToKeyTypeOneStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -21254,13 +19888,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ChangeToKeyTypeOneStatus} ChangeToKeyTypeOneStatus */ - ChangeToKeyTypeOneStatus.fromObject = function fromObject(object, long) { + ChangeToKeyTypeOneStatus.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ChangeToKeyTypeOneStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ChangeToKeyTypeOneStatus(); if (object.uid != null) if (typeof object.uid === "string") @@ -21285,13 +19915,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeToKeyTypeOneStatus.toObject = function toObject(message, options, q) { + ChangeToKeyTypeOneStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -21366,7 +19992,7 @@ export const Authentication = $root.Authentication = (() => { this.changeToKeyTypeOneStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -21399,16 +20025,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeToKeyTypeOneResponse.encode = function encode(message, writer, q) { + ChangeToKeyTypeOneResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.changeToKeyTypeOneStatus != null && message.changeToKeyTypeOneStatus.length) for (let i = 0; i < message.changeToKeyTypeOneStatus.length; ++i) - $root.Authentication.ChangeToKeyTypeOneStatus.encode(message.changeToKeyTypeOneStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.ChangeToKeyTypeOneStatus.encode(message.changeToKeyTypeOneStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -21436,27 +20058,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeToKeyTypeOneResponse.decode = function decode(reader, length, error, long) { + ChangeToKeyTypeOneResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeToKeyTypeOneResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.changeToKeyTypeOneStatus && message.changeToKeyTypeOneStatus.length)) message.changeToKeyTypeOneStatus = []; - message.changeToKeyTypeOneStatus.push($root.Authentication.ChangeToKeyTypeOneStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.changeToKeyTypeOneStatus.push($root.Authentication.ChangeToKeyTypeOneStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -21487,18 +20103,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeToKeyTypeOneResponse.verify = function verify(message, long) { + ChangeToKeyTypeOneResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.changeToKeyTypeOneStatus != null && message.hasOwnProperty("changeToKeyTypeOneStatus")) { if (!Array.isArray(message.changeToKeyTypeOneStatus)) return "changeToKeyTypeOneStatus: array expected"; for (let i = 0; i < message.changeToKeyTypeOneStatus.length; ++i) { - let error = $root.Authentication.ChangeToKeyTypeOneStatus.verify(message.changeToKeyTypeOneStatus[i], long + 1); + let error = $root.Authentication.ChangeToKeyTypeOneStatus.verify(message.changeToKeyTypeOneStatus[i]); if (error) return "changeToKeyTypeOneStatus." + error; } @@ -21514,13 +20126,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ChangeToKeyTypeOneResponse} ChangeToKeyTypeOneResponse */ - ChangeToKeyTypeOneResponse.fromObject = function fromObject(object, long) { + ChangeToKeyTypeOneResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ChangeToKeyTypeOneResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ChangeToKeyTypeOneResponse(); if (object.changeToKeyTypeOneStatus) { if (!Array.isArray(object.changeToKeyTypeOneStatus)) @@ -21529,7 +20137,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.changeToKeyTypeOneStatus.length; ++i) { if (typeof object.changeToKeyTypeOneStatus[i] !== "object") throw TypeError(".Authentication.ChangeToKeyTypeOneResponse.changeToKeyTypeOneStatus: object expected"); - message.changeToKeyTypeOneStatus[i] = $root.Authentication.ChangeToKeyTypeOneStatus.fromObject(object.changeToKeyTypeOneStatus[i], long + 1); + message.changeToKeyTypeOneStatus[i] = $root.Authentication.ChangeToKeyTypeOneStatus.fromObject(object.changeToKeyTypeOneStatus[i]); } } return message; @@ -21544,20 +20152,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeToKeyTypeOneResponse.toObject = function toObject(message, options, q) { + ChangeToKeyTypeOneResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.changeToKeyTypeOneStatus = []; if (message.changeToKeyTypeOneStatus && message.changeToKeyTypeOneStatus.length) { object.changeToKeyTypeOneStatus = []; for (let j = 0; j < message.changeToKeyTypeOneStatus.length; ++j) - object.changeToKeyTypeOneStatus[j] = $root.Authentication.ChangeToKeyTypeOneStatus.toObject(message.changeToKeyTypeOneStatus[j], options, q + 1); + object.changeToKeyTypeOneStatus[j] = $root.Authentication.ChangeToKeyTypeOneStatus.toObject(message.changeToKeyTypeOneStatus[j], options); } return object; }; @@ -21646,7 +20250,7 @@ export const Authentication = $root.Authentication = (() => { this.onlyTheseObjects = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -21711,13 +20315,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetChangeKeyTypesRequest.encode = function encode(message, writer, q) { + GetChangeKeyTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.onlyTheseObjects != null && message.onlyTheseObjects.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.onlyTheseObjects.length; ++i) @@ -21759,18 +20359,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetChangeKeyTypesRequest.decode = function decode(reader, length, error, long) { + GetChangeKeyTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetChangeKeyTypesRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.onlyTheseObjects && message.onlyTheseObjects.length)) @@ -21800,7 +20394,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -21831,13 +20425,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetChangeKeyTypesRequest.verify = function verify(message, long) { + GetChangeKeyTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.onlyTheseObjects != null && message.hasOwnProperty("onlyTheseObjects")) { if (!Array.isArray(message.onlyTheseObjects)) return "onlyTheseObjects: array expected"; @@ -21881,13 +20471,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetChangeKeyTypesRequest} GetChangeKeyTypesRequest */ - GetChangeKeyTypesRequest.fromObject = function fromObject(object, long) { + GetChangeKeyTypesRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetChangeKeyTypesRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetChangeKeyTypesRequest(); if (object.onlyTheseObjects) { if (!Array.isArray(object.onlyTheseObjects)) @@ -21962,13 +20548,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetChangeKeyTypesRequest.toObject = function toObject(message, options, q) { + GetChangeKeyTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.onlyTheseObjects = []; @@ -22046,7 +20628,7 @@ export const Authentication = $root.Authentication = (() => { this.allowedKeyTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -22087,19 +20669,15 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetChangeKeyTypesResponse.encode = function encode(message, writer, q) { + GetChangeKeyTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Authentication.ChangeKeyType.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.ChangeKeyType.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.allowedKeyTypes != null && message.allowedKeyTypes.length) for (let i = 0; i < message.allowedKeyTypes.length; ++i) - $root.Authentication.AllowedKeyTypes.encode(message.allowedKeyTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Authentication.AllowedKeyTypes.encode(message.allowedKeyTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -22127,33 +20705,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetChangeKeyTypesResponse.decode = function decode(reader, length, error, long) { + GetChangeKeyTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetChangeKeyTypesResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.keys && message.keys.length)) message.keys = []; - message.keys.push($root.Authentication.ChangeKeyType.decode(reader, reader.uint32(), undefined, long + 1)); + message.keys.push($root.Authentication.ChangeKeyType.decode(reader, reader.uint32())); break; } case 2: { if (!(message.allowedKeyTypes && message.allowedKeyTypes.length)) message.allowedKeyTypes = []; - message.allowedKeyTypes.push($root.Authentication.AllowedKeyTypes.decode(reader, reader.uint32(), undefined, long + 1)); + message.allowedKeyTypes.push($root.Authentication.AllowedKeyTypes.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -22184,18 +20756,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetChangeKeyTypesResponse.verify = function verify(message, long) { + GetChangeKeyTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.keys != null && message.hasOwnProperty("keys")) { if (!Array.isArray(message.keys)) return "keys: array expected"; for (let i = 0; i < message.keys.length; ++i) { - let error = $root.Authentication.ChangeKeyType.verify(message.keys[i], long + 1); + let error = $root.Authentication.ChangeKeyType.verify(message.keys[i]); if (error) return "keys." + error; } @@ -22204,7 +20772,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.allowedKeyTypes)) return "allowedKeyTypes: array expected"; for (let i = 0; i < message.allowedKeyTypes.length; ++i) { - let error = $root.Authentication.AllowedKeyTypes.verify(message.allowedKeyTypes[i], long + 1); + let error = $root.Authentication.AllowedKeyTypes.verify(message.allowedKeyTypes[i]); if (error) return "allowedKeyTypes." + error; } @@ -22220,13 +20788,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetChangeKeyTypesResponse} GetChangeKeyTypesResponse */ - GetChangeKeyTypesResponse.fromObject = function fromObject(object, long) { + GetChangeKeyTypesResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetChangeKeyTypesResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetChangeKeyTypesResponse(); if (object.keys) { if (!Array.isArray(object.keys)) @@ -22235,7 +20799,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.keys.length; ++i) { if (typeof object.keys[i] !== "object") throw TypeError(".Authentication.GetChangeKeyTypesResponse.keys: object expected"); - message.keys[i] = $root.Authentication.ChangeKeyType.fromObject(object.keys[i], long + 1); + message.keys[i] = $root.Authentication.ChangeKeyType.fromObject(object.keys[i]); } } if (object.allowedKeyTypes) { @@ -22245,7 +20809,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.allowedKeyTypes.length; ++i) { if (typeof object.allowedKeyTypes[i] !== "object") throw TypeError(".Authentication.GetChangeKeyTypesResponse.allowedKeyTypes: object expected"); - message.allowedKeyTypes[i] = $root.Authentication.AllowedKeyTypes.fromObject(object.allowedKeyTypes[i], long + 1); + message.allowedKeyTypes[i] = $root.Authentication.AllowedKeyTypes.fromObject(object.allowedKeyTypes[i]); } } return message; @@ -22260,13 +20824,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetChangeKeyTypesResponse.toObject = function toObject(message, options, q) { + GetChangeKeyTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.keys = []; @@ -22275,12 +20835,12 @@ export const Authentication = $root.Authentication = (() => { if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) - object.keys[j] = $root.Authentication.ChangeKeyType.toObject(message.keys[j], options, q + 1); + object.keys[j] = $root.Authentication.ChangeKeyType.toObject(message.keys[j], options); } if (message.allowedKeyTypes && message.allowedKeyTypes.length) { object.allowedKeyTypes = []; for (let j = 0; j < message.allowedKeyTypes.length; ++j) - object.allowedKeyTypes[j] = $root.Authentication.AllowedKeyTypes.toObject(message.allowedKeyTypes[j], options, q + 1); + object.allowedKeyTypes[j] = $root.Authentication.AllowedKeyTypes.toObject(message.allowedKeyTypes[j], options); } return object; }; @@ -22336,7 +20896,7 @@ export const Authentication = $root.Authentication = (() => { this.allowedKeyTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -22377,13 +20937,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AllowedKeyTypes.encode = function encode(message, writer, q) { + AllowedKeyTypes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objectType); if (message.allowedKeyTypes != null && message.allowedKeyTypes.length) { @@ -22419,18 +20975,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AllowedKeyTypes.decode = function decode(reader, length, error, long) { + AllowedKeyTypes.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AllowedKeyTypes(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.objectType = reader.int32(); @@ -22448,7 +20998,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -22479,13 +21029,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AllowedKeyTypes.verify = function verify(message, long) { + AllowedKeyTypes.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.objectType != null && message.hasOwnProperty("objectType")) switch (message.objectType) { default: @@ -22528,13 +21074,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AllowedKeyTypes} AllowedKeyTypes */ - AllowedKeyTypes.fromObject = function fromObject(object, long) { + AllowedKeyTypes.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AllowedKeyTypes) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AllowedKeyTypes(); switch (object.objectType) { default: @@ -22629,13 +21171,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AllowedKeyTypes.toObject = function toObject(message, options, q) { + AllowedKeyTypes.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.allowedKeyTypes = []; @@ -22701,7 +21239,7 @@ export const Authentication = $root.Authentication = (() => { this.keys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -22734,16 +21272,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeKeyTypes.encode = function encode(message, writer, q) { + ChangeKeyTypes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Authentication.ChangeKeyType.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.ChangeKeyType.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -22771,27 +21305,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeKeyTypes.decode = function decode(reader, length, error, long) { + ChangeKeyTypes.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeKeyTypes(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.keys && message.keys.length)) message.keys = []; - message.keys.push($root.Authentication.ChangeKeyType.decode(reader, reader.uint32(), undefined, long + 1)); + message.keys.push($root.Authentication.ChangeKeyType.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -22822,18 +21350,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeKeyTypes.verify = function verify(message, long) { + ChangeKeyTypes.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.keys != null && message.hasOwnProperty("keys")) { if (!Array.isArray(message.keys)) return "keys: array expected"; for (let i = 0; i < message.keys.length; ++i) { - let error = $root.Authentication.ChangeKeyType.verify(message.keys[i], long + 1); + let error = $root.Authentication.ChangeKeyType.verify(message.keys[i]); if (error) return "keys." + error; } @@ -22849,13 +21373,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ChangeKeyTypes} ChangeKeyTypes */ - ChangeKeyTypes.fromObject = function fromObject(object, long) { + ChangeKeyTypes.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ChangeKeyTypes) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ChangeKeyTypes(); if (object.keys) { if (!Array.isArray(object.keys)) @@ -22864,7 +21384,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.keys.length; ++i) { if (typeof object.keys[i] !== "object") throw TypeError(".Authentication.ChangeKeyTypes.keys: object expected"); - message.keys[i] = $root.Authentication.ChangeKeyType.fromObject(object.keys[i], long + 1); + message.keys[i] = $root.Authentication.ChangeKeyType.fromObject(object.keys[i]); } } return message; @@ -22879,20 +21399,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeKeyTypes.toObject = function toObject(message, options, q) { + ChangeKeyTypes.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.keys = []; if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) - object.keys[j] = $root.Authentication.ChangeKeyType.toObject(message.keys[j], options, q + 1); + object.keys[j] = $root.Authentication.ChangeKeyType.toObject(message.keys[j], options); } return object; }; @@ -22951,7 +21467,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeKeyType(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -23024,13 +21540,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeKeyType.encode = function encode(message, writer, q) { + ChangeKeyType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objectType); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) @@ -23070,18 +21582,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeKeyType.decode = function decode(reader, length, error, long) { + ChangeKeyType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeKeyType(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.objectType = reader.int32(); @@ -23108,7 +21614,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -23139,13 +21645,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeKeyType.verify = function verify(message, long) { + ChangeKeyType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.objectType != null && message.hasOwnProperty("objectType")) switch (message.objectType) { default: @@ -23204,13 +21706,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ChangeKeyType} ChangeKeyType */ - ChangeKeyType.fromObject = function fromObject(object, long) { + ChangeKeyType.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ChangeKeyType) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ChangeKeyType(); switch (object.objectType) { default: @@ -23343,13 +21841,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeKeyType.toObject = function toObject(message, options, q) { + ChangeKeyType.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.objectType = options.enums === String ? "EOT_UNSPECIFIED" : 0; @@ -23442,7 +21936,7 @@ export const Authentication = $root.Authentication = (() => { function SetKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -23483,13 +21977,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetKey.encode = function encode(message, writer, q) { + SetKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); if (message.key != null && Object.hasOwnProperty.call(message, "key")) @@ -23521,18 +22011,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetKey.decode = function decode(reader, length, error, long) { + SetKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SetKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int64(); @@ -23543,7 +22027,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -23574,13 +22058,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetKey.verify = function verify(message, long) { + SetKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) return "id: integer|Long expected"; @@ -23598,17 +22078,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SetKey} SetKey */ - SetKey.fromObject = function fromObject(object, long) { + SetKey.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SetKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SetKey(); if (object.id != null) if ($util.Long) - message.id = $util.Long.fromValue(object.id, false); + (message.id = $util.Long.fromValue(object.id)).unsigned = false; else if (typeof object.id === "string") message.id = parseInt(object.id, 10); else if (typeof object.id === "number") @@ -23632,20 +22108,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetKey.toObject = function toObject(message, options, q) { + SetKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.id = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.id = options.longs === String ? "0" : 0; if (options.bytes === String) object.key = ""; else { @@ -23655,9 +22127,7 @@ export const Authentication = $root.Authentication = (() => { } } if (message.id != null && message.hasOwnProperty("id")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.id = typeof message.id === "number" ? BigInt(message.id) : $util.Long.fromBits(message.id.low >>> 0, message.id.high >>> 0, false).toBigInt(); - else if (typeof message.id === "number") + if (typeof message.id === "number") object.id = options.longs === String ? String(message.id) : message.id; else object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; @@ -23716,7 +22186,7 @@ export const Authentication = $root.Authentication = (() => { this.keys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -23749,16 +22219,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetKeyRequest.encode = function encode(message, writer, q) { + SetKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Authentication.SetKey.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.SetKey.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -23786,27 +22252,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetKeyRequest.decode = function decode(reader, length, error, long) { + SetKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SetKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.keys && message.keys.length)) message.keys = []; - message.keys.push($root.Authentication.SetKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.keys.push($root.Authentication.SetKey.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -23837,18 +22297,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetKeyRequest.verify = function verify(message, long) { + SetKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.keys != null && message.hasOwnProperty("keys")) { if (!Array.isArray(message.keys)) return "keys: array expected"; for (let i = 0; i < message.keys.length; ++i) { - let error = $root.Authentication.SetKey.verify(message.keys[i], long + 1); + let error = $root.Authentication.SetKey.verify(message.keys[i]); if (error) return "keys." + error; } @@ -23864,13 +22320,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SetKeyRequest} SetKeyRequest */ - SetKeyRequest.fromObject = function fromObject(object, long) { + SetKeyRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SetKeyRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SetKeyRequest(); if (object.keys) { if (!Array.isArray(object.keys)) @@ -23879,7 +22331,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.keys.length; ++i) { if (typeof object.keys[i] !== "object") throw TypeError(".Authentication.SetKeyRequest.keys: object expected"); - message.keys[i] = $root.Authentication.SetKey.fromObject(object.keys[i], long + 1); + message.keys[i] = $root.Authentication.SetKey.fromObject(object.keys[i]); } } return message; @@ -23894,20 +22346,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetKeyRequest.toObject = function toObject(message, options, q) { + SetKeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.keys = []; if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) - object.keys[j] = $root.Authentication.SetKey.toObject(message.keys[j], options, q + 1); + object.keys[j] = $root.Authentication.SetKey.toObject(message.keys[j], options); } return object; }; @@ -23985,7 +22433,7 @@ export const Authentication = $root.Authentication = (() => { function CreateUserRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -24210,13 +22658,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateUserRequest.encode = function encode(message, writer, q) { + CreateUserRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.authVerifier != null && Object.hasOwnProperty.call(message, "authVerifier")) @@ -24262,7 +22706,7 @@ export const Authentication = $root.Authentication = (() => { if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) writer.uint32(/* id 22, wireType 2 =*/178).string(message.verificationCode); if (message.enterpriseRegistration != null && Object.hasOwnProperty.call(message, "enterpriseRegistration")) - $root.Enterprise.EnterpriseRegistration.encode(message.enterpriseRegistration, writer.uint32(/* id 23, wireType 2 =*/186).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseRegistration.encode(message.enterpriseRegistration, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.encryptedVerificationToken != null && Object.hasOwnProperty.call(message, "encryptedVerificationToken")) writer.uint32(/* id 24, wireType 2 =*/194).bytes(message.encryptedVerificationToken); if (message.enterpriseUsersDataKey != null && Object.hasOwnProperty.call(message, "enterpriseUsersDataKey")) @@ -24294,18 +22738,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateUserRequest.decode = function decode(reader, length, error, long) { + CreateUserRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.CreateUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -24396,7 +22834,7 @@ export const Authentication = $root.Authentication = (() => { break; } case 23: { - message.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.decode(reader, reader.uint32(), undefined, long + 1); + message.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.decode(reader, reader.uint32()); break; } case 24: { @@ -24408,7 +22846,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -24439,13 +22877,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateUserRequest.verify = function verify(message, long) { + CreateUserRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -24513,7 +22947,7 @@ export const Authentication = $root.Authentication = (() => { if (!$util.isString(message.verificationCode)) return "verificationCode: string expected"; if (message.enterpriseRegistration != null && message.hasOwnProperty("enterpriseRegistration")) { - let error = $root.Enterprise.EnterpriseRegistration.verify(message.enterpriseRegistration, long + 1); + let error = $root.Enterprise.EnterpriseRegistration.verify(message.enterpriseRegistration); if (error) return "enterpriseRegistration." + error; } @@ -24534,13 +22968,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.CreateUserRequest} CreateUserRequest */ - CreateUserRequest.fromObject = function fromObject(object, long) { + CreateUserRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.CreateUserRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.CreateUserRequest(); if (object.username != null) message.username = String(object.username); @@ -24622,7 +23052,7 @@ export const Authentication = $root.Authentication = (() => { if (object.enterpriseRegistration != null) { if (typeof object.enterpriseRegistration !== "object") throw TypeError(".Authentication.CreateUserRequest.enterpriseRegistration: object expected"); - message.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.fromObject(object.enterpriseRegistration, long + 1); + message.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.fromObject(object.enterpriseRegistration); } if (object.encryptedVerificationToken != null) if (typeof object.encryptedVerificationToken === "string") @@ -24646,13 +23076,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateUserRequest.toObject = function toObject(message, options, q) { + CreateUserRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -24804,7 +23230,7 @@ export const Authentication = $root.Authentication = (() => { if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) object.verificationCode = message.verificationCode; if (message.enterpriseRegistration != null && message.hasOwnProperty("enterpriseRegistration")) - object.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.toObject(message.enterpriseRegistration, options, q + 1); + object.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.toObject(message.enterpriseRegistration, options); if (message.encryptedVerificationToken != null && message.hasOwnProperty("encryptedVerificationToken")) object.encryptedVerificationToken = options.bytes === String ? $util.base64.encode(message.encryptedVerificationToken, 0, message.encryptedVerificationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedVerificationToken) : message.encryptedVerificationToken; if (message.enterpriseUsersDataKey != null && message.hasOwnProperty("enterpriseUsersDataKey")) @@ -24863,7 +23289,7 @@ export const Authentication = $root.Authentication = (() => { function NodeEnforcementAddOrUpdateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -24912,13 +23338,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeEnforcementAddOrUpdateRequest.encode = function encode(message, writer, q) { + NodeEnforcementAddOrUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); if (message.enforcement != null && Object.hasOwnProperty.call(message, "enforcement")) @@ -24952,18 +23374,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeEnforcementAddOrUpdateRequest.decode = function decode(reader, length, error, long) { + NodeEnforcementAddOrUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.NodeEnforcementAddOrUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nodeId = reader.int64(); @@ -24978,7 +23394,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -25009,13 +23425,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeEnforcementAddOrUpdateRequest.verify = function verify(message, long) { + NodeEnforcementAddOrUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeId != null && message.hasOwnProperty("nodeId")) if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) return "nodeId: integer|Long expected"; @@ -25036,17 +23448,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.NodeEnforcementAddOrUpdateRequest} NodeEnforcementAddOrUpdateRequest */ - NodeEnforcementAddOrUpdateRequest.fromObject = function fromObject(object, long) { + NodeEnforcementAddOrUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.NodeEnforcementAddOrUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.NodeEnforcementAddOrUpdateRequest(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -25069,27 +23477,21 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeEnforcementAddOrUpdateRequest.toObject = function toObject(message, options, q) { + NodeEnforcementAddOrUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.enforcement = ""; object.value = ""; } if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -25150,7 +23552,7 @@ export const Authentication = $root.Authentication = (() => { function NodeEnforcementRemoveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -25191,13 +23593,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeEnforcementRemoveRequest.encode = function encode(message, writer, q) { + NodeEnforcementRemoveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); if (message.enforcement != null && Object.hasOwnProperty.call(message, "enforcement")) @@ -25229,18 +23627,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeEnforcementRemoveRequest.decode = function decode(reader, length, error, long) { + NodeEnforcementRemoveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.NodeEnforcementRemoveRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nodeId = reader.int64(); @@ -25251,7 +23643,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -25282,13 +23674,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeEnforcementRemoveRequest.verify = function verify(message, long) { + NodeEnforcementRemoveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeId != null && message.hasOwnProperty("nodeId")) if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) return "nodeId: integer|Long expected"; @@ -25306,17 +23694,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.NodeEnforcementRemoveRequest} NodeEnforcementRemoveRequest */ - NodeEnforcementRemoveRequest.fromObject = function fromObject(object, long) { + NodeEnforcementRemoveRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.NodeEnforcementRemoveRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.NodeEnforcementRemoveRequest(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -25337,26 +23721,20 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeEnforcementRemoveRequest.toObject = function toObject(message, options, q) { + NodeEnforcementRemoveRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.enforcement = ""; } if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -25420,7 +23798,7 @@ export const Authentication = $root.Authentication = (() => { function ApiRequestByKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -25501,13 +23879,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiRequestByKey.encode = function encode(message, writer, q) { + ApiRequestByKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.keyId); if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) @@ -25549,18 +23923,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApiRequestByKey.decode = function decode(reader, length, error, long) { + ApiRequestByKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApiRequestByKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.keyId = reader.int32(); @@ -25591,7 +23959,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -25622,13 +23990,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApiRequestByKey.verify = function verify(message, long) { + ApiRequestByKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.keyId != null && message.hasOwnProperty("keyId")) if (!$util.isInteger(message.keyId)) return "keyId: integer expected"; @@ -25687,13 +24051,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ApiRequestByKey} ApiRequestByKey */ - ApiRequestByKey.fromObject = function fromObject(object, long) { + ApiRequestByKey.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ApiRequestByKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ApiRequestByKey(); if (object.keyId != null) message.keyId = object.keyId | 0; @@ -25822,13 +24182,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApiRequestByKey.toObject = function toObject(message, options, q) { + ApiRequestByKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.keyId = 0; @@ -25914,7 +24270,7 @@ export const Authentication = $root.Authentication = (() => { function ApiRequestByKAtoKAKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -25971,13 +24327,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiRequestByKAtoKAKey.encode = function encode(message, writer, q) { + ApiRequestByKAtoKAKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sourceRegion != null && Object.hasOwnProperty.call(message, "sourceRegion")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sourceRegion); if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) @@ -26013,18 +24365,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApiRequestByKAtoKAKey.decode = function decode(reader, length, error, long) { + ApiRequestByKAtoKAKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApiRequestByKAtoKAKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sourceRegion = reader.int32(); @@ -26043,7 +24389,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -26074,13 +24420,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApiRequestByKAtoKAKey.verify = function verify(message, long) { + ApiRequestByKAtoKAKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sourceRegion != null && message.hasOwnProperty("sourceRegion")) switch (message.sourceRegion) { default: @@ -26150,13 +24492,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ApiRequestByKAtoKAKey} ApiRequestByKAtoKAKey */ - ApiRequestByKAtoKAKey.fromObject = function fromObject(object, long) { + ApiRequestByKAtoKAKey.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ApiRequestByKAtoKAKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ApiRequestByKAtoKAKey(); switch (object.sourceRegion) { default: @@ -26347,13 +24685,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApiRequestByKAtoKAKey.toObject = function toObject(message, options, q) { + ApiRequestByKAtoKAKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.sourceRegion = options.enums === String ? "UNKNOWN" : 0; @@ -26428,7 +24762,7 @@ export const Authentication = $root.Authentication = (() => { function MemcacheRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -26469,13 +24803,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MemcacheRequest.encode = function encode(message, writer, q) { + MemcacheRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) @@ -26507,18 +24837,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MemcacheRequest.decode = function decode(reader, length, error, long) { + MemcacheRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.MemcacheRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.key = reader.string(); @@ -26529,7 +24853,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -26560,13 +24884,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MemcacheRequest.verify = function verify(message, long) { + MemcacheRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.key != null && message.hasOwnProperty("key")) if (!$util.isString(message.key)) return "key: string expected"; @@ -26584,13 +24904,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.MemcacheRequest} MemcacheRequest */ - MemcacheRequest.fromObject = function fromObject(object, long) { + MemcacheRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.MemcacheRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.MemcacheRequest(); if (object.key != null) message.key = String(object.key); @@ -26608,13 +24924,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MemcacheRequest.toObject = function toObject(message, options, q) { + MemcacheRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.key = ""; @@ -26677,7 +24989,7 @@ export const Authentication = $root.Authentication = (() => { function MemcacheResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -26718,13 +25030,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MemcacheResponse.encode = function encode(message, writer, q) { + MemcacheResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -26756,18 +25064,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MemcacheResponse.decode = function decode(reader, length, error, long) { + MemcacheResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.MemcacheResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.key = reader.string(); @@ -26778,7 +25080,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -26809,13 +25111,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MemcacheResponse.verify = function verify(message, long) { + MemcacheResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.key != null && message.hasOwnProperty("key")) if (!$util.isString(message.key)) return "key: string expected"; @@ -26833,13 +25131,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.MemcacheResponse} MemcacheResponse */ - MemcacheResponse.fromObject = function fromObject(object, long) { + MemcacheResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.MemcacheResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.MemcacheResponse(); if (object.key != null) message.key = String(object.key); @@ -26857,13 +25151,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MemcacheResponse.toObject = function toObject(message, options, q) { + MemcacheResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.key = ""; @@ -26926,7 +25216,7 @@ export const Authentication = $root.Authentication = (() => { function MasterPasswordReentryRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -26967,13 +25257,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterPasswordReentryRequest.encode = function encode(message, writer, q) { + MasterPasswordReentryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.pbkdf2Password != null && Object.hasOwnProperty.call(message, "pbkdf2Password")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.pbkdf2Password); if (message.action != null && Object.hasOwnProperty.call(message, "action")) @@ -27005,18 +25291,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterPasswordReentryRequest.decode = function decode(reader, length, error, long) { + MasterPasswordReentryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.MasterPasswordReentryRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.pbkdf2Password = reader.string(); @@ -27027,7 +25307,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -27058,13 +25338,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MasterPasswordReentryRequest.verify = function verify(message, long) { + MasterPasswordReentryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.pbkdf2Password != null && message.hasOwnProperty("pbkdf2Password")) if (!$util.isString(message.pbkdf2Password)) return "pbkdf2Password: string expected"; @@ -27087,13 +25363,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.MasterPasswordReentryRequest} MasterPasswordReentryRequest */ - MasterPasswordReentryRequest.fromObject = function fromObject(object, long) { + MasterPasswordReentryRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.MasterPasswordReentryRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.MasterPasswordReentryRequest(); if (object.pbkdf2Password != null) message.pbkdf2Password = String(object.pbkdf2Password); @@ -27125,13 +25397,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MasterPasswordReentryRequest.toObject = function toObject(message, options, q) { + MasterPasswordReentryRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.pbkdf2Password = ""; @@ -27209,7 +25477,7 @@ export const Authentication = $root.Authentication = (() => { function MasterPasswordReentryResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -27242,13 +25510,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterPasswordReentryResponse.encode = function encode(message, writer, q) { + MasterPasswordReentryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status); return writer; @@ -27278,25 +25542,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterPasswordReentryResponse.decode = function decode(reader, length, error, long) { + MasterPasswordReentryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.MasterPasswordReentryResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.status = reader.int32(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -27327,13 +25585,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MasterPasswordReentryResponse.verify = function verify(message, long) { + MasterPasswordReentryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.status != null && message.hasOwnProperty("status")) switch (message.status) { default: @@ -27354,13 +25608,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.MasterPasswordReentryResponse} MasterPasswordReentryResponse */ - MasterPasswordReentryResponse.fromObject = function fromObject(object, long) { + MasterPasswordReentryResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.MasterPasswordReentryResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.MasterPasswordReentryResponse(); switch (object.status) { default: @@ -27394,13 +25644,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MasterPasswordReentryResponse.toObject = function toObject(message, options, q) { + MasterPasswordReentryResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.status = options.enums === String ? "MP_UNKNOWN" : 0; @@ -27463,7 +25709,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceRegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -27536,13 +25782,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceRegistrationRequest.encode = function encode(message, writer, q) { + DeviceRegistrationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientVersion); if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) @@ -27582,18 +25824,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceRegistrationRequest.decode = function decode(reader, length, error, long) { + DeviceRegistrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceRegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.clientVersion = reader.string(); @@ -27620,7 +25856,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -27651,13 +25887,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceRegistrationRequest.verify = function verify(message, long) { + DeviceRegistrationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) if (!$util.isString(message.clientVersion)) return "clientVersion: string expected"; @@ -27694,13 +25926,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeviceRegistrationRequest} DeviceRegistrationRequest */ - DeviceRegistrationRequest.fromObject = function fromObject(object, long) { + DeviceRegistrationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeviceRegistrationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeviceRegistrationRequest(); if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); @@ -27751,13 +25979,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceRegistrationRequest.toObject = function toObject(message, options, q) { + DeviceRegistrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.clientVersion = ""; @@ -27841,7 +26065,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceVerificationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -27906,13 +26130,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceVerificationRequest.encode = function encode(message, writer, q) { + DeviceVerificationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -27950,18 +26170,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceVerificationRequest.decode = function decode(reader, length, error, long) { + DeviceVerificationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceVerificationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -27984,7 +26198,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -28015,13 +26229,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceVerificationRequest.verify = function verify(message, long) { + DeviceVerificationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -28048,13 +26258,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeviceVerificationRequest} DeviceVerificationRequest */ - DeviceVerificationRequest.fromObject = function fromObject(object, long) { + DeviceVerificationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeviceVerificationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeviceVerificationRequest(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -28084,13 +26290,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceVerificationRequest.toObject = function toObject(message, options, q) { + DeviceVerificationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -28177,7 +26379,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceVerificationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -28242,13 +26444,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceVerificationResponse.encode = function encode(message, writer, q) { + DeviceVerificationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -28286,18 +26484,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceVerificationResponse.decode = function decode(reader, length, error, long) { + DeviceVerificationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceVerificationResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -28320,7 +26512,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -28351,13 +26543,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceVerificationResponse.verify = function verify(message, long) { + DeviceVerificationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -28391,13 +26579,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeviceVerificationResponse} DeviceVerificationResponse */ - DeviceVerificationResponse.fromObject = function fromObject(object, long) { + DeviceVerificationResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeviceVerificationResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeviceVerificationResponse(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -28449,13 +26633,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceVerificationResponse.toObject = function toObject(message, options, q) { + DeviceVerificationResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -28545,7 +26725,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceApprovalRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -28634,13 +26814,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceApprovalRequest.encode = function encode(message, writer, q) { + DeviceApprovalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); if (message.twoFactorChannel != null && Object.hasOwnProperty.call(message, "twoFactorChannel")) @@ -28684,18 +26860,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceApprovalRequest.decode = function decode(reader, length, error, long) { + DeviceApprovalRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceApprovalRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.email = reader.string(); @@ -28730,7 +26900,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -28761,13 +26931,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceApprovalRequest.verify = function verify(message, long) { + DeviceApprovalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.email != null && message.hasOwnProperty("email")) if (!$util.isString(message.email)) return "email: string expected"; @@ -28803,13 +26969,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeviceApprovalRequest} DeviceApprovalRequest */ - DeviceApprovalRequest.fromObject = function fromObject(object, long) { + DeviceApprovalRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeviceApprovalRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeviceApprovalRequest(); if (object.email != null) message.email = String(object.email); @@ -28842,13 +27004,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceApprovalRequest.toObject = function toObject(message, options, q) { + DeviceApprovalRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.email = ""; @@ -28934,7 +27092,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceApprovalResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -28967,13 +27125,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceApprovalResponse.encode = function encode(message, writer, q) { + DeviceApprovalResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedTwoFactorToken != null && Object.hasOwnProperty.call(message, "encryptedTwoFactorToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedTwoFactorToken); return writer; @@ -29003,25 +27157,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceApprovalResponse.decode = function decode(reader, length, error, long) { + DeviceApprovalResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceApprovalResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedTwoFactorToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -29052,13 +27200,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceApprovalResponse.verify = function verify(message, long) { + DeviceApprovalResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedTwoFactorToken != null && message.hasOwnProperty("encryptedTwoFactorToken")) if (!(message.encryptedTwoFactorToken && typeof message.encryptedTwoFactorToken.length === "number" || $util.isString(message.encryptedTwoFactorToken))) return "encryptedTwoFactorToken: buffer expected"; @@ -29073,13 +27217,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeviceApprovalResponse} DeviceApprovalResponse */ - DeviceApprovalResponse.fromObject = function fromObject(object, long) { + DeviceApprovalResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeviceApprovalResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeviceApprovalResponse(); if (object.encryptedTwoFactorToken != null) if (typeof object.encryptedTwoFactorToken === "string") @@ -29098,13 +27238,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceApprovalResponse.toObject = function toObject(message, options, q) { + DeviceApprovalResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -29171,7 +27307,7 @@ export const Authentication = $root.Authentication = (() => { function ApproveDeviceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -29228,13 +27364,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDeviceRequest.encode = function encode(message, writer, q) { + ApproveDeviceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, "encryptedDeviceDataKey")) @@ -29270,18 +27402,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDeviceRequest.decode = function decode(reader, length, error, long) { + ApproveDeviceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApproveDeviceRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -29300,7 +27426,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -29331,13 +27457,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveDeviceRequest.verify = function verify(message, long) { + ApproveDeviceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -29361,13 +27483,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ApproveDeviceRequest} ApproveDeviceRequest */ - ApproveDeviceRequest.fromObject = function fromObject(object, long) { + ApproveDeviceRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ApproveDeviceRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ApproveDeviceRequest(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -29395,13 +27513,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveDeviceRequest.toObject = function toObject(message, options, q) { + ApproveDeviceRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -29482,7 +27596,7 @@ export const Authentication = $root.Authentication = (() => { function EnterpriseUserAliasRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -29523,13 +27637,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserAliasRequest.encode = function encode(message, writer, q) { + EnterpriseUserAliasRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) @@ -29561,18 +27671,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserAliasRequest.decode = function decode(reader, length, error, long) { + EnterpriseUserAliasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserAliasRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -29583,7 +27687,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -29614,13 +27718,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserAliasRequest.verify = function verify(message, long) { + EnterpriseUserAliasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -29638,17 +27738,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.EnterpriseUserAliasRequest} EnterpriseUserAliasRequest */ - EnterpriseUserAliasRequest.fromObject = function fromObject(object, long) { + EnterpriseUserAliasRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.EnterpriseUserAliasRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.EnterpriseUserAliasRequest(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -29669,26 +27765,20 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserAliasRequest.toObject = function toObject(message, options, q) { + EnterpriseUserAliasRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.alias = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -29748,7 +27838,7 @@ export const Authentication = $root.Authentication = (() => { function EnterpriseUserAddAliasRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -29797,13 +27887,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserAddAliasRequest.encode = function encode(message, writer, q) { + EnterpriseUserAddAliasRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) @@ -29837,18 +27923,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserAddAliasRequest.decode = function decode(reader, length, error, long) { + EnterpriseUserAddAliasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserAddAliasRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -29863,7 +27943,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -29894,13 +27974,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserAddAliasRequest.verify = function verify(message, long) { + EnterpriseUserAddAliasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -29921,17 +27997,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.EnterpriseUserAddAliasRequest} EnterpriseUserAddAliasRequest */ - EnterpriseUserAddAliasRequest.fromObject = function fromObject(object, long) { + EnterpriseUserAddAliasRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.EnterpriseUserAddAliasRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.EnterpriseUserAddAliasRequest(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -29954,27 +28026,21 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserAddAliasRequest.toObject = function toObject(message, options, q) { + EnterpriseUserAddAliasRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.alias = ""; object.primary = false; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -30035,7 +28101,7 @@ export const Authentication = $root.Authentication = (() => { this.enterpriseUserAddAliasRequest = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -30068,16 +28134,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserAddAliasRequestV2.encode = function encode(message, writer, q) { + EnterpriseUserAddAliasRequestV2.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserAddAliasRequest != null && message.enterpriseUserAddAliasRequest.length) for (let i = 0; i < message.enterpriseUserAddAliasRequest.length; ++i) - $root.Authentication.EnterpriseUserAddAliasRequest.encode(message.enterpriseUserAddAliasRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.EnterpriseUserAddAliasRequest.encode(message.enterpriseUserAddAliasRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -30105,27 +28167,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserAddAliasRequestV2.decode = function decode(reader, length, error, long) { + EnterpriseUserAddAliasRequestV2.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserAddAliasRequestV2(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.enterpriseUserAddAliasRequest && message.enterpriseUserAddAliasRequest.length)) message.enterpriseUserAddAliasRequest = []; - message.enterpriseUserAddAliasRequest.push($root.Authentication.EnterpriseUserAddAliasRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.enterpriseUserAddAliasRequest.push($root.Authentication.EnterpriseUserAddAliasRequest.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -30156,18 +28212,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserAddAliasRequestV2.verify = function verify(message, long) { + EnterpriseUserAddAliasRequestV2.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserAddAliasRequest != null && message.hasOwnProperty("enterpriseUserAddAliasRequest")) { if (!Array.isArray(message.enterpriseUserAddAliasRequest)) return "enterpriseUserAddAliasRequest: array expected"; for (let i = 0; i < message.enterpriseUserAddAliasRequest.length; ++i) { - let error = $root.Authentication.EnterpriseUserAddAliasRequest.verify(message.enterpriseUserAddAliasRequest[i], long + 1); + let error = $root.Authentication.EnterpriseUserAddAliasRequest.verify(message.enterpriseUserAddAliasRequest[i]); if (error) return "enterpriseUserAddAliasRequest." + error; } @@ -30183,13 +28235,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.EnterpriseUserAddAliasRequestV2} EnterpriseUserAddAliasRequestV2 */ - EnterpriseUserAddAliasRequestV2.fromObject = function fromObject(object, long) { + EnterpriseUserAddAliasRequestV2.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.EnterpriseUserAddAliasRequestV2) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.EnterpriseUserAddAliasRequestV2(); if (object.enterpriseUserAddAliasRequest) { if (!Array.isArray(object.enterpriseUserAddAliasRequest)) @@ -30198,7 +28246,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.enterpriseUserAddAliasRequest.length; ++i) { if (typeof object.enterpriseUserAddAliasRequest[i] !== "object") throw TypeError(".Authentication.EnterpriseUserAddAliasRequestV2.enterpriseUserAddAliasRequest: object expected"); - message.enterpriseUserAddAliasRequest[i] = $root.Authentication.EnterpriseUserAddAliasRequest.fromObject(object.enterpriseUserAddAliasRequest[i], long + 1); + message.enterpriseUserAddAliasRequest[i] = $root.Authentication.EnterpriseUserAddAliasRequest.fromObject(object.enterpriseUserAddAliasRequest[i]); } } return message; @@ -30213,20 +28261,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserAddAliasRequestV2.toObject = function toObject(message, options, q) { + EnterpriseUserAddAliasRequestV2.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUserAddAliasRequest = []; if (message.enterpriseUserAddAliasRequest && message.enterpriseUserAddAliasRequest.length) { object.enterpriseUserAddAliasRequest = []; for (let j = 0; j < message.enterpriseUserAddAliasRequest.length; ++j) - object.enterpriseUserAddAliasRequest[j] = $root.Authentication.EnterpriseUserAddAliasRequest.toObject(message.enterpriseUserAddAliasRequest[j], options, q + 1); + object.enterpriseUserAddAliasRequest[j] = $root.Authentication.EnterpriseUserAddAliasRequest.toObject(message.enterpriseUserAddAliasRequest[j], options); } return object; }; @@ -30281,7 +28325,7 @@ export const Authentication = $root.Authentication = (() => { function EnterpriseUserAddAliasStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -30322,13 +28366,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserAddAliasStatus.encode = function encode(message, writer, q) { + EnterpriseUserAddAliasStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -30360,18 +28400,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserAddAliasStatus.decode = function decode(reader, length, error, long) { + EnterpriseUserAddAliasStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserAddAliasStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -30382,7 +28416,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -30413,13 +28447,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserAddAliasStatus.verify = function verify(message, long) { + EnterpriseUserAddAliasStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -30437,17 +28467,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.EnterpriseUserAddAliasStatus} EnterpriseUserAddAliasStatus */ - EnterpriseUserAddAliasStatus.fromObject = function fromObject(object, long) { + EnterpriseUserAddAliasStatus.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.EnterpriseUserAddAliasStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.EnterpriseUserAddAliasStatus(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -30468,26 +28494,20 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserAddAliasStatus.toObject = function toObject(message, options, q) { + EnterpriseUserAddAliasStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.status = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -30546,7 +28566,7 @@ export const Authentication = $root.Authentication = (() => { this.status = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -30579,16 +28599,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserAddAliasResponse.encode = function encode(message, writer, q) { + EnterpriseUserAddAliasResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.status != null && message.status.length) for (let i = 0; i < message.status.length; ++i) - $root.Authentication.EnterpriseUserAddAliasStatus.encode(message.status[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.EnterpriseUserAddAliasStatus.encode(message.status[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -30616,27 +28632,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserAddAliasResponse.decode = function decode(reader, length, error, long) { + EnterpriseUserAddAliasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserAddAliasResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.status && message.status.length)) message.status = []; - message.status.push($root.Authentication.EnterpriseUserAddAliasStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.status.push($root.Authentication.EnterpriseUserAddAliasStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -30667,18 +28677,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserAddAliasResponse.verify = function verify(message, long) { + EnterpriseUserAddAliasResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.status != null && message.hasOwnProperty("status")) { if (!Array.isArray(message.status)) return "status: array expected"; for (let i = 0; i < message.status.length; ++i) { - let error = $root.Authentication.EnterpriseUserAddAliasStatus.verify(message.status[i], long + 1); + let error = $root.Authentication.EnterpriseUserAddAliasStatus.verify(message.status[i]); if (error) return "status." + error; } @@ -30694,13 +28700,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.EnterpriseUserAddAliasResponse} EnterpriseUserAddAliasResponse */ - EnterpriseUserAddAliasResponse.fromObject = function fromObject(object, long) { + EnterpriseUserAddAliasResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.EnterpriseUserAddAliasResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.EnterpriseUserAddAliasResponse(); if (object.status) { if (!Array.isArray(object.status)) @@ -30709,7 +28711,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.status.length; ++i) { if (typeof object.status[i] !== "object") throw TypeError(".Authentication.EnterpriseUserAddAliasResponse.status: object expected"); - message.status[i] = $root.Authentication.EnterpriseUserAddAliasStatus.fromObject(object.status[i], long + 1); + message.status[i] = $root.Authentication.EnterpriseUserAddAliasStatus.fromObject(object.status[i]); } } return message; @@ -30724,20 +28726,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserAddAliasResponse.toObject = function toObject(message, options, q) { + EnterpriseUserAddAliasResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.status = []; if (message.status && message.status.length) { object.status = []; for (let j = 0; j < message.status.length; ++j) - object.status[j] = $root.Authentication.EnterpriseUserAddAliasStatus.toObject(message.status[j], options, q + 1); + object.status[j] = $root.Authentication.EnterpriseUserAddAliasStatus.toObject(message.status[j], options); } return object; }; @@ -30791,7 +28789,7 @@ export const Authentication = $root.Authentication = (() => { function Device(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -30824,13 +28822,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Device.encode = function encode(message, writer, q) { + Device.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); return writer; @@ -30860,25 +28854,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Device.decode = function decode(reader, length, error, long) { + Device.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.Device(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -30909,13 +28897,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Device.verify = function verify(message, long) { + Device.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -30930,13 +28914,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.Device} Device */ - Device.fromObject = function fromObject(object, long) { + Device.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.Device) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.Device(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -30955,13 +28935,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Device.toObject = function toObject(message, options, q) { + Device.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -31026,7 +29002,7 @@ export const Authentication = $root.Authentication = (() => { function RegisterDeviceDataKeyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -31067,13 +29043,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisterDeviceDataKeyRequest.encode = function encode(message, writer, q) { + RegisterDeviceDataKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, "encryptedDeviceDataKey")) @@ -31105,18 +29077,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisterDeviceDataKeyRequest.decode = function decode(reader, length, error, long) { + RegisterDeviceDataKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RegisterDeviceDataKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -31127,7 +29093,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -31158,13 +29124,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RegisterDeviceDataKeyRequest.verify = function verify(message, long) { + RegisterDeviceDataKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -31182,13 +29144,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.RegisterDeviceDataKeyRequest} RegisterDeviceDataKeyRequest */ - RegisterDeviceDataKeyRequest.fromObject = function fromObject(object, long) { + RegisterDeviceDataKeyRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.RegisterDeviceDataKeyRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.RegisterDeviceDataKeyRequest(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -31212,13 +29170,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RegisterDeviceDataKeyRequest.toObject = function toObject(message, options, q) { + RegisterDeviceDataKeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -31294,7 +29248,7 @@ export const Authentication = $root.Authentication = (() => { function ValidateCreateUserVerificationCodeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -31343,13 +29297,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateCreateUserVerificationCodeRequest.encode = function encode(message, writer, q) { + ValidateCreateUserVerificationCodeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) @@ -31383,18 +29333,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateCreateUserVerificationCodeRequest.decode = function decode(reader, length, error, long) { + ValidateCreateUserVerificationCodeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ValidateCreateUserVerificationCodeRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -31409,7 +29353,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -31440,13 +29384,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateCreateUserVerificationCodeRequest.verify = function verify(message, long) { + ValidateCreateUserVerificationCodeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -31467,13 +29407,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ValidateCreateUserVerificationCodeRequest} ValidateCreateUserVerificationCodeRequest */ - ValidateCreateUserVerificationCodeRequest.fromObject = function fromObject(object, long) { + ValidateCreateUserVerificationCodeRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ValidateCreateUserVerificationCodeRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ValidateCreateUserVerificationCodeRequest(); if (object.username != null) message.username = String(object.username); @@ -31493,13 +29429,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateCreateUserVerificationCodeRequest.toObject = function toObject(message, options, q) { + ValidateCreateUserVerificationCodeRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -31568,7 +29500,7 @@ export const Authentication = $root.Authentication = (() => { function ValidateDeviceVerificationCodeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -31633,13 +29565,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateDeviceVerificationCodeRequest.encode = function encode(message, writer, q) { + ValidateDeviceVerificationCodeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) @@ -31677,18 +29605,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateDeviceVerificationCodeRequest.decode = function decode(reader, length, error, long) { + ValidateDeviceVerificationCodeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ValidateDeviceVerificationCodeRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -31711,7 +29633,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -31742,13 +29664,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateDeviceVerificationCodeRequest.verify = function verify(message, long) { + ValidateDeviceVerificationCodeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -31775,13 +29693,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ValidateDeviceVerificationCodeRequest} ValidateDeviceVerificationCodeRequest */ - ValidateDeviceVerificationCodeRequest.fromObject = function fromObject(object, long) { + ValidateDeviceVerificationCodeRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ValidateDeviceVerificationCodeRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ValidateDeviceVerificationCodeRequest(); if (object.username != null) message.username = String(object.username); @@ -31811,13 +29725,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateDeviceVerificationCodeRequest.toObject = function toObject(message, options, q) { + ValidateDeviceVerificationCodeRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -31902,7 +29812,7 @@ export const Authentication = $root.Authentication = (() => { function SendSessionMessageRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -31951,13 +29861,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SendSessionMessageRequest.encode = function encode(message, writer, q) { + SendSessionMessageRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); if (message.command != null && Object.hasOwnProperty.call(message, "command")) @@ -31991,18 +29897,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SendSessionMessageRequest.decode = function decode(reader, length, error, long) { + SendSessionMessageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SendSessionMessageRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.messageSessionUid = reader.bytes(); @@ -32017,7 +29917,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -32048,13 +29948,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SendSessionMessageRequest.verify = function verify(message, long) { + SendSessionMessageRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) return "messageSessionUid: buffer expected"; @@ -32075,13 +29971,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SendSessionMessageRequest} SendSessionMessageRequest */ - SendSessionMessageRequest.fromObject = function fromObject(object, long) { + SendSessionMessageRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SendSessionMessageRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SendSessionMessageRequest(); if (object.messageSessionUid != null) if (typeof object.messageSessionUid === "string") @@ -32104,13 +29996,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SendSessionMessageRequest.toObject = function toObject(message, options, q) { + SendSessionMessageRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -32183,7 +30071,7 @@ export const Authentication = $root.Authentication = (() => { function GlobalUserAccount(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -32232,13 +30120,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalUserAccount.encode = function encode(message, writer, q) { + GlobalUserAccount.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) @@ -32272,18 +30156,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalUserAccount.decode = function decode(reader, length, error, long) { + GlobalUserAccount.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GlobalUserAccount(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -32298,7 +30176,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -32329,13 +30207,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GlobalUserAccount.verify = function verify(message, long) { + GlobalUserAccount.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -32356,13 +30230,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GlobalUserAccount} GlobalUserAccount */ - GlobalUserAccount.fromObject = function fromObject(object, long) { + GlobalUserAccount.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GlobalUserAccount) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GlobalUserAccount(); if (object.username != null) message.username = String(object.username); @@ -32385,13 +30255,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GlobalUserAccount.toObject = function toObject(message, options, q) { + GlobalUserAccount.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -32463,7 +30329,7 @@ export const Authentication = $root.Authentication = (() => { function AccountUsername(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -32504,13 +30370,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountUsername.encode = function encode(message, writer, q) { + AccountUsername.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.dateActive != null && Object.hasOwnProperty.call(message, "dateActive")) @@ -32542,18 +30404,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountUsername.decode = function decode(reader, length, error, long) { + AccountUsername.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AccountUsername(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -32564,7 +30420,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -32595,13 +30451,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AccountUsername.verify = function verify(message, long) { + AccountUsername.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -32619,13 +30471,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AccountUsername} AccountUsername */ - AccountUsername.fromObject = function fromObject(object, long) { + AccountUsername.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AccountUsername) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AccountUsername(); if (object.username != null) message.username = String(object.username); @@ -32643,13 +30491,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AccountUsername.toObject = function toObject(message, options, q) { + AccountUsername.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -32713,7 +30557,7 @@ export const Authentication = $root.Authentication = (() => { function SsoServiceProviderRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -32762,13 +30606,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoServiceProviderRequest.encode = function encode(message, writer, q) { + SsoServiceProviderRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) @@ -32802,18 +30642,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoServiceProviderRequest.decode = function decode(reader, length, error, long) { + SsoServiceProviderRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SsoServiceProviderRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -32828,7 +30662,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -32859,13 +30693,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoServiceProviderRequest.verify = function verify(message, long) { + SsoServiceProviderRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -32886,13 +30716,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SsoServiceProviderRequest} SsoServiceProviderRequest */ - SsoServiceProviderRequest.fromObject = function fromObject(object, long) { + SsoServiceProviderRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SsoServiceProviderRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SsoServiceProviderRequest(); if (object.name != null) message.name = String(object.name); @@ -32912,13 +30738,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoServiceProviderRequest.toObject = function toObject(message, options, q) { + SsoServiceProviderRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.name = ""; @@ -32986,7 +30808,7 @@ export const Authentication = $root.Authentication = (() => { function SsoServiceProviderResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -33043,13 +30865,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoServiceProviderResponse.encode = function encode(message, writer, q) { + SsoServiceProviderResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.spUrl != null && Object.hasOwnProperty.call(message, "spUrl")) @@ -33085,18 +30903,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoServiceProviderResponse.decode = function decode(reader, length, error, long) { + SsoServiceProviderResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SsoServiceProviderResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -33115,7 +30927,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -33146,13 +30958,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoServiceProviderResponse.verify = function verify(message, long) { + SsoServiceProviderResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -33176,13 +30984,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SsoServiceProviderResponse} SsoServiceProviderResponse */ - SsoServiceProviderResponse.fromObject = function fromObject(object, long) { + SsoServiceProviderResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SsoServiceProviderResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SsoServiceProviderResponse(); if (object.name != null) message.name = String(object.name); @@ -33204,13 +31008,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoServiceProviderResponse.toObject = function toObject(message, options, q) { + SsoServiceProviderResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.name = ""; @@ -33279,7 +31079,7 @@ export const Authentication = $root.Authentication = (() => { function UserSettingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -33320,13 +31120,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserSettingRequest.encode = function encode(message, writer, q) { + UserSettingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.setting != null && Object.hasOwnProperty.call(message, "setting")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.setting); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -33358,18 +31154,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserSettingRequest.decode = function decode(reader, length, error, long) { + UserSettingRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserSettingRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.setting = reader.string(); @@ -33380,7 +31170,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -33411,13 +31201,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserSettingRequest.verify = function verify(message, long) { + UserSettingRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.setting != null && message.hasOwnProperty("setting")) if (!$util.isString(message.setting)) return "setting: string expected"; @@ -33435,13 +31221,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.UserSettingRequest} UserSettingRequest */ - UserSettingRequest.fromObject = function fromObject(object, long) { + UserSettingRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.UserSettingRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.UserSettingRequest(); if (object.setting != null) message.setting = String(object.setting); @@ -33459,13 +31241,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserSettingRequest.toObject = function toObject(message, options, q) { + UserSettingRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.setting = ""; @@ -33572,7 +31350,7 @@ export const Authentication = $root.Authentication = (() => { function ThrottleState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -33629,13 +31407,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ThrottleState.encode = function encode(message, writer, q) { + ThrottleState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); if (message.key != null && Object.hasOwnProperty.call(message, "key")) @@ -33671,18 +31445,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ThrottleState.decode = function decode(reader, length, error, long) { + ThrottleState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ThrottleState(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.type = reader.int32(); @@ -33701,7 +31469,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -33732,13 +31500,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ThrottleState.verify = function verify(message, long) { + ThrottleState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.type != null && message.hasOwnProperty("type")) switch (message.type) { default: @@ -33773,13 +31537,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ThrottleState} ThrottleState */ - ThrottleState.fromObject = function fromObject(object, long) { + ThrottleState.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ThrottleState) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ThrottleState(); switch (object.type) { default: @@ -33839,13 +31599,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ThrottleState.toObject = function toObject(message, options, q) { + ThrottleState.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.type = options.enums === String ? "PASSWORD_RETRY_THROTTLE" : 0; @@ -33920,7 +31676,7 @@ export const Authentication = $root.Authentication = (() => { function ThrottleState2(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -34009,13 +31765,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ThrottleState2.encode = function encode(message, writer, q) { + ThrottleState2.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); if (message.keyDescription != null && Object.hasOwnProperty.call(message, "keyDescription")) @@ -34059,18 +31811,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ThrottleState2.decode = function decode(reader, length, error, long) { + ThrottleState2.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ThrottleState2(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.key = reader.string(); @@ -34105,7 +31851,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -34136,13 +31882,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ThrottleState2.verify = function verify(message, long) { + ThrottleState2.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.key != null && message.hasOwnProperty("key")) if (!$util.isString(message.key)) return "key: string expected"; @@ -34178,13 +31920,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ThrottleState2} ThrottleState2 */ - ThrottleState2.fromObject = function fromObject(object, long) { + ThrottleState2.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ThrottleState2) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ThrottleState2(); if (object.key != null) message.key = String(object.key); @@ -34214,13 +31952,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ThrottleState2.toObject = function toObject(message, options, q) { + ThrottleState2.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.key = ""; @@ -34304,7 +32038,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceInformation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -34369,13 +32103,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceInformation.encode = function encode(message, writer, q) { + DeviceInformation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) @@ -34413,18 +32143,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceInformation.decode = function decode(reader, length, error, long) { + DeviceInformation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceInformation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.deviceId = reader.int64(); @@ -34447,7 +32171,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -34478,13 +32202,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceInformation.verify = function verify(message, long) { + DeviceInformation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceId != null && message.hasOwnProperty("deviceId")) if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) return "deviceId: integer|Long expected"; @@ -34518,17 +32238,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeviceInformation} DeviceInformation */ - DeviceInformation.fromObject = function fromObject(object, long) { + DeviceInformation.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeviceInformation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeviceInformation(); if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -34541,7 +32257,7 @@ export const Authentication = $root.Authentication = (() => { message.clientVersion = String(object.clientVersion); if (object.lastLogin != null) if ($util.Long) - message.lastLogin = $util.Long.fromValue(object.lastLogin, false); + (message.lastLogin = $util.Long.fromValue(object.lastLogin)).unsigned = false; else if (typeof object.lastLogin === "string") message.lastLogin = parseInt(object.lastLogin, 10); else if (typeof object.lastLogin === "number") @@ -34584,33 +32300,27 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceInformation.toObject = function toObject(message, options, q) { + DeviceInformation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; object.deviceName = ""; object.clientVersion = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastLogin = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastLogin = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastLogin = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastLogin = options.longs === String ? "0" : 0; object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; } if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; @@ -34619,9 +32329,7 @@ export const Authentication = $root.Authentication = (() => { if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) object.clientVersion = message.clientVersion; if (message.lastLogin != null && message.hasOwnProperty("lastLogin")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastLogin = typeof message.lastLogin === "number" ? BigInt(message.lastLogin) : $util.Long.fromBits(message.lastLogin.low >>> 0, message.lastLogin.high >>> 0, false).toBigInt(); - else if (typeof message.lastLogin === "number") + if (typeof message.lastLogin === "number") object.lastLogin = options.longs === String ? String(message.lastLogin) : message.lastLogin; else object.lastLogin = options.longs === String ? $util.Long.prototype.toString.call(message.lastLogin) : options.longs === Number ? new $util.LongBits(message.lastLogin.low >>> 0, message.lastLogin.high >>> 0).toNumber() : message.lastLogin; @@ -34680,7 +32388,7 @@ export const Authentication = $root.Authentication = (() => { function UserSetting(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -34721,13 +32429,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserSetting.encode = function encode(message, writer, q) { + UserSetting.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -34759,18 +32463,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserSetting.decode = function decode(reader, length, error, long) { + UserSetting.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserSetting(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -34781,7 +32479,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -34812,13 +32510,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserSetting.verify = function verify(message, long) { + UserSetting.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -34836,13 +32530,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.UserSetting} UserSetting */ - UserSetting.fromObject = function fromObject(object, long) { + UserSetting.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.UserSetting) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.UserSetting(); if (object.name != null) message.name = String(object.name); @@ -34860,13 +32550,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserSetting.toObject = function toObject(message, options, q) { + UserSetting.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.name = ""; @@ -34929,7 +32615,7 @@ export const Authentication = $root.Authentication = (() => { this.enterpriseUserId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -34962,13 +32648,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserDataKeyRequest.encode = function encode(message, writer, q) { + UserDataKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && message.enterpriseUserId.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.enterpriseUserId.length; ++i) @@ -35002,18 +32684,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserDataKeyRequest.decode = function decode(reader, length, error, long) { + UserDataKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserDataKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.enterpriseUserId && message.enterpriseUserId.length)) @@ -35027,7 +32703,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -35058,13 +32734,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserDataKeyRequest.verify = function verify(message, long) { + UserDataKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) { if (!Array.isArray(message.enterpriseUserId)) return "enterpriseUserId: array expected"; @@ -35083,13 +32755,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.UserDataKeyRequest} UserDataKeyRequest */ - UserDataKeyRequest.fromObject = function fromObject(object, long) { + UserDataKeyRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.UserDataKeyRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.UserDataKeyRequest(); if (object.enterpriseUserId) { if (!Array.isArray(object.enterpriseUserId)) @@ -35097,7 +32765,7 @@ export const Authentication = $root.Authentication = (() => { message.enterpriseUserId = []; for (let i = 0; i < object.enterpriseUserId.length; ++i) if ($util.Long) - message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i], false); + (message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i])).unsigned = false; else if (typeof object.enterpriseUserId[i] === "string") message.enterpriseUserId[i] = parseInt(object.enterpriseUserId[i], 10); else if (typeof object.enterpriseUserId[i] === "number") @@ -35117,22 +32785,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserDataKeyRequest.toObject = function toObject(message, options, q) { + UserDataKeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUserId = []; if (message.enterpriseUserId && message.enterpriseUserId.length) { object.enterpriseUserId = []; for (let j = 0; j < message.enterpriseUserId.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId[j] = typeof message.enterpriseUserId[j] === "number" ? BigInt(message.enterpriseUserId[j]) : $util.Long.fromBits(message.enterpriseUserId[j].low >>> 0, message.enterpriseUserId[j].high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId[j] === "number") + if (typeof message.enterpriseUserId[j] === "number") object.enterpriseUserId[j] = options.longs === String ? String(message.enterpriseUserId[j]) : message.enterpriseUserId[j]; else object.enterpriseUserId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId[j].low >>> 0, message.enterpriseUserId[j].high >>> 0).toNumber() : message.enterpriseUserId[j]; @@ -35190,7 +32852,7 @@ export const Authentication = $root.Authentication = (() => { this.nodeIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -35223,13 +32885,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserDataKeyByNodeRequest.encode = function encode(message, writer, q) { + UserDataKeyByNodeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeIds != null && message.nodeIds.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.nodeIds.length; ++i) @@ -35263,18 +32921,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserDataKeyByNodeRequest.decode = function decode(reader, length, error, long) { + UserDataKeyByNodeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserDataKeyByNodeRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.nodeIds && message.nodeIds.length)) @@ -35288,7 +32940,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -35319,13 +32971,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserDataKeyByNodeRequest.verify = function verify(message, long) { + UserDataKeyByNodeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeIds != null && message.hasOwnProperty("nodeIds")) { if (!Array.isArray(message.nodeIds)) return "nodeIds: array expected"; @@ -35344,13 +32992,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.UserDataKeyByNodeRequest} UserDataKeyByNodeRequest */ - UserDataKeyByNodeRequest.fromObject = function fromObject(object, long) { + UserDataKeyByNodeRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.UserDataKeyByNodeRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.UserDataKeyByNodeRequest(); if (object.nodeIds) { if (!Array.isArray(object.nodeIds)) @@ -35358,7 +33002,7 @@ export const Authentication = $root.Authentication = (() => { message.nodeIds = []; for (let i = 0; i < object.nodeIds.length; ++i) if ($util.Long) - message.nodeIds[i] = $util.Long.fromValue(object.nodeIds[i], false); + (message.nodeIds[i] = $util.Long.fromValue(object.nodeIds[i])).unsigned = false; else if (typeof object.nodeIds[i] === "string") message.nodeIds[i] = parseInt(object.nodeIds[i], 10); else if (typeof object.nodeIds[i] === "number") @@ -35378,22 +33022,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserDataKeyByNodeRequest.toObject = function toObject(message, options, q) { + UserDataKeyByNodeRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.nodeIds = []; if (message.nodeIds && message.nodeIds.length) { object.nodeIds = []; for (let j = 0; j < message.nodeIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeIds[j] = typeof message.nodeIds[j] === "number" ? BigInt(message.nodeIds[j]) : $util.Long.fromBits(message.nodeIds[j].low >>> 0, message.nodeIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.nodeIds[j] === "number") + if (typeof message.nodeIds[j] === "number") object.nodeIds[j] = options.longs === String ? String(message.nodeIds[j]) : message.nodeIds[j]; else object.nodeIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.nodeIds[j]) : options.longs === Number ? new $util.LongBits(message.nodeIds[j].low >>> 0, message.nodeIds[j].high >>> 0).toNumber() : message.nodeIds[j]; @@ -35452,7 +33090,7 @@ export const Authentication = $root.Authentication = (() => { function EnterpriseUserIdDataKeyPair(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -35501,13 +33139,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserIdDataKeyPair.encode = function encode(message, writer, q) { + EnterpriseUserIdDataKeyPair.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) @@ -35541,18 +33175,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserIdDataKeyPair.decode = function decode(reader, length, error, long) { + EnterpriseUserIdDataKeyPair.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserIdDataKeyPair(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -35567,7 +33195,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -35598,13 +33226,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserIdDataKeyPair.verify = function verify(message, long) { + EnterpriseUserIdDataKeyPair.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -35633,17 +33257,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.EnterpriseUserIdDataKeyPair} EnterpriseUserIdDataKeyPair */ - EnterpriseUserIdDataKeyPair.fromObject = function fromObject(object, long) { + EnterpriseUserIdDataKeyPair.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.EnterpriseUserIdDataKeyPair) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.EnterpriseUserIdDataKeyPair(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -35695,20 +33315,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserIdDataKeyPair.toObject = function toObject(message, options, q) { + EnterpriseUserIdDataKeyPair.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.encryptedDataKey = ""; else { @@ -35719,9 +33335,7 @@ export const Authentication = $root.Authentication = (() => { object.keyType = options.enums === String ? "KT_NO_KEY" : 0; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -35785,7 +33399,7 @@ export const Authentication = $root.Authentication = (() => { this.enterpriseUserIdDataKeyPairs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -35842,13 +33456,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserDataKey.encode = function encode(message, writer, q) { + UserDataKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.roleKey != null && Object.hasOwnProperty.call(message, "roleKey")) @@ -35857,7 +33467,7 @@ export const Authentication = $root.Authentication = (() => { writer.uint32(/* id 3, wireType 2 =*/26).string(message.privateKey); if (message.enterpriseUserIdDataKeyPairs != null && message.enterpriseUserIdDataKeyPairs.length) for (let i = 0; i < message.enterpriseUserIdDataKeyPairs.length; ++i) - $root.Authentication.EnterpriseUserIdDataKeyPair.encode(message.enterpriseUserIdDataKeyPairs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Authentication.EnterpriseUserIdDataKeyPair.encode(message.enterpriseUserIdDataKeyPairs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -35885,18 +33495,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserDataKey.decode = function decode(reader, length, error, long) { + UserDataKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserDataKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -35913,11 +33517,11 @@ export const Authentication = $root.Authentication = (() => { case 4: { if (!(message.enterpriseUserIdDataKeyPairs && message.enterpriseUserIdDataKeyPairs.length)) message.enterpriseUserIdDataKeyPairs = []; - message.enterpriseUserIdDataKeyPairs.push($root.Authentication.EnterpriseUserIdDataKeyPair.decode(reader, reader.uint32(), undefined, long + 1)); + message.enterpriseUserIdDataKeyPairs.push($root.Authentication.EnterpriseUserIdDataKeyPair.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -35948,13 +33552,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserDataKey.verify = function verify(message, long) { + UserDataKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -35968,7 +33568,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.enterpriseUserIdDataKeyPairs)) return "enterpriseUserIdDataKeyPairs: array expected"; for (let i = 0; i < message.enterpriseUserIdDataKeyPairs.length; ++i) { - let error = $root.Authentication.EnterpriseUserIdDataKeyPair.verify(message.enterpriseUserIdDataKeyPairs[i], long + 1); + let error = $root.Authentication.EnterpriseUserIdDataKeyPair.verify(message.enterpriseUserIdDataKeyPairs[i]); if (error) return "enterpriseUserIdDataKeyPairs." + error; } @@ -35984,17 +33584,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.UserDataKey} UserDataKey */ - UserDataKey.fromObject = function fromObject(object, long) { + UserDataKey.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.UserDataKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.UserDataKey(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -36015,7 +33611,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.enterpriseUserIdDataKeyPairs.length; ++i) { if (typeof object.enterpriseUserIdDataKeyPairs[i] !== "object") throw TypeError(".Authentication.UserDataKey.enterpriseUserIdDataKeyPairs: object expected"); - message.enterpriseUserIdDataKeyPairs[i] = $root.Authentication.EnterpriseUserIdDataKeyPair.fromObject(object.enterpriseUserIdDataKeyPairs[i], long + 1); + message.enterpriseUserIdDataKeyPairs[i] = $root.Authentication.EnterpriseUserIdDataKeyPair.fromObject(object.enterpriseUserIdDataKeyPairs[i]); } } return message; @@ -36030,22 +33626,18 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserDataKey.toObject = function toObject(message, options, q) { + UserDataKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUserIdDataKeyPairs = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if (options.bytes === String) object.roleKey = ""; else { @@ -36056,9 +33648,7 @@ export const Authentication = $root.Authentication = (() => { object.privateKey = ""; } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -36069,7 +33659,7 @@ export const Authentication = $root.Authentication = (() => { if (message.enterpriseUserIdDataKeyPairs && message.enterpriseUserIdDataKeyPairs.length) { object.enterpriseUserIdDataKeyPairs = []; for (let j = 0; j < message.enterpriseUserIdDataKeyPairs.length; ++j) - object.enterpriseUserIdDataKeyPairs[j] = $root.Authentication.EnterpriseUserIdDataKeyPair.toObject(message.enterpriseUserIdDataKeyPairs[j], options, q + 1); + object.enterpriseUserIdDataKeyPairs[j] = $root.Authentication.EnterpriseUserIdDataKeyPair.toObject(message.enterpriseUserIdDataKeyPairs[j], options); } return object; }; @@ -36128,7 +33718,7 @@ export const Authentication = $root.Authentication = (() => { this.noEncryptedDataKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -36177,16 +33767,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserDataKeyResponse.encode = function encode(message, writer, q) { + UserDataKeyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userDataKeys != null && message.userDataKeys.length) for (let i = 0; i < message.userDataKeys.length; ++i) - $root.Authentication.UserDataKey.encode(message.userDataKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.UserDataKey.encode(message.userDataKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.accessDenied != null && message.accessDenied.length) { writer.uint32(/* id 2, wireType 2 =*/18).fork(); for (let i = 0; i < message.accessDenied.length; ++i) @@ -36226,23 +33812,17 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserDataKeyResponse.decode = function decode(reader, length, error, long) { + UserDataKeyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserDataKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.userDataKeys && message.userDataKeys.length)) message.userDataKeys = []; - message.userDataKeys.push($root.Authentication.UserDataKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.userDataKeys.push($root.Authentication.UserDataKey.decode(reader, reader.uint32())); break; } case 2: { @@ -36268,7 +33848,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -36299,18 +33879,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserDataKeyResponse.verify = function verify(message, long) { + UserDataKeyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userDataKeys != null && message.hasOwnProperty("userDataKeys")) { if (!Array.isArray(message.userDataKeys)) return "userDataKeys: array expected"; for (let i = 0; i < message.userDataKeys.length; ++i) { - let error = $root.Authentication.UserDataKey.verify(message.userDataKeys[i], long + 1); + let error = $root.Authentication.UserDataKey.verify(message.userDataKeys[i]); if (error) return "userDataKeys." + error; } @@ -36340,13 +33916,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.UserDataKeyResponse} UserDataKeyResponse */ - UserDataKeyResponse.fromObject = function fromObject(object, long) { + UserDataKeyResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.UserDataKeyResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.UserDataKeyResponse(); if (object.userDataKeys) { if (!Array.isArray(object.userDataKeys)) @@ -36355,7 +33927,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.userDataKeys.length; ++i) { if (typeof object.userDataKeys[i] !== "object") throw TypeError(".Authentication.UserDataKeyResponse.userDataKeys: object expected"); - message.userDataKeys[i] = $root.Authentication.UserDataKey.fromObject(object.userDataKeys[i], long + 1); + message.userDataKeys[i] = $root.Authentication.UserDataKey.fromObject(object.userDataKeys[i]); } } if (object.accessDenied) { @@ -36364,7 +33936,7 @@ export const Authentication = $root.Authentication = (() => { message.accessDenied = []; for (let i = 0; i < object.accessDenied.length; ++i) if ($util.Long) - message.accessDenied[i] = $util.Long.fromValue(object.accessDenied[i], false); + (message.accessDenied[i] = $util.Long.fromValue(object.accessDenied[i])).unsigned = false; else if (typeof object.accessDenied[i] === "string") message.accessDenied[i] = parseInt(object.accessDenied[i], 10); else if (typeof object.accessDenied[i] === "number") @@ -36378,7 +33950,7 @@ export const Authentication = $root.Authentication = (() => { message.noEncryptedDataKey = []; for (let i = 0; i < object.noEncryptedDataKey.length; ++i) if ($util.Long) - message.noEncryptedDataKey[i] = $util.Long.fromValue(object.noEncryptedDataKey[i], false); + (message.noEncryptedDataKey[i] = $util.Long.fromValue(object.noEncryptedDataKey[i])).unsigned = false; else if (typeof object.noEncryptedDataKey[i] === "string") message.noEncryptedDataKey[i] = parseInt(object.noEncryptedDataKey[i], 10); else if (typeof object.noEncryptedDataKey[i] === "number") @@ -36398,13 +33970,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserDataKeyResponse.toObject = function toObject(message, options, q) { + UserDataKeyResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.userDataKeys = []; @@ -36414,14 +33982,12 @@ export const Authentication = $root.Authentication = (() => { if (message.userDataKeys && message.userDataKeys.length) { object.userDataKeys = []; for (let j = 0; j < message.userDataKeys.length; ++j) - object.userDataKeys[j] = $root.Authentication.UserDataKey.toObject(message.userDataKeys[j], options, q + 1); + object.userDataKeys[j] = $root.Authentication.UserDataKey.toObject(message.userDataKeys[j], options); } if (message.accessDenied && message.accessDenied.length) { object.accessDenied = []; for (let j = 0; j < message.accessDenied.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.accessDenied[j] = typeof message.accessDenied[j] === "number" ? BigInt(message.accessDenied[j]) : $util.Long.fromBits(message.accessDenied[j].low >>> 0, message.accessDenied[j].high >>> 0, false).toBigInt(); - else if (typeof message.accessDenied[j] === "number") + if (typeof message.accessDenied[j] === "number") object.accessDenied[j] = options.longs === String ? String(message.accessDenied[j]) : message.accessDenied[j]; else object.accessDenied[j] = options.longs === String ? $util.Long.prototype.toString.call(message.accessDenied[j]) : options.longs === Number ? new $util.LongBits(message.accessDenied[j].low >>> 0, message.accessDenied[j].high >>> 0).toNumber() : message.accessDenied[j]; @@ -36429,9 +33995,7 @@ export const Authentication = $root.Authentication = (() => { if (message.noEncryptedDataKey && message.noEncryptedDataKey.length) { object.noEncryptedDataKey = []; for (let j = 0; j < message.noEncryptedDataKey.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.noEncryptedDataKey[j] = typeof message.noEncryptedDataKey[j] === "number" ? BigInt(message.noEncryptedDataKey[j]) : $util.Long.fromBits(message.noEncryptedDataKey[j].low >>> 0, message.noEncryptedDataKey[j].high >>> 0, false).toBigInt(); - else if (typeof message.noEncryptedDataKey[j] === "number") + if (typeof message.noEncryptedDataKey[j] === "number") object.noEncryptedDataKey[j] = options.longs === String ? String(message.noEncryptedDataKey[j]) : message.noEncryptedDataKey[j]; else object.noEncryptedDataKey[j] = options.longs === String ? $util.Long.prototype.toString.call(message.noEncryptedDataKey[j]) : options.longs === Number ? new $util.LongBits(message.noEncryptedDataKey[j].low >>> 0, message.noEncryptedDataKey[j].high >>> 0).toNumber() : message.noEncryptedDataKey[j]; @@ -36488,7 +34052,7 @@ export const Authentication = $root.Authentication = (() => { function MasterPasswordRecoveryVerificationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -36521,13 +34085,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterPasswordRecoveryVerificationRequest.encode = function encode(message, writer, q) { + MasterPasswordRecoveryVerificationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); return writer; @@ -36557,25 +34117,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterPasswordRecoveryVerificationRequest.decode = function decode(reader, length, error, long) { + MasterPasswordRecoveryVerificationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.MasterPasswordRecoveryVerificationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedLoginToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -36606,13 +34160,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MasterPasswordRecoveryVerificationRequest.verify = function verify(message, long) { + MasterPasswordRecoveryVerificationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) return "encryptedLoginToken: buffer expected"; @@ -36627,13 +34177,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.MasterPasswordRecoveryVerificationRequest} MasterPasswordRecoveryVerificationRequest */ - MasterPasswordRecoveryVerificationRequest.fromObject = function fromObject(object, long) { + MasterPasswordRecoveryVerificationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.MasterPasswordRecoveryVerificationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.MasterPasswordRecoveryVerificationRequest(); if (object.encryptedLoginToken != null) if (typeof object.encryptedLoginToken === "string") @@ -36652,13 +34198,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MasterPasswordRecoveryVerificationRequest.toObject = function toObject(message, options, q) { + MasterPasswordRecoveryVerificationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -36723,7 +34265,7 @@ export const Authentication = $root.Authentication = (() => { function GetSecurityQuestionV3Request(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -36764,13 +34306,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSecurityQuestionV3Request.encode = function encode(message, writer, q) { + GetSecurityQuestionV3Request.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) @@ -36802,18 +34340,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSecurityQuestionV3Request.decode = function decode(reader, length, error, long) { + GetSecurityQuestionV3Request.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetSecurityQuestionV3Request(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedLoginToken = reader.bytes(); @@ -36824,7 +34356,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -36855,13 +34387,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSecurityQuestionV3Request.verify = function verify(message, long) { + GetSecurityQuestionV3Request.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) return "encryptedLoginToken: buffer expected"; @@ -36879,13 +34407,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetSecurityQuestionV3Request} GetSecurityQuestionV3Request */ - GetSecurityQuestionV3Request.fromObject = function fromObject(object, long) { + GetSecurityQuestionV3Request.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetSecurityQuestionV3Request) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetSecurityQuestionV3Request(); if (object.encryptedLoginToken != null) if (typeof object.encryptedLoginToken === "string") @@ -36906,13 +34430,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSecurityQuestionV3Request.toObject = function toObject(message, options, q) { + GetSecurityQuestionV3Request.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -36983,7 +34503,7 @@ export const Authentication = $root.Authentication = (() => { function GetSecurityQuestionV3Response(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -37040,13 +34560,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSecurityQuestionV3Response.encode = function encode(message, writer, q) { + GetSecurityQuestionV3Response.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.securityQuestion != null && Object.hasOwnProperty.call(message, "securityQuestion")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.securityQuestion); if (message.backupKeyDate != null && Object.hasOwnProperty.call(message, "backupKeyDate")) @@ -37082,18 +34598,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSecurityQuestionV3Response.decode = function decode(reader, length, error, long) { + GetSecurityQuestionV3Response.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetSecurityQuestionV3Response(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.securityQuestion = reader.string(); @@ -37112,7 +34622,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -37143,13 +34653,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSecurityQuestionV3Response.verify = function verify(message, long) { + GetSecurityQuestionV3Response.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.securityQuestion != null && message.hasOwnProperty("securityQuestion")) if (!$util.isString(message.securityQuestion)) return "securityQuestion: string expected"; @@ -37173,19 +34679,15 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetSecurityQuestionV3Response} GetSecurityQuestionV3Response */ - GetSecurityQuestionV3Response.fromObject = function fromObject(object, long) { + GetSecurityQuestionV3Response.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetSecurityQuestionV3Response) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetSecurityQuestionV3Response(); if (object.securityQuestion != null) message.securityQuestion = String(object.securityQuestion); if (object.backupKeyDate != null) if ($util.Long) - message.backupKeyDate = $util.Long.fromValue(object.backupKeyDate, false); + (message.backupKeyDate = $util.Long.fromValue(object.backupKeyDate)).unsigned = false; else if (typeof object.backupKeyDate === "string") message.backupKeyDate = parseInt(object.backupKeyDate, 10); else if (typeof object.backupKeyDate === "number") @@ -37211,21 +34713,17 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSecurityQuestionV3Response.toObject = function toObject(message, options, q) { + GetSecurityQuestionV3Response.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.securityQuestion = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.backupKeyDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.backupKeyDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.backupKeyDate = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.backupKeyDate = options.longs === String ? "0" : 0; if (options.bytes === String) object.salt = ""; else { @@ -37238,9 +34736,7 @@ export const Authentication = $root.Authentication = (() => { if (message.securityQuestion != null && message.hasOwnProperty("securityQuestion")) object.securityQuestion = message.securityQuestion; if (message.backupKeyDate != null && message.hasOwnProperty("backupKeyDate")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.backupKeyDate = typeof message.backupKeyDate === "number" ? BigInt(message.backupKeyDate) : $util.Long.fromBits(message.backupKeyDate.low >>> 0, message.backupKeyDate.high >>> 0, false).toBigInt(); - else if (typeof message.backupKeyDate === "number") + if (typeof message.backupKeyDate === "number") object.backupKeyDate = options.longs === String ? String(message.backupKeyDate) : message.backupKeyDate; else object.backupKeyDate = options.longs === String ? $util.Long.prototype.toString.call(message.backupKeyDate) : options.longs === Number ? new $util.LongBits(message.backupKeyDate.low >>> 0, message.backupKeyDate.high >>> 0).toNumber() : message.backupKeyDate; @@ -37302,7 +34798,7 @@ export const Authentication = $root.Authentication = (() => { function GetDataKeyBackupV3Request(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -37351,13 +34847,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataKeyBackupV3Request.encode = function encode(message, writer, q) { + GetDataKeyBackupV3Request.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) @@ -37391,18 +34883,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataKeyBackupV3Request.decode = function decode(reader, length, error, long) { + GetDataKeyBackupV3Request.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetDataKeyBackupV3Request(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedLoginToken = reader.bytes(); @@ -37417,7 +34903,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -37448,13 +34934,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataKeyBackupV3Request.verify = function verify(message, long) { + GetDataKeyBackupV3Request.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) return "encryptedLoginToken: buffer expected"; @@ -37475,13 +34957,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetDataKeyBackupV3Request} GetDataKeyBackupV3Request */ - GetDataKeyBackupV3Request.fromObject = function fromObject(object, long) { + GetDataKeyBackupV3Request.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetDataKeyBackupV3Request) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetDataKeyBackupV3Request(); if (object.encryptedLoginToken != null) if (typeof object.encryptedLoginToken === "string") @@ -37507,13 +34985,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataKeyBackupV3Request.toObject = function toObject(message, options, q) { + GetDataKeyBackupV3Request.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -37595,7 +35069,7 @@ export const Authentication = $root.Authentication = (() => { function PasswordRules(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -37668,13 +35142,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasswordRules.encode = function encode(message, writer, q) { + PasswordRules.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ruleType != null && Object.hasOwnProperty.call(message, "ruleType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.ruleType); if (message.match != null && Object.hasOwnProperty.call(message, "match")) @@ -37714,18 +35184,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasswordRules.decode = function decode(reader, length, error, long) { + PasswordRules.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasswordRules(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ruleType = reader.string(); @@ -37752,7 +35216,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -37783,13 +35247,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasswordRules.verify = function verify(message, long) { + PasswordRules.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ruleType != null && message.hasOwnProperty("ruleType")) if (!$util.isString(message.ruleType)) return "ruleType: string expected"; @@ -37819,13 +35279,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasswordRules} PasswordRules */ - PasswordRules.fromObject = function fromObject(object, long) { + PasswordRules.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasswordRules) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasswordRules(); if (object.ruleType != null) message.ruleType = String(object.ruleType); @@ -37851,13 +35307,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasswordRules.toObject = function toObject(message, options, q) { + PasswordRules.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.ruleType = ""; @@ -37941,7 +35393,7 @@ export const Authentication = $root.Authentication = (() => { this.passwordRules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -38046,13 +35498,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataKeyBackupV3Response.encode = function encode(message, writer, q) { + GetDataKeyBackupV3Response.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.dataKeyBackup != null && Object.hasOwnProperty.call(message, "dataKeyBackup")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.dataKeyBackup); if (message.dataKeyBackupDate != null && Object.hasOwnProperty.call(message, "dataKeyBackupDate")) @@ -38067,7 +35515,7 @@ export const Authentication = $root.Authentication = (() => { writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedSessionToken); if (message.passwordRules != null && message.passwordRules.length) for (let i = 0; i < message.passwordRules.length; ++i) - $root.Authentication.PasswordRules.encode(message.passwordRules[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Authentication.PasswordRules.encode(message.passwordRules[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.passwordRulesIntro != null && Object.hasOwnProperty.call(message, "passwordRulesIntro")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.passwordRulesIntro); if (message.minimumPbkdf2Iterations != null && Object.hasOwnProperty.call(message, "minimumPbkdf2Iterations")) @@ -38101,18 +35549,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataKeyBackupV3Response.decode = function decode(reader, length, error, long) { + GetDataKeyBackupV3Response.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetDataKeyBackupV3Response(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.dataKeyBackup = reader.bytes(); @@ -38141,7 +35583,7 @@ export const Authentication = $root.Authentication = (() => { case 7: { if (!(message.passwordRules && message.passwordRules.length)) message.passwordRules = []; - message.passwordRules.push($root.Authentication.PasswordRules.decode(reader, reader.uint32(), undefined, long + 1)); + message.passwordRules.push($root.Authentication.PasswordRules.decode(reader, reader.uint32())); break; } case 8: { @@ -38157,7 +35599,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -38188,13 +35630,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataKeyBackupV3Response.verify = function verify(message, long) { + GetDataKeyBackupV3Response.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.dataKeyBackup != null && message.hasOwnProperty("dataKeyBackup")) if (!(message.dataKeyBackup && typeof message.dataKeyBackup.length === "number" || $util.isString(message.dataKeyBackup))) return "dataKeyBackup: buffer expected"; @@ -38217,7 +35655,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.passwordRules)) return "passwordRules: array expected"; for (let i = 0; i < message.passwordRules.length; ++i) { - let error = $root.Authentication.PasswordRules.verify(message.passwordRules[i], long + 1); + let error = $root.Authentication.PasswordRules.verify(message.passwordRules[i]); if (error) return "passwordRules." + error; } @@ -38247,13 +35685,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetDataKeyBackupV3Response} GetDataKeyBackupV3Response */ - GetDataKeyBackupV3Response.fromObject = function fromObject(object, long) { + GetDataKeyBackupV3Response.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetDataKeyBackupV3Response) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetDataKeyBackupV3Response(); if (object.dataKeyBackup != null) if (typeof object.dataKeyBackup === "string") @@ -38262,7 +35696,7 @@ export const Authentication = $root.Authentication = (() => { message.dataKeyBackup = object.dataKeyBackup; if (object.dataKeyBackupDate != null) if ($util.Long) - message.dataKeyBackupDate = $util.Long.fromValue(object.dataKeyBackupDate, false); + (message.dataKeyBackupDate = $util.Long.fromValue(object.dataKeyBackupDate)).unsigned = false; else if (typeof object.dataKeyBackupDate === "string") message.dataKeyBackupDate = parseInt(object.dataKeyBackupDate, 10); else if (typeof object.dataKeyBackupDate === "number") @@ -38296,7 +35730,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.passwordRules.length; ++i) { if (typeof object.passwordRules[i] !== "object") throw TypeError(".Authentication.GetDataKeyBackupV3Response.passwordRules: object expected"); - message.passwordRules[i] = $root.Authentication.PasswordRules.fromObject(object.passwordRules[i], long + 1); + message.passwordRules[i] = $root.Authentication.PasswordRules.fromObject(object.passwordRules[i]); } } if (object.passwordRulesIntro != null) @@ -38331,13 +35765,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataKeyBackupV3Response.toObject = function toObject(message, options, q) { + GetDataKeyBackupV3Response.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.passwordRules = []; @@ -38351,9 +35781,9 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dataKeyBackupDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dataKeyBackupDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dataKeyBackupDate = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dataKeyBackupDate = options.longs === String ? "0" : 0; if (options.bytes === String) object.publicKey = ""; else { @@ -38389,9 +35819,7 @@ export const Authentication = $root.Authentication = (() => { if (message.dataKeyBackup != null && message.hasOwnProperty("dataKeyBackup")) object.dataKeyBackup = options.bytes === String ? $util.base64.encode(message.dataKeyBackup, 0, message.dataKeyBackup.length) : options.bytes === Array ? Array.prototype.slice.call(message.dataKeyBackup) : message.dataKeyBackup; if (message.dataKeyBackupDate != null && message.hasOwnProperty("dataKeyBackupDate")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dataKeyBackupDate = typeof message.dataKeyBackupDate === "number" ? BigInt(message.dataKeyBackupDate) : $util.Long.fromBits(message.dataKeyBackupDate.low >>> 0, message.dataKeyBackupDate.high >>> 0, false).toBigInt(); - else if (typeof message.dataKeyBackupDate === "number") + if (typeof message.dataKeyBackupDate === "number") object.dataKeyBackupDate = options.longs === String ? String(message.dataKeyBackupDate) : message.dataKeyBackupDate; else object.dataKeyBackupDate = options.longs === String ? $util.Long.prototype.toString.call(message.dataKeyBackupDate) : options.longs === Number ? new $util.LongBits(message.dataKeyBackupDate.low >>> 0, message.dataKeyBackupDate.high >>> 0).toNumber() : message.dataKeyBackupDate; @@ -38406,7 +35834,7 @@ export const Authentication = $root.Authentication = (() => { if (message.passwordRules && message.passwordRules.length) { object.passwordRules = []; for (let j = 0; j < message.passwordRules.length; ++j) - object.passwordRules[j] = $root.Authentication.PasswordRules.toObject(message.passwordRules[j], options, q + 1); + object.passwordRules[j] = $root.Authentication.PasswordRules.toObject(message.passwordRules[j], options); } if (message.passwordRulesIntro != null && message.hasOwnProperty("passwordRulesIntro")) object.passwordRulesIntro = message.passwordRulesIntro; @@ -38467,7 +35895,7 @@ export const Authentication = $root.Authentication = (() => { this.usernames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -38500,13 +35928,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPublicKeysRequest.encode = function encode(message, writer, q) { + GetPublicKeysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.usernames != null && message.usernames.length) for (let i = 0; i < message.usernames.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.usernames[i]); @@ -38537,18 +35961,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPublicKeysRequest.decode = function decode(reader, length, error, long) { + GetPublicKeysRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetPublicKeysRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.usernames && message.usernames.length)) @@ -38557,7 +35975,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -38588,13 +36006,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPublicKeysRequest.verify = function verify(message, long) { + GetPublicKeysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.usernames != null && message.hasOwnProperty("usernames")) { if (!Array.isArray(message.usernames)) return "usernames: array expected"; @@ -38613,13 +36027,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetPublicKeysRequest} GetPublicKeysRequest */ - GetPublicKeysRequest.fromObject = function fromObject(object, long) { + GetPublicKeysRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetPublicKeysRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetPublicKeysRequest(); if (object.usernames) { if (!Array.isArray(object.usernames)) @@ -38640,13 +36050,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPublicKeysRequest.toObject = function toObject(message, options, q) { + GetPublicKeysRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.usernames = []; @@ -38712,7 +36118,7 @@ export const Authentication = $root.Authentication = (() => { function PublicKeyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -38785,13 +36191,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PublicKeyResponse.encode = function encode(message, writer, q) { + PublicKeyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) @@ -38831,18 +36233,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PublicKeyResponse.decode = function decode(reader, length, error, long) { + PublicKeyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PublicKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -38869,7 +36265,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -38900,13 +36296,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PublicKeyResponse.verify = function verify(message, long) { + PublicKeyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -38936,13 +36328,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PublicKeyResponse} PublicKeyResponse */ - PublicKeyResponse.fromObject = function fromObject(object, long) { + PublicKeyResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PublicKeyResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PublicKeyResponse(); if (object.username != null) message.username = String(object.username); @@ -38977,13 +36365,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PublicKeyResponse.toObject = function toObject(message, options, q) { + PublicKeyResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -39076,7 +36460,7 @@ export const Authentication = $root.Authentication = (() => { this.keyResponses = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -39109,16 +36493,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPublicKeysResponse.encode = function encode(message, writer, q) { + GetPublicKeysResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.keyResponses != null && message.keyResponses.length) for (let i = 0; i < message.keyResponses.length; ++i) - $root.Authentication.PublicKeyResponse.encode(message.keyResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.PublicKeyResponse.encode(message.keyResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -39146,27 +36526,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPublicKeysResponse.decode = function decode(reader, length, error, long) { + GetPublicKeysResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetPublicKeysResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.keyResponses && message.keyResponses.length)) message.keyResponses = []; - message.keyResponses.push($root.Authentication.PublicKeyResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.keyResponses.push($root.Authentication.PublicKeyResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -39197,18 +36571,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPublicKeysResponse.verify = function verify(message, long) { + GetPublicKeysResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.keyResponses != null && message.hasOwnProperty("keyResponses")) { if (!Array.isArray(message.keyResponses)) return "keyResponses: array expected"; for (let i = 0; i < message.keyResponses.length; ++i) { - let error = $root.Authentication.PublicKeyResponse.verify(message.keyResponses[i], long + 1); + let error = $root.Authentication.PublicKeyResponse.verify(message.keyResponses[i]); if (error) return "keyResponses." + error; } @@ -39224,13 +36594,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetPublicKeysResponse} GetPublicKeysResponse */ - GetPublicKeysResponse.fromObject = function fromObject(object, long) { + GetPublicKeysResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetPublicKeysResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetPublicKeysResponse(); if (object.keyResponses) { if (!Array.isArray(object.keyResponses)) @@ -39239,7 +36605,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.keyResponses.length; ++i) { if (typeof object.keyResponses[i] !== "object") throw TypeError(".Authentication.GetPublicKeysResponse.keyResponses: object expected"); - message.keyResponses[i] = $root.Authentication.PublicKeyResponse.fromObject(object.keyResponses[i], long + 1); + message.keyResponses[i] = $root.Authentication.PublicKeyResponse.fromObject(object.keyResponses[i]); } } return message; @@ -39254,20 +36620,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPublicKeysResponse.toObject = function toObject(message, options, q) { + GetPublicKeysResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.keyResponses = []; if (message.keyResponses && message.keyResponses.length) { object.keyResponses = []; for (let j = 0; j < message.keyResponses.length; ++j) - object.keyResponses[j] = $root.Authentication.PublicKeyResponse.toObject(message.keyResponses[j], options, q + 1); + object.keyResponses[j] = $root.Authentication.PublicKeyResponse.toObject(message.keyResponses[j], options); } return object; }; @@ -39322,7 +36684,7 @@ export const Authentication = $root.Authentication = (() => { function SetEccKeyPairRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -39363,13 +36725,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetEccKeyPairRequest.encode = function encode(message, writer, q) { + SetEccKeyPairRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.publicKey); if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) @@ -39401,18 +36759,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetEccKeyPairRequest.decode = function decode(reader, length, error, long) { + SetEccKeyPairRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SetEccKeyPairRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.publicKey = reader.bytes(); @@ -39423,7 +36775,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -39454,13 +36806,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetEccKeyPairRequest.verify = function verify(message, long) { + SetEccKeyPairRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.publicKey != null && message.hasOwnProperty("publicKey")) if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) return "publicKey: buffer expected"; @@ -39478,13 +36826,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SetEccKeyPairRequest} SetEccKeyPairRequest */ - SetEccKeyPairRequest.fromObject = function fromObject(object, long) { + SetEccKeyPairRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SetEccKeyPairRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SetEccKeyPairRequest(); if (object.publicKey != null) if (typeof object.publicKey === "string") @@ -39508,13 +36852,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetEccKeyPairRequest.toObject = function toObject(message, options, q) { + SetEccKeyPairRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -39589,7 +36929,7 @@ export const Authentication = $root.Authentication = (() => { this.teamKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -39622,16 +36962,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetEccKeyPairsRequest.encode = function encode(message, writer, q) { + SetEccKeyPairsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamKeys != null && message.teamKeys.length) for (let i = 0; i < message.teamKeys.length; ++i) - $root.Authentication.TeamEccKeyPair.encode(message.teamKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.TeamEccKeyPair.encode(message.teamKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -39659,27 +36995,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetEccKeyPairsRequest.decode = function decode(reader, length, error, long) { + SetEccKeyPairsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SetEccKeyPairsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.teamKeys && message.teamKeys.length)) message.teamKeys = []; - message.teamKeys.push($root.Authentication.TeamEccKeyPair.decode(reader, reader.uint32(), undefined, long + 1)); + message.teamKeys.push($root.Authentication.TeamEccKeyPair.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -39710,18 +37040,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetEccKeyPairsRequest.verify = function verify(message, long) { + SetEccKeyPairsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamKeys != null && message.hasOwnProperty("teamKeys")) { if (!Array.isArray(message.teamKeys)) return "teamKeys: array expected"; for (let i = 0; i < message.teamKeys.length; ++i) { - let error = $root.Authentication.TeamEccKeyPair.verify(message.teamKeys[i], long + 1); + let error = $root.Authentication.TeamEccKeyPair.verify(message.teamKeys[i]); if (error) return "teamKeys." + error; } @@ -39737,13 +37063,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SetEccKeyPairsRequest} SetEccKeyPairsRequest */ - SetEccKeyPairsRequest.fromObject = function fromObject(object, long) { + SetEccKeyPairsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SetEccKeyPairsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SetEccKeyPairsRequest(); if (object.teamKeys) { if (!Array.isArray(object.teamKeys)) @@ -39752,7 +37074,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.teamKeys.length; ++i) { if (typeof object.teamKeys[i] !== "object") throw TypeError(".Authentication.SetEccKeyPairsRequest.teamKeys: object expected"); - message.teamKeys[i] = $root.Authentication.TeamEccKeyPair.fromObject(object.teamKeys[i], long + 1); + message.teamKeys[i] = $root.Authentication.TeamEccKeyPair.fromObject(object.teamKeys[i]); } } return message; @@ -39767,20 +37089,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetEccKeyPairsRequest.toObject = function toObject(message, options, q) { + SetEccKeyPairsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teamKeys = []; if (message.teamKeys && message.teamKeys.length) { object.teamKeys = []; for (let j = 0; j < message.teamKeys.length; ++j) - object.teamKeys[j] = $root.Authentication.TeamEccKeyPair.toObject(message.teamKeys[j], options, q + 1); + object.teamKeys[j] = $root.Authentication.TeamEccKeyPair.toObject(message.teamKeys[j], options); } return object; }; @@ -39835,7 +37153,7 @@ export const Authentication = $root.Authentication = (() => { this.teamKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -39868,16 +37186,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetEccKeyPairsResponse.encode = function encode(message, writer, q) { + SetEccKeyPairsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamKeys != null && message.teamKeys.length) for (let i = 0; i < message.teamKeys.length; ++i) - $root.Authentication.TeamEccKeyPairResponse.encode(message.teamKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.TeamEccKeyPairResponse.encode(message.teamKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -39905,27 +37219,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetEccKeyPairsResponse.decode = function decode(reader, length, error, long) { + SetEccKeyPairsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SetEccKeyPairsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.teamKeys && message.teamKeys.length)) message.teamKeys = []; - message.teamKeys.push($root.Authentication.TeamEccKeyPairResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.teamKeys.push($root.Authentication.TeamEccKeyPairResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -39956,18 +37264,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetEccKeyPairsResponse.verify = function verify(message, long) { + SetEccKeyPairsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamKeys != null && message.hasOwnProperty("teamKeys")) { if (!Array.isArray(message.teamKeys)) return "teamKeys: array expected"; for (let i = 0; i < message.teamKeys.length; ++i) { - let error = $root.Authentication.TeamEccKeyPairResponse.verify(message.teamKeys[i], long + 1); + let error = $root.Authentication.TeamEccKeyPairResponse.verify(message.teamKeys[i]); if (error) return "teamKeys." + error; } @@ -39983,13 +37287,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SetEccKeyPairsResponse} SetEccKeyPairsResponse */ - SetEccKeyPairsResponse.fromObject = function fromObject(object, long) { + SetEccKeyPairsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SetEccKeyPairsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SetEccKeyPairsResponse(); if (object.teamKeys) { if (!Array.isArray(object.teamKeys)) @@ -39998,7 +37298,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.teamKeys.length; ++i) { if (typeof object.teamKeys[i] !== "object") throw TypeError(".Authentication.SetEccKeyPairsResponse.teamKeys: object expected"); - message.teamKeys[i] = $root.Authentication.TeamEccKeyPairResponse.fromObject(object.teamKeys[i], long + 1); + message.teamKeys[i] = $root.Authentication.TeamEccKeyPairResponse.fromObject(object.teamKeys[i]); } } return message; @@ -40013,20 +37313,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetEccKeyPairsResponse.toObject = function toObject(message, options, q) { + SetEccKeyPairsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teamKeys = []; if (message.teamKeys && message.teamKeys.length) { object.teamKeys = []; for (let j = 0; j < message.teamKeys.length; ++j) - object.teamKeys[j] = $root.Authentication.TeamEccKeyPairResponse.toObject(message.teamKeys[j], options, q + 1); + object.teamKeys[j] = $root.Authentication.TeamEccKeyPairResponse.toObject(message.teamKeys[j], options); } return object; }; @@ -40082,7 +37378,7 @@ export const Authentication = $root.Authentication = (() => { function TeamEccKeyPair(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -40131,13 +37427,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamEccKeyPair.encode = function encode(message, writer, q) { + TeamEccKeyPair.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) @@ -40171,18 +37463,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamEccKeyPair.decode = function decode(reader, length, error, long) { + TeamEccKeyPair.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TeamEccKeyPair(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -40197,7 +37483,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -40228,13 +37514,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamEccKeyPair.verify = function verify(message, long) { + TeamEccKeyPair.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -40255,13 +37537,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TeamEccKeyPair} TeamEccKeyPair */ - TeamEccKeyPair.fromObject = function fromObject(object, long) { + TeamEccKeyPair.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TeamEccKeyPair) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TeamEccKeyPair(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -40290,13 +37568,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamEccKeyPair.toObject = function toObject(message, options, q) { + TeamEccKeyPair.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -40380,7 +37654,7 @@ export const Authentication = $root.Authentication = (() => { function TeamEccKeyPairResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -40421,13 +37695,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamEccKeyPairResponse.encode = function encode(message, writer, q) { + TeamEccKeyPairResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -40459,18 +37729,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamEccKeyPairResponse.decode = function decode(reader, length, error, long) { + TeamEccKeyPairResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TeamEccKeyPairResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -40481,7 +37745,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -40512,13 +37776,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamEccKeyPairResponse.verify = function verify(message, long) { + TeamEccKeyPairResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -40544,13 +37804,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TeamEccKeyPairResponse} TeamEccKeyPairResponse */ - TeamEccKeyPairResponse.fromObject = function fromObject(object, long) { + TeamEccKeyPairResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TeamEccKeyPairResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TeamEccKeyPairResponse(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -40597,13 +37853,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamEccKeyPairResponse.toObject = function toObject(message, options, q) { + TeamEccKeyPairResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -40674,7 +37926,7 @@ export const Authentication = $root.Authentication = (() => { this.controllerUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -40715,13 +37967,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKsmPublicKeysRequest.encode = function encode(message, writer, q) { + GetKsmPublicKeysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.clientIds != null && message.clientIds.length) for (let i = 0; i < message.clientIds.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.clientIds[i]); @@ -40755,18 +38003,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKsmPublicKeysRequest.decode = function decode(reader, length, error, long) { + GetKsmPublicKeysRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetKsmPublicKeysRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.clientIds && message.clientIds.length)) @@ -40781,7 +38023,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -40812,13 +38054,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKsmPublicKeysRequest.verify = function verify(message, long) { + GetKsmPublicKeysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.clientIds != null && message.hasOwnProperty("clientIds")) { if (!Array.isArray(message.clientIds)) return "clientIds: array expected"; @@ -40844,13 +38082,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetKsmPublicKeysRequest} GetKsmPublicKeysRequest */ - GetKsmPublicKeysRequest.fromObject = function fromObject(object, long) { + GetKsmPublicKeysRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetKsmPublicKeysRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetKsmPublicKeysRequest(); if (object.clientIds) { if (!Array.isArray(object.clientIds)) @@ -40884,13 +38118,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKsmPublicKeysRequest.toObject = function toObject(message, options, q) { + GetKsmPublicKeysRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.clientIds = []; @@ -40960,7 +38190,7 @@ export const Authentication = $root.Authentication = (() => { function DevicePublicKeyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -41009,13 +38239,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DevicePublicKeyResponse.encode = function encode(message, writer, q) { + DevicePublicKeyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.clientId); if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) @@ -41049,18 +38275,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DevicePublicKeyResponse.decode = function decode(reader, length, error, long) { + DevicePublicKeyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DevicePublicKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.clientId = reader.bytes(); @@ -41075,7 +38295,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -41106,13 +38326,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DevicePublicKeyResponse.verify = function verify(message, long) { + DevicePublicKeyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.clientId != null && message.hasOwnProperty("clientId")) if (!(message.clientId && typeof message.clientId.length === "number" || $util.isString(message.clientId))) return "clientId: buffer expected"; @@ -41133,13 +38349,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DevicePublicKeyResponse} DevicePublicKeyResponse */ - DevicePublicKeyResponse.fromObject = function fromObject(object, long) { + DevicePublicKeyResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DevicePublicKeyResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DevicePublicKeyResponse(); if (object.clientId != null) if (typeof object.clientId === "string") @@ -41168,13 +38380,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DevicePublicKeyResponse.toObject = function toObject(message, options, q) { + DevicePublicKeyResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -41258,7 +38466,7 @@ export const Authentication = $root.Authentication = (() => { this.keyResponses = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -41291,16 +38499,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetKsmPublicKeysResponse.encode = function encode(message, writer, q) { + GetKsmPublicKeysResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.keyResponses != null && message.keyResponses.length) for (let i = 0; i < message.keyResponses.length; ++i) - $root.Authentication.DevicePublicKeyResponse.encode(message.keyResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.DevicePublicKeyResponse.encode(message.keyResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -41328,27 +38532,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetKsmPublicKeysResponse.decode = function decode(reader, length, error, long) { + GetKsmPublicKeysResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetKsmPublicKeysResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.keyResponses && message.keyResponses.length)) message.keyResponses = []; - message.keyResponses.push($root.Authentication.DevicePublicKeyResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.keyResponses.push($root.Authentication.DevicePublicKeyResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -41379,18 +38577,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetKsmPublicKeysResponse.verify = function verify(message, long) { + GetKsmPublicKeysResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.keyResponses != null && message.hasOwnProperty("keyResponses")) { if (!Array.isArray(message.keyResponses)) return "keyResponses: array expected"; for (let i = 0; i < message.keyResponses.length; ++i) { - let error = $root.Authentication.DevicePublicKeyResponse.verify(message.keyResponses[i], long + 1); + let error = $root.Authentication.DevicePublicKeyResponse.verify(message.keyResponses[i]); if (error) return "keyResponses." + error; } @@ -41406,13 +38600,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetKsmPublicKeysResponse} GetKsmPublicKeysResponse */ - GetKsmPublicKeysResponse.fromObject = function fromObject(object, long) { + GetKsmPublicKeysResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetKsmPublicKeysResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetKsmPublicKeysResponse(); if (object.keyResponses) { if (!Array.isArray(object.keyResponses)) @@ -41421,7 +38611,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.keyResponses.length; ++i) { if (typeof object.keyResponses[i] !== "object") throw TypeError(".Authentication.GetKsmPublicKeysResponse.keyResponses: object expected"); - message.keyResponses[i] = $root.Authentication.DevicePublicKeyResponse.fromObject(object.keyResponses[i], long + 1); + message.keyResponses[i] = $root.Authentication.DevicePublicKeyResponse.fromObject(object.keyResponses[i]); } } return message; @@ -41436,20 +38626,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetKsmPublicKeysResponse.toObject = function toObject(message, options, q) { + GetKsmPublicKeysResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.keyResponses = []; if (message.keyResponses && message.keyResponses.length) { object.keyResponses = []; for (let j = 0; j < message.keyResponses.length; ++j) - object.keyResponses[j] = $root.Authentication.DevicePublicKeyResponse.toObject(message.keyResponses[j], options, q + 1); + object.keyResponses[j] = $root.Authentication.DevicePublicKeyResponse.toObject(message.keyResponses[j], options); } return object; }; @@ -41543,7 +38729,7 @@ export const Authentication = $root.Authentication = (() => { this.shares = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -41584,18 +38770,14 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddAppSharesRequest.encode = function encode(message, writer, q) { + AddAppSharesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); if (message.shares != null && message.shares.length) for (let i = 0; i < message.shares.length; ++i) - $root.Authentication.AppShareAdd.encode(message.shares[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Authentication.AppShareAdd.encode(message.shares[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -41623,18 +38805,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddAppSharesRequest.decode = function decode(reader, length, error, long) { + AddAppSharesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AddAppSharesRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.appRecordUid = reader.bytes(); @@ -41643,11 +38819,11 @@ export const Authentication = $root.Authentication = (() => { case 2: { if (!(message.shares && message.shares.length)) message.shares = []; - message.shares.push($root.Authentication.AppShareAdd.decode(reader, reader.uint32(), undefined, long + 1)); + message.shares.push($root.Authentication.AppShareAdd.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -41678,13 +38854,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddAppSharesRequest.verify = function verify(message, long) { + AddAppSharesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) return "appRecordUid: buffer expected"; @@ -41692,7 +38864,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.shares)) return "shares: array expected"; for (let i = 0; i < message.shares.length; ++i) { - let error = $root.Authentication.AppShareAdd.verify(message.shares[i], long + 1); + let error = $root.Authentication.AppShareAdd.verify(message.shares[i]); if (error) return "shares." + error; } @@ -41708,13 +38880,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AddAppSharesRequest} AddAppSharesRequest */ - AddAppSharesRequest.fromObject = function fromObject(object, long) { + AddAppSharesRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AddAppSharesRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AddAppSharesRequest(); if (object.appRecordUid != null) if (typeof object.appRecordUid === "string") @@ -41728,7 +38896,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.shares.length; ++i) { if (typeof object.shares[i] !== "object") throw TypeError(".Authentication.AddAppSharesRequest.shares: object expected"); - message.shares[i] = $root.Authentication.AppShareAdd.fromObject(object.shares[i], long + 1); + message.shares[i] = $root.Authentication.AppShareAdd.fromObject(object.shares[i]); } } return message; @@ -41743,13 +38911,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddAppSharesRequest.toObject = function toObject(message, options, q) { + AddAppSharesRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.shares = []; @@ -41766,7 +38930,7 @@ export const Authentication = $root.Authentication = (() => { if (message.shares && message.shares.length) { object.shares = []; for (let j = 0; j < message.shares.length; ++j) - object.shares[j] = $root.Authentication.AppShareAdd.toObject(message.shares[j], options, q + 1); + object.shares[j] = $root.Authentication.AppShareAdd.toObject(message.shares[j], options); } return object; }; @@ -41822,7 +38986,7 @@ export const Authentication = $root.Authentication = (() => { this.shares = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -41863,13 +39027,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveAppSharesRequest.encode = function encode(message, writer, q) { + RemoveAppSharesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); if (message.shares != null && message.shares.length) @@ -41902,18 +39062,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveAppSharesRequest.decode = function decode(reader, length, error, long) { + RemoveAppSharesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RemoveAppSharesRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.appRecordUid = reader.bytes(); @@ -41926,7 +39080,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -41957,13 +39111,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveAppSharesRequest.verify = function verify(message, long) { + RemoveAppSharesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) return "appRecordUid: buffer expected"; @@ -41985,13 +39135,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.RemoveAppSharesRequest} RemoveAppSharesRequest */ - RemoveAppSharesRequest.fromObject = function fromObject(object, long) { + RemoveAppSharesRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.RemoveAppSharesRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.RemoveAppSharesRequest(); if (object.appRecordUid != null) if (typeof object.appRecordUid === "string") @@ -42020,13 +39166,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveAppSharesRequest.toObject = function toObject(message, options, q) { + RemoveAppSharesRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.shares = []; @@ -42100,7 +39242,7 @@ export const Authentication = $root.Authentication = (() => { function AppShareAdd(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -42157,13 +39299,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AppShareAdd.encode = function encode(message, writer, q) { + AppShareAdd.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.secretUid != null && Object.hasOwnProperty.call(message, "secretUid")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.secretUid); if (message.shareType != null && Object.hasOwnProperty.call(message, "shareType")) @@ -42199,18 +39337,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AppShareAdd.decode = function decode(reader, length, error, long) { + AppShareAdd.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AppShareAdd(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 2: { message.secretUid = reader.bytes(); @@ -42229,7 +39361,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -42260,13 +39392,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AppShareAdd.verify = function verify(message, long) { + AppShareAdd.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.secretUid != null && message.hasOwnProperty("secretUid")) if (!(message.secretUid && typeof message.secretUid.length === "number" || $util.isString(message.secretUid))) return "secretUid: buffer expected"; @@ -42295,13 +39423,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AppShareAdd} AppShareAdd */ - AppShareAdd.fromObject = function fromObject(object, long) { + AppShareAdd.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AppShareAdd) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AppShareAdd(); if (object.secretUid != null) if (typeof object.secretUid === "string") @@ -42343,13 +39467,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AppShareAdd.toObject = function toObject(message, options, q) { + AppShareAdd.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -42433,7 +39553,7 @@ export const Authentication = $root.Authentication = (() => { function AppShare(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -42498,13 +39618,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AppShare.encode = function encode(message, writer, q) { + AppShare.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.secretUid != null && Object.hasOwnProperty.call(message, "secretUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.secretUid); if (message.shareType != null && Object.hasOwnProperty.call(message, "shareType")) @@ -42542,18 +39658,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AppShare.decode = function decode(reader, length, error, long) { + AppShare.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AppShare(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.secretUid = reader.bytes(); @@ -42576,7 +39686,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -42607,13 +39717,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AppShare.verify = function verify(message, long) { + AppShare.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.secretUid != null && message.hasOwnProperty("secretUid")) if (!(message.secretUid && typeof message.secretUid.length === "number" || $util.isString(message.secretUid))) return "secretUid: buffer expected"; @@ -42645,13 +39751,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AppShare} AppShare */ - AppShare.fromObject = function fromObject(object, long) { + AppShare.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AppShare) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AppShare(); if (object.secretUid != null) if (typeof object.secretUid === "string") @@ -42678,7 +39780,7 @@ export const Authentication = $root.Authentication = (() => { message.editable = Boolean(object.editable); if (object.createdOn != null) if ($util.Long) - message.createdOn = $util.Long.fromValue(object.createdOn, false); + (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; else if (typeof object.createdOn === "string") message.createdOn = parseInt(object.createdOn, 10); else if (typeof object.createdOn === "number") @@ -42702,13 +39804,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AppShare.toObject = function toObject(message, options, q) { + AppShare.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -42722,9 +39820,9 @@ export const Authentication = $root.Authentication = (() => { object.editable = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.createdOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.createdOn = options.longs === String ? "0" : 0; if (options.bytes === String) object.data = ""; else { @@ -42740,9 +39838,7 @@ export const Authentication = $root.Authentication = (() => { if (message.editable != null && message.hasOwnProperty("editable")) object.editable = message.editable; if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.createdOn = typeof message.createdOn === "number" ? BigInt(message.createdOn) : $util.Long.fromBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0, false).toBigInt(); - else if (typeof message.createdOn === "number") + if (typeof message.createdOn === "number") object.createdOn = options.longs === String ? String(message.createdOn) : message.createdOn; else object.createdOn = options.longs === String ? $util.Long.prototype.toString.call(message.createdOn) : options.longs === Number ? new $util.LongBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0).toNumber() : message.createdOn; @@ -42807,7 +39903,7 @@ export const Authentication = $root.Authentication = (() => { function AddAppClientRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -42896,13 +39992,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddAppClientRequest.encode = function encode(message, writer, q) { + AddAppClientRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); if (message.encryptedAppKey != null && Object.hasOwnProperty.call(message, "encryptedAppKey")) @@ -42946,18 +40038,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddAppClientRequest.decode = function decode(reader, length, error, long) { + AddAppClientRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AddAppClientRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.appRecordUid = reader.bytes(); @@ -42992,7 +40078,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -43023,13 +40109,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddAppClientRequest.verify = function verify(message, long) { + AddAppClientRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) return "appRecordUid: buffer expected"; @@ -43073,13 +40155,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AddAppClientRequest} AddAppClientRequest */ - AddAppClientRequest.fromObject = function fromObject(object, long) { + AddAppClientRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AddAppClientRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AddAppClientRequest(); if (object.appRecordUid != null) if (typeof object.appRecordUid === "string") @@ -43100,7 +40178,7 @@ export const Authentication = $root.Authentication = (() => { message.lockIp = Boolean(object.lockIp); if (object.firstAccessExpireOn != null) if ($util.Long) - message.firstAccessExpireOn = $util.Long.fromValue(object.firstAccessExpireOn, false); + (message.firstAccessExpireOn = $util.Long.fromValue(object.firstAccessExpireOn)).unsigned = false; else if (typeof object.firstAccessExpireOn === "string") message.firstAccessExpireOn = parseInt(object.firstAccessExpireOn, 10); else if (typeof object.firstAccessExpireOn === "number") @@ -43109,7 +40187,7 @@ export const Authentication = $root.Authentication = (() => { message.firstAccessExpireOn = new $util.LongBits(object.firstAccessExpireOn.low >>> 0, object.firstAccessExpireOn.high >>> 0).toNumber(); if (object.accessExpireOn != null) if ($util.Long) - message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn, false); + (message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn)).unsigned = false; else if (typeof object.accessExpireOn === "string") message.accessExpireOn = parseInt(object.accessExpireOn, 10); else if (typeof object.accessExpireOn === "number") @@ -43158,13 +40236,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddAppClientRequest.toObject = function toObject(message, options, q) { + AddAppClientRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -43191,14 +40265,14 @@ export const Authentication = $root.Authentication = (() => { object.lockIp = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.firstAccessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.firstAccessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.firstAccessExpireOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.firstAccessExpireOn = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.accessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.accessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.accessExpireOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.accessExpireOn = options.longs === String ? "0" : 0; object.id = ""; object.appClientType = options.enums === String ? "NOT_USED" : 0; } @@ -43211,16 +40285,12 @@ export const Authentication = $root.Authentication = (() => { if (message.lockIp != null && message.hasOwnProperty("lockIp")) object.lockIp = message.lockIp; if (message.firstAccessExpireOn != null && message.hasOwnProperty("firstAccessExpireOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.firstAccessExpireOn = typeof message.firstAccessExpireOn === "number" ? BigInt(message.firstAccessExpireOn) : $util.Long.fromBits(message.firstAccessExpireOn.low >>> 0, message.firstAccessExpireOn.high >>> 0, false).toBigInt(); - else if (typeof message.firstAccessExpireOn === "number") + if (typeof message.firstAccessExpireOn === "number") object.firstAccessExpireOn = options.longs === String ? String(message.firstAccessExpireOn) : message.firstAccessExpireOn; else object.firstAccessExpireOn = options.longs === String ? $util.Long.prototype.toString.call(message.firstAccessExpireOn) : options.longs === Number ? new $util.LongBits(message.firstAccessExpireOn.low >>> 0, message.firstAccessExpireOn.high >>> 0).toNumber() : message.firstAccessExpireOn; if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.accessExpireOn = typeof message.accessExpireOn === "number" ? BigInt(message.accessExpireOn) : $util.Long.fromBits(message.accessExpireOn.low >>> 0, message.accessExpireOn.high >>> 0, false).toBigInt(); - else if (typeof message.accessExpireOn === "number") + if (typeof message.accessExpireOn === "number") object.accessExpireOn = options.longs === String ? String(message.accessExpireOn) : message.accessExpireOn; else object.accessExpireOn = options.longs === String ? $util.Long.prototype.toString.call(message.accessExpireOn) : options.longs === Number ? new $util.LongBits(message.accessExpireOn.low >>> 0, message.accessExpireOn.high >>> 0).toNumber() : message.accessExpireOn; @@ -43282,7 +40352,7 @@ export const Authentication = $root.Authentication = (() => { this.clients = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -43323,13 +40393,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveAppClientsRequest.encode = function encode(message, writer, q) { + RemoveAppClientsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); if (message.clients != null && message.clients.length) @@ -43362,18 +40428,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveAppClientsRequest.decode = function decode(reader, length, error, long) { + RemoveAppClientsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RemoveAppClientsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.appRecordUid = reader.bytes(); @@ -43386,7 +40446,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -43417,13 +40477,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveAppClientsRequest.verify = function verify(message, long) { + RemoveAppClientsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) return "appRecordUid: buffer expected"; @@ -43445,13 +40501,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.RemoveAppClientsRequest} RemoveAppClientsRequest */ - RemoveAppClientsRequest.fromObject = function fromObject(object, long) { + RemoveAppClientsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.RemoveAppClientsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.RemoveAppClientsRequest(); if (object.appRecordUid != null) if (typeof object.appRecordUid === "string") @@ -43480,13 +40532,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveAppClientsRequest.toObject = function toObject(message, options, q) { + RemoveAppClientsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.clients = []; @@ -43563,7 +40611,7 @@ export const Authentication = $root.Authentication = (() => { function AddExternalShareRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -43644,13 +40692,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExternalShareRequest.encode = function encode(message, writer, q) { + AddExternalShareRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) @@ -43692,18 +40736,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExternalShareRequest.decode = function decode(reader, length, error, long) { + AddExternalShareRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AddExternalShareRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -43734,7 +40772,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -43765,13 +40803,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddExternalShareRequest.verify = function verify(message, long) { + AddExternalShareRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -43804,13 +40838,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AddExternalShareRequest} AddExternalShareRequest */ - AddExternalShareRequest.fromObject = function fromObject(object, long) { + AddExternalShareRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AddExternalShareRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AddExternalShareRequest(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -43829,7 +40859,7 @@ export const Authentication = $root.Authentication = (() => { message.clientId = object.clientId; if (object.accessExpireOn != null) if ($util.Long) - message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn, false); + (message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn)).unsigned = false; else if (typeof object.accessExpireOn === "string") message.accessExpireOn = parseInt(object.accessExpireOn, 10); else if (typeof object.accessExpireOn === "number") @@ -43854,13 +40884,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddExternalShareRequest.toObject = function toObject(message, options, q) { + AddExternalShareRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -43886,9 +40912,9 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.accessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.accessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.accessExpireOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.accessExpireOn = options.longs === String ? "0" : 0; object.id = ""; object.isSelfDestruct = false; object.isEditable = false; @@ -43900,9 +40926,7 @@ export const Authentication = $root.Authentication = (() => { if (message.clientId != null && message.hasOwnProperty("clientId")) object.clientId = options.bytes === String ? $util.base64.encode(message.clientId, 0, message.clientId.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientId) : message.clientId; if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.accessExpireOn = typeof message.accessExpireOn === "number" ? BigInt(message.accessExpireOn) : $util.Long.fromBits(message.accessExpireOn.low >>> 0, message.accessExpireOn.high >>> 0, false).toBigInt(); - else if (typeof message.accessExpireOn === "number") + if (typeof message.accessExpireOn === "number") object.accessExpireOn = options.longs === String ? String(message.accessExpireOn) : message.accessExpireOn; else object.accessExpireOn = options.longs === String ? $util.Long.prototype.toString.call(message.accessExpireOn) : options.longs === Number ? new $util.LongBits(message.accessExpireOn.low >>> 0, message.accessExpireOn.high >>> 0).toNumber() : message.accessExpireOn; @@ -43975,7 +40999,7 @@ export const Authentication = $root.Authentication = (() => { function AppClient(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -44096,13 +41120,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AppClient.encode = function encode(message, writer, q) { + AppClient.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) @@ -44154,18 +41174,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AppClient.decode = function decode(reader, length, error, long) { + AppClient.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AppClient(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.string(); @@ -44216,7 +41230,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -44247,13 +41261,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AppClient.verify = function verify(message, long) { + AppClient.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isString(message.id)) return "id: string expected"; @@ -44309,13 +41319,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AppClient} AppClient */ - AppClient.fromObject = function fromObject(object, long) { + AppClient.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AppClient) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AppClient(); if (object.id != null) message.id = String(object.id); @@ -44326,7 +41332,7 @@ export const Authentication = $root.Authentication = (() => { message.clientId = object.clientId; if (object.createdOn != null) if ($util.Long) - message.createdOn = $util.Long.fromValue(object.createdOn, false); + (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; else if (typeof object.createdOn === "string") message.createdOn = parseInt(object.createdOn, 10); else if (typeof object.createdOn === "number") @@ -44335,7 +41341,7 @@ export const Authentication = $root.Authentication = (() => { message.createdOn = new $util.LongBits(object.createdOn.low >>> 0, object.createdOn.high >>> 0).toNumber(); if (object.firstAccess != null) if ($util.Long) - message.firstAccess = $util.Long.fromValue(object.firstAccess, false); + (message.firstAccess = $util.Long.fromValue(object.firstAccess)).unsigned = false; else if (typeof object.firstAccess === "string") message.firstAccess = parseInt(object.firstAccess, 10); else if (typeof object.firstAccess === "number") @@ -44344,7 +41350,7 @@ export const Authentication = $root.Authentication = (() => { message.firstAccess = new $util.LongBits(object.firstAccess.low >>> 0, object.firstAccess.high >>> 0).toNumber(); if (object.lastAccess != null) if ($util.Long) - message.lastAccess = $util.Long.fromValue(object.lastAccess, false); + (message.lastAccess = $util.Long.fromValue(object.lastAccess)).unsigned = false; else if (typeof object.lastAccess === "string") message.lastAccess = parseInt(object.lastAccess, 10); else if (typeof object.lastAccess === "number") @@ -44362,7 +41368,7 @@ export const Authentication = $root.Authentication = (() => { message.ipAddress = String(object.ipAddress); if (object.firstAccessExpireOn != null) if ($util.Long) - message.firstAccessExpireOn = $util.Long.fromValue(object.firstAccessExpireOn, false); + (message.firstAccessExpireOn = $util.Long.fromValue(object.firstAccessExpireOn)).unsigned = false; else if (typeof object.firstAccessExpireOn === "string") message.firstAccessExpireOn = parseInt(object.firstAccessExpireOn, 10); else if (typeof object.firstAccessExpireOn === "number") @@ -44371,7 +41377,7 @@ export const Authentication = $root.Authentication = (() => { message.firstAccessExpireOn = new $util.LongBits(object.firstAccessExpireOn.low >>> 0, object.firstAccessExpireOn.high >>> 0).toNumber(); if (object.accessExpireOn != null) if ($util.Long) - message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn, false); + (message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn)).unsigned = false; else if (typeof object.accessExpireOn === "string") message.accessExpireOn = parseInt(object.accessExpireOn, 10); else if (typeof object.accessExpireOn === "number") @@ -44420,13 +41426,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AppClient.toObject = function toObject(message, options, q) { + AppClient.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id = ""; @@ -44439,19 +41441,19 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.createdOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.createdOn = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.firstAccess = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.firstAccess = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.firstAccess = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.firstAccess = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastAccess = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastAccess = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastAccess = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastAccess = options.longs === String ? "0" : 0; if (options.bytes === String) object.publicKey = ""; else { @@ -44463,14 +41465,14 @@ export const Authentication = $root.Authentication = (() => { object.ipAddress = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.firstAccessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.firstAccessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.firstAccessExpireOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.firstAccessExpireOn = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.accessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.accessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.accessExpireOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.accessExpireOn = options.longs === String ? "0" : 0; object.appClientType = options.enums === String ? "NOT_USED" : 0; object.canEdit = false; } @@ -44479,23 +41481,17 @@ export const Authentication = $root.Authentication = (() => { if (message.clientId != null && message.hasOwnProperty("clientId")) object.clientId = options.bytes === String ? $util.base64.encode(message.clientId, 0, message.clientId.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientId) : message.clientId; if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.createdOn = typeof message.createdOn === "number" ? BigInt(message.createdOn) : $util.Long.fromBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0, false).toBigInt(); - else if (typeof message.createdOn === "number") + if (typeof message.createdOn === "number") object.createdOn = options.longs === String ? String(message.createdOn) : message.createdOn; else object.createdOn = options.longs === String ? $util.Long.prototype.toString.call(message.createdOn) : options.longs === Number ? new $util.LongBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0).toNumber() : message.createdOn; if (message.firstAccess != null && message.hasOwnProperty("firstAccess")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.firstAccess = typeof message.firstAccess === "number" ? BigInt(message.firstAccess) : $util.Long.fromBits(message.firstAccess.low >>> 0, message.firstAccess.high >>> 0, false).toBigInt(); - else if (typeof message.firstAccess === "number") + if (typeof message.firstAccess === "number") object.firstAccess = options.longs === String ? String(message.firstAccess) : message.firstAccess; else object.firstAccess = options.longs === String ? $util.Long.prototype.toString.call(message.firstAccess) : options.longs === Number ? new $util.LongBits(message.firstAccess.low >>> 0, message.firstAccess.high >>> 0).toNumber() : message.firstAccess; if (message.lastAccess != null && message.hasOwnProperty("lastAccess")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastAccess = typeof message.lastAccess === "number" ? BigInt(message.lastAccess) : $util.Long.fromBits(message.lastAccess.low >>> 0, message.lastAccess.high >>> 0, false).toBigInt(); - else if (typeof message.lastAccess === "number") + if (typeof message.lastAccess === "number") object.lastAccess = options.longs === String ? String(message.lastAccess) : message.lastAccess; else object.lastAccess = options.longs === String ? $util.Long.prototype.toString.call(message.lastAccess) : options.longs === Number ? new $util.LongBits(message.lastAccess.low >>> 0, message.lastAccess.high >>> 0).toNumber() : message.lastAccess; @@ -44506,16 +41502,12 @@ export const Authentication = $root.Authentication = (() => { if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) object.ipAddress = message.ipAddress; if (message.firstAccessExpireOn != null && message.hasOwnProperty("firstAccessExpireOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.firstAccessExpireOn = typeof message.firstAccessExpireOn === "number" ? BigInt(message.firstAccessExpireOn) : $util.Long.fromBits(message.firstAccessExpireOn.low >>> 0, message.firstAccessExpireOn.high >>> 0, false).toBigInt(); - else if (typeof message.firstAccessExpireOn === "number") + if (typeof message.firstAccessExpireOn === "number") object.firstAccessExpireOn = options.longs === String ? String(message.firstAccessExpireOn) : message.firstAccessExpireOn; else object.firstAccessExpireOn = options.longs === String ? $util.Long.prototype.toString.call(message.firstAccessExpireOn) : options.longs === Number ? new $util.LongBits(message.firstAccessExpireOn.low >>> 0, message.firstAccessExpireOn.high >>> 0).toNumber() : message.firstAccessExpireOn; if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.accessExpireOn = typeof message.accessExpireOn === "number" ? BigInt(message.accessExpireOn) : $util.Long.fromBits(message.accessExpireOn.low >>> 0, message.accessExpireOn.high >>> 0, false).toBigInt(); - else if (typeof message.accessExpireOn === "number") + if (typeof message.accessExpireOn === "number") object.accessExpireOn = options.longs === String ? String(message.accessExpireOn) : message.accessExpireOn; else object.accessExpireOn = options.longs === String ? $util.Long.prototype.toString.call(message.accessExpireOn) : options.longs === Number ? new $util.LongBits(message.accessExpireOn.low >>> 0, message.accessExpireOn.high >>> 0).toNumber() : message.accessExpireOn; @@ -44576,7 +41568,7 @@ export const Authentication = $root.Authentication = (() => { this.appRecordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -44609,13 +41601,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAppInfoRequest.encode = function encode(message, writer, q) { + GetAppInfoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appRecordUid != null && message.appRecordUid.length) for (let i = 0; i < message.appRecordUid.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid[i]); @@ -44646,18 +41634,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAppInfoRequest.decode = function decode(reader, length, error, long) { + GetAppInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetAppInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.appRecordUid && message.appRecordUid.length)) @@ -44666,7 +41648,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -44697,13 +41679,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAppInfoRequest.verify = function verify(message, long) { + GetAppInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) { if (!Array.isArray(message.appRecordUid)) return "appRecordUid: array expected"; @@ -44722,13 +41700,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetAppInfoRequest} GetAppInfoRequest */ - GetAppInfoRequest.fromObject = function fromObject(object, long) { + GetAppInfoRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetAppInfoRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetAppInfoRequest(); if (object.appRecordUid) { if (!Array.isArray(object.appRecordUid)) @@ -44752,13 +41726,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAppInfoRequest.toObject = function toObject(message, options, q) { + GetAppInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.appRecordUid = []; @@ -44824,7 +41794,7 @@ export const Authentication = $root.Authentication = (() => { this.clients = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -44881,21 +41851,17 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AppInfo.encode = function encode(message, writer, q) { + AppInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); if (message.shares != null && message.shares.length) for (let i = 0; i < message.shares.length; ++i) - $root.Authentication.AppShare.encode(message.shares[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Authentication.AppShare.encode(message.shares[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.clients != null && message.clients.length) for (let i = 0; i < message.clients.length; ++i) - $root.Authentication.AppClient.encode(message.clients[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Authentication.AppClient.encode(message.clients[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.isExternalShare != null && Object.hasOwnProperty.call(message, "isExternalShare")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isExternalShare); return writer; @@ -44925,18 +41891,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AppInfo.decode = function decode(reader, length, error, long) { + AppInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AppInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.appRecordUid = reader.bytes(); @@ -44945,13 +41905,13 @@ export const Authentication = $root.Authentication = (() => { case 2: { if (!(message.shares && message.shares.length)) message.shares = []; - message.shares.push($root.Authentication.AppShare.decode(reader, reader.uint32(), undefined, long + 1)); + message.shares.push($root.Authentication.AppShare.decode(reader, reader.uint32())); break; } case 3: { if (!(message.clients && message.clients.length)) message.clients = []; - message.clients.push($root.Authentication.AppClient.decode(reader, reader.uint32(), undefined, long + 1)); + message.clients.push($root.Authentication.AppClient.decode(reader, reader.uint32())); break; } case 4: { @@ -44959,7 +41919,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -44990,13 +41950,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AppInfo.verify = function verify(message, long) { + AppInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) return "appRecordUid: buffer expected"; @@ -45004,7 +41960,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.shares)) return "shares: array expected"; for (let i = 0; i < message.shares.length; ++i) { - let error = $root.Authentication.AppShare.verify(message.shares[i], long + 1); + let error = $root.Authentication.AppShare.verify(message.shares[i]); if (error) return "shares." + error; } @@ -45013,7 +41969,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.clients)) return "clients: array expected"; for (let i = 0; i < message.clients.length; ++i) { - let error = $root.Authentication.AppClient.verify(message.clients[i], long + 1); + let error = $root.Authentication.AppClient.verify(message.clients[i]); if (error) return "clients." + error; } @@ -45032,13 +41988,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AppInfo} AppInfo */ - AppInfo.fromObject = function fromObject(object, long) { + AppInfo.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AppInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AppInfo(); if (object.appRecordUid != null) if (typeof object.appRecordUid === "string") @@ -45052,7 +42004,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.shares.length; ++i) { if (typeof object.shares[i] !== "object") throw TypeError(".Authentication.AppInfo.shares: object expected"); - message.shares[i] = $root.Authentication.AppShare.fromObject(object.shares[i], long + 1); + message.shares[i] = $root.Authentication.AppShare.fromObject(object.shares[i]); } } if (object.clients) { @@ -45062,7 +42014,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.clients.length; ++i) { if (typeof object.clients[i] !== "object") throw TypeError(".Authentication.AppInfo.clients: object expected"); - message.clients[i] = $root.Authentication.AppClient.fromObject(object.clients[i], long + 1); + message.clients[i] = $root.Authentication.AppClient.fromObject(object.clients[i]); } } if (object.isExternalShare != null) @@ -45079,13 +42031,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AppInfo.toObject = function toObject(message, options, q) { + AppInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.shares = []; @@ -45106,12 +42054,12 @@ export const Authentication = $root.Authentication = (() => { if (message.shares && message.shares.length) { object.shares = []; for (let j = 0; j < message.shares.length; ++j) - object.shares[j] = $root.Authentication.AppShare.toObject(message.shares[j], options, q + 1); + object.shares[j] = $root.Authentication.AppShare.toObject(message.shares[j], options); } if (message.clients && message.clients.length) { object.clients = []; for (let j = 0; j < message.clients.length; ++j) - object.clients[j] = $root.Authentication.AppClient.toObject(message.clients[j], options, q + 1); + object.clients[j] = $root.Authentication.AppClient.toObject(message.clients[j], options); } if (message.isExternalShare != null && message.hasOwnProperty("isExternalShare")) object.isExternalShare = message.isExternalShare; @@ -45168,7 +42116,7 @@ export const Authentication = $root.Authentication = (() => { this.appInfo = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -45201,16 +42149,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAppInfoResponse.encode = function encode(message, writer, q) { + GetAppInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appInfo != null && message.appInfo.length) for (let i = 0; i < message.appInfo.length; ++i) - $root.Authentication.AppInfo.encode(message.appInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.AppInfo.encode(message.appInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -45238,27 +42182,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAppInfoResponse.decode = function decode(reader, length, error, long) { + GetAppInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetAppInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.appInfo && message.appInfo.length)) message.appInfo = []; - message.appInfo.push($root.Authentication.AppInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.appInfo.push($root.Authentication.AppInfo.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -45289,18 +42227,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAppInfoResponse.verify = function verify(message, long) { + GetAppInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appInfo != null && message.hasOwnProperty("appInfo")) { if (!Array.isArray(message.appInfo)) return "appInfo: array expected"; for (let i = 0; i < message.appInfo.length; ++i) { - let error = $root.Authentication.AppInfo.verify(message.appInfo[i], long + 1); + let error = $root.Authentication.AppInfo.verify(message.appInfo[i]); if (error) return "appInfo." + error; } @@ -45316,13 +42250,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetAppInfoResponse} GetAppInfoResponse */ - GetAppInfoResponse.fromObject = function fromObject(object, long) { + GetAppInfoResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetAppInfoResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetAppInfoResponse(); if (object.appInfo) { if (!Array.isArray(object.appInfo)) @@ -45331,7 +42261,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.appInfo.length; ++i) { if (typeof object.appInfo[i] !== "object") throw TypeError(".Authentication.GetAppInfoResponse.appInfo: object expected"); - message.appInfo[i] = $root.Authentication.AppInfo.fromObject(object.appInfo[i], long + 1); + message.appInfo[i] = $root.Authentication.AppInfo.fromObject(object.appInfo[i]); } } return message; @@ -45346,20 +42276,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAppInfoResponse.toObject = function toObject(message, options, q) { + GetAppInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.appInfo = []; if (message.appInfo && message.appInfo.length) { object.appInfo = []; for (let j = 0; j < message.appInfo.length; ++j) - object.appInfo[j] = $root.Authentication.AppInfo.toObject(message.appInfo[j], options, q + 1); + object.appInfo[j] = $root.Authentication.AppInfo.toObject(message.appInfo[j], options); } return object; }; @@ -45421,7 +42347,7 @@ export const Authentication = $root.Authentication = (() => { function ApplicationSummary(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -45518,13 +42444,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplicationSummary.encode = function encode(message, writer, q) { + ApplicationSummary.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); if (message.lastAccess != null && Object.hasOwnProperty.call(message, "lastAccess")) @@ -45570,18 +42492,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplicationSummary.decode = function decode(reader, length, error, long) { + ApplicationSummary.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApplicationSummary(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.appRecordUid = reader.bytes(); @@ -45620,7 +42536,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -45651,13 +42567,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplicationSummary.verify = function verify(message, long) { + ApplicationSummary.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) return "appRecordUid: buffer expected"; @@ -45696,13 +42608,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ApplicationSummary} ApplicationSummary */ - ApplicationSummary.fromObject = function fromObject(object, long) { + ApplicationSummary.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ApplicationSummary) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ApplicationSummary(); if (object.appRecordUid != null) if (typeof object.appRecordUid === "string") @@ -45711,7 +42619,7 @@ export const Authentication = $root.Authentication = (() => { message.appRecordUid = object.appRecordUid; if (object.lastAccess != null) if ($util.Long) - message.lastAccess = $util.Long.fromValue(object.lastAccess, false); + (message.lastAccess = $util.Long.fromValue(object.lastAccess)).unsigned = false; else if (typeof object.lastAccess === "string") message.lastAccess = parseInt(object.lastAccess, 10); else if (typeof object.lastAccess === "number") @@ -45747,13 +42655,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplicationSummary.toObject = function toObject(message, options, q) { + ApplicationSummary.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -45765,9 +42669,9 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastAccess = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastAccess = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastAccess = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastAccess = options.longs === String ? "0" : 0; object.recordShares = 0; object.folderShares = 0; object.folderRecords = 0; @@ -45785,9 +42689,7 @@ export const Authentication = $root.Authentication = (() => { if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; if (message.lastAccess != null && message.hasOwnProperty("lastAccess")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastAccess = typeof message.lastAccess === "number" ? BigInt(message.lastAccess) : $util.Long.fromBits(message.lastAccess.low >>> 0, message.lastAccess.high >>> 0, false).toBigInt(); - else if (typeof message.lastAccess === "number") + if (typeof message.lastAccess === "number") object.lastAccess = options.longs === String ? String(message.lastAccess) : message.lastAccess; else object.lastAccess = options.longs === String ? $util.Long.prototype.toString.call(message.lastAccess) : options.longs === Number ? new $util.LongBits(message.lastAccess.low >>> 0, message.lastAccess.high >>> 0).toNumber() : message.lastAccess; @@ -45858,7 +42760,7 @@ export const Authentication = $root.Authentication = (() => { this.applicationSummary = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -45891,16 +42793,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetApplicationsSummaryResponse.encode = function encode(message, writer, q) { + GetApplicationsSummaryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.applicationSummary != null && message.applicationSummary.length) for (let i = 0; i < message.applicationSummary.length; ++i) - $root.Authentication.ApplicationSummary.encode(message.applicationSummary[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.ApplicationSummary.encode(message.applicationSummary[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -45928,27 +42826,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetApplicationsSummaryResponse.decode = function decode(reader, length, error, long) { + GetApplicationsSummaryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetApplicationsSummaryResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.applicationSummary && message.applicationSummary.length)) message.applicationSummary = []; - message.applicationSummary.push($root.Authentication.ApplicationSummary.decode(reader, reader.uint32(), undefined, long + 1)); + message.applicationSummary.push($root.Authentication.ApplicationSummary.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -45979,18 +42871,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetApplicationsSummaryResponse.verify = function verify(message, long) { + GetApplicationsSummaryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.applicationSummary != null && message.hasOwnProperty("applicationSummary")) { if (!Array.isArray(message.applicationSummary)) return "applicationSummary: array expected"; for (let i = 0; i < message.applicationSummary.length; ++i) { - let error = $root.Authentication.ApplicationSummary.verify(message.applicationSummary[i], long + 1); + let error = $root.Authentication.ApplicationSummary.verify(message.applicationSummary[i]); if (error) return "applicationSummary." + error; } @@ -46006,13 +42894,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetApplicationsSummaryResponse} GetApplicationsSummaryResponse */ - GetApplicationsSummaryResponse.fromObject = function fromObject(object, long) { + GetApplicationsSummaryResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetApplicationsSummaryResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetApplicationsSummaryResponse(); if (object.applicationSummary) { if (!Array.isArray(object.applicationSummary)) @@ -46021,7 +42905,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.applicationSummary.length; ++i) { if (typeof object.applicationSummary[i] !== "object") throw TypeError(".Authentication.GetApplicationsSummaryResponse.applicationSummary: object expected"); - message.applicationSummary[i] = $root.Authentication.ApplicationSummary.fromObject(object.applicationSummary[i], long + 1); + message.applicationSummary[i] = $root.Authentication.ApplicationSummary.fromObject(object.applicationSummary[i]); } } return message; @@ -46036,20 +42920,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetApplicationsSummaryResponse.toObject = function toObject(message, options, q) { + GetApplicationsSummaryResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.applicationSummary = []; if (message.applicationSummary && message.applicationSummary.length) { object.applicationSummary = []; for (let j = 0; j < message.applicationSummary.length; ++j) - object.applicationSummary[j] = $root.Authentication.ApplicationSummary.toObject(message.applicationSummary[j], options, q + 1); + object.applicationSummary[j] = $root.Authentication.ApplicationSummary.toObject(message.applicationSummary[j], options); } return object; }; @@ -46103,7 +42983,7 @@ export const Authentication = $root.Authentication = (() => { function GetVerificationTokenRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -46136,13 +43016,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVerificationTokenRequest.encode = function encode(message, writer, q) { + GetVerificationTokenRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); return writer; @@ -46172,25 +43048,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVerificationTokenRequest.decode = function decode(reader, length, error, long) { + GetVerificationTokenRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetVerificationTokenRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -46221,13 +43091,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVerificationTokenRequest.verify = function verify(message, long) { + GetVerificationTokenRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -46242,13 +43108,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetVerificationTokenRequest} GetVerificationTokenRequest */ - GetVerificationTokenRequest.fromObject = function fromObject(object, long) { + GetVerificationTokenRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetVerificationTokenRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetVerificationTokenRequest(); if (object.username != null) message.username = String(object.username); @@ -46264,13 +43126,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVerificationTokenRequest.toObject = function toObject(message, options, q) { + GetVerificationTokenRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.username = ""; @@ -46328,7 +43186,7 @@ export const Authentication = $root.Authentication = (() => { function GetVerificationTokenResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -46361,13 +43219,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetVerificationTokenResponse.encode = function encode(message, writer, q) { + GetVerificationTokenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedVerificationToken != null && Object.hasOwnProperty.call(message, "encryptedVerificationToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedVerificationToken); return writer; @@ -46397,25 +43251,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetVerificationTokenResponse.decode = function decode(reader, length, error, long) { + GetVerificationTokenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetVerificationTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedVerificationToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -46446,13 +43294,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetVerificationTokenResponse.verify = function verify(message, long) { + GetVerificationTokenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedVerificationToken != null && message.hasOwnProperty("encryptedVerificationToken")) if (!(message.encryptedVerificationToken && typeof message.encryptedVerificationToken.length === "number" || $util.isString(message.encryptedVerificationToken))) return "encryptedVerificationToken: buffer expected"; @@ -46467,13 +43311,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GetVerificationTokenResponse} GetVerificationTokenResponse */ - GetVerificationTokenResponse.fromObject = function fromObject(object, long) { + GetVerificationTokenResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GetVerificationTokenResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GetVerificationTokenResponse(); if (object.encryptedVerificationToken != null) if (typeof object.encryptedVerificationToken === "string") @@ -46492,13 +43332,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVerificationTokenResponse.toObject = function toObject(message, options, q) { + GetVerificationTokenResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -46562,7 +43398,7 @@ export const Authentication = $root.Authentication = (() => { function SendShareInviteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -46595,13 +43431,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SendShareInviteRequest.encode = function encode(message, writer, q) { + SendShareInviteRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); return writer; @@ -46631,25 +43463,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SendShareInviteRequest.decode = function decode(reader, length, error, long) { + SendShareInviteRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SendShareInviteRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.email = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -46680,13 +43506,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SendShareInviteRequest.verify = function verify(message, long) { + SendShareInviteRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.email != null && message.hasOwnProperty("email")) if (!$util.isString(message.email)) return "email: string expected"; @@ -46701,13 +43523,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.SendShareInviteRequest} SendShareInviteRequest */ - SendShareInviteRequest.fromObject = function fromObject(object, long) { + SendShareInviteRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.SendShareInviteRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.SendShareInviteRequest(); if (object.email != null) message.email = String(object.email); @@ -46723,13 +43541,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SendShareInviteRequest.toObject = function toObject(message, options, q) { + SendShareInviteRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.email = ""; @@ -46813,7 +43627,7 @@ export const Authentication = $root.Authentication = (() => { this.recordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -46886,13 +43700,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessRequest.encode = function encode(message, writer, q) { + TimeLimitedAccessRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.accountUid != null && message.accountUid.length) for (let i = 0; i < message.accountUid.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid[i]); @@ -46935,18 +43745,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimeLimitedAccessRequest.decode = function decode(reader, length, error, long) { + TimeLimitedAccessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TimeLimitedAccessRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.accountUid && message.accountUid.length)) @@ -46979,7 +43783,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -47010,13 +43814,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimeLimitedAccessRequest.verify = function verify(message, long) { + TimeLimitedAccessRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.accountUid != null && message.hasOwnProperty("accountUid")) { if (!Array.isArray(message.accountUid)) return "accountUid: array expected"; @@ -47065,13 +43865,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TimeLimitedAccessRequest} TimeLimitedAccessRequest */ - TimeLimitedAccessRequest.fromObject = function fromObject(object, long) { + TimeLimitedAccessRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TimeLimitedAccessRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TimeLimitedAccessRequest(); if (object.accountUid) { if (!Array.isArray(object.accountUid)) @@ -47134,7 +43930,7 @@ export const Authentication = $root.Authentication = (() => { } if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -47153,13 +43949,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeLimitedAccessRequest.toObject = function toObject(message, options, q) { + TimeLimitedAccessRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.accountUid = []; @@ -47177,9 +43969,9 @@ export const Authentication = $root.Authentication = (() => { object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; } if (message.accountUid && message.accountUid.length) { object.accountUid = []; @@ -47201,9 +43993,7 @@ export const Authentication = $root.Authentication = (() => { if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) object.timeLimitedAccessType = options.enums === String ? $root.Authentication.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined ? message.timeLimitedAccessType : $root.Authentication.TimeLimitedAccessType[message.timeLimitedAccessType] : message.timeLimitedAccessType; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -47260,7 +44050,7 @@ export const Authentication = $root.Authentication = (() => { function TimeLimitedAccessStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -47301,13 +44091,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessStatus.encode = function encode(message, writer, q) { + TimeLimitedAccessStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -47339,18 +44125,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimeLimitedAccessStatus.decode = function decode(reader, length, error, long) { + TimeLimitedAccessStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TimeLimitedAccessStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); @@ -47361,7 +44141,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -47392,13 +44172,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimeLimitedAccessStatus.verify = function verify(message, long) { + TimeLimitedAccessStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -47416,13 +44192,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TimeLimitedAccessStatus} TimeLimitedAccessStatus */ - TimeLimitedAccessStatus.fromObject = function fromObject(object, long) { + TimeLimitedAccessStatus.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TimeLimitedAccessStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TimeLimitedAccessStatus(); if (object.uid != null) if (typeof object.uid === "string") @@ -47443,13 +44215,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeLimitedAccessStatus.toObject = function toObject(message, options, q) { + TimeLimitedAccessStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -47523,7 +44291,7 @@ export const Authentication = $root.Authentication = (() => { this.recordAccessStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -47580,24 +44348,20 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessResponse.encode = function encode(message, writer, q) { + TimeLimitedAccessResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); if (message.userAccessStatus != null && message.userAccessStatus.length) for (let i = 0; i < message.userAccessStatus.length; ++i) - $root.Authentication.TimeLimitedAccessStatus.encode(message.userAccessStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Authentication.TimeLimitedAccessStatus.encode(message.userAccessStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.teamAccessStatus != null && message.teamAccessStatus.length) for (let i = 0; i < message.teamAccessStatus.length; ++i) - $root.Authentication.TimeLimitedAccessStatus.encode(message.teamAccessStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Authentication.TimeLimitedAccessStatus.encode(message.teamAccessStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.recordAccessStatus != null && message.recordAccessStatus.length) for (let i = 0; i < message.recordAccessStatus.length; ++i) - $root.Authentication.TimeLimitedAccessStatus.encode(message.recordAccessStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Authentication.TimeLimitedAccessStatus.encode(message.recordAccessStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -47625,18 +44389,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimeLimitedAccessResponse.decode = function decode(reader, length, error, long) { + TimeLimitedAccessResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TimeLimitedAccessResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.revision = reader.int64(); @@ -47645,23 +44403,23 @@ export const Authentication = $root.Authentication = (() => { case 2: { if (!(message.userAccessStatus && message.userAccessStatus.length)) message.userAccessStatus = []; - message.userAccessStatus.push($root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.userAccessStatus.push($root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32())); break; } case 3: { if (!(message.teamAccessStatus && message.teamAccessStatus.length)) message.teamAccessStatus = []; - message.teamAccessStatus.push($root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.teamAccessStatus.push($root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32())); break; } case 4: { if (!(message.recordAccessStatus && message.recordAccessStatus.length)) message.recordAccessStatus = []; - message.recordAccessStatus.push($root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordAccessStatus.push($root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -47692,13 +44450,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimeLimitedAccessResponse.verify = function verify(message, long) { + TimeLimitedAccessResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.revision != null && message.hasOwnProperty("revision")) if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) return "revision: integer|Long expected"; @@ -47706,7 +44460,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.userAccessStatus)) return "userAccessStatus: array expected"; for (let i = 0; i < message.userAccessStatus.length; ++i) { - let error = $root.Authentication.TimeLimitedAccessStatus.verify(message.userAccessStatus[i], long + 1); + let error = $root.Authentication.TimeLimitedAccessStatus.verify(message.userAccessStatus[i]); if (error) return "userAccessStatus." + error; } @@ -47715,7 +44469,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.teamAccessStatus)) return "teamAccessStatus: array expected"; for (let i = 0; i < message.teamAccessStatus.length; ++i) { - let error = $root.Authentication.TimeLimitedAccessStatus.verify(message.teamAccessStatus[i], long + 1); + let error = $root.Authentication.TimeLimitedAccessStatus.verify(message.teamAccessStatus[i]); if (error) return "teamAccessStatus." + error; } @@ -47724,7 +44478,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.recordAccessStatus)) return "recordAccessStatus: array expected"; for (let i = 0; i < message.recordAccessStatus.length; ++i) { - let error = $root.Authentication.TimeLimitedAccessStatus.verify(message.recordAccessStatus[i], long + 1); + let error = $root.Authentication.TimeLimitedAccessStatus.verify(message.recordAccessStatus[i]); if (error) return "recordAccessStatus." + error; } @@ -47740,17 +44494,13 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TimeLimitedAccessResponse} TimeLimitedAccessResponse */ - TimeLimitedAccessResponse.fromObject = function fromObject(object, long) { + TimeLimitedAccessResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TimeLimitedAccessResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TimeLimitedAccessResponse(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -47764,7 +44514,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.userAccessStatus.length; ++i) { if (typeof object.userAccessStatus[i] !== "object") throw TypeError(".Authentication.TimeLimitedAccessResponse.userAccessStatus: object expected"); - message.userAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.userAccessStatus[i], long + 1); + message.userAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.userAccessStatus[i]); } } if (object.teamAccessStatus) { @@ -47774,7 +44524,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.teamAccessStatus.length; ++i) { if (typeof object.teamAccessStatus[i] !== "object") throw TypeError(".Authentication.TimeLimitedAccessResponse.teamAccessStatus: object expected"); - message.teamAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.teamAccessStatus[i], long + 1); + message.teamAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.teamAccessStatus[i]); } } if (object.recordAccessStatus) { @@ -47784,7 +44534,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.recordAccessStatus.length; ++i) { if (typeof object.recordAccessStatus[i] !== "object") throw TypeError(".Authentication.TimeLimitedAccessResponse.recordAccessStatus: object expected"); - message.recordAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.recordAccessStatus[i], long + 1); + message.recordAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.recordAccessStatus[i]); } } return message; @@ -47799,13 +44549,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeLimitedAccessResponse.toObject = function toObject(message, options, q) { + TimeLimitedAccessResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.userAccessStatus = []; @@ -47815,30 +44561,28 @@ export const Authentication = $root.Authentication = (() => { if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; if (message.userAccessStatus && message.userAccessStatus.length) { object.userAccessStatus = []; for (let j = 0; j < message.userAccessStatus.length; ++j) - object.userAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject(message.userAccessStatus[j], options, q + 1); + object.userAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject(message.userAccessStatus[j], options); } if (message.teamAccessStatus && message.teamAccessStatus.length) { object.teamAccessStatus = []; for (let j = 0; j < message.teamAccessStatus.length; ++j) - object.teamAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject(message.teamAccessStatus[j], options, q + 1); + object.teamAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject(message.teamAccessStatus[j], options); } if (message.recordAccessStatus && message.recordAccessStatus.length) { object.recordAccessStatus = []; for (let j = 0; j < message.recordAccessStatus.length; ++j) - object.recordAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject(message.recordAccessStatus[j], options, q + 1); + object.recordAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject(message.recordAccessStatus[j], options); } return object; }; @@ -47893,7 +44637,7 @@ export const Authentication = $root.Authentication = (() => { this.fileNames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -47926,13 +44670,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestDownloadRequest.encode = function encode(message, writer, q) { + RequestDownloadRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.fileNames != null && message.fileNames.length) for (let i = 0; i < message.fileNames.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.fileNames[i]); @@ -47963,18 +44703,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestDownloadRequest.decode = function decode(reader, length, error, long) { + RequestDownloadRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RequestDownloadRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.fileNames && message.fileNames.length)) @@ -47983,7 +44717,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -48014,13 +44748,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestDownloadRequest.verify = function verify(message, long) { + RequestDownloadRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.fileNames != null && message.hasOwnProperty("fileNames")) { if (!Array.isArray(message.fileNames)) return "fileNames: array expected"; @@ -48039,13 +44769,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.RequestDownloadRequest} RequestDownloadRequest */ - RequestDownloadRequest.fromObject = function fromObject(object, long) { + RequestDownloadRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.RequestDownloadRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.RequestDownloadRequest(); if (object.fileNames) { if (!Array.isArray(object.fileNames)) @@ -48066,13 +44792,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestDownloadRequest.toObject = function toObject(message, options, q) { + RequestDownloadRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.fileNames = []; @@ -48136,7 +44858,7 @@ export const Authentication = $root.Authentication = (() => { this.downloads = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -48185,20 +44907,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RequestDownloadResponse.encode = function encode(message, writer, q) { + RequestDownloadResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.result != null && Object.hasOwnProperty.call(message, "result")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.result); if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); if (message.downloads != null && message.downloads.length) for (let i = 0; i < message.downloads.length; ++i) - $root.Authentication.Download.encode(message.downloads[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Authentication.Download.encode(message.downloads[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -48226,18 +44944,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RequestDownloadResponse.decode = function decode(reader, length, error, long) { + RequestDownloadResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RequestDownloadResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.result = reader.string(); @@ -48250,11 +44962,11 @@ export const Authentication = $root.Authentication = (() => { case 3: { if (!(message.downloads && message.downloads.length)) message.downloads = []; - message.downloads.push($root.Authentication.Download.decode(reader, reader.uint32(), undefined, long + 1)); + message.downloads.push($root.Authentication.Download.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -48285,13 +44997,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RequestDownloadResponse.verify = function verify(message, long) { + RequestDownloadResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.result != null && message.hasOwnProperty("result")) if (!$util.isString(message.result)) return "result: string expected"; @@ -48302,7 +45010,7 @@ export const Authentication = $root.Authentication = (() => { if (!Array.isArray(message.downloads)) return "downloads: array expected"; for (let i = 0; i < message.downloads.length; ++i) { - let error = $root.Authentication.Download.verify(message.downloads[i], long + 1); + let error = $root.Authentication.Download.verify(message.downloads[i]); if (error) return "downloads." + error; } @@ -48318,13 +45026,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.RequestDownloadResponse} RequestDownloadResponse */ - RequestDownloadResponse.fromObject = function fromObject(object, long) { + RequestDownloadResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.RequestDownloadResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.RequestDownloadResponse(); if (object.result != null) message.result = String(object.result); @@ -48337,7 +45041,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.downloads.length; ++i) { if (typeof object.downloads[i] !== "object") throw TypeError(".Authentication.RequestDownloadResponse.downloads: object expected"); - message.downloads[i] = $root.Authentication.Download.fromObject(object.downloads[i], long + 1); + message.downloads[i] = $root.Authentication.Download.fromObject(object.downloads[i]); } } return message; @@ -48352,13 +45056,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RequestDownloadResponse.toObject = function toObject(message, options, q) { + RequestDownloadResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.downloads = []; @@ -48373,7 +45073,7 @@ export const Authentication = $root.Authentication = (() => { if (message.downloads && message.downloads.length) { object.downloads = []; for (let j = 0; j < message.downloads.length; ++j) - object.downloads[j] = $root.Authentication.Download.toObject(message.downloads[j], options, q + 1); + object.downloads[j] = $root.Authentication.Download.toObject(message.downloads[j], options); } return object; }; @@ -48429,7 +45129,7 @@ export const Authentication = $root.Authentication = (() => { function Download(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -48478,13 +45178,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Download.encode = function encode(message, writer, q) { + Download.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.fileName); if (message.url != null && Object.hasOwnProperty.call(message, "url")) @@ -48518,18 +45214,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Download.decode = function decode(reader, length, error, long) { + Download.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.Download(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.fileName = reader.string(); @@ -48544,7 +45234,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -48575,13 +45265,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Download.verify = function verify(message, long) { + Download.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.fileName != null && message.hasOwnProperty("fileName")) if (!$util.isString(message.fileName)) return "fileName: string expected"; @@ -48602,13 +45288,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.Download} Download */ - Download.fromObject = function fromObject(object, long) { + Download.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.Download) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.Download(); if (object.fileName != null) message.fileName = String(object.fileName); @@ -48628,13 +45310,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Download.toObject = function toObject(message, options, q) { + Download.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.fileName = ""; @@ -48699,7 +45377,7 @@ export const Authentication = $root.Authentication = (() => { function DeleteUserRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -48732,13 +45410,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteUserRequest.encode = function encode(message, writer, q) { + DeleteUserRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason); return writer; @@ -48768,25 +45442,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteUserRequest.decode = function decode(reader, length, error, long) { + DeleteUserRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeleteUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.reason = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -48817,13 +45485,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteUserRequest.verify = function verify(message, long) { + DeleteUserRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.reason != null && message.hasOwnProperty("reason")) if (!$util.isString(message.reason)) return "reason: string expected"; @@ -48838,13 +45502,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.DeleteUserRequest} DeleteUserRequest */ - DeleteUserRequest.fromObject = function fromObject(object, long) { + DeleteUserRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.DeleteUserRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.DeleteUserRequest(); if (object.reason != null) message.reason = String(object.reason); @@ -48860,13 +45520,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteUserRequest.toObject = function toObject(message, options, q) { + DeleteUserRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.reason = ""; @@ -48927,7 +45583,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeMasterPasswordRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -48984,13 +45640,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeMasterPasswordRequest.encode = function encode(message, writer, q) { + ChangeMasterPasswordRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.authVerifier != null && Object.hasOwnProperty.call(message, "authVerifier")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.authVerifier); if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) @@ -49026,18 +45678,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeMasterPasswordRequest.decode = function decode(reader, length, error, long) { + ChangeMasterPasswordRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeMasterPasswordRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.authVerifier = reader.bytes(); @@ -49056,7 +45702,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -49087,13 +45733,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeMasterPasswordRequest.verify = function verify(message, long) { + ChangeMasterPasswordRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) if (!(message.authVerifier && typeof message.authVerifier.length === "number" || $util.isString(message.authVerifier))) return "authVerifier: buffer expected"; @@ -49117,13 +45759,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ChangeMasterPasswordRequest} ChangeMasterPasswordRequest */ - ChangeMasterPasswordRequest.fromObject = function fromObject(object, long) { + ChangeMasterPasswordRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ChangeMasterPasswordRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ChangeMasterPasswordRequest(); if (object.authVerifier != null) if (typeof object.authVerifier === "string") @@ -49151,13 +45789,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeMasterPasswordRequest.toObject = function toObject(message, options, q) { + ChangeMasterPasswordRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -49237,7 +45871,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeMasterPasswordResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -49270,13 +45904,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeMasterPasswordResponse.encode = function encode(message, writer, q) { + ChangeMasterPasswordResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSessionToken); return writer; @@ -49306,25 +45936,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeMasterPasswordResponse.decode = function decode(reader, length, error, long) { + ChangeMasterPasswordResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeMasterPasswordResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedSessionToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -49355,13 +45979,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeMasterPasswordResponse.verify = function verify(message, long) { + ChangeMasterPasswordResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) return "encryptedSessionToken: buffer expected"; @@ -49376,13 +45996,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.ChangeMasterPasswordResponse} ChangeMasterPasswordResponse */ - ChangeMasterPasswordResponse.fromObject = function fromObject(object, long) { + ChangeMasterPasswordResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.ChangeMasterPasswordResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.ChangeMasterPasswordResponse(); if (object.encryptedSessionToken != null) if (typeof object.encryptedSessionToken === "string") @@ -49401,13 +46017,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeMasterPasswordResponse.toObject = function toObject(message, options, q) { + ChangeMasterPasswordResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -49472,7 +46084,7 @@ export const Authentication = $root.Authentication = (() => { function AccountRecoverySetupRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -49513,13 +46125,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountRecoverySetupRequest.encode = function encode(message, writer, q) { + AccountRecoverySetupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recoveryEncryptedDataKey != null && Object.hasOwnProperty.call(message, "recoveryEncryptedDataKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recoveryEncryptedDataKey); if (message.recoveryAuthHash != null && Object.hasOwnProperty.call(message, "recoveryAuthHash")) @@ -49551,18 +46159,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountRecoverySetupRequest.decode = function decode(reader, length, error, long) { + AccountRecoverySetupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AccountRecoverySetupRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recoveryEncryptedDataKey = reader.bytes(); @@ -49573,7 +46175,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -49604,13 +46206,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AccountRecoverySetupRequest.verify = function verify(message, long) { + AccountRecoverySetupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recoveryEncryptedDataKey != null && message.hasOwnProperty("recoveryEncryptedDataKey")) if (!(message.recoveryEncryptedDataKey && typeof message.recoveryEncryptedDataKey.length === "number" || $util.isString(message.recoveryEncryptedDataKey))) return "recoveryEncryptedDataKey: buffer expected"; @@ -49628,13 +46226,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AccountRecoverySetupRequest} AccountRecoverySetupRequest */ - AccountRecoverySetupRequest.fromObject = function fromObject(object, long) { + AccountRecoverySetupRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AccountRecoverySetupRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AccountRecoverySetupRequest(); if (object.recoveryEncryptedDataKey != null) if (typeof object.recoveryEncryptedDataKey === "string") @@ -49658,13 +46252,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AccountRecoverySetupRequest.toObject = function toObject(message, options, q) { + AccountRecoverySetupRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -49756,7 +46346,7 @@ export const Authentication = $root.Authentication = (() => { function AccountRecoveryVerifyCodeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -49821,13 +46411,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountRecoveryVerifyCodeResponse.encode = function encode(message, writer, q) { + AccountRecoveryVerifyCodeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.backupKeyType != null && Object.hasOwnProperty.call(message, "backupKeyType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.backupKeyType); if (message.backupKeyDate != null && Object.hasOwnProperty.call(message, "backupKeyDate")) @@ -49865,18 +46451,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountRecoveryVerifyCodeResponse.decode = function decode(reader, length, error, long) { + AccountRecoveryVerifyCodeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AccountRecoveryVerifyCodeResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.backupKeyType = reader.int32(); @@ -49899,7 +46479,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -49930,13 +46510,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AccountRecoveryVerifyCodeResponse.verify = function verify(message, long) { + AccountRecoveryVerifyCodeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.backupKeyType != null && message.hasOwnProperty("backupKeyType")) switch (message.backupKeyType) { default: @@ -49968,13 +46544,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.AccountRecoveryVerifyCodeResponse} AccountRecoveryVerifyCodeResponse */ - AccountRecoveryVerifyCodeResponse.fromObject = function fromObject(object, long) { + AccountRecoveryVerifyCodeResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.AccountRecoveryVerifyCodeResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.AccountRecoveryVerifyCodeResponse(); switch (object.backupKeyType) { default: @@ -49994,7 +46566,7 @@ export const Authentication = $root.Authentication = (() => { } if (object.backupKeyDate != null) if ($util.Long) - message.backupKeyDate = $util.Long.fromValue(object.backupKeyDate, false); + (message.backupKeyDate = $util.Long.fromValue(object.backupKeyDate)).unsigned = false; else if (typeof object.backupKeyDate === "string") message.backupKeyDate = parseInt(object.backupKeyDate, 10); else if (typeof object.backupKeyDate === "number") @@ -50022,21 +46594,17 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AccountRecoveryVerifyCodeResponse.toObject = function toObject(message, options, q) { + AccountRecoveryVerifyCodeResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.backupKeyType = options.enums === String ? "BKT_SEC_ANSWER" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.backupKeyDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.backupKeyDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.backupKeyDate = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.backupKeyDate = options.longs === String ? "0" : 0; object.securityQuestion = ""; if (options.bytes === String) object.salt = ""; @@ -50050,9 +46618,7 @@ export const Authentication = $root.Authentication = (() => { if (message.backupKeyType != null && message.hasOwnProperty("backupKeyType")) object.backupKeyType = options.enums === String ? $root.Authentication.BackupKeyType[message.backupKeyType] === undefined ? message.backupKeyType : $root.Authentication.BackupKeyType[message.backupKeyType] : message.backupKeyType; if (message.backupKeyDate != null && message.hasOwnProperty("backupKeyDate")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.backupKeyDate = typeof message.backupKeyDate === "number" ? BigInt(message.backupKeyDate) : $util.Long.fromBits(message.backupKeyDate.low >>> 0, message.backupKeyDate.high >>> 0, false).toBigInt(); - else if (typeof message.backupKeyDate === "number") + if (typeof message.backupKeyDate === "number") object.backupKeyDate = options.longs === String ? String(message.backupKeyDate) : message.backupKeyDate; else object.backupKeyDate = options.longs === String ? $util.Long.prototype.toString.call(message.backupKeyDate) : options.longs === Number ? new $util.LongBits(message.backupKeyDate.low >>> 0, message.backupKeyDate.high >>> 0).toNumber() : message.backupKeyDate; @@ -50114,7 +46680,7 @@ export const Authentication = $root.Authentication = (() => { function EmergencyAccessLoginRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -50147,13 +46713,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmergencyAccessLoginRequest.encode = function encode(message, writer, q) { + EmergencyAccessLoginRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner); return writer; @@ -50183,25 +46745,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmergencyAccessLoginRequest.decode = function decode(reader, length, error, long) { + EmergencyAccessLoginRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EmergencyAccessLoginRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.owner = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -50232,13 +46788,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EmergencyAccessLoginRequest.verify = function verify(message, long) { + EmergencyAccessLoginRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.owner != null && message.hasOwnProperty("owner")) if (!$util.isString(message.owner)) return "owner: string expected"; @@ -50253,13 +46805,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.EmergencyAccessLoginRequest} EmergencyAccessLoginRequest */ - EmergencyAccessLoginRequest.fromObject = function fromObject(object, long) { + EmergencyAccessLoginRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.EmergencyAccessLoginRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.EmergencyAccessLoginRequest(); if (object.owner != null) message.owner = String(object.owner); @@ -50275,13 +46823,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmergencyAccessLoginRequest.toObject = function toObject(message, options, q) { + EmergencyAccessLoginRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.owner = ""; @@ -50342,7 +46886,7 @@ export const Authentication = $root.Authentication = (() => { function EmergencyAccessLoginResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -50399,21 +46943,17 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmergencyAccessLoginResponse.encode = function encode(message, writer, q) { + EmergencyAccessLoginResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sessionToken); if (message.dataKey != null && Object.hasOwnProperty.call(message, "dataKey")) - $root.Enterprise.TypedKey.encode(message.dataKey, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.TypedKey.encode(message.dataKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.rsaPrivateKey != null && Object.hasOwnProperty.call(message, "rsaPrivateKey")) - $root.Enterprise.TypedKey.encode(message.rsaPrivateKey, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Enterprise.TypedKey.encode(message.rsaPrivateKey, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.eccPrivateKey != null && Object.hasOwnProperty.call(message, "eccPrivateKey")) - $root.Enterprise.TypedKey.encode(message.eccPrivateKey, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Enterprise.TypedKey.encode(message.eccPrivateKey, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -50441,37 +46981,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmergencyAccessLoginResponse.decode = function decode(reader, length, error, long) { + EmergencyAccessLoginResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EmergencyAccessLoginResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sessionToken = reader.bytes(); break; } case 2: { - message.dataKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32(), undefined, long + 1); + message.dataKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32()); break; } case 3: { - message.rsaPrivateKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32(), undefined, long + 1); + message.rsaPrivateKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32()); break; } case 4: { - message.eccPrivateKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32(), undefined, long + 1); + message.eccPrivateKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -50502,28 +47036,24 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EmergencyAccessLoginResponse.verify = function verify(message, long) { + EmergencyAccessLoginResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) if (!(message.sessionToken && typeof message.sessionToken.length === "number" || $util.isString(message.sessionToken))) return "sessionToken: buffer expected"; if (message.dataKey != null && message.hasOwnProperty("dataKey")) { - let error = $root.Enterprise.TypedKey.verify(message.dataKey, long + 1); + let error = $root.Enterprise.TypedKey.verify(message.dataKey); if (error) return "dataKey." + error; } if (message.rsaPrivateKey != null && message.hasOwnProperty("rsaPrivateKey")) { - let error = $root.Enterprise.TypedKey.verify(message.rsaPrivateKey, long + 1); + let error = $root.Enterprise.TypedKey.verify(message.rsaPrivateKey); if (error) return "rsaPrivateKey." + error; } if (message.eccPrivateKey != null && message.hasOwnProperty("eccPrivateKey")) { - let error = $root.Enterprise.TypedKey.verify(message.eccPrivateKey, long + 1); + let error = $root.Enterprise.TypedKey.verify(message.eccPrivateKey); if (error) return "eccPrivateKey." + error; } @@ -50538,13 +47068,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.EmergencyAccessLoginResponse} EmergencyAccessLoginResponse */ - EmergencyAccessLoginResponse.fromObject = function fromObject(object, long) { + EmergencyAccessLoginResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.EmergencyAccessLoginResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.EmergencyAccessLoginResponse(); if (object.sessionToken != null) if (typeof object.sessionToken === "string") @@ -50554,17 +47080,17 @@ export const Authentication = $root.Authentication = (() => { if (object.dataKey != null) { if (typeof object.dataKey !== "object") throw TypeError(".Authentication.EmergencyAccessLoginResponse.dataKey: object expected"); - message.dataKey = $root.Enterprise.TypedKey.fromObject(object.dataKey, long + 1); + message.dataKey = $root.Enterprise.TypedKey.fromObject(object.dataKey); } if (object.rsaPrivateKey != null) { if (typeof object.rsaPrivateKey !== "object") throw TypeError(".Authentication.EmergencyAccessLoginResponse.rsaPrivateKey: object expected"); - message.rsaPrivateKey = $root.Enterprise.TypedKey.fromObject(object.rsaPrivateKey, long + 1); + message.rsaPrivateKey = $root.Enterprise.TypedKey.fromObject(object.rsaPrivateKey); } if (object.eccPrivateKey != null) { if (typeof object.eccPrivateKey !== "object") throw TypeError(".Authentication.EmergencyAccessLoginResponse.eccPrivateKey: object expected"); - message.eccPrivateKey = $root.Enterprise.TypedKey.fromObject(object.eccPrivateKey, long + 1); + message.eccPrivateKey = $root.Enterprise.TypedKey.fromObject(object.eccPrivateKey); } return message; }; @@ -50578,13 +47104,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmergencyAccessLoginResponse.toObject = function toObject(message, options, q) { + EmergencyAccessLoginResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -50601,11 +47123,11 @@ export const Authentication = $root.Authentication = (() => { if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) object.sessionToken = options.bytes === String ? $util.base64.encode(message.sessionToken, 0, message.sessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.sessionToken) : message.sessionToken; if (message.dataKey != null && message.hasOwnProperty("dataKey")) - object.dataKey = $root.Enterprise.TypedKey.toObject(message.dataKey, options, q + 1); + object.dataKey = $root.Enterprise.TypedKey.toObject(message.dataKey, options); if (message.rsaPrivateKey != null && message.hasOwnProperty("rsaPrivateKey")) - object.rsaPrivateKey = $root.Enterprise.TypedKey.toObject(message.rsaPrivateKey, options, q + 1); + object.rsaPrivateKey = $root.Enterprise.TypedKey.toObject(message.rsaPrivateKey, options); if (message.eccPrivateKey != null && message.hasOwnProperty("eccPrivateKey")) - object.eccPrivateKey = $root.Enterprise.TypedKey.toObject(message.eccPrivateKey, options, q + 1); + object.eccPrivateKey = $root.Enterprise.TypedKey.toObject(message.eccPrivateKey, options); return object; }; @@ -50683,7 +47205,7 @@ export const Authentication = $root.Authentication = (() => { function UserTeamKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -50756,13 +47278,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserTeamKey.encode = function encode(message, writer, q) { + UserTeamKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -50802,18 +47320,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserTeamKey.decode = function decode(reader, length, error, long) { + UserTeamKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserTeamKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -50840,7 +47352,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -50871,13 +47383,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserTeamKey.verify = function verify(message, long) { + UserTeamKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -50915,13 +47423,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.UserTeamKey} UserTeamKey */ - UserTeamKey.fromObject = function fromObject(object, long) { + UserTeamKey.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.UserTeamKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.UserTeamKey(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -50932,7 +47436,7 @@ export const Authentication = $root.Authentication = (() => { message.username = String(object.username); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -50989,13 +47493,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserTeamKey.toObject = function toObject(message, options, q) { + UserTeamKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -51008,9 +47508,9 @@ export const Authentication = $root.Authentication = (() => { object.username = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.encryptedTeamKeyRSA = ""; else { @@ -51032,9 +47532,7 @@ export const Authentication = $root.Authentication = (() => { if (message.username != null && message.hasOwnProperty("username")) object.username = message.username; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -51097,7 +47595,7 @@ export const Authentication = $root.Authentication = (() => { this.request = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -51130,13 +47628,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenericRequestResponse.encode = function encode(message, writer, q) { + GenericRequestResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.request != null && message.request.length) for (let i = 0; i < message.request.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.request[i]); @@ -51167,18 +47661,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenericRequestResponse.decode = function decode(reader, length, error, long) { + GenericRequestResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GenericRequestResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.request && message.request.length)) @@ -51187,7 +47675,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -51218,13 +47706,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenericRequestResponse.verify = function verify(message, long) { + GenericRequestResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.request != null && message.hasOwnProperty("request")) { if (!Array.isArray(message.request)) return "request: array expected"; @@ -51243,13 +47727,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.GenericRequestResponse} GenericRequestResponse */ - GenericRequestResponse.fromObject = function fromObject(object, long) { + GenericRequestResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.GenericRequestResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.GenericRequestResponse(); if (object.request) { if (!Array.isArray(object.request)) @@ -51273,13 +47753,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenericRequestResponse.toObject = function toObject(message, options, q) { + GenericRequestResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.request = []; @@ -51356,7 +47832,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyRegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -51389,13 +47865,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyRegistrationRequest.encode = function encode(message, writer, q) { + PasskeyRegistrationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.authenticatorAttachment != null && Object.hasOwnProperty.call(message, "authenticatorAttachment")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.authenticatorAttachment); return writer; @@ -51425,25 +47897,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyRegistrationRequest.decode = function decode(reader, length, error, long) { + PasskeyRegistrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyRegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.authenticatorAttachment = reader.int32(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -51474,13 +47940,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyRegistrationRequest.verify = function verify(message, long) { + PasskeyRegistrationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.authenticatorAttachment != null && message.hasOwnProperty("authenticatorAttachment")) switch (message.authenticatorAttachment) { default: @@ -51501,13 +47963,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasskeyRegistrationRequest} PasskeyRegistrationRequest */ - PasskeyRegistrationRequest.fromObject = function fromObject(object, long) { + PasskeyRegistrationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasskeyRegistrationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasskeyRegistrationRequest(); switch (object.authenticatorAttachment) { default: @@ -51541,13 +47999,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyRegistrationRequest.toObject = function toObject(message, options, q) { + PasskeyRegistrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.authenticatorAttachment = options.enums === String ? "CROSS_PLATFORM" : 0; @@ -51606,7 +48060,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyRegistrationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -51647,13 +48101,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyRegistrationResponse.encode = function encode(message, writer, q) { + PasskeyRegistrationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.challengeToken); if (message.pkCreationOptions != null && Object.hasOwnProperty.call(message, "pkCreationOptions")) @@ -51685,18 +48135,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyRegistrationResponse.decode = function decode(reader, length, error, long) { + PasskeyRegistrationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyRegistrationResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.challengeToken = reader.bytes(); @@ -51707,7 +48151,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -51738,13 +48182,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyRegistrationResponse.verify = function verify(message, long) { + PasskeyRegistrationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) if (!(message.challengeToken && typeof message.challengeToken.length === "number" || $util.isString(message.challengeToken))) return "challengeToken: buffer expected"; @@ -51762,13 +48202,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasskeyRegistrationResponse} PasskeyRegistrationResponse */ - PasskeyRegistrationResponse.fromObject = function fromObject(object, long) { + PasskeyRegistrationResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasskeyRegistrationResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasskeyRegistrationResponse(); if (object.challengeToken != null) if (typeof object.challengeToken === "string") @@ -51789,13 +48225,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyRegistrationResponse.toObject = function toObject(message, options, q) { + PasskeyRegistrationResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -51865,7 +48297,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyRegistrationFinalization(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -51896,7 +48328,12 @@ export const Authentication = $root.Authentication = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * PasskeyRegistrationFinalization _friendlyName. + * @member {"friendlyName"|undefined} _friendlyName + * @memberof Authentication.PasskeyRegistrationFinalization + * @instance + */ Object.defineProperty(PasskeyRegistrationFinalization.prototype, "_friendlyName", { get: $util.oneOfGetter($oneOfFields = ["friendlyName"]), set: $util.oneOfSetter($oneOfFields) @@ -51923,13 +48360,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyRegistrationFinalization.encode = function encode(message, writer, q) { + PasskeyRegistrationFinalization.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.challengeToken); if (message.authenticatorResponse != null && Object.hasOwnProperty.call(message, "authenticatorResponse")) @@ -51963,18 +48396,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyRegistrationFinalization.decode = function decode(reader, length, error, long) { + PasskeyRegistrationFinalization.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyRegistrationFinalization(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.challengeToken = reader.bytes(); @@ -51989,7 +48416,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -52020,13 +48447,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyRegistrationFinalization.verify = function verify(message, long) { + PasskeyRegistrationFinalization.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) if (!(message.challengeToken && typeof message.challengeToken.length === "number" || $util.isString(message.challengeToken))) @@ -52050,13 +48473,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasskeyRegistrationFinalization} PasskeyRegistrationFinalization */ - PasskeyRegistrationFinalization.fromObject = function fromObject(object, long) { + PasskeyRegistrationFinalization.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasskeyRegistrationFinalization) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasskeyRegistrationFinalization(); if (object.challengeToken != null) if (typeof object.challengeToken === "string") @@ -52079,13 +48498,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyRegistrationFinalization.toObject = function toObject(message, options, q) { + PasskeyRegistrationFinalization.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -52177,7 +48592,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyAuthenticationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -52232,13 +48647,23 @@ export const Authentication = $root.Authentication = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * PasskeyAuthenticationRequest _username. + * @member {"username"|undefined} _username + * @memberof Authentication.PasskeyAuthenticationRequest + * @instance + */ Object.defineProperty(PasskeyAuthenticationRequest.prototype, "_username", { get: $util.oneOfGetter($oneOfFields = ["username"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PasskeyAuthenticationRequest _encryptedLoginToken. + * @member {"encryptedLoginToken"|undefined} _encryptedLoginToken + * @memberof Authentication.PasskeyAuthenticationRequest + * @instance + */ Object.defineProperty(PasskeyAuthenticationRequest.prototype, "_encryptedLoginToken", { get: $util.oneOfGetter($oneOfFields = ["encryptedLoginToken"]), set: $util.oneOfSetter($oneOfFields) @@ -52265,13 +48690,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyAuthenticationRequest.encode = function encode(message, writer, q) { + PasskeyAuthenticationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.authenticatorAttachment != null && Object.hasOwnProperty.call(message, "authenticatorAttachment")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.authenticatorAttachment); if (message.passkeyPurpose != null && Object.hasOwnProperty.call(message, "passkeyPurpose")) @@ -52311,18 +48732,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyAuthenticationRequest.decode = function decode(reader, length, error, long) { + PasskeyAuthenticationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyAuthenticationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.authenticatorAttachment = reader.int32(); @@ -52349,7 +48764,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -52380,13 +48795,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyAuthenticationRequest.verify = function verify(message, long) { + PasskeyAuthenticationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.authenticatorAttachment != null && message.hasOwnProperty("authenticatorAttachment")) switch (message.authenticatorAttachment) { @@ -52432,13 +48843,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasskeyAuthenticationRequest} PasskeyAuthenticationRequest */ - PasskeyAuthenticationRequest.fromObject = function fromObject(object, long) { + PasskeyAuthenticationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasskeyAuthenticationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasskeyAuthenticationRequest(); switch (object.authenticatorAttachment) { default: @@ -52502,13 +48909,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyAuthenticationRequest.toObject = function toObject(message, options, q) { + PasskeyAuthenticationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.authenticatorAttachment = options.enums === String ? "CROSS_PLATFORM" : 0; @@ -52594,7 +48997,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyAuthenticationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -52625,7 +49028,12 @@ export const Authentication = $root.Authentication = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * PasskeyAuthenticationResponse _encryptedLoginToken. + * @member {"encryptedLoginToken"|undefined} _encryptedLoginToken + * @memberof Authentication.PasskeyAuthenticationResponse + * @instance + */ Object.defineProperty(PasskeyAuthenticationResponse.prototype, "_encryptedLoginToken", { get: $util.oneOfGetter($oneOfFields = ["encryptedLoginToken"]), set: $util.oneOfSetter($oneOfFields) @@ -52652,13 +49060,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyAuthenticationResponse.encode = function encode(message, writer, q) { + PasskeyAuthenticationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.pkRequestOptions != null && Object.hasOwnProperty.call(message, "pkRequestOptions")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.pkRequestOptions); if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) @@ -52692,18 +49096,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyAuthenticationResponse.decode = function decode(reader, length, error, long) { + PasskeyAuthenticationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyAuthenticationResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.pkRequestOptions = reader.string(); @@ -52718,7 +49116,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -52749,13 +49147,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyAuthenticationResponse.verify = function verify(message, long) { + PasskeyAuthenticationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.pkRequestOptions != null && message.hasOwnProperty("pkRequestOptions")) if (!$util.isString(message.pkRequestOptions)) @@ -52779,13 +49173,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasskeyAuthenticationResponse} PasskeyAuthenticationResponse */ - PasskeyAuthenticationResponse.fromObject = function fromObject(object, long) { + PasskeyAuthenticationResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasskeyAuthenticationResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasskeyAuthenticationResponse(); if (object.pkRequestOptions != null) message.pkRequestOptions = String(object.pkRequestOptions); @@ -52811,13 +49201,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyAuthenticationResponse.toObject = function toObject(message, options, q) { + PasskeyAuthenticationResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.pkRequestOptions = ""; @@ -52893,7 +49279,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyValidationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -52932,7 +49318,12 @@ export const Authentication = $root.Authentication = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * PasskeyValidationRequest _encryptedLoginToken. + * @member {"encryptedLoginToken"|undefined} _encryptedLoginToken + * @memberof Authentication.PasskeyValidationRequest + * @instance + */ Object.defineProperty(PasskeyValidationRequest.prototype, "_encryptedLoginToken", { get: $util.oneOfGetter($oneOfFields = ["encryptedLoginToken"]), set: $util.oneOfSetter($oneOfFields) @@ -52959,13 +49350,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyValidationRequest.encode = function encode(message, writer, q) { + PasskeyValidationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.challengeToken); if (message.assertionResponse != null && Object.hasOwnProperty.call(message, "assertionResponse")) @@ -53001,18 +49388,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyValidationRequest.decode = function decode(reader, length, error, long) { + PasskeyValidationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyValidationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.challengeToken = reader.bytes(); @@ -53031,7 +49412,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -53062,13 +49443,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyValidationRequest.verify = function verify(message, long) { + PasskeyValidationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) if (!(message.challengeToken && typeof message.challengeToken.length === "number" || $util.isString(message.challengeToken))) @@ -53100,13 +49477,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasskeyValidationRequest} PasskeyValidationRequest */ - PasskeyValidationRequest.fromObject = function fromObject(object, long) { + PasskeyValidationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasskeyValidationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasskeyValidationRequest(); if (object.challengeToken != null) if (typeof object.challengeToken === "string") @@ -53151,13 +49524,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyValidationRequest.toObject = function toObject(message, options, q) { + PasskeyValidationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -53240,7 +49609,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyValidationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -53281,13 +49650,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyValidationResponse.encode = function encode(message, writer, q) { + PasskeyValidationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.isValid != null && Object.hasOwnProperty.call(message, "isValid")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isValid); if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) @@ -53319,18 +49684,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyValidationResponse.decode = function decode(reader, length, error, long) { + PasskeyValidationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyValidationResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.isValid = reader.bool(); @@ -53341,7 +49700,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -53372,13 +49731,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyValidationResponse.verify = function verify(message, long) { + PasskeyValidationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.isValid != null && message.hasOwnProperty("isValid")) if (typeof message.isValid !== "boolean") return "isValid: boolean expected"; @@ -53396,13 +49751,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasskeyValidationResponse} PasskeyValidationResponse */ - PasskeyValidationResponse.fromObject = function fromObject(object, long) { + PasskeyValidationResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasskeyValidationResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasskeyValidationResponse(); if (object.isValid != null) message.isValid = Boolean(object.isValid); @@ -53423,13 +49774,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyValidationResponse.toObject = function toObject(message, options, q) { + PasskeyValidationResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.isValid = false; @@ -53499,7 +49846,7 @@ export const Authentication = $root.Authentication = (() => { function UpdatePasskeyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -53530,7 +49877,12 @@ export const Authentication = $root.Authentication = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * UpdatePasskeyRequest _friendlyName. + * @member {"friendlyName"|undefined} _friendlyName + * @memberof Authentication.UpdatePasskeyRequest + * @instance + */ Object.defineProperty(UpdatePasskeyRequest.prototype, "_friendlyName", { get: $util.oneOfGetter($oneOfFields = ["friendlyName"]), set: $util.oneOfSetter($oneOfFields) @@ -53557,13 +49909,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePasskeyRequest.encode = function encode(message, writer, q) { + UpdatePasskeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.credentialId != null && Object.hasOwnProperty.call(message, "credentialId")) @@ -53597,18 +49945,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePasskeyRequest.decode = function decode(reader, length, error, long) { + UpdatePasskeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UpdatePasskeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -53623,7 +49965,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -53654,13 +49996,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdatePasskeyRequest.verify = function verify(message, long) { + UpdatePasskeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) @@ -53684,13 +50022,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.UpdatePasskeyRequest} UpdatePasskeyRequest */ - UpdatePasskeyRequest.fromObject = function fromObject(object, long) { + UpdatePasskeyRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.UpdatePasskeyRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.UpdatePasskeyRequest(); if (object.userId != null) message.userId = object.userId | 0; @@ -53713,13 +50047,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdatePasskeyRequest.toObject = function toObject(message, options, q) { + UpdatePasskeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -53792,7 +50122,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyListRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -53825,13 +50155,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyListRequest.encode = function encode(message, writer, q) { + PasskeyListRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.includeDisabled != null && Object.hasOwnProperty.call(message, "includeDisabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.includeDisabled); return writer; @@ -53861,25 +50187,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyListRequest.decode = function decode(reader, length, error, long) { + PasskeyListRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyListRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.includeDisabled = reader.bool(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -53910,13 +50230,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyListRequest.verify = function verify(message, long) { + PasskeyListRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.includeDisabled != null && message.hasOwnProperty("includeDisabled")) if (typeof message.includeDisabled !== "boolean") return "includeDisabled: boolean expected"; @@ -53931,13 +50247,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasskeyListRequest} PasskeyListRequest */ - PasskeyListRequest.fromObject = function fromObject(object, long) { + PasskeyListRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasskeyListRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasskeyListRequest(); if (object.includeDisabled != null) message.includeDisabled = Boolean(object.includeDisabled); @@ -53953,13 +50265,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyListRequest.toObject = function toObject(message, options, q) { + PasskeyListRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.includeDisabled = false; @@ -54023,7 +50331,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -54104,13 +50412,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyInfo.encode = function encode(message, writer, q) { + PasskeyInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.credentialId != null && Object.hasOwnProperty.call(message, "credentialId")) @@ -54152,18 +50456,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyInfo.decode = function decode(reader, length, error, long) { + PasskeyInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -54194,7 +50492,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -54225,13 +50523,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyInfo.verify = function verify(message, long) { + PasskeyInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -54264,13 +50558,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasskeyInfo} PasskeyInfo */ - PasskeyInfo.fromObject = function fromObject(object, long) { + PasskeyInfo.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasskeyInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasskeyInfo(); if (object.userId != null) message.userId = object.userId | 0; @@ -54285,7 +50575,7 @@ export const Authentication = $root.Authentication = (() => { message.AAGUID = String(object.AAGUID); if (object.createdAtMillis != null) if ($util.Long) - message.createdAtMillis = $util.Long.fromValue(object.createdAtMillis, false); + (message.createdAtMillis = $util.Long.fromValue(object.createdAtMillis)).unsigned = false; else if (typeof object.createdAtMillis === "string") message.createdAtMillis = parseInt(object.createdAtMillis, 10); else if (typeof object.createdAtMillis === "number") @@ -54294,7 +50584,7 @@ export const Authentication = $root.Authentication = (() => { message.createdAtMillis = new $util.LongBits(object.createdAtMillis.low >>> 0, object.createdAtMillis.high >>> 0).toNumber(); if (object.lastUsedMillis != null) if ($util.Long) - message.lastUsedMillis = $util.Long.fromValue(object.lastUsedMillis, false); + (message.lastUsedMillis = $util.Long.fromValue(object.lastUsedMillis)).unsigned = false; else if (typeof object.lastUsedMillis === "string") message.lastUsedMillis = parseInt(object.lastUsedMillis, 10); else if (typeof object.lastUsedMillis === "number") @@ -54303,7 +50593,7 @@ export const Authentication = $root.Authentication = (() => { message.lastUsedMillis = new $util.LongBits(object.lastUsedMillis.low >>> 0, object.lastUsedMillis.high >>> 0).toNumber(); if (object.disabledAtMillis != null) if ($util.Long) - message.disabledAtMillis = $util.Long.fromValue(object.disabledAtMillis, false); + (message.disabledAtMillis = $util.Long.fromValue(object.disabledAtMillis)).unsigned = false; else if (typeof object.disabledAtMillis === "string") message.disabledAtMillis = parseInt(object.disabledAtMillis, 10); else if (typeof object.disabledAtMillis === "number") @@ -54322,13 +50612,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyInfo.toObject = function toObject(message, options, q) { + PasskeyInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -54343,19 +50629,19 @@ export const Authentication = $root.Authentication = (() => { object.AAGUID = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdAtMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.createdAtMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.createdAtMillis = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.createdAtMillis = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastUsedMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastUsedMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastUsedMillis = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastUsedMillis = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.disabledAtMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.disabledAtMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.disabledAtMillis = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.disabledAtMillis = options.longs === String ? "0" : 0; } if (message.userId != null && message.hasOwnProperty("userId")) object.userId = message.userId; @@ -54366,23 +50652,17 @@ export const Authentication = $root.Authentication = (() => { if (message.AAGUID != null && message.hasOwnProperty("AAGUID")) object.AAGUID = message.AAGUID; if (message.createdAtMillis != null && message.hasOwnProperty("createdAtMillis")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.createdAtMillis = typeof message.createdAtMillis === "number" ? BigInt(message.createdAtMillis) : $util.Long.fromBits(message.createdAtMillis.low >>> 0, message.createdAtMillis.high >>> 0, false).toBigInt(); - else if (typeof message.createdAtMillis === "number") + if (typeof message.createdAtMillis === "number") object.createdAtMillis = options.longs === String ? String(message.createdAtMillis) : message.createdAtMillis; else object.createdAtMillis = options.longs === String ? $util.Long.prototype.toString.call(message.createdAtMillis) : options.longs === Number ? new $util.LongBits(message.createdAtMillis.low >>> 0, message.createdAtMillis.high >>> 0).toNumber() : message.createdAtMillis; if (message.lastUsedMillis != null && message.hasOwnProperty("lastUsedMillis")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastUsedMillis = typeof message.lastUsedMillis === "number" ? BigInt(message.lastUsedMillis) : $util.Long.fromBits(message.lastUsedMillis.low >>> 0, message.lastUsedMillis.high >>> 0, false).toBigInt(); - else if (typeof message.lastUsedMillis === "number") + if (typeof message.lastUsedMillis === "number") object.lastUsedMillis = options.longs === String ? String(message.lastUsedMillis) : message.lastUsedMillis; else object.lastUsedMillis = options.longs === String ? $util.Long.prototype.toString.call(message.lastUsedMillis) : options.longs === Number ? new $util.LongBits(message.lastUsedMillis.low >>> 0, message.lastUsedMillis.high >>> 0).toNumber() : message.lastUsedMillis; if (message.disabledAtMillis != null && message.hasOwnProperty("disabledAtMillis")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.disabledAtMillis = typeof message.disabledAtMillis === "number" ? BigInt(message.disabledAtMillis) : $util.Long.fromBits(message.disabledAtMillis.low >>> 0, message.disabledAtMillis.high >>> 0, false).toBigInt(); - else if (typeof message.disabledAtMillis === "number") + if (typeof message.disabledAtMillis === "number") object.disabledAtMillis = options.longs === String ? String(message.disabledAtMillis) : message.disabledAtMillis; else object.disabledAtMillis = options.longs === String ? $util.Long.prototype.toString.call(message.disabledAtMillis) : options.longs === Number ? new $util.LongBits(message.disabledAtMillis.low >>> 0, message.disabledAtMillis.high >>> 0).toNumber() : message.disabledAtMillis; @@ -54439,7 +50719,7 @@ export const Authentication = $root.Authentication = (() => { this.passkeyInfo = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -54472,16 +50752,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyListResponse.encode = function encode(message, writer, q) { + PasskeyListResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.passkeyInfo != null && message.passkeyInfo.length) for (let i = 0; i < message.passkeyInfo.length; ++i) - $root.Authentication.PasskeyInfo.encode(message.passkeyInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.PasskeyInfo.encode(message.passkeyInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -54509,27 +50785,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyListResponse.decode = function decode(reader, length, error, long) { + PasskeyListResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyListResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.passkeyInfo && message.passkeyInfo.length)) message.passkeyInfo = []; - message.passkeyInfo.push($root.Authentication.PasskeyInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.passkeyInfo.push($root.Authentication.PasskeyInfo.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -54560,18 +50830,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyListResponse.verify = function verify(message, long) { + PasskeyListResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.passkeyInfo != null && message.hasOwnProperty("passkeyInfo")) { if (!Array.isArray(message.passkeyInfo)) return "passkeyInfo: array expected"; for (let i = 0; i < message.passkeyInfo.length; ++i) { - let error = $root.Authentication.PasskeyInfo.verify(message.passkeyInfo[i], long + 1); + let error = $root.Authentication.PasskeyInfo.verify(message.passkeyInfo[i]); if (error) return "passkeyInfo." + error; } @@ -54587,13 +50853,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.PasskeyListResponse} PasskeyListResponse */ - PasskeyListResponse.fromObject = function fromObject(object, long) { + PasskeyListResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.PasskeyListResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.PasskeyListResponse(); if (object.passkeyInfo) { if (!Array.isArray(object.passkeyInfo)) @@ -54602,7 +50864,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.passkeyInfo.length; ++i) { if (typeof object.passkeyInfo[i] !== "object") throw TypeError(".Authentication.PasskeyListResponse.passkeyInfo: object expected"); - message.passkeyInfo[i] = $root.Authentication.PasskeyInfo.fromObject(object.passkeyInfo[i], long + 1); + message.passkeyInfo[i] = $root.Authentication.PasskeyInfo.fromObject(object.passkeyInfo[i]); } } return message; @@ -54617,20 +50879,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyListResponse.toObject = function toObject(message, options, q) { + PasskeyListResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.passkeyInfo = []; if (message.passkeyInfo && message.passkeyInfo.length) { object.passkeyInfo = []; for (let j = 0; j < message.passkeyInfo.length; ++j) - object.passkeyInfo[j] = $root.Authentication.PasskeyInfo.toObject(message.passkeyInfo[j], options, q + 1); + object.passkeyInfo[j] = $root.Authentication.PasskeyInfo.toObject(message.passkeyInfo[j], options); } return object; }; @@ -54703,7 +50961,7 @@ export const Authentication = $root.Authentication = (() => { function TranslationInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -54744,13 +51002,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TranslationInfo.encode = function encode(message, writer, q) { + TranslationInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.translationKey != null && Object.hasOwnProperty.call(message, "translationKey")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.translationKey); if (message.translationValue != null && Object.hasOwnProperty.call(message, "translationValue")) @@ -54782,18 +51036,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TranslationInfo.decode = function decode(reader, length, error, long) { + TranslationInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TranslationInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.translationKey = reader.string(); @@ -54804,7 +51052,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -54835,13 +51083,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TranslationInfo.verify = function verify(message, long) { + TranslationInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.translationKey != null && message.hasOwnProperty("translationKey")) if (!$util.isString(message.translationKey)) return "translationKey: string expected"; @@ -54859,13 +51103,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TranslationInfo} TranslationInfo */ - TranslationInfo.fromObject = function fromObject(object, long) { + TranslationInfo.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TranslationInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TranslationInfo(); if (object.translationKey != null) message.translationKey = String(object.translationKey); @@ -54883,13 +51123,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TranslationInfo.toObject = function toObject(message, options, q) { + TranslationInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.translationKey = ""; @@ -54952,7 +51188,7 @@ export const Authentication = $root.Authentication = (() => { this.translationKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -54985,13 +51221,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TranslationRequest.encode = function encode(message, writer, q) { + TranslationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.translationKey != null && message.translationKey.length) for (let i = 0; i < message.translationKey.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.translationKey[i]); @@ -55022,18 +51254,12 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TranslationRequest.decode = function decode(reader, length, error, long) { + TranslationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TranslationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.translationKey && message.translationKey.length)) @@ -55042,7 +51268,7 @@ export const Authentication = $root.Authentication = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -55073,13 +51299,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TranslationRequest.verify = function verify(message, long) { + TranslationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.translationKey != null && message.hasOwnProperty("translationKey")) { if (!Array.isArray(message.translationKey)) return "translationKey: array expected"; @@ -55098,13 +51320,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TranslationRequest} TranslationRequest */ - TranslationRequest.fromObject = function fromObject(object, long) { + TranslationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TranslationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TranslationRequest(); if (object.translationKey) { if (!Array.isArray(object.translationKey)) @@ -55125,13 +51343,9 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TranslationRequest.toObject = function toObject(message, options, q) { + TranslationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.translationKey = []; @@ -55193,7 +51407,7 @@ export const Authentication = $root.Authentication = (() => { this.translationInfo = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -55226,16 +51440,12 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TranslationResponse.encode = function encode(message, writer, q) { + TranslationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.translationInfo != null && message.translationInfo.length) for (let i = 0; i < message.translationInfo.length; ++i) - $root.Authentication.TranslationInfo.encode(message.translationInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Authentication.TranslationInfo.encode(message.translationInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -55263,27 +51473,21 @@ export const Authentication = $root.Authentication = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TranslationResponse.decode = function decode(reader, length, error, long) { + TranslationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TranslationResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.translationInfo && message.translationInfo.length)) message.translationInfo = []; - message.translationInfo.push($root.Authentication.TranslationInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.translationInfo.push($root.Authentication.TranslationInfo.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -55314,18 +51518,14 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TranslationResponse.verify = function verify(message, long) { + TranslationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.translationInfo != null && message.hasOwnProperty("translationInfo")) { if (!Array.isArray(message.translationInfo)) return "translationInfo: array expected"; for (let i = 0; i < message.translationInfo.length; ++i) { - let error = $root.Authentication.TranslationInfo.verify(message.translationInfo[i], long + 1); + let error = $root.Authentication.TranslationInfo.verify(message.translationInfo[i]); if (error) return "translationInfo." + error; } @@ -55341,13 +51541,9 @@ export const Authentication = $root.Authentication = (() => { * @param {Object.} object Plain object * @returns {Authentication.TranslationResponse} TranslationResponse */ - TranslationResponse.fromObject = function fromObject(object, long) { + TranslationResponse.fromObject = function fromObject(object) { if (object instanceof $root.Authentication.TranslationResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Authentication.TranslationResponse(); if (object.translationInfo) { if (!Array.isArray(object.translationInfo)) @@ -55356,7 +51552,7 @@ export const Authentication = $root.Authentication = (() => { for (let i = 0; i < object.translationInfo.length; ++i) { if (typeof object.translationInfo[i] !== "object") throw TypeError(".Authentication.TranslationResponse.translationInfo: object expected"); - message.translationInfo[i] = $root.Authentication.TranslationInfo.fromObject(object.translationInfo[i], long + 1); + message.translationInfo[i] = $root.Authentication.TranslationInfo.fromObject(object.translationInfo[i]); } } return message; @@ -55371,20 +51567,16 @@ export const Authentication = $root.Authentication = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TranslationResponse.toObject = function toObject(message, options, q) { + TranslationResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.translationInfo = []; if (message.translationInfo && message.translationInfo.length) { object.translationInfo = []; for (let j = 0; j < message.translationInfo.length; ++j) - object.translationInfo[j] = $root.Authentication.TranslationInfo.toObject(message.translationInfo[j], options, q + 1); + object.translationInfo[j] = $root.Authentication.TranslationInfo.toObject(message.translationInfo[j], options); } return object; }; @@ -55466,7 +51658,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseKeyPairRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -55515,13 +51707,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseKeyPairRequest.encode = function encode(message, writer, q) { + EnterpriseKeyPairRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterprisePublicKey != null && Object.hasOwnProperty.call(message, "enterprisePublicKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.enterprisePublicKey); if (message.encryptedEnterprisePrivateKey != null && Object.hasOwnProperty.call(message, "encryptedEnterprisePrivateKey")) @@ -55555,18 +51743,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseKeyPairRequest.decode = function decode(reader, length, error, long) { + EnterpriseKeyPairRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseKeyPairRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterprisePublicKey = reader.bytes(); @@ -55581,7 +51763,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -55612,13 +51794,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseKeyPairRequest.verify = function verify(message, long) { + EnterpriseKeyPairRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterprisePublicKey != null && message.hasOwnProperty("enterprisePublicKey")) if (!(message.enterprisePublicKey && typeof message.enterprisePublicKey.length === "number" || $util.isString(message.enterprisePublicKey))) return "enterprisePublicKey: buffer expected"; @@ -55644,13 +51822,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseKeyPairRequest} EnterpriseKeyPairRequest */ - EnterpriseKeyPairRequest.fromObject = function fromObject(object, long) { + EnterpriseKeyPairRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseKeyPairRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseKeyPairRequest(); if (object.enterprisePublicKey != null) if (typeof object.enterprisePublicKey === "string") @@ -55690,13 +51864,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseKeyPairRequest.toObject = function toObject(message, options, q) { + EnterpriseKeyPairRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -55773,7 +51943,7 @@ export const Enterprise = $root.Enterprise = (() => { function GetTeamMemberRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -55806,13 +51976,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTeamMemberRequest.encode = function encode(message, writer, q) { + GetTeamMemberRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); return writer; @@ -55842,25 +52008,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTeamMemberRequest.decode = function decode(reader, length, error, long) { + GetTeamMemberRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetTeamMemberRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -55891,13 +52051,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTeamMemberRequest.verify = function verify(message, long) { + GetTeamMemberRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -55912,13 +52068,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.GetTeamMemberRequest} GetTeamMemberRequest */ - GetTeamMemberRequest.fromObject = function fromObject(object, long) { + GetTeamMemberRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.GetTeamMemberRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.GetTeamMemberRequest(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -55937,13 +52089,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTeamMemberRequest.toObject = function toObject(message, options, q) { + GetTeamMemberRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -56011,7 +52159,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -56076,13 +52224,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUser.encode = function encode(message, writer, q) { + EnterpriseUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.email != null && Object.hasOwnProperty.call(message, "email")) @@ -56120,18 +52264,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUser.decode = function decode(reader, length, error, long) { + EnterpriseUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -56154,7 +52292,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -56185,13 +52323,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUser.verify = function verify(message, long) { + EnterpriseUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -56218,17 +52352,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUser} EnterpriseUser */ - EnterpriseUser.fromObject = function fromObject(object, long) { + EnterpriseUser.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUser(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -56255,29 +52385,23 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUser.toObject = function toObject(message, options, q) { + EnterpriseUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.email = ""; object.enterpriseUsername = ""; object.isShareAdmin = false; object.username = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -56342,7 +52466,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUser = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -56375,16 +52499,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTeamMemberResponse.encode = function encode(message, writer, q) { + GetTeamMemberResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUser != null && message.enterpriseUser.length) for (let i = 0; i < message.enterpriseUser.length; ++i) - $root.Enterprise.EnterpriseUser.encode(message.enterpriseUser[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseUser.encode(message.enterpriseUser[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -56412,27 +52532,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTeamMemberResponse.decode = function decode(reader, length, error, long) { + GetTeamMemberResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetTeamMemberResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.enterpriseUser && message.enterpriseUser.length)) message.enterpriseUser = []; - message.enterpriseUser.push($root.Enterprise.EnterpriseUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.enterpriseUser.push($root.Enterprise.EnterpriseUser.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -56463,18 +52577,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTeamMemberResponse.verify = function verify(message, long) { + GetTeamMemberResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUser != null && message.hasOwnProperty("enterpriseUser")) { if (!Array.isArray(message.enterpriseUser)) return "enterpriseUser: array expected"; for (let i = 0; i < message.enterpriseUser.length; ++i) { - let error = $root.Enterprise.EnterpriseUser.verify(message.enterpriseUser[i], long + 1); + let error = $root.Enterprise.EnterpriseUser.verify(message.enterpriseUser[i]); if (error) return "enterpriseUser." + error; } @@ -56490,13 +52600,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.GetTeamMemberResponse} GetTeamMemberResponse */ - GetTeamMemberResponse.fromObject = function fromObject(object, long) { + GetTeamMemberResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.GetTeamMemberResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.GetTeamMemberResponse(); if (object.enterpriseUser) { if (!Array.isArray(object.enterpriseUser)) @@ -56505,7 +52611,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.enterpriseUser.length; ++i) { if (typeof object.enterpriseUser[i] !== "object") throw TypeError(".Enterprise.GetTeamMemberResponse.enterpriseUser: object expected"); - message.enterpriseUser[i] = $root.Enterprise.EnterpriseUser.fromObject(object.enterpriseUser[i], long + 1); + message.enterpriseUser[i] = $root.Enterprise.EnterpriseUser.fromObject(object.enterpriseUser[i]); } } return message; @@ -56520,20 +52626,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTeamMemberResponse.toObject = function toObject(message, options, q) { + GetTeamMemberResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUser = []; if (message.enterpriseUser && message.enterpriseUser.length) { object.enterpriseUser = []; for (let j = 0; j < message.enterpriseUser.length; ++j) - object.enterpriseUser[j] = $root.Enterprise.EnterpriseUser.toObject(message.enterpriseUser[j], options, q + 1); + object.enterpriseUser[j] = $root.Enterprise.EnterpriseUser.toObject(message.enterpriseUser[j], options); } return object; }; @@ -56588,7 +52690,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -56621,13 +52723,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserIds.encode = function encode(message, writer, q) { + EnterpriseUserIds.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && message.enterpriseUserId.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.enterpriseUserId.length; ++i) @@ -56661,18 +52759,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserIds.decode = function decode(reader, length, error, long) { + EnterpriseUserIds.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserIds(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.enterpriseUserId && message.enterpriseUserId.length)) @@ -56686,7 +52778,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -56717,13 +52809,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserIds.verify = function verify(message, long) { + EnterpriseUserIds.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) { if (!Array.isArray(message.enterpriseUserId)) return "enterpriseUserId: array expected"; @@ -56742,13 +52830,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUserIds} EnterpriseUserIds */ - EnterpriseUserIds.fromObject = function fromObject(object, long) { + EnterpriseUserIds.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUserIds) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUserIds(); if (object.enterpriseUserId) { if (!Array.isArray(object.enterpriseUserId)) @@ -56756,7 +52840,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserId = []; for (let i = 0; i < object.enterpriseUserId.length; ++i) if ($util.Long) - message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i], false); + (message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i])).unsigned = false; else if (typeof object.enterpriseUserId[i] === "string") message.enterpriseUserId[i] = parseInt(object.enterpriseUserId[i], 10); else if (typeof object.enterpriseUserId[i] === "number") @@ -56776,22 +52860,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserIds.toObject = function toObject(message, options, q) { + EnterpriseUserIds.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUserId = []; if (message.enterpriseUserId && message.enterpriseUserId.length) { object.enterpriseUserId = []; for (let j = 0; j < message.enterpriseUserId.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId[j] = typeof message.enterpriseUserId[j] === "number" ? BigInt(message.enterpriseUserId[j]) : $util.Long.fromBits(message.enterpriseUserId[j].low >>> 0, message.enterpriseUserId[j].high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId[j] === "number") + if (typeof message.enterpriseUserId[j] === "number") object.enterpriseUserId[j] = options.longs === String ? String(message.enterpriseUserId[j]) : message.enterpriseUserId[j]; else object.enterpriseUserId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId[j].low >>> 0, message.enterpriseUserId[j].high >>> 0).toNumber() : message.enterpriseUserId[j]; @@ -56849,7 +52927,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterprisePersonalAccount(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -56890,13 +52968,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterprisePersonalAccount.encode = function encode(message, writer, q) { + EnterprisePersonalAccount.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); if (message.OBSOLETE_FIELD != null && Object.hasOwnProperty.call(message, "OBSOLETE_FIELD")) @@ -56928,18 +53002,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterprisePersonalAccount.decode = function decode(reader, length, error, long) { + EnterprisePersonalAccount.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterprisePersonalAccount(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.email = reader.string(); @@ -56950,7 +53018,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -56981,13 +53049,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterprisePersonalAccount.verify = function verify(message, long) { + EnterprisePersonalAccount.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.email != null && message.hasOwnProperty("email")) if (!$util.isString(message.email)) return "email: string expected"; @@ -57005,13 +53069,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterprisePersonalAccount} EnterprisePersonalAccount */ - EnterprisePersonalAccount.fromObject = function fromObject(object, long) { + EnterprisePersonalAccount.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterprisePersonalAccount) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterprisePersonalAccount(); if (object.email != null) message.email = String(object.email); @@ -57032,13 +53092,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterprisePersonalAccount.toObject = function toObject(message, options, q) { + EnterprisePersonalAccount.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.email = ""; @@ -57108,7 +53164,7 @@ export const Enterprise = $root.Enterprise = (() => { function EncryptedTeamKeyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -57157,13 +53213,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EncryptedTeamKeyRequest.encode = function encode(message, writer, q) { + EncryptedTeamKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.encryptedTeamKey != null && Object.hasOwnProperty.call(message, "encryptedTeamKey")) @@ -57197,18 +53249,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EncryptedTeamKeyRequest.decode = function decode(reader, length, error, long) { + EncryptedTeamKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EncryptedTeamKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -57223,7 +53269,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -57254,13 +53300,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EncryptedTeamKeyRequest.verify = function verify(message, long) { + EncryptedTeamKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -57281,13 +53323,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EncryptedTeamKeyRequest} EncryptedTeamKeyRequest */ - EncryptedTeamKeyRequest.fromObject = function fromObject(object, long) { + EncryptedTeamKeyRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EncryptedTeamKeyRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EncryptedTeamKeyRequest(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -57313,13 +53351,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EncryptedTeamKeyRequest.toObject = function toObject(message, options, q) { + EncryptedTeamKeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -57397,7 +53431,7 @@ export const Enterprise = $root.Enterprise = (() => { function ReEncryptedData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -57438,13 +53472,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReEncryptedData.encode = function encode(message, writer, q) { + ReEncryptedData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -57476,18 +53506,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReEncryptedData.decode = function decode(reader, length, error, long) { + ReEncryptedData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ReEncryptedData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int64(); @@ -57498,7 +53522,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -57529,13 +53553,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReEncryptedData.verify = function verify(message, long) { + ReEncryptedData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) return "id: integer|Long expected"; @@ -57553,17 +53573,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ReEncryptedData} ReEncryptedData */ - ReEncryptedData.fromObject = function fromObject(object, long) { + ReEncryptedData.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ReEncryptedData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ReEncryptedData(); if (object.id != null) if ($util.Long) - message.id = $util.Long.fromValue(object.id, false); + (message.id = $util.Long.fromValue(object.id)).unsigned = false; else if (typeof object.id === "string") message.id = parseInt(object.id, 10); else if (typeof object.id === "number") @@ -57584,26 +53600,20 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReEncryptedData.toObject = function toObject(message, options, q) { + ReEncryptedData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.id = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.id = options.longs === String ? "0" : 0; object.data = ""; } if (message.id != null && message.hasOwnProperty("id")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.id = typeof message.id === "number" ? BigInt(message.id) : $util.Long.fromBits(message.id.low >>> 0, message.id.high >>> 0, false).toBigInt(); - else if (typeof message.id === "number") + if (typeof message.id === "number") object.id = options.longs === String ? String(message.id) : message.id; else object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; @@ -57662,7 +53672,7 @@ export const Enterprise = $root.Enterprise = (() => { function ReEncryptedRoleKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -57703,13 +53713,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReEncryptedRoleKey.encode = function encode(message, writer, q) { + ReEncryptedRoleKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.encryptedRoleKey != null && Object.hasOwnProperty.call(message, "encryptedRoleKey")) @@ -57741,18 +53747,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReEncryptedRoleKey.decode = function decode(reader, length, error, long) { + ReEncryptedRoleKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ReEncryptedRoleKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -57763,7 +53763,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -57794,13 +53794,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReEncryptedRoleKey.verify = function verify(message, long) { + ReEncryptedRoleKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -57818,17 +53814,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ReEncryptedRoleKey} ReEncryptedRoleKey */ - ReEncryptedRoleKey.fromObject = function fromObject(object, long) { + ReEncryptedRoleKey.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ReEncryptedRoleKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ReEncryptedRoleKey(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -57852,20 +53844,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReEncryptedRoleKey.toObject = function toObject(message, options, q) { + ReEncryptedRoleKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if (options.bytes === String) object.encryptedRoleKey = ""; else { @@ -57875,9 +53863,7 @@ export const Enterprise = $root.Enterprise = (() => { } } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -57936,7 +53922,7 @@ export const Enterprise = $root.Enterprise = (() => { function ReEncryptedUserDataKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -57977,13 +53963,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReEncryptedUserDataKey.encode = function encode(message, writer, q) { + ReEncryptedUserDataKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) @@ -58015,18 +53997,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReEncryptedUserDataKey.decode = function decode(reader, length, error, long) { + ReEncryptedUserDataKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ReEncryptedUserDataKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -58037,7 +54013,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -58068,13 +54044,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReEncryptedUserDataKey.verify = function verify(message, long) { + ReEncryptedUserDataKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -58092,17 +54064,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ReEncryptedUserDataKey} ReEncryptedUserDataKey */ - ReEncryptedUserDataKey.fromObject = function fromObject(object, long) { + ReEncryptedUserDataKey.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ReEncryptedUserDataKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ReEncryptedUserDataKey(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -58126,20 +54094,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReEncryptedUserDataKey.toObject = function toObject(message, options, q) { + ReEncryptedUserDataKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.userEncryptedDataKey = ""; else { @@ -58149,9 +54113,7 @@ export const Enterprise = $root.Enterprise = (() => { } } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -58221,7 +54183,7 @@ export const Enterprise = $root.Enterprise = (() => { this.usersDataKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -58302,33 +54264,29 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeToManagedCompanyRequest.encode = function encode(message, writer, q) { + NodeToManagedCompanyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.companyId != null && Object.hasOwnProperty.call(message, "companyId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.companyId); if (message.nodes != null && message.nodes.length) for (let i = 0; i < message.nodes.length; ++i) - $root.Enterprise.ReEncryptedData.encode(message.nodes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.ReEncryptedData.encode(message.nodes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.roles != null && message.roles.length) for (let i = 0; i < message.roles.length; ++i) - $root.Enterprise.ReEncryptedData.encode(message.roles[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Enterprise.ReEncryptedData.encode(message.roles[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.ReEncryptedData.encode(message.users[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Enterprise.ReEncryptedData.encode(message.users[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.roleKeys != null && message.roleKeys.length) for (let i = 0; i < message.roleKeys.length; ++i) - $root.Enterprise.ReEncryptedRoleKey.encode(message.roleKeys[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Enterprise.ReEncryptedRoleKey.encode(message.roleKeys[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.teamKeys != null && message.teamKeys.length) for (let i = 0; i < message.teamKeys.length; ++i) - $root.Enterprise.EncryptedTeamKeyRequest.encode(message.teamKeys[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Enterprise.EncryptedTeamKeyRequest.encode(message.teamKeys[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.usersDataKeys != null && message.usersDataKeys.length) for (let i = 0; i < message.usersDataKeys.length; ++i) - $root.Enterprise.ReEncryptedUserDataKey.encode(message.usersDataKeys[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Enterprise.ReEncryptedUserDataKey.encode(message.usersDataKeys[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -58356,18 +54314,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeToManagedCompanyRequest.decode = function decode(reader, length, error, long) { + NodeToManagedCompanyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.NodeToManagedCompanyRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.companyId = reader.int32(); @@ -58376,41 +54328,41 @@ export const Enterprise = $root.Enterprise = (() => { case 2: { if (!(message.nodes && message.nodes.length)) message.nodes = []; - message.nodes.push($root.Enterprise.ReEncryptedData.decode(reader, reader.uint32(), undefined, long + 1)); + message.nodes.push($root.Enterprise.ReEncryptedData.decode(reader, reader.uint32())); break; } case 3: { if (!(message.roles && message.roles.length)) message.roles = []; - message.roles.push($root.Enterprise.ReEncryptedData.decode(reader, reader.uint32(), undefined, long + 1)); + message.roles.push($root.Enterprise.ReEncryptedData.decode(reader, reader.uint32())); break; } case 4: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Enterprise.ReEncryptedData.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Enterprise.ReEncryptedData.decode(reader, reader.uint32())); break; } case 5: { if (!(message.roleKeys && message.roleKeys.length)) message.roleKeys = []; - message.roleKeys.push($root.Enterprise.ReEncryptedRoleKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.roleKeys.push($root.Enterprise.ReEncryptedRoleKey.decode(reader, reader.uint32())); break; } case 6: { if (!(message.teamKeys && message.teamKeys.length)) message.teamKeys = []; - message.teamKeys.push($root.Enterprise.EncryptedTeamKeyRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.teamKeys.push($root.Enterprise.EncryptedTeamKeyRequest.decode(reader, reader.uint32())); break; } case 7: { if (!(message.usersDataKeys && message.usersDataKeys.length)) message.usersDataKeys = []; - message.usersDataKeys.push($root.Enterprise.ReEncryptedUserDataKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.usersDataKeys.push($root.Enterprise.ReEncryptedUserDataKey.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -58441,13 +54393,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeToManagedCompanyRequest.verify = function verify(message, long) { + NodeToManagedCompanyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.companyId != null && message.hasOwnProperty("companyId")) if (!$util.isInteger(message.companyId)) return "companyId: integer expected"; @@ -58455,7 +54403,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.nodes)) return "nodes: array expected"; for (let i = 0; i < message.nodes.length; ++i) { - let error = $root.Enterprise.ReEncryptedData.verify(message.nodes[i], long + 1); + let error = $root.Enterprise.ReEncryptedData.verify(message.nodes[i]); if (error) return "nodes." + error; } @@ -58464,7 +54412,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.roles)) return "roles: array expected"; for (let i = 0; i < message.roles.length; ++i) { - let error = $root.Enterprise.ReEncryptedData.verify(message.roles[i], long + 1); + let error = $root.Enterprise.ReEncryptedData.verify(message.roles[i]); if (error) return "roles." + error; } @@ -58473,7 +54421,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Enterprise.ReEncryptedData.verify(message.users[i], long + 1); + let error = $root.Enterprise.ReEncryptedData.verify(message.users[i]); if (error) return "users." + error; } @@ -58482,7 +54430,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.roleKeys)) return "roleKeys: array expected"; for (let i = 0; i < message.roleKeys.length; ++i) { - let error = $root.Enterprise.ReEncryptedRoleKey.verify(message.roleKeys[i], long + 1); + let error = $root.Enterprise.ReEncryptedRoleKey.verify(message.roleKeys[i]); if (error) return "roleKeys." + error; } @@ -58491,7 +54439,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.teamKeys)) return "teamKeys: array expected"; for (let i = 0; i < message.teamKeys.length; ++i) { - let error = $root.Enterprise.EncryptedTeamKeyRequest.verify(message.teamKeys[i], long + 1); + let error = $root.Enterprise.EncryptedTeamKeyRequest.verify(message.teamKeys[i]); if (error) return "teamKeys." + error; } @@ -58500,7 +54448,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.usersDataKeys)) return "usersDataKeys: array expected"; for (let i = 0; i < message.usersDataKeys.length; ++i) { - let error = $root.Enterprise.ReEncryptedUserDataKey.verify(message.usersDataKeys[i], long + 1); + let error = $root.Enterprise.ReEncryptedUserDataKey.verify(message.usersDataKeys[i]); if (error) return "usersDataKeys." + error; } @@ -58516,13 +54464,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.NodeToManagedCompanyRequest} NodeToManagedCompanyRequest */ - NodeToManagedCompanyRequest.fromObject = function fromObject(object, long) { + NodeToManagedCompanyRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.NodeToManagedCompanyRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.NodeToManagedCompanyRequest(); if (object.companyId != null) message.companyId = object.companyId | 0; @@ -58533,7 +54477,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.nodes.length; ++i) { if (typeof object.nodes[i] !== "object") throw TypeError(".Enterprise.NodeToManagedCompanyRequest.nodes: object expected"); - message.nodes[i] = $root.Enterprise.ReEncryptedData.fromObject(object.nodes[i], long + 1); + message.nodes[i] = $root.Enterprise.ReEncryptedData.fromObject(object.nodes[i]); } } if (object.roles) { @@ -58543,7 +54487,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.roles.length; ++i) { if (typeof object.roles[i] !== "object") throw TypeError(".Enterprise.NodeToManagedCompanyRequest.roles: object expected"); - message.roles[i] = $root.Enterprise.ReEncryptedData.fromObject(object.roles[i], long + 1); + message.roles[i] = $root.Enterprise.ReEncryptedData.fromObject(object.roles[i]); } } if (object.users) { @@ -58553,7 +54497,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Enterprise.NodeToManagedCompanyRequest.users: object expected"); - message.users[i] = $root.Enterprise.ReEncryptedData.fromObject(object.users[i], long + 1); + message.users[i] = $root.Enterprise.ReEncryptedData.fromObject(object.users[i]); } } if (object.roleKeys) { @@ -58563,7 +54507,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.roleKeys.length; ++i) { if (typeof object.roleKeys[i] !== "object") throw TypeError(".Enterprise.NodeToManagedCompanyRequest.roleKeys: object expected"); - message.roleKeys[i] = $root.Enterprise.ReEncryptedRoleKey.fromObject(object.roleKeys[i], long + 1); + message.roleKeys[i] = $root.Enterprise.ReEncryptedRoleKey.fromObject(object.roleKeys[i]); } } if (object.teamKeys) { @@ -58573,7 +54517,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.teamKeys.length; ++i) { if (typeof object.teamKeys[i] !== "object") throw TypeError(".Enterprise.NodeToManagedCompanyRequest.teamKeys: object expected"); - message.teamKeys[i] = $root.Enterprise.EncryptedTeamKeyRequest.fromObject(object.teamKeys[i], long + 1); + message.teamKeys[i] = $root.Enterprise.EncryptedTeamKeyRequest.fromObject(object.teamKeys[i]); } } if (object.usersDataKeys) { @@ -58583,7 +54527,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.usersDataKeys.length; ++i) { if (typeof object.usersDataKeys[i] !== "object") throw TypeError(".Enterprise.NodeToManagedCompanyRequest.usersDataKeys: object expected"); - message.usersDataKeys[i] = $root.Enterprise.ReEncryptedUserDataKey.fromObject(object.usersDataKeys[i], long + 1); + message.usersDataKeys[i] = $root.Enterprise.ReEncryptedUserDataKey.fromObject(object.usersDataKeys[i]); } } return message; @@ -58598,13 +54542,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeToManagedCompanyRequest.toObject = function toObject(message, options, q) { + NodeToManagedCompanyRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.nodes = []; @@ -58621,32 +54561,32 @@ export const Enterprise = $root.Enterprise = (() => { if (message.nodes && message.nodes.length) { object.nodes = []; for (let j = 0; j < message.nodes.length; ++j) - object.nodes[j] = $root.Enterprise.ReEncryptedData.toObject(message.nodes[j], options, q + 1); + object.nodes[j] = $root.Enterprise.ReEncryptedData.toObject(message.nodes[j], options); } if (message.roles && message.roles.length) { object.roles = []; for (let j = 0; j < message.roles.length; ++j) - object.roles[j] = $root.Enterprise.ReEncryptedData.toObject(message.roles[j], options, q + 1); + object.roles[j] = $root.Enterprise.ReEncryptedData.toObject(message.roles[j], options); } if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Enterprise.ReEncryptedData.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Enterprise.ReEncryptedData.toObject(message.users[j], options); } if (message.roleKeys && message.roleKeys.length) { object.roleKeys = []; for (let j = 0; j < message.roleKeys.length; ++j) - object.roleKeys[j] = $root.Enterprise.ReEncryptedRoleKey.toObject(message.roleKeys[j], options, q + 1); + object.roleKeys[j] = $root.Enterprise.ReEncryptedRoleKey.toObject(message.roleKeys[j], options); } if (message.teamKeys && message.teamKeys.length) { object.teamKeys = []; for (let j = 0; j < message.teamKeys.length; ++j) - object.teamKeys[j] = $root.Enterprise.EncryptedTeamKeyRequest.toObject(message.teamKeys[j], options, q + 1); + object.teamKeys[j] = $root.Enterprise.EncryptedTeamKeyRequest.toObject(message.teamKeys[j], options); } if (message.usersDataKeys && message.usersDataKeys.length) { object.usersDataKeys = []; for (let j = 0; j < message.usersDataKeys.length; ++j) - object.usersDataKeys[j] = $root.Enterprise.ReEncryptedUserDataKey.toObject(message.usersDataKeys[j], options, q + 1); + object.usersDataKeys[j] = $root.Enterprise.ReEncryptedUserDataKey.toObject(message.usersDataKeys[j], options); } return object; }; @@ -58701,7 +54641,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -58742,13 +54682,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleTeam.encode = function encode(message, writer, q) { + RoleTeam.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) @@ -58780,18 +54716,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleTeam.decode = function decode(reader, length, error, long) { + RoleTeam.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleTeam(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -58802,7 +54732,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -58833,13 +54763,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleTeam.verify = function verify(message, long) { + RoleTeam.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -58857,17 +54783,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleTeam} RoleTeam */ - RoleTeam.fromObject = function fromObject(object, long) { + RoleTeam.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleTeam) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleTeam(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -58891,20 +54813,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleTeam.toObject = function toObject(message, options, q) { + RoleTeam.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if (options.bytes === String) object.teamUid = ""; else { @@ -58914,9 +54832,7 @@ export const Enterprise = $root.Enterprise = (() => { } } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -58975,7 +54891,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleTeam = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -59008,16 +54924,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleTeams.encode = function encode(message, writer, q) { + RoleTeams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleTeam != null && message.roleTeam.length) for (let i = 0; i < message.roleTeam.length; ++i) - $root.Enterprise.RoleTeam.encode(message.roleTeam[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.RoleTeam.encode(message.roleTeam[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -59045,27 +54957,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleTeams.decode = function decode(reader, length, error, long) { + RoleTeams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleTeams(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.roleTeam && message.roleTeam.length)) message.roleTeam = []; - message.roleTeam.push($root.Enterprise.RoleTeam.decode(reader, reader.uint32(), undefined, long + 1)); + message.roleTeam.push($root.Enterprise.RoleTeam.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -59096,18 +55002,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleTeams.verify = function verify(message, long) { + RoleTeams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleTeam != null && message.hasOwnProperty("roleTeam")) { if (!Array.isArray(message.roleTeam)) return "roleTeam: array expected"; for (let i = 0; i < message.roleTeam.length; ++i) { - let error = $root.Enterprise.RoleTeam.verify(message.roleTeam[i], long + 1); + let error = $root.Enterprise.RoleTeam.verify(message.roleTeam[i]); if (error) return "roleTeam." + error; } @@ -59123,13 +55025,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleTeams} RoleTeams */ - RoleTeams.fromObject = function fromObject(object, long) { + RoleTeams.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleTeams) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleTeams(); if (object.roleTeam) { if (!Array.isArray(object.roleTeam)) @@ -59138,7 +55036,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.roleTeam.length; ++i) { if (typeof object.roleTeam[i] !== "object") throw TypeError(".Enterprise.RoleTeams.roleTeam: object expected"); - message.roleTeam[i] = $root.Enterprise.RoleTeam.fromObject(object.roleTeam[i], long + 1); + message.roleTeam[i] = $root.Enterprise.RoleTeam.fromObject(object.roleTeam[i]); } } return message; @@ -59153,20 +55051,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleTeams.toObject = function toObject(message, options, q) { + RoleTeams.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.roleTeam = []; if (message.roleTeam && message.roleTeam.length) { object.roleTeam = []; for (let j = 0; j < message.roleTeam.length; ++j) - object.roleTeam[j] = $root.Enterprise.RoleTeam.toObject(message.roleTeam[j], options, q + 1); + object.roleTeam[j] = $root.Enterprise.RoleTeam.toObject(message.roleTeam[j], options); } return object; }; @@ -59222,7 +55116,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teamUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -59263,13 +55157,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamsByRole.encode = function encode(message, writer, q) { + TeamsByRole.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.teamUid != null && message.teamUid.length) @@ -59302,18 +55192,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamsByRole.decode = function decode(reader, length, error, long) { + TeamsByRole.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsByRole(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -59326,7 +55210,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -59357,13 +55241,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamsByRole.verify = function verify(message, long) { + TeamsByRole.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -59385,17 +55265,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamsByRole} TeamsByRole */ - TeamsByRole.fromObject = function fromObject(object, long) { + TeamsByRole.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamsByRole) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamsByRole(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -59424,26 +55300,20 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamsByRole.toObject = function toObject(message, options, q) { + TeamsByRole.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teamUid = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -59506,7 +55376,7 @@ export const Enterprise = $root.Enterprise = (() => { this.managedNodeId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -59547,13 +55417,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ManagedNodesByRole.encode = function encode(message, writer, q) { + ManagedNodesByRole.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.managedNodeId != null && message.managedNodeId.length) { @@ -59589,18 +55455,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ManagedNodesByRole.decode = function decode(reader, length, error, long) { + ManagedNodesByRole.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ManagedNodesByRole(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -59618,7 +55478,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -59649,13 +55509,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ManagedNodesByRole.verify = function verify(message, long) { + ManagedNodesByRole.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -59677,17 +55533,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ManagedNodesByRole} ManagedNodesByRole */ - ManagedNodesByRole.fromObject = function fromObject(object, long) { + ManagedNodesByRole.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ManagedNodesByRole) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ManagedNodesByRole(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -59700,7 +55552,7 @@ export const Enterprise = $root.Enterprise = (() => { message.managedNodeId = []; for (let i = 0; i < object.managedNodeId.length; ++i) if ($util.Long) - message.managedNodeId[i] = $util.Long.fromValue(object.managedNodeId[i], false); + (message.managedNodeId[i] = $util.Long.fromValue(object.managedNodeId[i])).unsigned = false; else if (typeof object.managedNodeId[i] === "string") message.managedNodeId[i] = parseInt(object.managedNodeId[i], 10); else if (typeof object.managedNodeId[i] === "number") @@ -59720,35 +55572,27 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ManagedNodesByRole.toObject = function toObject(message, options, q) { + ManagedNodesByRole.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.managedNodeId = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; if (message.managedNodeId && message.managedNodeId.length) { object.managedNodeId = []; for (let j = 0; j < message.managedNodeId.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.managedNodeId[j] = typeof message.managedNodeId[j] === "number" ? BigInt(message.managedNodeId[j]) : $util.Long.fromBits(message.managedNodeId[j].low >>> 0, message.managedNodeId[j].high >>> 0, false).toBigInt(); - else if (typeof message.managedNodeId[j] === "number") + if (typeof message.managedNodeId[j] === "number") object.managedNodeId[j] = options.longs === String ? String(message.managedNodeId[j]) : message.managedNodeId[j]; else object.managedNodeId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.managedNodeId[j]) : options.longs === Number ? new $util.LongBits(message.managedNodeId[j].low >>> 0, message.managedNodeId[j].high >>> 0).toNumber() : message.managedNodeId[j]; @@ -59807,7 +55651,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleUserAddKeys(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -59856,13 +55700,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleUserAddKeys.encode = function encode(message, writer, q) { + RoleUserAddKeys.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) @@ -59896,18 +55736,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleUserAddKeys.decode = function decode(reader, length, error, long) { + RoleUserAddKeys.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUserAddKeys(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -59922,7 +55756,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -59953,13 +55787,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleUserAddKeys.verify = function verify(message, long) { + RoleUserAddKeys.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -59980,17 +55810,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleUserAddKeys} RoleUserAddKeys */ - RoleUserAddKeys.fromObject = function fromObject(object, long) { + RoleUserAddKeys.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleUserAddKeys) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleUserAddKeys(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -60013,27 +55839,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleUserAddKeys.toObject = function toObject(message, options, q) { + RoleUserAddKeys.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.treeKey = ""; object.roleAdminKey = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -60095,7 +55915,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleUserAddKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -60136,18 +55956,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleUserAdd.encode = function encode(message, writer, q) { + RoleUserAdd.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.roleUserAddKeys != null && message.roleUserAddKeys.length) for (let i = 0; i < message.roleUserAddKeys.length; ++i) - $root.Enterprise.RoleUserAddKeys.encode(message.roleUserAddKeys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.RoleUserAddKeys.encode(message.roleUserAddKeys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -60175,18 +55991,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleUserAdd.decode = function decode(reader, length, error, long) { + RoleUserAdd.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUserAdd(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -60195,11 +56005,11 @@ export const Enterprise = $root.Enterprise = (() => { case 2: { if (!(message.roleUserAddKeys && message.roleUserAddKeys.length)) message.roleUserAddKeys = []; - message.roleUserAddKeys.push($root.Enterprise.RoleUserAddKeys.decode(reader, reader.uint32(), undefined, long + 1)); + message.roleUserAddKeys.push($root.Enterprise.RoleUserAddKeys.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -60230,13 +56040,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleUserAdd.verify = function verify(message, long) { + RoleUserAdd.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -60244,7 +56050,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.roleUserAddKeys)) return "roleUserAddKeys: array expected"; for (let i = 0; i < message.roleUserAddKeys.length; ++i) { - let error = $root.Enterprise.RoleUserAddKeys.verify(message.roleUserAddKeys[i], long + 1); + let error = $root.Enterprise.RoleUserAddKeys.verify(message.roleUserAddKeys[i]); if (error) return "roleUserAddKeys." + error; } @@ -60260,17 +56066,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleUserAdd} RoleUserAdd */ - RoleUserAdd.fromObject = function fromObject(object, long) { + RoleUserAdd.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleUserAdd) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleUserAdd(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -60284,7 +56086,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.roleUserAddKeys.length; ++i) { if (typeof object.roleUserAddKeys[i] !== "object") throw TypeError(".Enterprise.RoleUserAdd.roleUserAddKeys: object expected"); - message.roleUserAddKeys[i] = $root.Enterprise.RoleUserAddKeys.fromObject(object.roleUserAddKeys[i], long + 1); + message.roleUserAddKeys[i] = $root.Enterprise.RoleUserAddKeys.fromObject(object.roleUserAddKeys[i]); } } return message; @@ -60299,33 +56101,27 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleUserAdd.toObject = function toObject(message, options, q) { + RoleUserAdd.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.roleUserAddKeys = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; if (message.roleUserAddKeys && message.roleUserAddKeys.length) { object.roleUserAddKeys = []; for (let j = 0; j < message.roleUserAddKeys.length; ++j) - object.roleUserAddKeys[j] = $root.Enterprise.RoleUserAddKeys.toObject(message.roleUserAddKeys[j], options, q + 1); + object.roleUserAddKeys[j] = $root.Enterprise.RoleUserAddKeys.toObject(message.roleUserAddKeys[j], options); } return object; }; @@ -60380,7 +56176,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleUserAdds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -60413,16 +56209,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleUsersAddRequest.encode = function encode(message, writer, q) { + RoleUsersAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleUserAdds != null && message.roleUserAdds.length) for (let i = 0; i < message.roleUserAdds.length; ++i) - $root.Enterprise.RoleUserAdd.encode(message.roleUserAdds[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.RoleUserAdd.encode(message.roleUserAdds[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -60450,27 +56242,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleUsersAddRequest.decode = function decode(reader, length, error, long) { + RoleUsersAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUsersAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.roleUserAdds && message.roleUserAdds.length)) message.roleUserAdds = []; - message.roleUserAdds.push($root.Enterprise.RoleUserAdd.decode(reader, reader.uint32(), undefined, long + 1)); + message.roleUserAdds.push($root.Enterprise.RoleUserAdd.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -60501,18 +56287,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleUsersAddRequest.verify = function verify(message, long) { + RoleUsersAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleUserAdds != null && message.hasOwnProperty("roleUserAdds")) { if (!Array.isArray(message.roleUserAdds)) return "roleUserAdds: array expected"; for (let i = 0; i < message.roleUserAdds.length; ++i) { - let error = $root.Enterprise.RoleUserAdd.verify(message.roleUserAdds[i], long + 1); + let error = $root.Enterprise.RoleUserAdd.verify(message.roleUserAdds[i]); if (error) return "roleUserAdds." + error; } @@ -60528,13 +56310,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleUsersAddRequest} RoleUsersAddRequest */ - RoleUsersAddRequest.fromObject = function fromObject(object, long) { + RoleUsersAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleUsersAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleUsersAddRequest(); if (object.roleUserAdds) { if (!Array.isArray(object.roleUserAdds)) @@ -60543,7 +56321,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.roleUserAdds.length; ++i) { if (typeof object.roleUserAdds[i] !== "object") throw TypeError(".Enterprise.RoleUsersAddRequest.roleUserAdds: object expected"); - message.roleUserAdds[i] = $root.Enterprise.RoleUserAdd.fromObject(object.roleUserAdds[i], long + 1); + message.roleUserAdds[i] = $root.Enterprise.RoleUserAdd.fromObject(object.roleUserAdds[i]); } } return message; @@ -60558,20 +56336,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleUsersAddRequest.toObject = function toObject(message, options, q) { + RoleUsersAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.roleUserAdds = []; if (message.roleUserAdds && message.roleUserAdds.length) { object.roleUserAdds = []; for (let j = 0; j < message.roleUserAdds.length; ++j) - object.roleUserAdds[j] = $root.Enterprise.RoleUserAdd.toObject(message.roleUserAdds[j], options, q + 1); + object.roleUserAdds[j] = $root.Enterprise.RoleUserAdd.toObject(message.roleUserAdds[j], options); } return object; }; @@ -60658,7 +56432,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleUserAddResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -60715,13 +56489,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleUserAddResult.encode = function encode(message, writer, q) { + RoleUserAddResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) @@ -60757,18 +56527,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleUserAddResult.decode = function decode(reader, length, error, long) { + RoleUserAddResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUserAddResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -60787,7 +56551,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -60818,13 +56582,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleUserAddResult.verify = function verify(message, long) { + RoleUserAddResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -60861,17 +56621,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleUserAddResult} RoleUserAddResult */ - RoleUserAddResult.fromObject = function fromObject(object, long) { + RoleUserAddResult.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleUserAddResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleUserAddResult(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -60880,7 +56636,7 @@ export const Enterprise = $root.Enterprise = (() => { message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -60949,39 +56705,31 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleUserAddResult.toObject = function toObject(message, options, q) { + RoleUserAddResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.status = options.enums === String ? "ROLE_EXISTS" : 0; object.message = ""; } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -61042,7 +56790,7 @@ export const Enterprise = $root.Enterprise = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -61075,16 +56823,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleUsersAddResponse.encode = function encode(message, writer, q) { + RoleUsersAddResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.Enterprise.RoleUserAddResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.RoleUserAddResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -61112,27 +56856,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleUsersAddResponse.decode = function decode(reader, length, error, long) { + RoleUsersAddResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUsersAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.results && message.results.length)) message.results = []; - message.results.push($root.Enterprise.RoleUserAddResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.results.push($root.Enterprise.RoleUserAddResult.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -61163,18 +56901,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleUsersAddResponse.verify = function verify(message, long) { + RoleUsersAddResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.results != null && message.hasOwnProperty("results")) { if (!Array.isArray(message.results)) return "results: array expected"; for (let i = 0; i < message.results.length; ++i) { - let error = $root.Enterprise.RoleUserAddResult.verify(message.results[i], long + 1); + let error = $root.Enterprise.RoleUserAddResult.verify(message.results[i]); if (error) return "results." + error; } @@ -61190,13 +56924,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleUsersAddResponse} RoleUsersAddResponse */ - RoleUsersAddResponse.fromObject = function fromObject(object, long) { + RoleUsersAddResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleUsersAddResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleUsersAddResponse(); if (object.results) { if (!Array.isArray(object.results)) @@ -61205,7 +56935,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.results.length; ++i) { if (typeof object.results[i] !== "object") throw TypeError(".Enterprise.RoleUsersAddResponse.results: object expected"); - message.results[i] = $root.Enterprise.RoleUserAddResult.fromObject(object.results[i], long + 1); + message.results[i] = $root.Enterprise.RoleUserAddResult.fromObject(object.results[i]); } } return message; @@ -61220,20 +56950,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleUsersAddResponse.toObject = function toObject(message, options, q) { + RoleUsersAddResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.results = []; if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.Enterprise.RoleUserAddResult.toObject(message.results[j], options, q + 1); + object.results[j] = $root.Enterprise.RoleUserAddResult.toObject(message.results[j], options); } return object; }; @@ -61289,7 +57015,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -61330,13 +57056,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleUserRemove.encode = function encode(message, writer, q) { + RoleUserRemove.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { @@ -61372,18 +57094,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleUserRemove.decode = function decode(reader, length, error, long) { + RoleUserRemove.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUserRemove(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -61401,7 +57117,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -61432,13 +57148,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleUserRemove.verify = function verify(message, long) { + RoleUserRemove.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -61460,17 +57172,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleUserRemove} RoleUserRemove */ - RoleUserRemove.fromObject = function fromObject(object, long) { + RoleUserRemove.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleUserRemove) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleUserRemove(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -61483,7 +57191,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i], false); + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; else if (typeof object.enterpriseUserIds[i] === "string") message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); else if (typeof object.enterpriseUserIds[i] === "number") @@ -61503,35 +57211,27 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleUserRemove.toObject = function toObject(message, options, q) { + RoleUserRemove.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUserIds = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserIds[j] = typeof message.enterpriseUserIds[j] === "number" ? BigInt(message.enterpriseUserIds[j]) : $util.Long.fromBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserIds[j] === "number") + if (typeof message.enterpriseUserIds[j] === "number") object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; else object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; @@ -61589,7 +57289,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleUserRemoves = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -61622,16 +57322,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleUsersRemoveRequest.encode = function encode(message, writer, q) { + RoleUsersRemoveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleUserRemoves != null && message.roleUserRemoves.length) for (let i = 0; i < message.roleUserRemoves.length; ++i) - $root.Enterprise.RoleUserRemove.encode(message.roleUserRemoves[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.RoleUserRemove.encode(message.roleUserRemoves[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -61659,27 +57355,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleUsersRemoveRequest.decode = function decode(reader, length, error, long) { + RoleUsersRemoveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUsersRemoveRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.roleUserRemoves && message.roleUserRemoves.length)) message.roleUserRemoves = []; - message.roleUserRemoves.push($root.Enterprise.RoleUserRemove.decode(reader, reader.uint32(), undefined, long + 1)); + message.roleUserRemoves.push($root.Enterprise.RoleUserRemove.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -61710,18 +57400,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleUsersRemoveRequest.verify = function verify(message, long) { + RoleUsersRemoveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleUserRemoves != null && message.hasOwnProperty("roleUserRemoves")) { if (!Array.isArray(message.roleUserRemoves)) return "roleUserRemoves: array expected"; for (let i = 0; i < message.roleUserRemoves.length; ++i) { - let error = $root.Enterprise.RoleUserRemove.verify(message.roleUserRemoves[i], long + 1); + let error = $root.Enterprise.RoleUserRemove.verify(message.roleUserRemoves[i]); if (error) return "roleUserRemoves." + error; } @@ -61737,13 +57423,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleUsersRemoveRequest} RoleUsersRemoveRequest */ - RoleUsersRemoveRequest.fromObject = function fromObject(object, long) { + RoleUsersRemoveRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleUsersRemoveRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleUsersRemoveRequest(); if (object.roleUserRemoves) { if (!Array.isArray(object.roleUserRemoves)) @@ -61752,7 +57434,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.roleUserRemoves.length; ++i) { if (typeof object.roleUserRemoves[i] !== "object") throw TypeError(".Enterprise.RoleUsersRemoveRequest.roleUserRemoves: object expected"); - message.roleUserRemoves[i] = $root.Enterprise.RoleUserRemove.fromObject(object.roleUserRemoves[i], long + 1); + message.roleUserRemoves[i] = $root.Enterprise.RoleUserRemove.fromObject(object.roleUserRemoves[i]); } } return message; @@ -61767,20 +57449,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleUsersRemoveRequest.toObject = function toObject(message, options, q) { + RoleUsersRemoveRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.roleUserRemoves = []; if (message.roleUserRemoves && message.roleUserRemoves.length) { object.roleUserRemoves = []; for (let j = 0; j < message.roleUserRemoves.length; ++j) - object.roleUserRemoves[j] = $root.Enterprise.RoleUserRemove.toObject(message.roleUserRemoves[j], options, q + 1); + object.roleUserRemoves[j] = $root.Enterprise.RoleUserRemove.toObject(message.roleUserRemoves[j], options); } return object; }; @@ -61837,7 +57515,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleUserRemoveResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -61894,13 +57572,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleUserRemoveResult.encode = function encode(message, writer, q) { + RoleUserRemoveResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) @@ -61936,18 +57610,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleUserRemoveResult.decode = function decode(reader, length, error, long) { + RoleUserRemoveResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUserRemoveResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -61966,7 +57634,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -61997,13 +57665,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleUserRemoveResult.verify = function verify(message, long) { + RoleUserRemoveResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -62040,17 +57704,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleUserRemoveResult} RoleUserRemoveResult */ - RoleUserRemoveResult.fromObject = function fromObject(object, long) { + RoleUserRemoveResult.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleUserRemoveResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleUserRemoveResult(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -62059,7 +57719,7 @@ export const Enterprise = $root.Enterprise = (() => { message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -62128,39 +57788,31 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleUserRemoveResult.toObject = function toObject(message, options, q) { + RoleUserRemoveResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.status = options.enums === String ? "ROLE_EXISTS" : 0; object.message = ""; } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -62221,7 +57873,7 @@ export const Enterprise = $root.Enterprise = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -62254,16 +57906,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleUsersRemoveResponse.encode = function encode(message, writer, q) { + RoleUsersRemoveResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.Enterprise.RoleUserRemoveResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.RoleUserRemoveResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -62291,27 +57939,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleUsersRemoveResponse.decode = function decode(reader, length, error, long) { + RoleUsersRemoveResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUsersRemoveResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.results && message.results.length)) message.results = []; - message.results.push($root.Enterprise.RoleUserRemoveResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.results.push($root.Enterprise.RoleUserRemoveResult.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -62342,18 +57984,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleUsersRemoveResponse.verify = function verify(message, long) { + RoleUsersRemoveResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.results != null && message.hasOwnProperty("results")) { if (!Array.isArray(message.results)) return "results: array expected"; for (let i = 0; i < message.results.length; ++i) { - let error = $root.Enterprise.RoleUserRemoveResult.verify(message.results[i], long + 1); + let error = $root.Enterprise.RoleUserRemoveResult.verify(message.results[i]); if (error) return "results." + error; } @@ -62369,13 +58007,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleUsersRemoveResponse} RoleUsersRemoveResponse */ - RoleUsersRemoveResponse.fromObject = function fromObject(object, long) { + RoleUsersRemoveResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleUsersRemoveResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleUsersRemoveResponse(); if (object.results) { if (!Array.isArray(object.results)) @@ -62384,7 +58018,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.results.length; ++i) { if (typeof object.results[i] !== "object") throw TypeError(".Enterprise.RoleUsersRemoveResponse.results: object expected"); - message.results[i] = $root.Enterprise.RoleUserRemoveResult.fromObject(object.results[i], long + 1); + message.results[i] = $root.Enterprise.RoleUserRemoveResult.fromObject(object.results[i]); } } return message; @@ -62399,20 +58033,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleUsersRemoveResponse.toObject = function toObject(message, options, q) { + RoleUsersRemoveResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.results = []; if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.Enterprise.RoleUserRemoveResult.toObject(message.results[j], options, q + 1); + object.results[j] = $root.Enterprise.RoleUserRemoveResult.toObject(message.results[j], options); } return object; }; @@ -62495,7 +58125,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseRegistration(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -62648,13 +58278,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseRegistration.encode = function encode(message, writer, q) { + EnterpriseRegistration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "encryptedTreeKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedTreeKey); if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) @@ -62668,7 +58294,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.roleData != null && Object.hasOwnProperty.call(message, "roleData")) writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.roleData); if (message.rsaKeyPair != null && Object.hasOwnProperty.call(message, "rsaKeyPair")) - $root.Enterprise.EnterpriseKeyPairRequest.encode(message.rsaKeyPair, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseKeyPairRequest.encode(message.rsaKeyPair, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.numberSeats != null && Object.hasOwnProperty.call(message, "numberSeats")) writer.uint32(/* id 8, wireType 0 =*/64).int32(message.numberSeats); if (message.enterpriseType != null && Object.hasOwnProperty.call(message, "enterpriseType")) @@ -62680,7 +58306,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.roleKeyEncryptedWithTreeKey != null && Object.hasOwnProperty.call(message, "roleKeyEncryptedWithTreeKey")) writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.roleKeyEncryptedWithTreeKey); if (message.eccKeyPair != null && Object.hasOwnProperty.call(message, "eccKeyPair")) - $root.Enterprise.EnterpriseKeyPairRequest.encode(message.eccKeyPair, writer.uint32(/* id 13, wireType 2 =*/106).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseKeyPairRequest.encode(message.eccKeyPair, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.allUsersRoleData != null && Object.hasOwnProperty.call(message, "allUsersRoleData")) writer.uint32(/* id 14, wireType 2 =*/114).bytes(message.allUsersRoleData); if (message.roleKeyEncryptedWithUserPublicKey != null && Object.hasOwnProperty.call(message, "roleKeyEncryptedWithUserPublicKey")) @@ -62714,18 +58340,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseRegistration.decode = function decode(reader, length, error, long) { + EnterpriseRegistration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseRegistration(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedTreeKey = reader.bytes(); @@ -62752,7 +58372,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } case 7: { - message.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.decode(reader, reader.uint32(), undefined, long + 1); + message.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.decode(reader, reader.uint32()); break; } case 8: { @@ -62776,7 +58396,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } case 13: { - message.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.decode(reader, reader.uint32(), undefined, long + 1); + message.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.decode(reader, reader.uint32()); break; } case 14: { @@ -62792,7 +58412,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -62823,13 +58443,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseRegistration.verify = function verify(message, long) { + EnterpriseRegistration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) if (!(message.encryptedTreeKey && typeof message.encryptedTreeKey.length === "number" || $util.isString(message.encryptedTreeKey))) return "encryptedTreeKey: buffer expected"; @@ -62849,7 +58465,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!(message.roleData && typeof message.roleData.length === "number" || $util.isString(message.roleData))) return "roleData: buffer expected"; if (message.rsaKeyPair != null && message.hasOwnProperty("rsaKeyPair")) { - let error = $root.Enterprise.EnterpriseKeyPairRequest.verify(message.rsaKeyPair, long + 1); + let error = $root.Enterprise.EnterpriseKeyPairRequest.verify(message.rsaKeyPair); if (error) return "rsaKeyPair." + error; } @@ -62874,7 +58490,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!(message.roleKeyEncryptedWithTreeKey && typeof message.roleKeyEncryptedWithTreeKey.length === "number" || $util.isString(message.roleKeyEncryptedWithTreeKey))) return "roleKeyEncryptedWithTreeKey: buffer expected"; if (message.eccKeyPair != null && message.hasOwnProperty("eccKeyPair")) { - let error = $root.Enterprise.EnterpriseKeyPairRequest.verify(message.eccKeyPair, long + 1); + let error = $root.Enterprise.EnterpriseKeyPairRequest.verify(message.eccKeyPair); if (error) return "eccKeyPair." + error; } @@ -62898,13 +58514,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseRegistration} EnterpriseRegistration */ - EnterpriseRegistration.fromObject = function fromObject(object, long) { + EnterpriseRegistration.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseRegistration) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseRegistration(); if (object.encryptedTreeKey != null) if (typeof object.encryptedTreeKey === "string") @@ -62933,7 +58545,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.rsaKeyPair != null) { if (typeof object.rsaKeyPair !== "object") throw TypeError(".Enterprise.EnterpriseRegistration.rsaKeyPair: object expected"); - message.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.fromObject(object.rsaKeyPair, long + 1); + message.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.fromObject(object.rsaKeyPair); } if (object.numberSeats != null) message.numberSeats = object.numberSeats | 0; @@ -62971,7 +58583,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.eccKeyPair != null) { if (typeof object.eccKeyPair !== "object") throw TypeError(".Enterprise.EnterpriseRegistration.eccKeyPair: object expected"); - message.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.fromObject(object.eccKeyPair, long + 1); + message.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.fromObject(object.eccKeyPair); } if (object.allUsersRoleData != null) if (typeof object.allUsersRoleData === "string") @@ -63000,13 +58612,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseRegistration.toObject = function toObject(message, options, q) { + EnterpriseRegistration.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -63099,7 +58707,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.roleData != null && message.hasOwnProperty("roleData")) object.roleData = options.bytes === String ? $util.base64.encode(message.roleData, 0, message.roleData.length) : options.bytes === Array ? Array.prototype.slice.call(message.roleData) : message.roleData; if (message.rsaKeyPair != null && message.hasOwnProperty("rsaKeyPair")) - object.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.toObject(message.rsaKeyPair, options, q + 1); + object.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.toObject(message.rsaKeyPair, options); if (message.numberSeats != null && message.hasOwnProperty("numberSeats")) object.numberSeats = message.numberSeats; if (message.enterpriseType != null && message.hasOwnProperty("enterpriseType")) @@ -63111,7 +58719,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.roleKeyEncryptedWithTreeKey != null && message.hasOwnProperty("roleKeyEncryptedWithTreeKey")) object.roleKeyEncryptedWithTreeKey = options.bytes === String ? $util.base64.encode(message.roleKeyEncryptedWithTreeKey, 0, message.roleKeyEncryptedWithTreeKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.roleKeyEncryptedWithTreeKey) : message.roleKeyEncryptedWithTreeKey; if (message.eccKeyPair != null && message.hasOwnProperty("eccKeyPair")) - object.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.toObject(message.eccKeyPair, options, q + 1); + object.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.toObject(message.eccKeyPair, options); if (message.allUsersRoleData != null && message.hasOwnProperty("allUsersRoleData")) object.allUsersRoleData = options.bytes === String ? $util.base64.encode(message.allUsersRoleData, 0, message.allUsersRoleData.length) : options.bytes === Array ? Array.prototype.slice.call(message.allUsersRoleData) : message.allUsersRoleData; if (message.roleKeyEncryptedWithUserPublicKey != null && message.hasOwnProperty("roleKeyEncryptedWithUserPublicKey")) @@ -63171,7 +58779,7 @@ export const Enterprise = $root.Enterprise = (() => { function DomainPasswordRulesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -63212,13 +58820,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DomainPasswordRulesRequest.encode = function encode(message, writer, q) { + DomainPasswordRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) @@ -63250,18 +58854,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DomainPasswordRulesRequest.decode = function decode(reader, length, error, long) { + DomainPasswordRulesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainPasswordRulesRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -63272,7 +58870,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -63303,13 +58901,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DomainPasswordRulesRequest.verify = function verify(message, long) { + DomainPasswordRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -63327,13 +58921,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.DomainPasswordRulesRequest} DomainPasswordRulesRequest */ - DomainPasswordRulesRequest.fromObject = function fromObject(object, long) { + DomainPasswordRulesRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.DomainPasswordRulesRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.DomainPasswordRulesRequest(); if (object.username != null) message.username = String(object.username); @@ -63351,13 +58941,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DomainPasswordRulesRequest.toObject = function toObject(message, options, q) { + DomainPasswordRulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -63422,7 +59008,7 @@ export const Enterprise = $root.Enterprise = (() => { function DomainPasswordRulesFields(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -63479,13 +59065,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DomainPasswordRulesFields.encode = function encode(message, writer, q) { + DomainPasswordRulesFields.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) @@ -63521,18 +59103,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DomainPasswordRulesFields.decode = function decode(reader, length, error, long) { + DomainPasswordRulesFields.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainPasswordRulesFields(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.type = reader.string(); @@ -63551,7 +59127,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -63582,13 +59158,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DomainPasswordRulesFields.verify = function verify(message, long) { + DomainPasswordRulesFields.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.type != null && message.hasOwnProperty("type")) if (!$util.isString(message.type)) return "type: string expected"; @@ -63612,13 +59184,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.DomainPasswordRulesFields} DomainPasswordRulesFields */ - DomainPasswordRulesFields.fromObject = function fromObject(object, long) { + DomainPasswordRulesFields.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.DomainPasswordRulesFields) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.DomainPasswordRulesFields(); if (object.type != null) message.type = String(object.type); @@ -63640,13 +59208,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DomainPasswordRulesFields.toObject = function toObject(message, options, q) { + DomainPasswordRulesFields.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.type = ""; @@ -63715,7 +59279,7 @@ export const Enterprise = $root.Enterprise = (() => { function LoginToMcRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -63756,13 +59320,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoginToMcRequest.encode = function encode(message, writer, q) { + LoginToMcRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mcEnterpriseId); if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) @@ -63794,18 +59354,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoginToMcRequest.decode = function decode(reader, length, error, long) { + LoginToMcRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LoginToMcRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.mcEnterpriseId = reader.int32(); @@ -63816,7 +59370,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -63847,13 +59401,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoginToMcRequest.verify = function verify(message, long) { + LoginToMcRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) if (!$util.isInteger(message.mcEnterpriseId)) return "mcEnterpriseId: integer expected"; @@ -63871,13 +59421,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.LoginToMcRequest} LoginToMcRequest */ - LoginToMcRequest.fromObject = function fromObject(object, long) { + LoginToMcRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.LoginToMcRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.LoginToMcRequest(); if (object.mcEnterpriseId != null) message.mcEnterpriseId = object.mcEnterpriseId | 0; @@ -63898,13 +59444,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoginToMcRequest.toObject = function toObject(message, options, q) { + LoginToMcRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.mcEnterpriseId = 0; @@ -63975,7 +59517,7 @@ export const Enterprise = $root.Enterprise = (() => { function LoginToMcResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -64032,13 +59574,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoginToMcResponse.encode = function encode(message, writer, q) { + LoginToMcResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSessionToken); if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "encryptedTreeKey")) @@ -64074,18 +59612,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoginToMcResponse.decode = function decode(reader, length, error, long) { + LoginToMcResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LoginToMcResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedSessionToken = reader.bytes(); @@ -64104,7 +59636,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -64135,13 +59667,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoginToMcResponse.verify = function verify(message, long) { + LoginToMcResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) return "encryptedSessionToken: buffer expected"; @@ -64165,13 +59693,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.LoginToMcResponse} LoginToMcResponse */ - LoginToMcResponse.fromObject = function fromObject(object, long) { + LoginToMcResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.LoginToMcResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.LoginToMcResponse(); if (object.encryptedSessionToken != null) if (typeof object.encryptedSessionToken === "string") @@ -64196,13 +59720,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoginToMcResponse.toObject = function toObject(message, options, q) { + LoginToMcResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -64277,7 +59797,7 @@ export const Enterprise = $root.Enterprise = (() => { this.domainPasswordRulesFields = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -64310,16 +59830,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DomainPasswordRulesResponse.encode = function encode(message, writer, q) { + DomainPasswordRulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.domainPasswordRulesFields != null && message.domainPasswordRulesFields.length) for (let i = 0; i < message.domainPasswordRulesFields.length; ++i) - $root.Enterprise.DomainPasswordRulesFields.encode(message.domainPasswordRulesFields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.DomainPasswordRulesFields.encode(message.domainPasswordRulesFields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -64347,27 +59863,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DomainPasswordRulesResponse.decode = function decode(reader, length, error, long) { + DomainPasswordRulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainPasswordRulesResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.domainPasswordRulesFields && message.domainPasswordRulesFields.length)) message.domainPasswordRulesFields = []; - message.domainPasswordRulesFields.push($root.Enterprise.DomainPasswordRulesFields.decode(reader, reader.uint32(), undefined, long + 1)); + message.domainPasswordRulesFields.push($root.Enterprise.DomainPasswordRulesFields.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -64398,18 +59908,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DomainPasswordRulesResponse.verify = function verify(message, long) { + DomainPasswordRulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.domainPasswordRulesFields != null && message.hasOwnProperty("domainPasswordRulesFields")) { if (!Array.isArray(message.domainPasswordRulesFields)) return "domainPasswordRulesFields: array expected"; for (let i = 0; i < message.domainPasswordRulesFields.length; ++i) { - let error = $root.Enterprise.DomainPasswordRulesFields.verify(message.domainPasswordRulesFields[i], long + 1); + let error = $root.Enterprise.DomainPasswordRulesFields.verify(message.domainPasswordRulesFields[i]); if (error) return "domainPasswordRulesFields." + error; } @@ -64425,13 +59931,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.DomainPasswordRulesResponse} DomainPasswordRulesResponse */ - DomainPasswordRulesResponse.fromObject = function fromObject(object, long) { + DomainPasswordRulesResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.DomainPasswordRulesResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.DomainPasswordRulesResponse(); if (object.domainPasswordRulesFields) { if (!Array.isArray(object.domainPasswordRulesFields)) @@ -64440,7 +59942,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.domainPasswordRulesFields.length; ++i) { if (typeof object.domainPasswordRulesFields[i] !== "object") throw TypeError(".Enterprise.DomainPasswordRulesResponse.domainPasswordRulesFields: object expected"); - message.domainPasswordRulesFields[i] = $root.Enterprise.DomainPasswordRulesFields.fromObject(object.domainPasswordRulesFields[i], long + 1); + message.domainPasswordRulesFields[i] = $root.Enterprise.DomainPasswordRulesFields.fromObject(object.domainPasswordRulesFields[i]); } } return message; @@ -64455,20 +59957,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DomainPasswordRulesResponse.toObject = function toObject(message, options, q) { + DomainPasswordRulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.domainPasswordRulesFields = []; if (message.domainPasswordRulesFields && message.domainPasswordRulesFields.length) { object.domainPasswordRulesFields = []; for (let j = 0; j < message.domainPasswordRulesFields.length; ++j) - object.domainPasswordRulesFields[j] = $root.Enterprise.DomainPasswordRulesFields.toObject(message.domainPasswordRulesFields[j], options, q + 1); + object.domainPasswordRulesFields[j] = $root.Enterprise.DomainPasswordRulesFields.toObject(message.domainPasswordRulesFields[j], options); } return object; }; @@ -64525,7 +60023,7 @@ export const Enterprise = $root.Enterprise = (() => { function ApproveUserDeviceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -64582,13 +60080,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveUserDeviceRequest.encode = function encode(message, writer, q) { + ApproveUserDeviceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) @@ -64624,18 +60118,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveUserDeviceRequest.decode = function decode(reader, length, error, long) { + ApproveUserDeviceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ApproveUserDeviceRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -64654,7 +60142,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -64685,13 +60173,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveUserDeviceRequest.verify = function verify(message, long) { + ApproveUserDeviceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -64715,17 +60199,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ApproveUserDeviceRequest} ApproveUserDeviceRequest */ - ApproveUserDeviceRequest.fromObject = function fromObject(object, long) { + ApproveUserDeviceRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ApproveUserDeviceRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ApproveUserDeviceRequest(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -64756,20 +60236,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveUserDeviceRequest.toObject = function toObject(message, options, q) { + ApproveUserDeviceRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.encryptedDeviceToken = ""; else { @@ -64787,9 +60263,7 @@ export const Enterprise = $root.Enterprise = (() => { object.denyApproval = false; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -64854,7 +60328,7 @@ export const Enterprise = $root.Enterprise = (() => { function ApproveUserDeviceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -64911,13 +60385,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveUserDeviceResponse.encode = function encode(message, writer, q) { + ApproveUserDeviceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) @@ -64953,18 +60423,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveUserDeviceResponse.decode = function decode(reader, length, error, long) { + ApproveUserDeviceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ApproveUserDeviceResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -64983,7 +60447,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -65014,13 +60478,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveUserDeviceResponse.verify = function verify(message, long) { + ApproveUserDeviceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -65044,17 +60504,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ApproveUserDeviceResponse} ApproveUserDeviceResponse */ - ApproveUserDeviceResponse.fromObject = function fromObject(object, long) { + ApproveUserDeviceResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ApproveUserDeviceResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ApproveUserDeviceResponse(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -65082,20 +60538,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveUserDeviceResponse.toObject = function toObject(message, options, q) { + ApproveUserDeviceResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.encryptedDeviceToken = ""; else { @@ -65107,9 +60559,7 @@ export const Enterprise = $root.Enterprise = (() => { object.message = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -65172,7 +60622,7 @@ export const Enterprise = $root.Enterprise = (() => { this.deviceRequests = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -65205,16 +60655,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveUserDevicesRequest.encode = function encode(message, writer, q) { + ApproveUserDevicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceRequests != null && message.deviceRequests.length) for (let i = 0; i < message.deviceRequests.length; ++i) - $root.Enterprise.ApproveUserDeviceRequest.encode(message.deviceRequests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.ApproveUserDeviceRequest.encode(message.deviceRequests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -65242,27 +60688,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveUserDevicesRequest.decode = function decode(reader, length, error, long) { + ApproveUserDevicesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ApproveUserDevicesRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.deviceRequests && message.deviceRequests.length)) message.deviceRequests = []; - message.deviceRequests.push($root.Enterprise.ApproveUserDeviceRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.deviceRequests.push($root.Enterprise.ApproveUserDeviceRequest.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -65293,18 +60733,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveUserDevicesRequest.verify = function verify(message, long) { + ApproveUserDevicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceRequests != null && message.hasOwnProperty("deviceRequests")) { if (!Array.isArray(message.deviceRequests)) return "deviceRequests: array expected"; for (let i = 0; i < message.deviceRequests.length; ++i) { - let error = $root.Enterprise.ApproveUserDeviceRequest.verify(message.deviceRequests[i], long + 1); + let error = $root.Enterprise.ApproveUserDeviceRequest.verify(message.deviceRequests[i]); if (error) return "deviceRequests." + error; } @@ -65320,13 +60756,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ApproveUserDevicesRequest} ApproveUserDevicesRequest */ - ApproveUserDevicesRequest.fromObject = function fromObject(object, long) { + ApproveUserDevicesRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ApproveUserDevicesRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ApproveUserDevicesRequest(); if (object.deviceRequests) { if (!Array.isArray(object.deviceRequests)) @@ -65335,7 +60767,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.deviceRequests.length; ++i) { if (typeof object.deviceRequests[i] !== "object") throw TypeError(".Enterprise.ApproveUserDevicesRequest.deviceRequests: object expected"); - message.deviceRequests[i] = $root.Enterprise.ApproveUserDeviceRequest.fromObject(object.deviceRequests[i], long + 1); + message.deviceRequests[i] = $root.Enterprise.ApproveUserDeviceRequest.fromObject(object.deviceRequests[i]); } } return message; @@ -65350,20 +60782,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveUserDevicesRequest.toObject = function toObject(message, options, q) { + ApproveUserDevicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.deviceRequests = []; if (message.deviceRequests && message.deviceRequests.length) { object.deviceRequests = []; for (let j = 0; j < message.deviceRequests.length; ++j) - object.deviceRequests[j] = $root.Enterprise.ApproveUserDeviceRequest.toObject(message.deviceRequests[j], options, q + 1); + object.deviceRequests[j] = $root.Enterprise.ApproveUserDeviceRequest.toObject(message.deviceRequests[j], options); } return object; }; @@ -65418,7 +60846,7 @@ export const Enterprise = $root.Enterprise = (() => { this.deviceResponses = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -65451,16 +60879,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveUserDevicesResponse.encode = function encode(message, writer, q) { + ApproveUserDevicesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceResponses != null && message.deviceResponses.length) for (let i = 0; i < message.deviceResponses.length; ++i) - $root.Enterprise.ApproveUserDeviceResponse.encode(message.deviceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.ApproveUserDeviceResponse.encode(message.deviceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -65488,27 +60912,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveUserDevicesResponse.decode = function decode(reader, length, error, long) { + ApproveUserDevicesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ApproveUserDevicesResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.deviceResponses && message.deviceResponses.length)) message.deviceResponses = []; - message.deviceResponses.push($root.Enterprise.ApproveUserDeviceResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.deviceResponses.push($root.Enterprise.ApproveUserDeviceResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -65539,18 +60957,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveUserDevicesResponse.verify = function verify(message, long) { + ApproveUserDevicesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceResponses != null && message.hasOwnProperty("deviceResponses")) { if (!Array.isArray(message.deviceResponses)) return "deviceResponses: array expected"; for (let i = 0; i < message.deviceResponses.length; ++i) { - let error = $root.Enterprise.ApproveUserDeviceResponse.verify(message.deviceResponses[i], long + 1); + let error = $root.Enterprise.ApproveUserDeviceResponse.verify(message.deviceResponses[i]); if (error) return "deviceResponses." + error; } @@ -65566,13 +60980,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ApproveUserDevicesResponse} ApproveUserDevicesResponse */ - ApproveUserDevicesResponse.fromObject = function fromObject(object, long) { + ApproveUserDevicesResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ApproveUserDevicesResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ApproveUserDevicesResponse(); if (object.deviceResponses) { if (!Array.isArray(object.deviceResponses)) @@ -65581,7 +60991,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.deviceResponses.length; ++i) { if (typeof object.deviceResponses[i] !== "object") throw TypeError(".Enterprise.ApproveUserDevicesResponse.deviceResponses: object expected"); - message.deviceResponses[i] = $root.Enterprise.ApproveUserDeviceResponse.fromObject(object.deviceResponses[i], long + 1); + message.deviceResponses[i] = $root.Enterprise.ApproveUserDeviceResponse.fromObject(object.deviceResponses[i]); } } return message; @@ -65596,20 +61006,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveUserDevicesResponse.toObject = function toObject(message, options, q) { + ApproveUserDevicesResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.deviceResponses = []; if (message.deviceResponses && message.deviceResponses.length) { object.deviceResponses = []; for (let j = 0; j < message.deviceResponses.length; ++j) - object.deviceResponses[j] = $root.Enterprise.ApproveUserDeviceResponse.toObject(message.deviceResponses[j], options, q + 1); + object.deviceResponses[j] = $root.Enterprise.ApproveUserDeviceResponse.toObject(message.deviceResponses[j], options); } return object; }; @@ -65667,7 +61073,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUserDataKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -65732,13 +61138,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserDataKey.encode = function encode(message, writer, q) { + EnterpriseUserDataKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) @@ -65776,18 +61178,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserDataKey.decode = function decode(reader, length, error, long) { + EnterpriseUserDataKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserDataKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -65810,7 +61206,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -65841,13 +61237,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserDataKey.verify = function verify(message, long) { + EnterpriseUserDataKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -65874,17 +61266,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUserDataKey} EnterpriseUserDataKey */ - EnterpriseUserDataKey.fromObject = function fromObject(object, long) { + EnterpriseUserDataKey.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUserDataKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUserDataKey(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -65920,20 +61308,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserDataKey.toObject = function toObject(message, options, q) { + EnterpriseUserDataKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.userEncryptedDataKey = ""; else { @@ -65958,9 +61342,7 @@ export const Enterprise = $root.Enterprise = (() => { } } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -66025,7 +61407,7 @@ export const Enterprise = $root.Enterprise = (() => { this.keys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -66058,16 +61440,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserDataKeys.encode = function encode(message, writer, q) { + EnterpriseUserDataKeys.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Enterprise.EnterpriseUserDataKey.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseUserDataKey.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -66095,27 +61473,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserDataKeys.decode = function decode(reader, length, error, long) { + EnterpriseUserDataKeys.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserDataKeys(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.keys && message.keys.length)) message.keys = []; - message.keys.push($root.Enterprise.EnterpriseUserDataKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.keys.push($root.Enterprise.EnterpriseUserDataKey.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -66146,18 +61518,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserDataKeys.verify = function verify(message, long) { + EnterpriseUserDataKeys.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.keys != null && message.hasOwnProperty("keys")) { if (!Array.isArray(message.keys)) return "keys: array expected"; for (let i = 0; i < message.keys.length; ++i) { - let error = $root.Enterprise.EnterpriseUserDataKey.verify(message.keys[i], long + 1); + let error = $root.Enterprise.EnterpriseUserDataKey.verify(message.keys[i]); if (error) return "keys." + error; } @@ -66173,13 +61541,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUserDataKeys} EnterpriseUserDataKeys */ - EnterpriseUserDataKeys.fromObject = function fromObject(object, long) { + EnterpriseUserDataKeys.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUserDataKeys) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUserDataKeys(); if (object.keys) { if (!Array.isArray(object.keys)) @@ -66188,7 +61552,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.keys.length; ++i) { if (typeof object.keys[i] !== "object") throw TypeError(".Enterprise.EnterpriseUserDataKeys.keys: object expected"); - message.keys[i] = $root.Enterprise.EnterpriseUserDataKey.fromObject(object.keys[i], long + 1); + message.keys[i] = $root.Enterprise.EnterpriseUserDataKey.fromObject(object.keys[i]); } } return message; @@ -66203,20 +61567,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserDataKeys.toObject = function toObject(message, options, q) { + EnterpriseUserDataKeys.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.keys = []; if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) - object.keys[j] = $root.Enterprise.EnterpriseUserDataKey.toObject(message.keys[j], options, q + 1); + object.keys[j] = $root.Enterprise.EnterpriseUserDataKey.toObject(message.keys[j], options); } return object; }; @@ -66272,7 +61632,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUserDataKeyLight(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -66321,13 +61681,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserDataKeyLight.encode = function encode(message, writer, q) { + EnterpriseUserDataKeyLight.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) @@ -66361,18 +61717,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserDataKeyLight.decode = function decode(reader, length, error, long) { + EnterpriseUserDataKeyLight.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserDataKeyLight(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -66387,7 +61737,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -66418,13 +61768,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserDataKeyLight.verify = function verify(message, long) { + EnterpriseUserDataKeyLight.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -66445,17 +61791,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUserDataKeyLight} EnterpriseUserDataKeyLight */ - EnterpriseUserDataKeyLight.fromObject = function fromObject(object, long) { + EnterpriseUserDataKeyLight.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUserDataKeyLight) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUserDataKeyLight(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -66481,20 +61823,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserDataKeyLight.toObject = function toObject(message, options, q) { + EnterpriseUserDataKeyLight.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.userEncryptedDataKey = ""; else { @@ -66505,9 +61843,7 @@ export const Enterprise = $root.Enterprise = (() => { object.keyTypeId = 0; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -66569,7 +61905,7 @@ export const Enterprise = $root.Enterprise = (() => { this.keys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -66610,18 +61946,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserDataKeysByNode.encode = function encode(message, writer, q) { + EnterpriseUserDataKeysByNode.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Enterprise.EnterpriseUserDataKeyLight.encode(message.keys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseUserDataKeyLight.encode(message.keys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -66649,18 +61981,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserDataKeysByNode.decode = function decode(reader, length, error, long) { + EnterpriseUserDataKeysByNode.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserDataKeysByNode(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nodeId = reader.int64(); @@ -66669,11 +61995,11 @@ export const Enterprise = $root.Enterprise = (() => { case 2: { if (!(message.keys && message.keys.length)) message.keys = []; - message.keys.push($root.Enterprise.EnterpriseUserDataKeyLight.decode(reader, reader.uint32(), undefined, long + 1)); + message.keys.push($root.Enterprise.EnterpriseUserDataKeyLight.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -66704,13 +62030,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserDataKeysByNode.verify = function verify(message, long) { + EnterpriseUserDataKeysByNode.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeId != null && message.hasOwnProperty("nodeId")) if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) return "nodeId: integer|Long expected"; @@ -66718,7 +62040,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.keys)) return "keys: array expected"; for (let i = 0; i < message.keys.length; ++i) { - let error = $root.Enterprise.EnterpriseUserDataKeyLight.verify(message.keys[i], long + 1); + let error = $root.Enterprise.EnterpriseUserDataKeyLight.verify(message.keys[i]); if (error) return "keys." + error; } @@ -66734,17 +62056,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUserDataKeysByNode} EnterpriseUserDataKeysByNode */ - EnterpriseUserDataKeysByNode.fromObject = function fromObject(object, long) { + EnterpriseUserDataKeysByNode.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUserDataKeysByNode) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUserDataKeysByNode(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -66758,7 +62076,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.keys.length; ++i) { if (typeof object.keys[i] !== "object") throw TypeError(".Enterprise.EnterpriseUserDataKeysByNode.keys: object expected"); - message.keys[i] = $root.Enterprise.EnterpriseUserDataKeyLight.fromObject(object.keys[i], long + 1); + message.keys[i] = $root.Enterprise.EnterpriseUserDataKeyLight.fromObject(object.keys[i]); } } return message; @@ -66773,33 +62091,27 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserDataKeysByNode.toObject = function toObject(message, options, q) { + EnterpriseUserDataKeysByNode.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.keys = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) - object.keys[j] = $root.Enterprise.EnterpriseUserDataKeyLight.toObject(message.keys[j], options, q + 1); + object.keys[j] = $root.Enterprise.EnterpriseUserDataKeyLight.toObject(message.keys[j], options); } return object; }; @@ -66854,7 +62166,7 @@ export const Enterprise = $root.Enterprise = (() => { this.keys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -66887,16 +62199,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUserDataKeysByNodeResponse.encode = function encode(message, writer, q) { + EnterpriseUserDataKeysByNodeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Enterprise.EnterpriseUserDataKeysByNode.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseUserDataKeysByNode.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -66924,27 +62232,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUserDataKeysByNodeResponse.decode = function decode(reader, length, error, long) { + EnterpriseUserDataKeysByNodeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserDataKeysByNodeResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.keys && message.keys.length)) message.keys = []; - message.keys.push($root.Enterprise.EnterpriseUserDataKeysByNode.decode(reader, reader.uint32(), undefined, long + 1)); + message.keys.push($root.Enterprise.EnterpriseUserDataKeysByNode.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -66975,18 +62277,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUserDataKeysByNodeResponse.verify = function verify(message, long) { + EnterpriseUserDataKeysByNodeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.keys != null && message.hasOwnProperty("keys")) { if (!Array.isArray(message.keys)) return "keys: array expected"; for (let i = 0; i < message.keys.length; ++i) { - let error = $root.Enterprise.EnterpriseUserDataKeysByNode.verify(message.keys[i], long + 1); + let error = $root.Enterprise.EnterpriseUserDataKeysByNode.verify(message.keys[i]); if (error) return "keys." + error; } @@ -67002,13 +62300,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUserDataKeysByNodeResponse} EnterpriseUserDataKeysByNodeResponse */ - EnterpriseUserDataKeysByNodeResponse.fromObject = function fromObject(object, long) { + EnterpriseUserDataKeysByNodeResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUserDataKeysByNodeResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUserDataKeysByNodeResponse(); if (object.keys) { if (!Array.isArray(object.keys)) @@ -67017,7 +62311,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.keys.length; ++i) { if (typeof object.keys[i] !== "object") throw TypeError(".Enterprise.EnterpriseUserDataKeysByNodeResponse.keys: object expected"); - message.keys[i] = $root.Enterprise.EnterpriseUserDataKeysByNode.fromObject(object.keys[i], long + 1); + message.keys[i] = $root.Enterprise.EnterpriseUserDataKeysByNode.fromObject(object.keys[i]); } } return message; @@ -67032,20 +62326,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUserDataKeysByNodeResponse.toObject = function toObject(message, options, q) { + EnterpriseUserDataKeysByNodeResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.keys = []; if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) - object.keys[j] = $root.Enterprise.EnterpriseUserDataKeysByNode.toObject(message.keys[j], options, q + 1); + object.keys[j] = $root.Enterprise.EnterpriseUserDataKeysByNode.toObject(message.keys[j], options); } return object; }; @@ -67099,7 +62389,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseDataRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -67132,13 +62422,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseDataRequest.encode = function encode(message, writer, q) { + EnterpriseDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); return writer; @@ -67168,25 +62454,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseDataRequest.decode = function decode(reader, length, error, long) { + EnterpriseDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.continuationToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -67217,13 +62497,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseDataRequest.verify = function verify(message, long) { + EnterpriseDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) return "continuationToken: buffer expected"; @@ -67238,13 +62514,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseDataRequest} EnterpriseDataRequest */ - EnterpriseDataRequest.fromObject = function fromObject(object, long) { + EnterpriseDataRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseDataRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseDataRequest(); if (object.continuationToken != null) if (typeof object.continuationToken === "string") @@ -67263,13 +62535,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseDataRequest.toObject = function toObject(message, options, q) { + EnterpriseDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -67334,7 +62602,7 @@ export const Enterprise = $root.Enterprise = (() => { function SpecialProvisioning(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -67375,13 +62643,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SpecialProvisioning.encode = function encode(message, writer, q) { + SpecialProvisioning.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.url != null && Object.hasOwnProperty.call(message, "url")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -67413,18 +62677,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SpecialProvisioning.decode = function decode(reader, length, error, long) { + SpecialProvisioning.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SpecialProvisioning(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.url = reader.string(); @@ -67435,7 +62693,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -67466,13 +62724,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SpecialProvisioning.verify = function verify(message, long) { + SpecialProvisioning.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.url != null && message.hasOwnProperty("url")) if (!$util.isString(message.url)) return "url: string expected"; @@ -67490,13 +62744,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.SpecialProvisioning} SpecialProvisioning */ - SpecialProvisioning.fromObject = function fromObject(object, long) { + SpecialProvisioning.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.SpecialProvisioning) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.SpecialProvisioning(); if (object.url != null) message.url = String(object.url); @@ -67514,13 +62764,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SpecialProvisioning.toObject = function toObject(message, options, q) { + SpecialProvisioning.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.url = ""; @@ -67588,7 +62834,7 @@ export const Enterprise = $root.Enterprise = (() => { function GeneralDataEntity(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -67669,21 +62915,17 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneralDataEntity.encode = function encode(message, writer, q) { + GeneralDataEntity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.enterpriseName); if (message.restrictVisibility != null && Object.hasOwnProperty.call(message, "restrictVisibility")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.restrictVisibility); if (message.specialProvisioning != null && Object.hasOwnProperty.call(message, "specialProvisioning")) - $root.Enterprise.SpecialProvisioning.encode(message.specialProvisioning, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Enterprise.SpecialProvisioning.encode(message.specialProvisioning, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.userPrivilege != null && Object.hasOwnProperty.call(message, "userPrivilege")) - $root.Enterprise.UserPrivilege.encode(message.userPrivilege, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Enterprise.UserPrivilege.encode(message.userPrivilege, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.distributor != null && Object.hasOwnProperty.call(message, "distributor")) writer.uint32(/* id 8, wireType 0 =*/64).bool(message.distributor); if (message.forbidAccountTransfer != null && Object.hasOwnProperty.call(message, "forbidAccountTransfer")) @@ -67717,18 +62959,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneralDataEntity.decode = function decode(reader, length, error, long) { + GeneralDataEntity.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GeneralDataEntity(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseName = reader.string(); @@ -67739,11 +62975,11 @@ export const Enterprise = $root.Enterprise = (() => { break; } case 4: { - message.specialProvisioning = $root.Enterprise.SpecialProvisioning.decode(reader, reader.uint32(), undefined, long + 1); + message.specialProvisioning = $root.Enterprise.SpecialProvisioning.decode(reader, reader.uint32()); break; } case 7: { - message.userPrivilege = $root.Enterprise.UserPrivilege.decode(reader, reader.uint32(), undefined, long + 1); + message.userPrivilege = $root.Enterprise.UserPrivilege.decode(reader, reader.uint32()); break; } case 8: { @@ -67759,7 +62995,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -67790,13 +63026,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GeneralDataEntity.verify = function verify(message, long) { + GeneralDataEntity.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) if (!$util.isString(message.enterpriseName)) return "enterpriseName: string expected"; @@ -67804,12 +63036,12 @@ export const Enterprise = $root.Enterprise = (() => { if (typeof message.restrictVisibility !== "boolean") return "restrictVisibility: boolean expected"; if (message.specialProvisioning != null && message.hasOwnProperty("specialProvisioning")) { - let error = $root.Enterprise.SpecialProvisioning.verify(message.specialProvisioning, long + 1); + let error = $root.Enterprise.SpecialProvisioning.verify(message.specialProvisioning); if (error) return "specialProvisioning." + error; } if (message.userPrivilege != null && message.hasOwnProperty("userPrivilege")) { - let error = $root.Enterprise.UserPrivilege.verify(message.userPrivilege, long + 1); + let error = $root.Enterprise.UserPrivilege.verify(message.userPrivilege); if (error) return "userPrivilege." + error; } @@ -67833,13 +63065,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.GeneralDataEntity} GeneralDataEntity */ - GeneralDataEntity.fromObject = function fromObject(object, long) { + GeneralDataEntity.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.GeneralDataEntity) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.GeneralDataEntity(); if (object.enterpriseName != null) message.enterpriseName = String(object.enterpriseName); @@ -67848,12 +63076,12 @@ export const Enterprise = $root.Enterprise = (() => { if (object.specialProvisioning != null) { if (typeof object.specialProvisioning !== "object") throw TypeError(".Enterprise.GeneralDataEntity.specialProvisioning: object expected"); - message.specialProvisioning = $root.Enterprise.SpecialProvisioning.fromObject(object.specialProvisioning, long + 1); + message.specialProvisioning = $root.Enterprise.SpecialProvisioning.fromObject(object.specialProvisioning); } if (object.userPrivilege != null) { if (typeof object.userPrivilege !== "object") throw TypeError(".Enterprise.GeneralDataEntity.userPrivilege: object expected"); - message.userPrivilege = $root.Enterprise.UserPrivilege.fromObject(object.userPrivilege, long + 1); + message.userPrivilege = $root.Enterprise.UserPrivilege.fromObject(object.userPrivilege); } if (object.distributor != null) message.distributor = Boolean(object.distributor); @@ -67873,13 +63101,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GeneralDataEntity.toObject = function toObject(message, options, q) { + GeneralDataEntity.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.enterpriseName = ""; @@ -67895,9 +63119,9 @@ export const Enterprise = $root.Enterprise = (() => { if (message.restrictVisibility != null && message.hasOwnProperty("restrictVisibility")) object.restrictVisibility = message.restrictVisibility; if (message.specialProvisioning != null && message.hasOwnProperty("specialProvisioning")) - object.specialProvisioning = $root.Enterprise.SpecialProvisioning.toObject(message.specialProvisioning, options, q + 1); + object.specialProvisioning = $root.Enterprise.SpecialProvisioning.toObject(message.specialProvisioning, options); if (message.userPrivilege != null && message.hasOwnProperty("userPrivilege")) - object.userPrivilege = $root.Enterprise.UserPrivilege.toObject(message.userPrivilege, options, q + 1); + object.userPrivilege = $root.Enterprise.UserPrivilege.toObject(message.userPrivilege, options); if (message.distributor != null && message.hasOwnProperty("distributor")) object.distributor = message.distributor; if (message.forbidAccountTransfer != null && message.hasOwnProperty("forbidAccountTransfer")) @@ -67967,7 +63191,7 @@ export const Enterprise = $root.Enterprise = (() => { this.ssoServiceProviderIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -68080,13 +63304,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Node.encode = function encode(message, writer, q) { + Node.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); if (message.parentId != null && Object.hasOwnProperty.call(message, "parentId")) @@ -68140,18 +63360,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Node.decode = function decode(reader, length, error, long) { + Node.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Node(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nodeId = reader.int64(); @@ -68205,7 +63419,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -68236,13 +63450,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Node.verify = function verify(message, long) { + Node.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeId != null && message.hasOwnProperty("nodeId")) if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) return "nodeId: integer|Long expected"; @@ -68291,17 +63501,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.Node} Node */ - Node.fromObject = function fromObject(object, long) { + Node.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.Node) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.Node(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -68310,7 +63516,7 @@ export const Enterprise = $root.Enterprise = (() => { message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); if (object.parentId != null) if ($util.Long) - message.parentId = $util.Long.fromValue(object.parentId, false); + (message.parentId = $util.Long.fromValue(object.parentId)).unsigned = false; else if (typeof object.parentId === "string") message.parentId = parseInt(object.parentId, 10); else if (typeof object.parentId === "number") @@ -68319,7 +63525,7 @@ export const Enterprise = $root.Enterprise = (() => { message.parentId = new $util.LongBits(object.parentId.low >>> 0, object.parentId.high >>> 0).toNumber(); if (object.bridgeId != null) if ($util.Long) - message.bridgeId = $util.Long.fromValue(object.bridgeId, false); + (message.bridgeId = $util.Long.fromValue(object.bridgeId)).unsigned = false; else if (typeof object.bridgeId === "string") message.bridgeId = parseInt(object.bridgeId, 10); else if (typeof object.bridgeId === "number") @@ -68328,7 +63534,7 @@ export const Enterprise = $root.Enterprise = (() => { message.bridgeId = new $util.LongBits(object.bridgeId.low >>> 0, object.bridgeId.high >>> 0).toNumber(); if (object.scimId != null) if ($util.Long) - message.scimId = $util.Long.fromValue(object.scimId, false); + (message.scimId = $util.Long.fromValue(object.scimId)).unsigned = false; else if (typeof object.scimId === "string") message.scimId = parseInt(object.scimId, 10); else if (typeof object.scimId === "number") @@ -68337,7 +63543,7 @@ export const Enterprise = $root.Enterprise = (() => { message.scimId = new $util.LongBits(object.scimId.low >>> 0, object.scimId.high >>> 0).toNumber(); if (object.licenseId != null) if ($util.Long) - message.licenseId = $util.Long.fromValue(object.licenseId, false); + (message.licenseId = $util.Long.fromValue(object.licenseId)).unsigned = false; else if (typeof object.licenseId === "string") message.licenseId = parseInt(object.licenseId, 10); else if (typeof object.licenseId === "number") @@ -68352,7 +63558,7 @@ export const Enterprise = $root.Enterprise = (() => { message.rsaEnabled = Boolean(object.rsaEnabled); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, false); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = false; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -68367,7 +63573,7 @@ export const Enterprise = $root.Enterprise = (() => { message.ssoServiceProviderIds = []; for (let i = 0; i < object.ssoServiceProviderIds.length; ++i) if ($util.Long) - message.ssoServiceProviderIds[i] = $util.Long.fromValue(object.ssoServiceProviderIds[i], false); + (message.ssoServiceProviderIds[i] = $util.Long.fromValue(object.ssoServiceProviderIds[i])).unsigned = false; else if (typeof object.ssoServiceProviderIds[i] === "string") message.ssoServiceProviderIds[i] = parseInt(object.ssoServiceProviderIds[i], 10); else if (typeof object.ssoServiceProviderIds[i] === "number") @@ -68387,84 +63593,70 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Node.toObject = function toObject(message, options, q) { + Node.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.ssoServiceProviderIds = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.parentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.parentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.parentId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.parentId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.bridgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.bridgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.bridgeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.bridgeId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.scimId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.scimId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.scimId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.scimId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.licenseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.licenseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.licenseId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.licenseId = options.longs === String ? "0" : 0; object.encryptedData = ""; object.duoEnabled = false; object.rsaEnabled = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; object.restrictVisibility = false; } if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; if (message.parentId != null && message.hasOwnProperty("parentId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.parentId = typeof message.parentId === "number" ? BigInt(message.parentId) : $util.Long.fromBits(message.parentId.low >>> 0, message.parentId.high >>> 0, false).toBigInt(); - else if (typeof message.parentId === "number") + if (typeof message.parentId === "number") object.parentId = options.longs === String ? String(message.parentId) : message.parentId; else object.parentId = options.longs === String ? $util.Long.prototype.toString.call(message.parentId) : options.longs === Number ? new $util.LongBits(message.parentId.low >>> 0, message.parentId.high >>> 0).toNumber() : message.parentId; if (message.bridgeId != null && message.hasOwnProperty("bridgeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.bridgeId = typeof message.bridgeId === "number" ? BigInt(message.bridgeId) : $util.Long.fromBits(message.bridgeId.low >>> 0, message.bridgeId.high >>> 0, false).toBigInt(); - else if (typeof message.bridgeId === "number") + if (typeof message.bridgeId === "number") object.bridgeId = options.longs === String ? String(message.bridgeId) : message.bridgeId; else object.bridgeId = options.longs === String ? $util.Long.prototype.toString.call(message.bridgeId) : options.longs === Number ? new $util.LongBits(message.bridgeId.low >>> 0, message.bridgeId.high >>> 0).toNumber() : message.bridgeId; if (message.scimId != null && message.hasOwnProperty("scimId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.scimId = typeof message.scimId === "number" ? BigInt(message.scimId) : $util.Long.fromBits(message.scimId.low >>> 0, message.scimId.high >>> 0, false).toBigInt(); - else if (typeof message.scimId === "number") + if (typeof message.scimId === "number") object.scimId = options.longs === String ? String(message.scimId) : message.scimId; else object.scimId = options.longs === String ? $util.Long.prototype.toString.call(message.scimId) : options.longs === Number ? new $util.LongBits(message.scimId.low >>> 0, message.scimId.high >>> 0).toNumber() : message.scimId; if (message.licenseId != null && message.hasOwnProperty("licenseId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.licenseId = typeof message.licenseId === "number" ? BigInt(message.licenseId) : $util.Long.fromBits(message.licenseId.low >>> 0, message.licenseId.high >>> 0, false).toBigInt(); - else if (typeof message.licenseId === "number") + if (typeof message.licenseId === "number") object.licenseId = options.longs === String ? String(message.licenseId) : message.licenseId; else object.licenseId = options.longs === String ? $util.Long.prototype.toString.call(message.licenseId) : options.longs === Number ? new $util.LongBits(message.licenseId.low >>> 0, message.licenseId.high >>> 0).toNumber() : message.licenseId; @@ -68475,9 +63667,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.rsaEnabled != null && message.hasOwnProperty("rsaEnabled")) object.rsaEnabled = message.rsaEnabled; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, false).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber() : message.ssoServiceProviderId; @@ -68486,9 +63676,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.ssoServiceProviderIds && message.ssoServiceProviderIds.length) { object.ssoServiceProviderIds = []; for (let j = 0; j < message.ssoServiceProviderIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderIds[j] = typeof message.ssoServiceProviderIds[j] === "number" ? BigInt(message.ssoServiceProviderIds[j]) : $util.Long.fromBits(message.ssoServiceProviderIds[j].low >>> 0, message.ssoServiceProviderIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.ssoServiceProviderIds[j] === "number") + if (typeof message.ssoServiceProviderIds[j] === "number") object.ssoServiceProviderIds[j] = options.longs === String ? String(message.ssoServiceProviderIds[j]) : message.ssoServiceProviderIds[j]; else object.ssoServiceProviderIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderIds[j]) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderIds[j].low >>> 0, message.ssoServiceProviderIds[j].high >>> 0).toNumber() : message.ssoServiceProviderIds[j]; @@ -68551,7 +63739,7 @@ export const Enterprise = $root.Enterprise = (() => { function Role(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -68632,13 +63820,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Role.encode = function encode(message, writer, q) { + Role.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -68680,18 +63864,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Role.decode = function decode(reader, length, error, long) { + Role.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Role(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -68722,7 +63900,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -68753,13 +63931,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Role.verify = function verify(message, long) { + Role.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -68792,17 +63966,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.Role} Role */ - Role.fromObject = function fromObject(object, long) { + Role.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.Role) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.Role(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -68811,7 +63981,7 @@ export const Enterprise = $root.Enterprise = (() => { message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -68840,25 +64010,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Role.toObject = function toObject(message, options, q) { + Role.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.encryptedData = ""; object.keyType = ""; object.visibleBelow = false; @@ -68866,16 +64032,12 @@ export const Enterprise = $root.Enterprise = (() => { object.roleType = ""; } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -68973,7 +64135,7 @@ export const Enterprise = $root.Enterprise = (() => { function User(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -69102,13 +64264,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - User.encode = function encode(message, writer, q) { + User.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -69162,18 +64320,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - User.decode = function decode(reader, length, error, long) { + User.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.User(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -69228,7 +64380,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -69259,13 +64411,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - User.verify = function verify(message, long) { + User.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -69324,17 +64472,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.User} User */ - User.fromObject = function fromObject(object, long) { + User.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.User) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.User(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -69343,7 +64487,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -69364,7 +64508,7 @@ export const Enterprise = $root.Enterprise = (() => { message.userId = object.userId | 0; if (object.accountShareExpiration != null) if ($util.Long) - message.accountShareExpiration = $util.Long.fromValue(object.accountShareExpiration, false); + (message.accountShareExpiration = $util.Long.fromValue(object.accountShareExpiration)).unsigned = false; else if (typeof object.accountShareExpiration === "string") message.accountShareExpiration = parseInt(object.accountShareExpiration, 10); else if (typeof object.accountShareExpiration === "number") @@ -69417,25 +64561,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - User.toObject = function toObject(message, options, q) { + User.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.encryptedData = ""; object.keyType = ""; object.username = ""; @@ -69444,25 +64584,21 @@ export const Enterprise = $root.Enterprise = (() => { object.userId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.accountShareExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.accountShareExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.accountShareExpiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.accountShareExpiration = options.longs === String ? "0" : 0; object.fullName = ""; object.jobTitle = ""; object.tfaEnabled = false; object.transferAcceptanceStatus = options.enums === String ? "UNDEFINED" : 0; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -69479,9 +64615,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.userId != null && message.hasOwnProperty("userId")) object.userId = message.userId; if (message.accountShareExpiration != null && message.hasOwnProperty("accountShareExpiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.accountShareExpiration = typeof message.accountShareExpiration === "number" ? BigInt(message.accountShareExpiration) : $util.Long.fromBits(message.accountShareExpiration.low >>> 0, message.accountShareExpiration.high >>> 0, false).toBigInt(); - else if (typeof message.accountShareExpiration === "number") + if (typeof message.accountShareExpiration === "number") object.accountShareExpiration = options.longs === String ? String(message.accountShareExpiration) : message.accountShareExpiration; else object.accountShareExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.accountShareExpiration) : options.longs === Number ? new $util.LongBits(message.accountShareExpiration.low >>> 0, message.accountShareExpiration.high >>> 0).toNumber() : message.accountShareExpiration; @@ -69546,7 +64680,7 @@ export const Enterprise = $root.Enterprise = (() => { function UserAlias(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -69587,13 +64721,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserAlias.encode = function encode(message, writer, q) { + UserAlias.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -69625,18 +64755,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserAlias.decode = function decode(reader, length, error, long) { + UserAlias.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserAlias(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -69647,7 +64771,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -69678,13 +64802,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserAlias.verify = function verify(message, long) { + UserAlias.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -69702,17 +64822,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserAlias} UserAlias */ - UserAlias.fromObject = function fromObject(object, long) { + UserAlias.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserAlias) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserAlias(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -69733,26 +64849,20 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserAlias.toObject = function toObject(message, options, q) { + UserAlias.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.username = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -69816,7 +64926,7 @@ export const Enterprise = $root.Enterprise = (() => { function ComplianceReportMetaData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -69897,13 +65007,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceReportMetaData.encode = function encode(message, writer, q) { + ComplianceReportMetaData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.reportUid != null && Object.hasOwnProperty.call(message, "reportUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.reportUid); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -69945,18 +65051,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceReportMetaData.decode = function decode(reader, length, error, long) { + ComplianceReportMetaData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportMetaData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.reportUid = reader.bytes(); @@ -69987,7 +65087,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -70018,13 +65118,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceReportMetaData.verify = function verify(message, long) { + ComplianceReportMetaData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.reportUid != null && message.hasOwnProperty("reportUid")) if (!(message.reportUid && typeof message.reportUid.length === "number" || $util.isString(message.reportUid))) return "reportUid: buffer expected"; @@ -70057,13 +65153,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceReportMetaData} ComplianceReportMetaData */ - ComplianceReportMetaData.fromObject = function fromObject(object, long) { + ComplianceReportMetaData.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceReportMetaData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceReportMetaData(); if (object.reportUid != null) if (typeof object.reportUid === "string") @@ -70072,7 +65164,7 @@ export const Enterprise = $root.Enterprise = (() => { message.reportUid = object.reportUid; if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -70083,7 +65175,7 @@ export const Enterprise = $root.Enterprise = (() => { message.reportName = String(object.reportName); if (object.dateGenerated != null) if ($util.Long) - message.dateGenerated = $util.Long.fromValue(object.dateGenerated, false); + (message.dateGenerated = $util.Long.fromValue(object.dateGenerated)).unsigned = false; else if (typeof object.dateGenerated === "string") message.dateGenerated = parseInt(object.dateGenerated, 10); else if (typeof object.dateGenerated === "number") @@ -70108,13 +65200,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceReportMetaData.toObject = function toObject(message, options, q) { + ComplianceReportMetaData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -70126,15 +65214,15 @@ export const Enterprise = $root.Enterprise = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.reportName = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateGenerated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dateGenerated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dateGenerated = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dateGenerated = options.longs === String ? "0" : 0; object.runByName = ""; object.numberOfOwners = 0; object.numberOfRecords = 0; @@ -70142,18 +65230,14 @@ export const Enterprise = $root.Enterprise = (() => { if (message.reportUid != null && message.hasOwnProperty("reportUid")) object.reportUid = options.bytes === String ? $util.base64.encode(message.reportUid, 0, message.reportUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.reportUid) : message.reportUid; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; if (message.reportName != null && message.hasOwnProperty("reportName")) object.reportName = message.reportName; if (message.dateGenerated != null && message.hasOwnProperty("dateGenerated")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dateGenerated = typeof message.dateGenerated === "number" ? BigInt(message.dateGenerated) : $util.Long.fromBits(message.dateGenerated.low >>> 0, message.dateGenerated.high >>> 0, false).toBigInt(); - else if (typeof message.dateGenerated === "number") + if (typeof message.dateGenerated === "number") object.dateGenerated = options.longs === String ? String(message.dateGenerated) : message.dateGenerated; else object.dateGenerated = options.longs === String ? $util.Long.prototype.toString.call(message.dateGenerated) : options.longs === Number ? new $util.LongBits(message.dateGenerated.low >>> 0, message.dateGenerated.high >>> 0).toNumber() : message.dateGenerated; @@ -70217,7 +65301,7 @@ export const Enterprise = $root.Enterprise = (() => { function ManagedNode(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -70266,13 +65350,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ManagedNode.encode = function encode(message, writer, q) { + ManagedNode.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.managedNodeId != null && Object.hasOwnProperty.call(message, "managedNodeId")) @@ -70306,18 +65386,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ManagedNode.decode = function decode(reader, length, error, long) { + ManagedNode.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ManagedNode(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -70332,7 +65406,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -70363,13 +65437,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ManagedNode.verify = function verify(message, long) { + ManagedNode.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -70390,17 +65460,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ManagedNode} ManagedNode */ - ManagedNode.fromObject = function fromObject(object, long) { + ManagedNode.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ManagedNode) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ManagedNode(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -70409,7 +65475,7 @@ export const Enterprise = $root.Enterprise = (() => { message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.managedNodeId != null) if ($util.Long) - message.managedNodeId = $util.Long.fromValue(object.managedNodeId, false); + (message.managedNodeId = $util.Long.fromValue(object.managedNodeId)).unsigned = false; else if (typeof object.managedNodeId === "string") message.managedNodeId = parseInt(object.managedNodeId, 10); else if (typeof object.managedNodeId === "number") @@ -70430,38 +65496,30 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ManagedNode.toObject = function toObject(message, options, q) { + ManagedNode.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.managedNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.managedNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.managedNodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.managedNodeId = options.longs === String ? "0" : 0; object.cascadeNodeManagement = false; } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.managedNodeId = typeof message.managedNodeId === "number" ? BigInt(message.managedNodeId) : $util.Long.fromBits(message.managedNodeId.low >>> 0, message.managedNodeId.high >>> 0, false).toBigInt(); - else if (typeof message.managedNodeId === "number") + if (typeof message.managedNodeId === "number") object.managedNodeId = options.longs === String ? String(message.managedNodeId) : message.managedNodeId; else object.managedNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.managedNodeId) : options.longs === Number ? new $util.LongBits(message.managedNodeId.low >>> 0, message.managedNodeId.high >>> 0).toNumber() : message.managedNodeId; @@ -70522,7 +65580,7 @@ export const Enterprise = $root.Enterprise = (() => { this.privileges = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -70571,13 +65629,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserManagedNode.encode = function encode(message, writer, q) { + UserManagedNode.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); if (message.cascadeNodeManagement != null && Object.hasOwnProperty.call(message, "cascadeNodeManagement")) @@ -70612,18 +65666,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserManagedNode.decode = function decode(reader, length, error, long) { + UserManagedNode.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserManagedNode(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nodeId = reader.int64(); @@ -70640,7 +65688,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -70671,13 +65719,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserManagedNode.verify = function verify(message, long) { + UserManagedNode.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeId != null && message.hasOwnProperty("nodeId")) if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) return "nodeId: integer|Long expected"; @@ -70702,17 +65746,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserManagedNode} UserManagedNode */ - UserManagedNode.fromObject = function fromObject(object, long) { + UserManagedNode.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserManagedNode) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserManagedNode(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -70740,28 +65780,22 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserManagedNode.toObject = function toObject(message, options, q) { + UserManagedNode.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.privileges = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.cascadeNodeManagement = false; } if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -70827,7 +65861,7 @@ export const Enterprise = $root.Enterprise = (() => { this.userManagedNodes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -70876,16 +65910,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserPrivilege.encode = function encode(message, writer, q) { + UserPrivilege.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userManagedNodes != null && message.userManagedNodes.length) for (let i = 0; i < message.userManagedNodes.length; ++i) - $root.Enterprise.UserManagedNode.encode(message.userManagedNodes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.UserManagedNode.encode(message.userManagedNodes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) @@ -70917,23 +65947,17 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserPrivilege.decode = function decode(reader, length, error, long) { + UserPrivilege.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserPrivilege(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.userManagedNodes && message.userManagedNodes.length)) message.userManagedNodes = []; - message.userManagedNodes.push($root.Enterprise.UserManagedNode.decode(reader, reader.uint32(), undefined, long + 1)); + message.userManagedNodes.push($root.Enterprise.UserManagedNode.decode(reader, reader.uint32())); break; } case 2: { @@ -70945,7 +65969,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -70976,18 +66000,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserPrivilege.verify = function verify(message, long) { + UserPrivilege.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userManagedNodes != null && message.hasOwnProperty("userManagedNodes")) { if (!Array.isArray(message.userManagedNodes)) return "userManagedNodes: array expected"; for (let i = 0; i < message.userManagedNodes.length; ++i) { - let error = $root.Enterprise.UserManagedNode.verify(message.userManagedNodes[i], long + 1); + let error = $root.Enterprise.UserManagedNode.verify(message.userManagedNodes[i]); if (error) return "userManagedNodes." + error; } @@ -71009,13 +66029,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserPrivilege} UserPrivilege */ - UserPrivilege.fromObject = function fromObject(object, long) { + UserPrivilege.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserPrivilege) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserPrivilege(); if (object.userManagedNodes) { if (!Array.isArray(object.userManagedNodes)) @@ -71024,12 +66040,12 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.userManagedNodes.length; ++i) { if (typeof object.userManagedNodes[i] !== "object") throw TypeError(".Enterprise.UserPrivilege.userManagedNodes: object expected"); - message.userManagedNodes[i] = $root.Enterprise.UserManagedNode.fromObject(object.userManagedNodes[i], long + 1); + message.userManagedNodes[i] = $root.Enterprise.UserManagedNode.fromObject(object.userManagedNodes[i]); } } if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -71050,33 +66066,27 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserPrivilege.toObject = function toObject(message, options, q) { + UserPrivilege.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.userManagedNodes = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.encryptedData = ""; } if (message.userManagedNodes && message.userManagedNodes.length) { object.userManagedNodes = []; for (let j = 0; j < message.userManagedNodes.length; ++j) - object.userManagedNodes[j] = $root.Enterprise.UserManagedNode.toObject(message.userManagedNodes[j], options, q + 1); + object.userManagedNodes[j] = $root.Enterprise.UserManagedNode.toObject(message.userManagedNodes[j], options); } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -71135,7 +66145,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -71176,13 +66186,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleUser.encode = function encode(message, writer, q) { + RoleUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) @@ -71214,18 +66220,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleUser.decode = function decode(reader, length, error, long) { + RoleUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -71236,7 +66236,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -71267,13 +66267,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleUser.verify = function verify(message, long) { + RoleUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -71291,17 +66287,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleUser} RoleUser */ - RoleUser.fromObject = function fromObject(object, long) { + RoleUser.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleUser(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -71310,7 +66302,7 @@ export const Enterprise = $root.Enterprise = (() => { message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -71329,37 +66321,29 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleUser.toObject = function toObject(message, options, q) { + RoleUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -71417,7 +66401,7 @@ export const Enterprise = $root.Enterprise = (() => { function RolePrivilege(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -71466,13 +66450,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolePrivilege.encode = function encode(message, writer, q) { + RolePrivilege.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.managedNodeId != null && Object.hasOwnProperty.call(message, "managedNodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.managedNodeId); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) @@ -71506,18 +66486,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolePrivilege.decode = function decode(reader, length, error, long) { + RolePrivilege.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RolePrivilege(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.managedNodeId = reader.int64(); @@ -71532,7 +66506,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -71563,13 +66537,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RolePrivilege.verify = function verify(message, long) { + RolePrivilege.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) if (!$util.isInteger(message.managedNodeId) && !(message.managedNodeId && $util.isInteger(message.managedNodeId.low) && $util.isInteger(message.managedNodeId.high))) return "managedNodeId: integer|Long expected"; @@ -71590,17 +66560,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RolePrivilege} RolePrivilege */ - RolePrivilege.fromObject = function fromObject(object, long) { + RolePrivilege.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RolePrivilege) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RolePrivilege(); if (object.managedNodeId != null) if ($util.Long) - message.managedNodeId = $util.Long.fromValue(object.managedNodeId, false); + (message.managedNodeId = $util.Long.fromValue(object.managedNodeId)).unsigned = false; else if (typeof object.managedNodeId === "string") message.managedNodeId = parseInt(object.managedNodeId, 10); else if (typeof object.managedNodeId === "number") @@ -71609,7 +66575,7 @@ export const Enterprise = $root.Enterprise = (() => { message.managedNodeId = new $util.LongBits(object.managedNodeId.low >>> 0, object.managedNodeId.high >>> 0).toNumber(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -71630,38 +66596,30 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RolePrivilege.toObject = function toObject(message, options, q) { + RolePrivilege.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.managedNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.managedNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.managedNodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.managedNodeId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; object.privilegeType = ""; } if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.managedNodeId = typeof message.managedNodeId === "number" ? BigInt(message.managedNodeId) : $util.Long.fromBits(message.managedNodeId.low >>> 0, message.managedNodeId.high >>> 0, false).toBigInt(); - else if (typeof message.managedNodeId === "number") + if (typeof message.managedNodeId === "number") object.managedNodeId = options.longs === String ? String(message.managedNodeId) : message.managedNodeId; else object.managedNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.managedNodeId) : options.longs === Number ? new $util.LongBits(message.managedNodeId.low >>> 0, message.managedNodeId.high >>> 0).toNumber() : message.managedNodeId; if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -71722,7 +66680,7 @@ export const Enterprise = $root.Enterprise = (() => { this.privileges = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -71771,13 +66729,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivilegesByManagedNode.encode = function encode(message, writer, q) { + PrivilegesByManagedNode.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.managedNodeId != null && Object.hasOwnProperty.call(message, "managedNodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.managedNodeId); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) @@ -71812,18 +66766,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivilegesByManagedNode.decode = function decode(reader, length, error, long) { + PrivilegesByManagedNode.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.PrivilegesByManagedNode(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.managedNodeId = reader.int64(); @@ -71840,7 +66788,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -71871,13 +66819,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrivilegesByManagedNode.verify = function verify(message, long) { + PrivilegesByManagedNode.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) if (!$util.isInteger(message.managedNodeId) && !(message.managedNodeId && $util.isInteger(message.managedNodeId.low) && $util.isInteger(message.managedNodeId.high))) return "managedNodeId: integer|Long expected"; @@ -71902,17 +66846,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.PrivilegesByManagedNode} PrivilegesByManagedNode */ - PrivilegesByManagedNode.fromObject = function fromObject(object, long) { + PrivilegesByManagedNode.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.PrivilegesByManagedNode) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.PrivilegesByManagedNode(); if (object.managedNodeId != null) if ($util.Long) - message.managedNodeId = $util.Long.fromValue(object.managedNodeId, false); + (message.managedNodeId = $util.Long.fromValue(object.managedNodeId)).unsigned = false; else if (typeof object.managedNodeId === "string") message.managedNodeId = parseInt(object.managedNodeId, 10); else if (typeof object.managedNodeId === "number") @@ -71921,7 +66861,7 @@ export const Enterprise = $root.Enterprise = (() => { message.managedNodeId = new $util.LongBits(object.managedNodeId.low >>> 0, object.managedNodeId.high >>> 0).toNumber(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -71947,39 +66887,31 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrivilegesByManagedNode.toObject = function toObject(message, options, q) { + PrivilegesByManagedNode.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.privileges = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.managedNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.managedNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.managedNodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.managedNodeId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; } if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.managedNodeId = typeof message.managedNodeId === "number" ? BigInt(message.managedNodeId) : $util.Long.fromBits(message.managedNodeId.low >>> 0, message.managedNodeId.high >>> 0, false).toBigInt(); - else if (typeof message.managedNodeId === "number") + if (typeof message.managedNodeId === "number") object.managedNodeId = options.longs === String ? String(message.managedNodeId) : message.managedNodeId; else object.managedNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.managedNodeId) : options.longs === Number ? new $util.LongBits(message.managedNodeId.low >>> 0, message.managedNodeId.high >>> 0).toNumber() : message.managedNodeId; if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -72042,7 +66974,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleEnforcement(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -72091,13 +67023,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleEnforcement.encode = function encode(message, writer, q) { + RoleEnforcement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.enforcementType != null && Object.hasOwnProperty.call(message, "enforcementType")) @@ -72131,18 +67059,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleEnforcement.decode = function decode(reader, length, error, long) { + RoleEnforcement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleEnforcement(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -72157,7 +67079,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -72188,13 +67110,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleEnforcement.verify = function verify(message, long) { + RoleEnforcement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -72215,17 +67133,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleEnforcement} RoleEnforcement */ - RoleEnforcement.fromObject = function fromObject(object, long) { + RoleEnforcement.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleEnforcement) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleEnforcement(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -72248,27 +67162,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleEnforcement.toObject = function toObject(message, options, q) { + RoleEnforcement.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; object.enforcementType = ""; object.value = ""; } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -72335,7 +67243,7 @@ export const Enterprise = $root.Enterprise = (() => { function Team(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -72424,13 +67332,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Team.encode = function encode(message, writer, q) { + Team.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -72474,18 +67378,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Team.decode = function decode(reader, length, error, long) { + Team.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Team(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -72520,7 +67418,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -72551,13 +67449,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Team.verify = function verify(message, long) { + Team.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -72593,13 +67487,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.Team} Team */ - Team.fromObject = function fromObject(object, long) { + Team.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.Team) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.Team(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -72610,7 +67500,7 @@ export const Enterprise = $root.Enterprise = (() => { message.name = String(object.name); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -72639,13 +67529,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Team.toObject = function toObject(message, options, q) { + Team.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -72658,9 +67544,9 @@ export const Enterprise = $root.Enterprise = (() => { object.name = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.restrictEdit = false; object.restrictShare = false; object.restrictView = false; @@ -72672,9 +67558,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -72742,7 +67626,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -72791,13 +67675,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamUser.encode = function encode(message, writer, q) { + TeamUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) @@ -72831,18 +67711,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamUser.decode = function decode(reader, length, error, long) { + TeamUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -72857,7 +67731,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -72888,13 +67762,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamUser.verify = function verify(message, long) { + TeamUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -72915,13 +67785,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamUser} TeamUser */ - TeamUser.fromObject = function fromObject(object, long) { + TeamUser.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamUser(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -72930,7 +67796,7 @@ export const Enterprise = $root.Enterprise = (() => { message.teamUid = object.teamUid; if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -72951,13 +67817,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamUser.toObject = function toObject(message, options, q) { + TeamUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -72969,17 +67831,15 @@ export const Enterprise = $root.Enterprise = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.userType = ""; } if (message.teamUid != null && message.hasOwnProperty("teamUid")) object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -73038,7 +67898,7 @@ export const Enterprise = $root.Enterprise = (() => { this.distributors = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -73071,16 +67931,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDistributorInfoResponse.encode = function encode(message, writer, q) { + GetDistributorInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.distributors != null && message.distributors.length) for (let i = 0; i < message.distributors.length; ++i) - $root.Enterprise.Distributor.encode(message.distributors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.Distributor.encode(message.distributors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -73108,27 +67964,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDistributorInfoResponse.decode = function decode(reader, length, error, long) { + GetDistributorInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetDistributorInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.distributors && message.distributors.length)) message.distributors = []; - message.distributors.push($root.Enterprise.Distributor.decode(reader, reader.uint32(), undefined, long + 1)); + message.distributors.push($root.Enterprise.Distributor.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -73159,18 +68009,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDistributorInfoResponse.verify = function verify(message, long) { + GetDistributorInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.distributors != null && message.hasOwnProperty("distributors")) { if (!Array.isArray(message.distributors)) return "distributors: array expected"; for (let i = 0; i < message.distributors.length; ++i) { - let error = $root.Enterprise.Distributor.verify(message.distributors[i], long + 1); + let error = $root.Enterprise.Distributor.verify(message.distributors[i]); if (error) return "distributors." + error; } @@ -73186,13 +68032,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.GetDistributorInfoResponse} GetDistributorInfoResponse */ - GetDistributorInfoResponse.fromObject = function fromObject(object, long) { + GetDistributorInfoResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.GetDistributorInfoResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.GetDistributorInfoResponse(); if (object.distributors) { if (!Array.isArray(object.distributors)) @@ -73201,7 +68043,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.distributors.length; ++i) { if (typeof object.distributors[i] !== "object") throw TypeError(".Enterprise.GetDistributorInfoResponse.distributors: object expected"); - message.distributors[i] = $root.Enterprise.Distributor.fromObject(object.distributors[i], long + 1); + message.distributors[i] = $root.Enterprise.Distributor.fromObject(object.distributors[i]); } } return message; @@ -73216,20 +68058,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDistributorInfoResponse.toObject = function toObject(message, options, q) { + GetDistributorInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.distributors = []; if (message.distributors && message.distributors.length) { object.distributors = []; for (let j = 0; j < message.distributors.length; ++j) - object.distributors[j] = $root.Enterprise.Distributor.toObject(message.distributors[j], options, q + 1); + object.distributors[j] = $root.Enterprise.Distributor.toObject(message.distributors[j], options); } return object; }; @@ -73285,7 +68123,7 @@ export const Enterprise = $root.Enterprise = (() => { this.mspInfos = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -73326,18 +68164,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Distributor.encode = function encode(message, writer, q) { + Distributor.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.mspInfos != null && message.mspInfos.length) for (let i = 0; i < message.mspInfos.length; ++i) - $root.Enterprise.MspInfo.encode(message.mspInfos[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.MspInfo.encode(message.mspInfos[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -73365,18 +68199,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Distributor.decode = function decode(reader, length, error, long) { + Distributor.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Distributor(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -73385,11 +68213,11 @@ export const Enterprise = $root.Enterprise = (() => { case 2: { if (!(message.mspInfos && message.mspInfos.length)) message.mspInfos = []; - message.mspInfos.push($root.Enterprise.MspInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.mspInfos.push($root.Enterprise.MspInfo.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -73420,13 +68248,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Distributor.verify = function verify(message, long) { + Distributor.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -73434,7 +68258,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.mspInfos)) return "mspInfos: array expected"; for (let i = 0; i < message.mspInfos.length; ++i) { - let error = $root.Enterprise.MspInfo.verify(message.mspInfos[i], long + 1); + let error = $root.Enterprise.MspInfo.verify(message.mspInfos[i]); if (error) return "mspInfos." + error; } @@ -73450,13 +68274,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.Distributor} Distributor */ - Distributor.fromObject = function fromObject(object, long) { + Distributor.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.Distributor) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.Distributor(); if (object.name != null) message.name = String(object.name); @@ -73467,7 +68287,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.mspInfos.length; ++i) { if (typeof object.mspInfos[i] !== "object") throw TypeError(".Enterprise.Distributor.mspInfos: object expected"); - message.mspInfos[i] = $root.Enterprise.MspInfo.fromObject(object.mspInfos[i], long + 1); + message.mspInfos[i] = $root.Enterprise.MspInfo.fromObject(object.mspInfos[i]); } } return message; @@ -73482,13 +68302,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Distributor.toObject = function toObject(message, options, q) { + Distributor.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.mspInfos = []; @@ -73499,7 +68315,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.mspInfos && message.mspInfos.length) { object.mspInfos = []; for (let j = 0; j < message.mspInfos.length; ++j) - object.mspInfos[j] = $root.Enterprise.MspInfo.toObject(message.mspInfos[j], options, q + 1); + object.mspInfos[j] = $root.Enterprise.MspInfo.toObject(message.mspInfos[j], options); } return object; }; @@ -73565,7 +68381,7 @@ export const Enterprise = $root.Enterprise = (() => { this.addOns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -73662,13 +68478,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MspInfo.encode = function encode(message, writer, q) { + MspInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) @@ -73685,12 +68497,12 @@ export const Enterprise = $root.Enterprise = (() => { writer.uint32(/* id 6, wireType 2 =*/50).string(message.maxFilePlanType); if (message.managedCompanies != null && message.managedCompanies.length) for (let i = 0; i < message.managedCompanies.length; ++i) - $root.Enterprise.ManagedCompany.encode(message.managedCompanies[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Enterprise.ManagedCompany.encode(message.managedCompanies[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.allowUnlimitedLicenses != null && Object.hasOwnProperty.call(message, "allowUnlimitedLicenses")) writer.uint32(/* id 8, wireType 0 =*/64).bool(message.allowUnlimitedLicenses); if (message.addOns != null && message.addOns.length) for (let i = 0; i < message.addOns.length; ++i) - $root.Enterprise.LicenseAddOn.encode(message.addOns[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.Enterprise.LicenseAddOn.encode(message.addOns[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; @@ -73718,18 +68530,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MspInfo.decode = function decode(reader, length, error, long) { + MspInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MspInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseId = reader.int32(); @@ -73762,7 +68568,7 @@ export const Enterprise = $root.Enterprise = (() => { case 7: { if (!(message.managedCompanies && message.managedCompanies.length)) message.managedCompanies = []; - message.managedCompanies.push($root.Enterprise.ManagedCompany.decode(reader, reader.uint32(), undefined, long + 1)); + message.managedCompanies.push($root.Enterprise.ManagedCompany.decode(reader, reader.uint32())); break; } case 8: { @@ -73772,11 +68578,11 @@ export const Enterprise = $root.Enterprise = (() => { case 9: { if (!(message.addOns && message.addOns.length)) message.addOns = []; - message.addOns.push($root.Enterprise.LicenseAddOn.decode(reader, reader.uint32(), undefined, long + 1)); + message.addOns.push($root.Enterprise.LicenseAddOn.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -73807,13 +68613,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MspInfo.verify = function verify(message, long) { + MspInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) if (!$util.isInteger(message.enterpriseId)) return "enterpriseId: integer expected"; @@ -73844,7 +68646,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.managedCompanies)) return "managedCompanies: array expected"; for (let i = 0; i < message.managedCompanies.length; ++i) { - let error = $root.Enterprise.ManagedCompany.verify(message.managedCompanies[i], long + 1); + let error = $root.Enterprise.ManagedCompany.verify(message.managedCompanies[i]); if (error) return "managedCompanies." + error; } @@ -73856,7 +68658,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.addOns)) return "addOns: array expected"; for (let i = 0; i < message.addOns.length; ++i) { - let error = $root.Enterprise.LicenseAddOn.verify(message.addOns[i], long + 1); + let error = $root.Enterprise.LicenseAddOn.verify(message.addOns[i]); if (error) return "addOns." + error; } @@ -73872,13 +68674,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.MspInfo} MspInfo */ - MspInfo.fromObject = function fromObject(object, long) { + MspInfo.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.MspInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.MspInfo(); if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; @@ -73909,7 +68707,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.managedCompanies.length; ++i) { if (typeof object.managedCompanies[i] !== "object") throw TypeError(".Enterprise.MspInfo.managedCompanies: object expected"); - message.managedCompanies[i] = $root.Enterprise.ManagedCompany.fromObject(object.managedCompanies[i], long + 1); + message.managedCompanies[i] = $root.Enterprise.ManagedCompany.fromObject(object.managedCompanies[i]); } } if (object.allowUnlimitedLicenses != null) @@ -73921,7 +68719,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.addOns.length; ++i) { if (typeof object.addOns[i] !== "object") throw TypeError(".Enterprise.MspInfo.addOns: object expected"); - message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i], long + 1); + message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i]); } } return message; @@ -73936,13 +68734,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MspInfo.toObject = function toObject(message, options, q) { + MspInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.allowedMcProducts = []; @@ -73978,14 +68772,14 @@ export const Enterprise = $root.Enterprise = (() => { if (message.managedCompanies && message.managedCompanies.length) { object.managedCompanies = []; for (let j = 0; j < message.managedCompanies.length; ++j) - object.managedCompanies[j] = $root.Enterprise.ManagedCompany.toObject(message.managedCompanies[j], options, q + 1); + object.managedCompanies[j] = $root.Enterprise.ManagedCompany.toObject(message.managedCompanies[j], options); } if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) object.allowUnlimitedLicenses = message.allowUnlimitedLicenses; if (message.addOns && message.addOns.length) { object.addOns = []; for (let j = 0; j < message.addOns.length; ++j) - object.addOns[j] = $root.Enterprise.LicenseAddOn.toObject(message.addOns[j], options, q + 1); + object.addOns[j] = $root.Enterprise.LicenseAddOn.toObject(message.addOns[j], options); } return object; }; @@ -74051,7 +68845,7 @@ export const Enterprise = $root.Enterprise = (() => { this.addOns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -74172,13 +68966,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ManagedCompany.encode = function encode(message, writer, q) { + ManagedCompany.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mcEnterpriseId); if (message.mcEnterpriseName != null && Object.hasOwnProperty.call(message, "mcEnterpriseName")) @@ -74201,7 +68991,7 @@ export const Enterprise = $root.Enterprise = (() => { writer.uint32(/* id 10, wireType 2 =*/82).string(message.filePlanType); if (message.addOns != null && message.addOns.length) for (let i = 0; i < message.addOns.length; ++i) - $root.Enterprise.LicenseAddOn.encode(message.addOns[i], writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.Enterprise.LicenseAddOn.encode(message.addOns[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.treeKeyTypeId != null && Object.hasOwnProperty.call(message, "treeKeyTypeId")) writer.uint32(/* id 12, wireType 0 =*/96).int32(message.treeKeyTypeId); return writer; @@ -74231,18 +69021,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ManagedCompany.decode = function decode(reader, length, error, long) { + ManagedCompany.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ManagedCompany(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.mcEnterpriseId = reader.int32(); @@ -74287,7 +69071,7 @@ export const Enterprise = $root.Enterprise = (() => { case 11: { if (!(message.addOns && message.addOns.length)) message.addOns = []; - message.addOns.push($root.Enterprise.LicenseAddOn.decode(reader, reader.uint32(), undefined, long + 1)); + message.addOns.push($root.Enterprise.LicenseAddOn.decode(reader, reader.uint32())); break; } case 12: { @@ -74295,7 +69079,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -74326,13 +69110,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ManagedCompany.verify = function verify(message, long) { + ManagedCompany.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) if (!$util.isInteger(message.mcEnterpriseId)) return "mcEnterpriseId: integer expected"; @@ -74367,7 +69147,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.addOns)) return "addOns: array expected"; for (let i = 0; i < message.addOns.length; ++i) { - let error = $root.Enterprise.LicenseAddOn.verify(message.addOns[i], long + 1); + let error = $root.Enterprise.LicenseAddOn.verify(message.addOns[i]); if (error) return "addOns." + error; } @@ -74386,13 +69166,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ManagedCompany} ManagedCompany */ - ManagedCompany.fromObject = function fromObject(object, long) { + ManagedCompany.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ManagedCompany) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ManagedCompany(); if (object.mcEnterpriseId != null) message.mcEnterpriseId = object.mcEnterpriseId | 0; @@ -74400,7 +69176,7 @@ export const Enterprise = $root.Enterprise = (() => { message.mcEnterpriseName = String(object.mcEnterpriseName); if (object.mspNodeId != null) if ($util.Long) - message.mspNodeId = $util.Long.fromValue(object.mspNodeId, false); + (message.mspNodeId = $util.Long.fromValue(object.mspNodeId)).unsigned = false; else if (typeof object.mspNodeId === "string") message.mspNodeId = parseInt(object.mspNodeId, 10); else if (typeof object.mspNodeId === "number") @@ -74419,7 +69195,7 @@ export const Enterprise = $root.Enterprise = (() => { message.treeKey = String(object.treeKey); if (object.treeKeyRole != null) if ($util.Long) - message.treeKeyRole = $util.Long.fromValue(object.treeKeyRole, false); + (message.treeKeyRole = $util.Long.fromValue(object.treeKeyRole)).unsigned = false; else if (typeof object.treeKeyRole === "string") message.treeKeyRole = parseInt(object.treeKeyRole, 10); else if (typeof object.treeKeyRole === "number") @@ -74435,7 +69211,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.addOns.length; ++i) { if (typeof object.addOns[i] !== "object") throw TypeError(".Enterprise.ManagedCompany.addOns: object expected"); - message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i], long + 1); + message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i]); } } if (object.treeKeyTypeId != null) @@ -74452,13 +69228,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ManagedCompany.toObject = function toObject(message, options, q) { + ManagedCompany.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.addOns = []; @@ -74467,9 +69239,9 @@ export const Enterprise = $root.Enterprise = (() => { object.mcEnterpriseName = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.mspNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.mspNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.mspNodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.mspNodeId = options.longs === String ? "0" : 0; object.numberOfSeats = 0; object.numberOfUsers = 0; object.productId = ""; @@ -74477,9 +69249,9 @@ export const Enterprise = $root.Enterprise = (() => { object.treeKey = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.treeKeyRole = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.treeKeyRole = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.treeKeyRole = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.treeKeyRole = options.longs === String ? "0" : 0; object.filePlanType = ""; object.treeKeyTypeId = 0; } @@ -74488,9 +69260,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.mcEnterpriseName != null && message.hasOwnProperty("mcEnterpriseName")) object.mcEnterpriseName = message.mcEnterpriseName; if (message.mspNodeId != null && message.hasOwnProperty("mspNodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.mspNodeId = typeof message.mspNodeId === "number" ? BigInt(message.mspNodeId) : $util.Long.fromBits(message.mspNodeId.low >>> 0, message.mspNodeId.high >>> 0, false).toBigInt(); - else if (typeof message.mspNodeId === "number") + if (typeof message.mspNodeId === "number") object.mspNodeId = options.longs === String ? String(message.mspNodeId) : message.mspNodeId; else object.mspNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.mspNodeId) : options.longs === Number ? new $util.LongBits(message.mspNodeId.low >>> 0, message.mspNodeId.high >>> 0).toNumber() : message.mspNodeId; @@ -74505,9 +69275,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.treeKey != null && message.hasOwnProperty("treeKey")) object.treeKey = message.treeKey; if (message.treeKeyRole != null && message.hasOwnProperty("treeKeyRole")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.treeKeyRole = typeof message.treeKeyRole === "number" ? BigInt(message.treeKeyRole) : $util.Long.fromBits(message.treeKeyRole.low >>> 0, message.treeKeyRole.high >>> 0, false).toBigInt(); - else if (typeof message.treeKeyRole === "number") + if (typeof message.treeKeyRole === "number") object.treeKeyRole = options.longs === String ? String(message.treeKeyRole) : message.treeKeyRole; else object.treeKeyRole = options.longs === String ? $util.Long.prototype.toString.call(message.treeKeyRole) : options.longs === Number ? new $util.LongBits(message.treeKeyRole.low >>> 0, message.treeKeyRole.high >>> 0).toNumber() : message.treeKeyRole; @@ -74516,7 +69284,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.addOns && message.addOns.length) { object.addOns = []; for (let j = 0; j < message.addOns.length; ++j) - object.addOns[j] = $root.Enterprise.LicenseAddOn.toObject(message.addOns[j], options, q + 1); + object.addOns[j] = $root.Enterprise.LicenseAddOn.toObject(message.addOns[j], options); } if (message.treeKeyTypeId != null && message.hasOwnProperty("treeKeyTypeId")) object.treeKeyTypeId = message.treeKeyTypeId; @@ -74575,7 +69343,7 @@ export const Enterprise = $root.Enterprise = (() => { function MSPPool(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -74632,13 +69400,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MSPPool.encode = function encode(message, writer, q) { + MSPPool.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.productId != null && Object.hasOwnProperty.call(message, "productId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.productId); if (message.seats != null && Object.hasOwnProperty.call(message, "seats")) @@ -74674,18 +69438,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MSPPool.decode = function decode(reader, length, error, long) { + MSPPool.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MSPPool(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.productId = reader.string(); @@ -74704,7 +69462,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -74735,13 +69493,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MSPPool.verify = function verify(message, long) { + MSPPool.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.productId != null && message.hasOwnProperty("productId")) if (!$util.isString(message.productId)) return "productId: string expected"; @@ -74765,13 +69519,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.MSPPool} MSPPool */ - MSPPool.fromObject = function fromObject(object, long) { + MSPPool.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.MSPPool) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.MSPPool(); if (object.productId != null) message.productId = String(object.productId); @@ -74793,13 +69543,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MSPPool.toObject = function toObject(message, options, q) { + MSPPool.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.productId = ""; @@ -74868,7 +69614,7 @@ export const Enterprise = $root.Enterprise = (() => { function MSPContact(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -74909,13 +69655,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MSPContact.encode = function encode(message, writer, q) { + MSPContact.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) @@ -74947,18 +69689,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MSPContact.decode = function decode(reader, length, error, long) { + MSPContact.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MSPContact(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseId = reader.int32(); @@ -74969,7 +69705,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -75000,13 +69736,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MSPContact.verify = function verify(message, long) { + MSPContact.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) if (!$util.isInteger(message.enterpriseId)) return "enterpriseId: integer expected"; @@ -75024,13 +69756,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.MSPContact} MSPContact */ - MSPContact.fromObject = function fromObject(object, long) { + MSPContact.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.MSPContact) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.MSPContact(); if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; @@ -75048,13 +69776,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MSPContact.toObject = function toObject(message, options, q) { + MSPContact.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.enterpriseId = 0; @@ -75127,7 +69851,7 @@ export const Enterprise = $root.Enterprise = (() => { function LicenseAddOn(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -75248,13 +69972,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LicenseAddOn.encode = function encode(message, writer, q) { + LicenseAddOn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) @@ -75306,18 +70026,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LicenseAddOn.decode = function decode(reader, length, error, long) { + LicenseAddOn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LicenseAddOn(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -75368,7 +70082,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -75399,13 +70113,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LicenseAddOn.verify = function verify(message, long) { + LicenseAddOn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -75453,13 +70163,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.LicenseAddOn} LicenseAddOn */ - LicenseAddOn.fromObject = function fromObject(object, long) { + LicenseAddOn.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.LicenseAddOn) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.LicenseAddOn(); if (object.name != null) message.name = String(object.name); @@ -75469,7 +70175,7 @@ export const Enterprise = $root.Enterprise = (() => { message.isTrial = Boolean(object.isTrial); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -75478,7 +70184,7 @@ export const Enterprise = $root.Enterprise = (() => { message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); if (object.created != null) if ($util.Long) - message.created = $util.Long.fromValue(object.created, false); + (message.created = $util.Long.fromValue(object.created)).unsigned = false; else if (typeof object.created === "string") message.created = parseInt(object.created, 10); else if (typeof object.created === "number") @@ -75489,7 +70195,7 @@ export const Enterprise = $root.Enterprise = (() => { message.seats = object.seats | 0; if (object.activationTime != null) if ($util.Long) - message.activationTime = $util.Long.fromValue(object.activationTime, false); + (message.activationTime = $util.Long.fromValue(object.activationTime)).unsigned = false; else if (typeof object.activationTime === "string") message.activationTime = parseInt(object.activationTime, 10); else if (typeof object.activationTime === "number") @@ -75518,13 +70224,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LicenseAddOn.toObject = function toObject(message, options, q) { + LicenseAddOn.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.name = ""; @@ -75532,20 +70234,20 @@ export const Enterprise = $root.Enterprise = (() => { object.isTrial = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.created = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.created = options.longs === String ? "0" : 0; object.seats = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.activationTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.activationTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.activationTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.activationTime = options.longs === String ? "0" : 0; object.includedInProduct = false; object.apiCallCount = 0; object.tierDescription = ""; @@ -75559,25 +70261,19 @@ export const Enterprise = $root.Enterprise = (() => { if (message.isTrial != null && message.hasOwnProperty("isTrial")) object.isTrial = message.isTrial; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; if (message.created != null && message.hasOwnProperty("created")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.created = typeof message.created === "number" ? BigInt(message.created) : $util.Long.fromBits(message.created.low >>> 0, message.created.high >>> 0, false).toBigInt(); - else if (typeof message.created === "number") + if (typeof message.created === "number") object.created = options.longs === String ? String(message.created) : message.created; else object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; if (message.seats != null && message.hasOwnProperty("seats")) object.seats = message.seats; if (message.activationTime != null && message.hasOwnProperty("activationTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.activationTime = typeof message.activationTime === "number" ? BigInt(message.activationTime) : $util.Long.fromBits(message.activationTime.low >>> 0, message.activationTime.high >>> 0, false).toBigInt(); - else if (typeof message.activationTime === "number") + if (typeof message.activationTime === "number") object.activationTime = options.longs === String ? String(message.activationTime) : message.activationTime; else object.activationTime = options.longs === String ? $util.Long.prototype.toString.call(message.activationTime) : options.longs === Number ? new $util.LongBits(message.activationTime.low >>> 0, message.activationTime.high >>> 0).toNumber() : message.activationTime; @@ -75648,7 +70344,7 @@ export const Enterprise = $root.Enterprise = (() => { this.addOns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -75713,13 +70409,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MCDefault.encode = function encode(message, writer, q) { + MCDefault.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.mcProduct != null && Object.hasOwnProperty.call(message, "mcProduct")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.mcProduct); if (message.addOns != null && message.addOns.length) @@ -75758,18 +70450,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MCDefault.decode = function decode(reader, length, error, long) { + MCDefault.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MCDefault(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.mcProduct = reader.string(); @@ -75794,7 +70480,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -75825,13 +70511,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MCDefault.verify = function verify(message, long) { + MCDefault.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.mcProduct != null && message.hasOwnProperty("mcProduct")) if (!$util.isString(message.mcProduct)) return "mcProduct: string expected"; @@ -75862,13 +70544,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.MCDefault} MCDefault */ - MCDefault.fromObject = function fromObject(object, long) { + MCDefault.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.MCDefault) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.MCDefault(); if (object.mcProduct != null) message.mcProduct = String(object.mcProduct); @@ -75897,13 +70575,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MCDefault.toObject = function toObject(message, options, q) { + MCDefault.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.addOns = []; @@ -75987,7 +70661,7 @@ export const Enterprise = $root.Enterprise = (() => { this.mcDefaults = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -76068,13 +70742,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MSPPermits.encode = function encode(message, writer, q) { + MSPPermits.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.restricted != null && Object.hasOwnProperty.call(message, "restricted")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restricted); if (message.maxAllowedLicenses != null && Object.hasOwnProperty.call(message, "maxAllowedLicenses")) @@ -76091,7 +70761,7 @@ export const Enterprise = $root.Enterprise = (() => { writer.uint32(/* id 6, wireType 0 =*/48).bool(message.allowUnlimitedLicenses); if (message.mcDefaults != null && message.mcDefaults.length) for (let i = 0; i < message.mcDefaults.length; ++i) - $root.Enterprise.MCDefault.encode(message.mcDefaults[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Enterprise.MCDefault.encode(message.mcDefaults[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -76119,18 +70789,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MSPPermits.decode = function decode(reader, length, error, long) { + MSPPermits.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MSPPermits(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.restricted = reader.bool(); @@ -76163,11 +70827,11 @@ export const Enterprise = $root.Enterprise = (() => { case 7: { if (!(message.mcDefaults && message.mcDefaults.length)) message.mcDefaults = []; - message.mcDefaults.push($root.Enterprise.MCDefault.decode(reader, reader.uint32(), undefined, long + 1)); + message.mcDefaults.push($root.Enterprise.MCDefault.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -76198,13 +70862,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MSPPermits.verify = function verify(message, long) { + MSPPermits.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.restricted != null && message.hasOwnProperty("restricted")) if (typeof message.restricted !== "boolean") return "restricted: boolean expected"; @@ -76235,7 +70895,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.mcDefaults)) return "mcDefaults: array expected"; for (let i = 0; i < message.mcDefaults.length; ++i) { - let error = $root.Enterprise.MCDefault.verify(message.mcDefaults[i], long + 1); + let error = $root.Enterprise.MCDefault.verify(message.mcDefaults[i]); if (error) return "mcDefaults." + error; } @@ -76251,13 +70911,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.MSPPermits} MSPPermits */ - MSPPermits.fromObject = function fromObject(object, long) { + MSPPermits.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.MSPPermits) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.MSPPermits(); if (object.restricted != null) message.restricted = Boolean(object.restricted); @@ -76288,7 +70944,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.mcDefaults.length; ++i) { if (typeof object.mcDefaults[i] !== "object") throw TypeError(".Enterprise.MSPPermits.mcDefaults: object expected"); - message.mcDefaults[i] = $root.Enterprise.MCDefault.fromObject(object.mcDefaults[i], long + 1); + message.mcDefaults[i] = $root.Enterprise.MCDefault.fromObject(object.mcDefaults[i]); } } return message; @@ -76303,13 +70959,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MSPPermits.toObject = function toObject(message, options, q) { + MSPPermits.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.allowedMcProducts = []; @@ -76343,7 +70995,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.mcDefaults && message.mcDefaults.length) { object.mcDefaults = []; for (let j = 0; j < message.mcDefaults.length; ++j) - object.mcDefaults[j] = $root.Enterprise.MCDefault.toObject(message.mcDefaults[j], options, q + 1); + object.mcDefaults[j] = $root.Enterprise.MCDefault.toObject(message.mcDefaults[j], options); } return object; }; @@ -76419,7 +71071,7 @@ export const Enterprise = $root.Enterprise = (() => { this.addOns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -76612,13 +71264,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - License.encode = function encode(message, writer, q) { + License.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.paid != null && Object.hasOwnProperty.call(message, "paid")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.paid); if (message.numberOfSeats != null && Object.hasOwnProperty.call(message, "numberOfSeats")) @@ -76649,18 +71297,18 @@ export const Enterprise = $root.Enterprise = (() => { writer.uint32(/* id 14, wireType 2 =*/114).string(message.licenseStatus); if (message.mspPool != null && message.mspPool.length) for (let i = 0; i < message.mspPool.length; ++i) - $root.Enterprise.MSPPool.encode(message.mspPool[i], writer.uint32(/* id 15, wireType 2 =*/122).fork(), q + 1).ldelim(); + $root.Enterprise.MSPPool.encode(message.mspPool[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); if (message.managedBy != null && Object.hasOwnProperty.call(message, "managedBy")) - $root.Enterprise.MSPContact.encode(message.managedBy, writer.uint32(/* id 16, wireType 2 =*/130).fork(), q + 1).ldelim(); + $root.Enterprise.MSPContact.encode(message.managedBy, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); if (message.addOns != null && message.addOns.length) for (let i = 0; i < message.addOns.length; ++i) - $root.Enterprise.LicenseAddOn.encode(message.addOns[i], writer.uint32(/* id 17, wireType 2 =*/138).fork(), q + 1).ldelim(); + $root.Enterprise.LicenseAddOn.encode(message.addOns[i], writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); if (message.nextBillingDate != null && Object.hasOwnProperty.call(message, "nextBillingDate")) writer.uint32(/* id 18, wireType 0 =*/144).int64(message.nextBillingDate); if (message.hasMSPLegacyLog != null && Object.hasOwnProperty.call(message, "hasMSPLegacyLog")) writer.uint32(/* id 19, wireType 0 =*/152).bool(message.hasMSPLegacyLog); if (message.mspPermits != null && Object.hasOwnProperty.call(message, "mspPermits")) - $root.Enterprise.MSPPermits.encode(message.mspPermits, writer.uint32(/* id 20, wireType 2 =*/162).fork(), q + 1).ldelim(); + $root.Enterprise.MSPPermits.encode(message.mspPermits, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); if (message.distributor != null && Object.hasOwnProperty.call(message, "distributor")) writer.uint32(/* id 21, wireType 0 =*/168).bool(message.distributor); return writer; @@ -76690,18 +71338,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - License.decode = function decode(reader, length, error, long) { + License.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.License(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.paid = reader.bool(); @@ -76762,17 +71404,17 @@ export const Enterprise = $root.Enterprise = (() => { case 15: { if (!(message.mspPool && message.mspPool.length)) message.mspPool = []; - message.mspPool.push($root.Enterprise.MSPPool.decode(reader, reader.uint32(), undefined, long + 1)); + message.mspPool.push($root.Enterprise.MSPPool.decode(reader, reader.uint32())); break; } case 16: { - message.managedBy = $root.Enterprise.MSPContact.decode(reader, reader.uint32(), undefined, long + 1); + message.managedBy = $root.Enterprise.MSPContact.decode(reader, reader.uint32()); break; } case 17: { if (!(message.addOns && message.addOns.length)) message.addOns = []; - message.addOns.push($root.Enterprise.LicenseAddOn.decode(reader, reader.uint32(), undefined, long + 1)); + message.addOns.push($root.Enterprise.LicenseAddOn.decode(reader, reader.uint32())); break; } case 18: { @@ -76784,7 +71426,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } case 20: { - message.mspPermits = $root.Enterprise.MSPPermits.decode(reader, reader.uint32(), undefined, long + 1); + message.mspPermits = $root.Enterprise.MSPPermits.decode(reader, reader.uint32()); break; } case 21: { @@ -76792,7 +71434,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -76823,13 +71465,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - License.verify = function verify(message, long) { + License.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.paid != null && message.hasOwnProperty("paid")) if (typeof message.paid !== "boolean") return "paid: boolean expected"; @@ -76876,13 +71514,13 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.mspPool)) return "mspPool: array expected"; for (let i = 0; i < message.mspPool.length; ++i) { - let error = $root.Enterprise.MSPPool.verify(message.mspPool[i], long + 1); + let error = $root.Enterprise.MSPPool.verify(message.mspPool[i]); if (error) return "mspPool." + error; } } if (message.managedBy != null && message.hasOwnProperty("managedBy")) { - let error = $root.Enterprise.MSPContact.verify(message.managedBy, long + 1); + let error = $root.Enterprise.MSPContact.verify(message.managedBy); if (error) return "managedBy." + error; } @@ -76890,7 +71528,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.addOns)) return "addOns: array expected"; for (let i = 0; i < message.addOns.length; ++i) { - let error = $root.Enterprise.LicenseAddOn.verify(message.addOns[i], long + 1); + let error = $root.Enterprise.LicenseAddOn.verify(message.addOns[i]); if (error) return "addOns." + error; } @@ -76902,7 +71540,7 @@ export const Enterprise = $root.Enterprise = (() => { if (typeof message.hasMSPLegacyLog !== "boolean") return "hasMSPLegacyLog: boolean expected"; if (message.mspPermits != null && message.hasOwnProperty("mspPermits")) { - let error = $root.Enterprise.MSPPermits.verify(message.mspPermits, long + 1); + let error = $root.Enterprise.MSPPermits.verify(message.mspPermits); if (error) return "mspPermits." + error; } @@ -76920,13 +71558,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.License} License */ - License.fromObject = function fromObject(object, long) { + License.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.License) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.License(); if (object.paid != null) message.paid = Boolean(object.paid); @@ -76934,7 +71568,7 @@ export const Enterprise = $root.Enterprise = (() => { message.numberOfSeats = object.numberOfSeats | 0; if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -76949,7 +71583,7 @@ export const Enterprise = $root.Enterprise = (() => { message.name = String(object.name); if (object.enterpriseLicenseId != null) if ($util.Long) - message.enterpriseLicenseId = $util.Long.fromValue(object.enterpriseLicenseId, false); + (message.enterpriseLicenseId = $util.Long.fromValue(object.enterpriseLicenseId)).unsigned = false; else if (typeof object.enterpriseLicenseId === "string") message.enterpriseLicenseId = parseInt(object.enterpriseLicenseId, 10); else if (typeof object.enterpriseLicenseId === "number") @@ -76966,7 +71600,7 @@ export const Enterprise = $root.Enterprise = (() => { message.filePlanTypeId = object.filePlanTypeId | 0; if (object.maxBytes != null) if ($util.Long) - message.maxBytes = $util.Long.fromValue(object.maxBytes, false); + (message.maxBytes = $util.Long.fromValue(object.maxBytes)).unsigned = false; else if (typeof object.maxBytes === "string") message.maxBytes = parseInt(object.maxBytes, 10); else if (typeof object.maxBytes === "number") @@ -76975,7 +71609,7 @@ export const Enterprise = $root.Enterprise = (() => { message.maxBytes = new $util.LongBits(object.maxBytes.low >>> 0, object.maxBytes.high >>> 0).toNumber(); if (object.storageExpiration != null) if ($util.Long) - message.storageExpiration = $util.Long.fromValue(object.storageExpiration, false); + (message.storageExpiration = $util.Long.fromValue(object.storageExpiration)).unsigned = false; else if (typeof object.storageExpiration === "string") message.storageExpiration = parseInt(object.storageExpiration, 10); else if (typeof object.storageExpiration === "number") @@ -76991,13 +71625,13 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.mspPool.length; ++i) { if (typeof object.mspPool[i] !== "object") throw TypeError(".Enterprise.License.mspPool: object expected"); - message.mspPool[i] = $root.Enterprise.MSPPool.fromObject(object.mspPool[i], long + 1); + message.mspPool[i] = $root.Enterprise.MSPPool.fromObject(object.mspPool[i]); } } if (object.managedBy != null) { if (typeof object.managedBy !== "object") throw TypeError(".Enterprise.License.managedBy: object expected"); - message.managedBy = $root.Enterprise.MSPContact.fromObject(object.managedBy, long + 1); + message.managedBy = $root.Enterprise.MSPContact.fromObject(object.managedBy); } if (object.addOns) { if (!Array.isArray(object.addOns)) @@ -77006,12 +71640,12 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.addOns.length; ++i) { if (typeof object.addOns[i] !== "object") throw TypeError(".Enterprise.License.addOns: object expected"); - message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i], long + 1); + message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i]); } } if (object.nextBillingDate != null) if ($util.Long) - message.nextBillingDate = $util.Long.fromValue(object.nextBillingDate, false); + (message.nextBillingDate = $util.Long.fromValue(object.nextBillingDate)).unsigned = false; else if (typeof object.nextBillingDate === "string") message.nextBillingDate = parseInt(object.nextBillingDate, 10); else if (typeof object.nextBillingDate === "number") @@ -77023,7 +71657,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.mspPermits != null) { if (typeof object.mspPermits !== "object") throw TypeError(".Enterprise.License.mspPermits: object expected"); - message.mspPermits = $root.Enterprise.MSPPermits.fromObject(object.mspPermits, long + 1); + message.mspPermits = $root.Enterprise.MSPPermits.fromObject(object.mspPermits); } if (object.distributor != null) message.distributor = Boolean(object.distributor); @@ -77039,13 +71673,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - License.toObject = function toObject(message, options, q) { + License.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.mspPool = []; @@ -77056,38 +71686,38 @@ export const Enterprise = $root.Enterprise = (() => { object.numberOfSeats = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.licenseKeyId = 0; object.productTypeId = 0; object.name = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseLicenseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseLicenseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseLicenseId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseLicenseId = options.longs === String ? "0" : 0; object.seatsAllocated = 0; object.seatsPending = 0; object.tier = 0; object.filePlanTypeId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.maxBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.maxBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.maxBytes = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.maxBytes = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.storageExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.storageExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.storageExpiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.storageExpiration = options.longs === String ? "0" : 0; object.licenseStatus = ""; object.managedBy = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nextBillingDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nextBillingDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nextBillingDate = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nextBillingDate = options.longs === String ? "0" : 0; object.hasMSPLegacyLog = false; object.mspPermits = null; object.distributor = false; @@ -77097,9 +71727,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.numberOfSeats != null && message.hasOwnProperty("numberOfSeats")) object.numberOfSeats = message.numberOfSeats; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -77110,9 +71738,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.enterpriseLicenseId != null && message.hasOwnProperty("enterpriseLicenseId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseLicenseId = typeof message.enterpriseLicenseId === "number" ? BigInt(message.enterpriseLicenseId) : $util.Long.fromBits(message.enterpriseLicenseId.low >>> 0, message.enterpriseLicenseId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseLicenseId === "number") + if (typeof message.enterpriseLicenseId === "number") object.enterpriseLicenseId = options.longs === String ? String(message.enterpriseLicenseId) : message.enterpriseLicenseId; else object.enterpriseLicenseId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseLicenseId) : options.longs === Number ? new $util.LongBits(message.enterpriseLicenseId.low >>> 0, message.enterpriseLicenseId.high >>> 0).toNumber() : message.enterpriseLicenseId; @@ -77125,16 +71751,12 @@ export const Enterprise = $root.Enterprise = (() => { if (message.filePlanTypeId != null && message.hasOwnProperty("filePlanTypeId")) object.filePlanTypeId = message.filePlanTypeId; if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.maxBytes = typeof message.maxBytes === "number" ? BigInt(message.maxBytes) : $util.Long.fromBits(message.maxBytes.low >>> 0, message.maxBytes.high >>> 0, false).toBigInt(); - else if (typeof message.maxBytes === "number") + if (typeof message.maxBytes === "number") object.maxBytes = options.longs === String ? String(message.maxBytes) : message.maxBytes; else object.maxBytes = options.longs === String ? $util.Long.prototype.toString.call(message.maxBytes) : options.longs === Number ? new $util.LongBits(message.maxBytes.low >>> 0, message.maxBytes.high >>> 0).toNumber() : message.maxBytes; if (message.storageExpiration != null && message.hasOwnProperty("storageExpiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.storageExpiration = typeof message.storageExpiration === "number" ? BigInt(message.storageExpiration) : $util.Long.fromBits(message.storageExpiration.low >>> 0, message.storageExpiration.high >>> 0, false).toBigInt(); - else if (typeof message.storageExpiration === "number") + if (typeof message.storageExpiration === "number") object.storageExpiration = options.longs === String ? String(message.storageExpiration) : message.storageExpiration; else object.storageExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.storageExpiration) : options.longs === Number ? new $util.LongBits(message.storageExpiration.low >>> 0, message.storageExpiration.high >>> 0).toNumber() : message.storageExpiration; @@ -77143,26 +71765,24 @@ export const Enterprise = $root.Enterprise = (() => { if (message.mspPool && message.mspPool.length) { object.mspPool = []; for (let j = 0; j < message.mspPool.length; ++j) - object.mspPool[j] = $root.Enterprise.MSPPool.toObject(message.mspPool[j], options, q + 1); + object.mspPool[j] = $root.Enterprise.MSPPool.toObject(message.mspPool[j], options); } if (message.managedBy != null && message.hasOwnProperty("managedBy")) - object.managedBy = $root.Enterprise.MSPContact.toObject(message.managedBy, options, q + 1); + object.managedBy = $root.Enterprise.MSPContact.toObject(message.managedBy, options); if (message.addOns && message.addOns.length) { object.addOns = []; for (let j = 0; j < message.addOns.length; ++j) - object.addOns[j] = $root.Enterprise.LicenseAddOn.toObject(message.addOns[j], options, q + 1); + object.addOns[j] = $root.Enterprise.LicenseAddOn.toObject(message.addOns[j], options); } if (message.nextBillingDate != null && message.hasOwnProperty("nextBillingDate")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nextBillingDate = typeof message.nextBillingDate === "number" ? BigInt(message.nextBillingDate) : $util.Long.fromBits(message.nextBillingDate.low >>> 0, message.nextBillingDate.high >>> 0, false).toBigInt(); - else if (typeof message.nextBillingDate === "number") + if (typeof message.nextBillingDate === "number") object.nextBillingDate = options.longs === String ? String(message.nextBillingDate) : message.nextBillingDate; else object.nextBillingDate = options.longs === String ? $util.Long.prototype.toString.call(message.nextBillingDate) : options.longs === Number ? new $util.LongBits(message.nextBillingDate.low >>> 0, message.nextBillingDate.high >>> 0).toNumber() : message.nextBillingDate; if (message.hasMSPLegacyLog != null && message.hasOwnProperty("hasMSPLegacyLog")) object.hasMSPLegacyLog = message.hasMSPLegacyLog; if (message.mspPermits != null && message.hasOwnProperty("mspPermits")) - object.mspPermits = $root.Enterprise.MSPPermits.toObject(message.mspPermits, options, q + 1); + object.mspPermits = $root.Enterprise.MSPPermits.toObject(message.mspPermits, options); if (message.distributor != null && message.hasOwnProperty("distributor")) object.distributor = message.distributor; return object; @@ -77221,7 +71841,7 @@ export const Enterprise = $root.Enterprise = (() => { function Bridge(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -77286,13 +71906,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Bridge.encode = function encode(message, writer, q) { + Bridge.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.bridgeId != null && Object.hasOwnProperty.call(message, "bridgeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.bridgeId); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -77330,18 +71946,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Bridge.decode = function decode(reader, length, error, long) { + Bridge.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Bridge(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.bridgeId = reader.int64(); @@ -77364,7 +71974,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -77395,13 +72005,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Bridge.verify = function verify(message, long) { + Bridge.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.bridgeId != null && message.hasOwnProperty("bridgeId")) if (!$util.isInteger(message.bridgeId) && !(message.bridgeId && $util.isInteger(message.bridgeId.low) && $util.isInteger(message.bridgeId.high))) return "bridgeId: integer|Long expected"; @@ -77428,17 +72034,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.Bridge} Bridge */ - Bridge.fromObject = function fromObject(object, long) { + Bridge.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.Bridge) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.Bridge(); if (object.bridgeId != null) if ($util.Long) - message.bridgeId = $util.Long.fromValue(object.bridgeId, false); + (message.bridgeId = $util.Long.fromValue(object.bridgeId)).unsigned = false; else if (typeof object.bridgeId === "string") message.bridgeId = parseInt(object.bridgeId, 10); else if (typeof object.bridgeId === "number") @@ -77447,7 +72049,7 @@ export const Enterprise = $root.Enterprise = (() => { message.bridgeId = new $util.LongBits(object.bridgeId.low >>> 0, object.bridgeId.high >>> 0).toNumber(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -77472,40 +72074,32 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Bridge.toObject = function toObject(message, options, q) { + Bridge.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.bridgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.bridgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.bridgeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.bridgeId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.wanIpEnforcement = ""; object.lanIpEnforcement = ""; object.status = ""; } if (message.bridgeId != null && message.hasOwnProperty("bridgeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.bridgeId = typeof message.bridgeId === "number" ? BigInt(message.bridgeId) : $util.Long.fromBits(message.bridgeId.low >>> 0, message.bridgeId.high >>> 0, false).toBigInt(); - else if (typeof message.bridgeId === "number") + if (typeof message.bridgeId === "number") object.bridgeId = options.longs === String ? String(message.bridgeId) : message.bridgeId; else object.bridgeId = options.longs === String ? $util.Long.prototype.toString.call(message.bridgeId) : options.longs === Number ? new $util.LongBits(message.bridgeId.low >>> 0, message.bridgeId.high >>> 0).toNumber() : message.bridgeId; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -77572,7 +72166,7 @@ export const Enterprise = $root.Enterprise = (() => { function Scim(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -77645,13 +72239,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Scim.encode = function encode(message, writer, q) { + Scim.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.scimId != null && Object.hasOwnProperty.call(message, "scimId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.scimId); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -77691,18 +72281,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Scim.decode = function decode(reader, length, error, long) { + Scim.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Scim(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.scimId = reader.int64(); @@ -77729,7 +72313,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -77760,13 +72344,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Scim.verify = function verify(message, long) { + Scim.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.scimId != null && message.hasOwnProperty("scimId")) if (!$util.isInteger(message.scimId) && !(message.scimId && $util.isInteger(message.scimId.low) && $util.isInteger(message.scimId.high))) return "scimId: integer|Long expected"; @@ -77796,17 +72376,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.Scim} Scim */ - Scim.fromObject = function fromObject(object, long) { + Scim.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.Scim) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.Scim(); if (object.scimId != null) if ($util.Long) - message.scimId = $util.Long.fromValue(object.scimId, false); + (message.scimId = $util.Long.fromValue(object.scimId)).unsigned = false; else if (typeof object.scimId === "string") message.scimId = parseInt(object.scimId, 10); else if (typeof object.scimId === "number") @@ -77815,7 +72391,7 @@ export const Enterprise = $root.Enterprise = (() => { message.scimId = new $util.LongBits(object.scimId.low >>> 0, object.scimId.high >>> 0).toNumber(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -77826,7 +72402,7 @@ export const Enterprise = $root.Enterprise = (() => { message.status = String(object.status); if (object.lastSynced != null) if ($util.Long) - message.lastSynced = $util.Long.fromValue(object.lastSynced, false); + (message.lastSynced = $util.Long.fromValue(object.lastSynced)).unsigned = false; else if (typeof object.lastSynced === "string") message.lastSynced = parseInt(object.lastSynced, 10); else if (typeof object.lastSynced === "number") @@ -77849,54 +72425,44 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Scim.toObject = function toObject(message, options, q) { + Scim.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.scimId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.scimId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.scimId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.scimId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.status = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSynced = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSynced = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSynced = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSynced = options.longs === String ? "0" : 0; object.rolePrefix = ""; object.uniqueGroups = false; } if (message.scimId != null && message.hasOwnProperty("scimId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.scimId = typeof message.scimId === "number" ? BigInt(message.scimId) : $util.Long.fromBits(message.scimId.low >>> 0, message.scimId.high >>> 0, false).toBigInt(); - else if (typeof message.scimId === "number") + if (typeof message.scimId === "number") object.scimId = options.longs === String ? String(message.scimId) : message.scimId; else object.scimId = options.longs === String ? $util.Long.prototype.toString.call(message.scimId) : options.longs === Number ? new $util.LongBits(message.scimId.low >>> 0, message.scimId.high >>> 0).toNumber() : message.scimId; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; if (message.status != null && message.hasOwnProperty("status")) object.status = message.status; if (message.lastSynced != null && message.hasOwnProperty("lastSynced")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSynced = typeof message.lastSynced === "number" ? BigInt(message.lastSynced) : $util.Long.fromBits(message.lastSynced.low >>> 0, message.lastSynced.high >>> 0, false).toBigInt(); - else if (typeof message.lastSynced === "number") + if (typeof message.lastSynced === "number") object.lastSynced = options.longs === String ? String(message.lastSynced) : message.lastSynced; else object.lastSynced = options.longs === String ? $util.Long.prototype.toString.call(message.lastSynced) : options.longs === Number ? new $util.LongBits(message.lastSynced.low >>> 0, message.lastSynced.high >>> 0).toNumber() : message.lastSynced; @@ -77959,7 +72525,7 @@ export const Enterprise = $root.Enterprise = (() => { function EmailProvision(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -78016,13 +72582,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmailProvision.encode = function encode(message, writer, q) { + EmailProvision.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -78058,18 +72620,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmailProvision.decode = function decode(reader, length, error, long) { + EmailProvision.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EmailProvision(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int32(); @@ -78088,7 +72644,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -78119,13 +72675,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EmailProvision.verify = function verify(message, long) { + EmailProvision.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id)) return "id: integer expected"; @@ -78149,19 +72701,15 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EmailProvision} EmailProvision */ - EmailProvision.fromObject = function fromObject(object, long) { + EmailProvision.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EmailProvision) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EmailProvision(); if (object.id != null) message.id = object.id | 0; if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -78184,30 +72732,24 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmailProvision.toObject = function toObject(message, options, q) { + EmailProvision.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.domain = ""; object.method = ""; } if (message.id != null && message.hasOwnProperty("id")) object.id = message.id; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -78270,7 +72812,7 @@ export const Enterprise = $root.Enterprise = (() => { function QueuedTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -78327,13 +72869,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueuedTeam.encode = function encode(message, writer, q) { + QueuedTeam.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -78369,18 +72907,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueuedTeam.decode = function decode(reader, length, error, long) { + QueuedTeam.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.QueuedTeam(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -78399,7 +72931,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -78430,13 +72962,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueuedTeam.verify = function verify(message, long) { + QueuedTeam.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -78460,13 +72988,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.QueuedTeam} QueuedTeam */ - QueuedTeam.fromObject = function fromObject(object, long) { + QueuedTeam.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.QueuedTeam) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.QueuedTeam(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -78477,7 +73001,7 @@ export const Enterprise = $root.Enterprise = (() => { message.name = String(object.name); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -78498,13 +73022,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueuedTeam.toObject = function toObject(message, options, q) { + QueuedTeam.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -78517,9 +73037,9 @@ export const Enterprise = $root.Enterprise = (() => { object.name = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.encryptedData = ""; } if (message.teamUid != null && message.hasOwnProperty("teamUid")) @@ -78527,9 +73047,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -78589,7 +73107,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -78630,13 +73148,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueuedTeamUser.encode = function encode(message, writer, q) { + QueuedTeamUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.users != null && message.users.length) { @@ -78672,18 +73186,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueuedTeamUser.decode = function decode(reader, length, error, long) { + QueuedTeamUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.QueuedTeamUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -78701,7 +73209,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -78732,13 +73240,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueuedTeamUser.verify = function verify(message, long) { + QueuedTeamUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -78760,13 +73264,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.QueuedTeamUser} QueuedTeamUser */ - QueuedTeamUser.fromObject = function fromObject(object, long) { + QueuedTeamUser.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.QueuedTeamUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.QueuedTeamUser(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -78779,7 +73279,7 @@ export const Enterprise = $root.Enterprise = (() => { message.users = []; for (let i = 0; i < object.users.length; ++i) if ($util.Long) - message.users[i] = $util.Long.fromValue(object.users[i], false); + (message.users[i] = $util.Long.fromValue(object.users[i])).unsigned = false; else if (typeof object.users[i] === "string") message.users[i] = parseInt(object.users[i], 10); else if (typeof object.users[i] === "number") @@ -78799,13 +73299,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueuedTeamUser.toObject = function toObject(message, options, q) { + QueuedTeamUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.users = []; @@ -78822,9 +73318,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.users[j] = typeof message.users[j] === "number" ? BigInt(message.users[j]) : $util.Long.fromBits(message.users[j].low >>> 0, message.users[j].high >>> 0, false).toBigInt(); - else if (typeof message.users[j] === "number") + if (typeof message.users[j] === "number") object.users[j] = options.longs === String ? String(message.users[j]) : message.users[j]; else object.users[j] = options.longs === String ? $util.Long.prototype.toString.call(message.users[j]) : options.longs === Number ? new $util.LongBits(message.users[j].low >>> 0, message.users[j].high >>> 0).toNumber() : message.users[j]; @@ -78891,7 +73385,7 @@ export const Enterprise = $root.Enterprise = (() => { this.unsuccessfulTeamAdd = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -78948,19 +73442,15 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamsAddResult.encode = function encode(message, writer, q) { + TeamsAddResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.successfulTeamAdd != null && message.successfulTeamAdd.length) for (let i = 0; i < message.successfulTeamAdd.length; ++i) - $root.Enterprise.TeamAddResult.encode(message.successfulTeamAdd[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.TeamAddResult.encode(message.successfulTeamAdd[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.unsuccessfulTeamAdd != null && message.unsuccessfulTeamAdd.length) for (let i = 0; i < message.unsuccessfulTeamAdd.length; ++i) - $root.Enterprise.TeamAddResult.encode(message.unsuccessfulTeamAdd[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.TeamAddResult.encode(message.unsuccessfulTeamAdd[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.result); if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) @@ -78992,29 +73482,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamsAddResult.decode = function decode(reader, length, error, long) { + TeamsAddResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsAddResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.successfulTeamAdd && message.successfulTeamAdd.length)) message.successfulTeamAdd = []; - message.successfulTeamAdd.push($root.Enterprise.TeamAddResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.successfulTeamAdd.push($root.Enterprise.TeamAddResult.decode(reader, reader.uint32())); break; } case 2: { if (!(message.unsuccessfulTeamAdd && message.unsuccessfulTeamAdd.length)) message.unsuccessfulTeamAdd = []; - message.unsuccessfulTeamAdd.push($root.Enterprise.TeamAddResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.unsuccessfulTeamAdd.push($root.Enterprise.TeamAddResult.decode(reader, reader.uint32())); break; } case 3: { @@ -79026,7 +73510,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -79057,18 +73541,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamsAddResult.verify = function verify(message, long) { + TeamsAddResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.successfulTeamAdd != null && message.hasOwnProperty("successfulTeamAdd")) { if (!Array.isArray(message.successfulTeamAdd)) return "successfulTeamAdd: array expected"; for (let i = 0; i < message.successfulTeamAdd.length; ++i) { - let error = $root.Enterprise.TeamAddResult.verify(message.successfulTeamAdd[i], long + 1); + let error = $root.Enterprise.TeamAddResult.verify(message.successfulTeamAdd[i]); if (error) return "successfulTeamAdd." + error; } @@ -79077,7 +73557,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.unsuccessfulTeamAdd)) return "unsuccessfulTeamAdd: array expected"; for (let i = 0; i < message.unsuccessfulTeamAdd.length; ++i) { - let error = $root.Enterprise.TeamAddResult.verify(message.unsuccessfulTeamAdd[i], long + 1); + let error = $root.Enterprise.TeamAddResult.verify(message.unsuccessfulTeamAdd[i]); if (error) return "unsuccessfulTeamAdd." + error; } @@ -79099,13 +73579,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamsAddResult} TeamsAddResult */ - TeamsAddResult.fromObject = function fromObject(object, long) { + TeamsAddResult.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamsAddResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamsAddResult(); if (object.successfulTeamAdd) { if (!Array.isArray(object.successfulTeamAdd)) @@ -79114,7 +73590,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.successfulTeamAdd.length; ++i) { if (typeof object.successfulTeamAdd[i] !== "object") throw TypeError(".Enterprise.TeamsAddResult.successfulTeamAdd: object expected"); - message.successfulTeamAdd[i] = $root.Enterprise.TeamAddResult.fromObject(object.successfulTeamAdd[i], long + 1); + message.successfulTeamAdd[i] = $root.Enterprise.TeamAddResult.fromObject(object.successfulTeamAdd[i]); } } if (object.unsuccessfulTeamAdd) { @@ -79124,7 +73600,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.unsuccessfulTeamAdd.length; ++i) { if (typeof object.unsuccessfulTeamAdd[i] !== "object") throw TypeError(".Enterprise.TeamsAddResult.unsuccessfulTeamAdd: object expected"); - message.unsuccessfulTeamAdd[i] = $root.Enterprise.TeamAddResult.fromObject(object.unsuccessfulTeamAdd[i], long + 1); + message.unsuccessfulTeamAdd[i] = $root.Enterprise.TeamAddResult.fromObject(object.unsuccessfulTeamAdd[i]); } } if (object.result != null) @@ -79143,13 +73619,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamsAddResult.toObject = function toObject(message, options, q) { + TeamsAddResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.successfulTeamAdd = []; @@ -79162,12 +73634,12 @@ export const Enterprise = $root.Enterprise = (() => { if (message.successfulTeamAdd && message.successfulTeamAdd.length) { object.successfulTeamAdd = []; for (let j = 0; j < message.successfulTeamAdd.length; ++j) - object.successfulTeamAdd[j] = $root.Enterprise.TeamAddResult.toObject(message.successfulTeamAdd[j], options, q + 1); + object.successfulTeamAdd[j] = $root.Enterprise.TeamAddResult.toObject(message.successfulTeamAdd[j], options); } if (message.unsuccessfulTeamAdd && message.unsuccessfulTeamAdd.length) { object.unsuccessfulTeamAdd = []; for (let j = 0; j < message.unsuccessfulTeamAdd.length; ++j) - object.unsuccessfulTeamAdd[j] = $root.Enterprise.TeamAddResult.toObject(message.unsuccessfulTeamAdd[j], options, q + 1); + object.unsuccessfulTeamAdd[j] = $root.Enterprise.TeamAddResult.toObject(message.unsuccessfulTeamAdd[j], options); } if (message.result != null && message.hasOwnProperty("result")) object.result = message.result; @@ -79227,7 +73699,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamAddResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -79276,15 +73748,11 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamAddResult.encode = function encode(message, writer, q) { + TeamAddResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.team != null && Object.hasOwnProperty.call(message, "team")) - $root.Enterprise.Team.encode(message.team, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.Team.encode(message.team, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.result); if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) @@ -79316,21 +73784,15 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamAddResult.decode = function decode(reader, length, error, long) { + TeamAddResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamAddResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.team = $root.Enterprise.Team.decode(reader, reader.uint32(), undefined, long + 1); + message.team = $root.Enterprise.Team.decode(reader, reader.uint32()); break; } case 2: { @@ -79342,7 +73804,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -79373,15 +73835,11 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamAddResult.verify = function verify(message, long) { + TeamAddResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.team != null && message.hasOwnProperty("team")) { - let error = $root.Enterprise.Team.verify(message.team, long + 1); + let error = $root.Enterprise.Team.verify(message.team); if (error) return "team." + error; } @@ -79402,18 +73860,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamAddResult} TeamAddResult */ - TeamAddResult.fromObject = function fromObject(object, long) { + TeamAddResult.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamAddResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamAddResult(); if (object.team != null) { if (typeof object.team !== "object") throw TypeError(".Enterprise.TeamAddResult.team: object expected"); - message.team = $root.Enterprise.Team.fromObject(object.team, long + 1); + message.team = $root.Enterprise.Team.fromObject(object.team); } if (object.result != null) message.result = String(object.result); @@ -79431,13 +73885,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamAddResult.toObject = function toObject(message, options, q) { + TeamAddResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.team = null; @@ -79445,7 +73895,7 @@ export const Enterprise = $root.Enterprise = (() => { object.errorMessage = ""; } if (message.team != null && message.hasOwnProperty("team")) - object.team = $root.Enterprise.Team.toObject(message.team, options, q + 1); + object.team = $root.Enterprise.Team.toObject(message.team, options); if (message.result != null && message.hasOwnProperty("result")) object.result = message.result; if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) @@ -79508,7 +73958,7 @@ export const Enterprise = $root.Enterprise = (() => { function SsoService(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -79589,13 +74039,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoService.encode = function encode(message, writer, q) { + SsoService.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ssoServiceProviderId); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -79637,18 +74083,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoService.decode = function decode(reader, length, error, long) { + SsoService.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SsoService(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoServiceProviderId = reader.int64(); @@ -79679,7 +74119,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -79710,13 +74150,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoService.verify = function verify(message, long) { + SsoService.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) return "ssoServiceProviderId: integer|Long expected"; @@ -79749,17 +74185,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.SsoService} SsoService */ - SsoService.fromObject = function fromObject(object, long) { + SsoService.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.SsoService) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.SsoService(); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, false); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = false; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -79768,7 +74200,7 @@ export const Enterprise = $root.Enterprise = (() => { message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -79797,25 +74229,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoService.toObject = function toObject(message, options, q) { + SsoService.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.name = ""; object.spUrl = ""; object.inviteNewUsers = false; @@ -79823,16 +74251,12 @@ export const Enterprise = $root.Enterprise = (() => { object.isCloud = false; } if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, false).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber() : message.ssoServiceProviderId; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -79899,7 +74323,7 @@ export const Enterprise = $root.Enterprise = (() => { function ReportFilterUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -79940,13 +74364,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReportFilterUser.encode = function encode(message, writer, q) { + ReportFilterUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.email != null && Object.hasOwnProperty.call(message, "email")) @@ -79978,18 +74398,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReportFilterUser.decode = function decode(reader, length, error, long) { + ReportFilterUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ReportFilterUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -80000,7 +74414,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -80031,13 +74445,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReportFilterUser.verify = function verify(message, long) { + ReportFilterUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -80055,13 +74465,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ReportFilterUser} ReportFilterUser */ - ReportFilterUser.fromObject = function fromObject(object, long) { + ReportFilterUser.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ReportFilterUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ReportFilterUser(); if (object.userId != null) message.userId = object.userId | 0; @@ -80079,13 +74485,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReportFilterUser.toObject = function toObject(message, options, q) { + ReportFilterUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -80158,7 +74560,7 @@ export const Enterprise = $root.Enterprise = (() => { function DeviceRequestForAdminApproval(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -80279,13 +74681,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceRequestForAdminApproval.encode = function encode(message, writer, q) { + DeviceRequestForAdminApproval.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) @@ -80337,18 +74735,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceRequestForAdminApproval.decode = function decode(reader, length, error, long) { + DeviceRequestForAdminApproval.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DeviceRequestForAdminApproval(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.deviceId = reader.int64(); @@ -80399,7 +74791,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -80430,13 +74822,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceRequestForAdminApproval.verify = function verify(message, long) { + DeviceRequestForAdminApproval.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceId != null && message.hasOwnProperty("deviceId")) if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) return "deviceId: integer|Long expected"; @@ -80484,17 +74872,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.DeviceRequestForAdminApproval} DeviceRequestForAdminApproval */ - DeviceRequestForAdminApproval.fromObject = function fromObject(object, long) { + DeviceRequestForAdminApproval.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.DeviceRequestForAdminApproval) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.DeviceRequestForAdminApproval(); if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -80503,7 +74887,7 @@ export const Enterprise = $root.Enterprise = (() => { message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -80528,7 +74912,7 @@ export const Enterprise = $root.Enterprise = (() => { message.deviceType = String(object.deviceType); if (object.date != null) if ($util.Long) - message.date = $util.Long.fromValue(object.date, false); + (message.date = $util.Long.fromValue(object.date)).unsigned = false; else if (typeof object.date === "string") message.date = parseInt(object.date, 10); else if (typeof object.date === "number") @@ -80558,25 +74942,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceRequestForAdminApproval.toObject = function toObject(message, options, q) { + DeviceRequestForAdminApproval.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.encryptedDeviceToken = ""; else { @@ -80596,9 +74976,9 @@ export const Enterprise = $root.Enterprise = (() => { object.deviceType = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.date = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.date = options.longs === String ? "0" : 0; object.ipAddress = ""; object.location = ""; object.email = ""; @@ -80611,16 +74991,12 @@ export const Enterprise = $root.Enterprise = (() => { } } if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -80635,9 +75011,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.deviceType != null && message.hasOwnProperty("deviceType")) object.deviceType = message.deviceType; if (message.date != null && message.hasOwnProperty("date")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.date = typeof message.date === "number" ? BigInt(message.date) : $util.Long.fromBits(message.date.low >>> 0, message.date.high >>> 0, false).toBigInt(); - else if (typeof message.date === "number") + if (typeof message.date === "number") object.date = options.longs === String ? String(message.date) : message.date; else object.date = options.longs === String ? $util.Long.prototype.toString.call(message.date) : options.longs === Number ? new $util.LongBits(message.date.low >>> 0, message.date.high >>> 0).toNumber() : message.date; @@ -80776,7 +75150,7 @@ export const Enterprise = $root.Enterprise = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -80825,13 +75199,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseData.encode = function encode(message, writer, q) { + EnterpriseData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.entity); if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) @@ -80866,18 +75236,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseData.decode = function decode(reader, length, error, long) { + EnterpriseData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.entity = reader.int32(); @@ -80894,7 +75258,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -80925,13 +75289,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseData.verify = function verify(message, long) { + EnterpriseData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.entity != null && message.hasOwnProperty("entity")) switch (message.entity) { default: @@ -80983,13 +75343,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseData} EnterpriseData */ - EnterpriseData.fromObject = function fromObject(object, long) { + EnterpriseData.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseData(); switch (object.entity) { default: @@ -81119,13 +75475,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseData.toObject = function toObject(message, options, q) { + EnterpriseData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.data = []; @@ -81199,7 +75551,7 @@ export const Enterprise = $root.Enterprise = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -81264,13 +75616,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseDataResponse.encode = function encode(message, writer, q) { + EnterpriseDataResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) @@ -81279,9 +75627,9 @@ export const Enterprise = $root.Enterprise = (() => { writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cacheStatus); if (message.data != null && message.data.length) for (let i = 0; i < message.data.length; ++i) - $root.Enterprise.EnterpriseData.encode(message.data[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseData.encode(message.data[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.generalData != null && Object.hasOwnProperty.call(message, "generalData")) - $root.Enterprise.GeneralDataEntity.encode(message.generalData, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Enterprise.GeneralDataEntity.encode(message.generalData, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -81309,18 +75657,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseDataResponse.decode = function decode(reader, length, error, long) { + EnterpriseDataResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseDataResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.continuationToken = reader.bytes(); @@ -81337,15 +75679,15 @@ export const Enterprise = $root.Enterprise = (() => { case 4: { if (!(message.data && message.data.length)) message.data = []; - message.data.push($root.Enterprise.EnterpriseData.decode(reader, reader.uint32(), undefined, long + 1)); + message.data.push($root.Enterprise.EnterpriseData.decode(reader, reader.uint32())); break; } case 5: { - message.generalData = $root.Enterprise.GeneralDataEntity.decode(reader, reader.uint32(), undefined, long + 1); + message.generalData = $root.Enterprise.GeneralDataEntity.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -81376,13 +75718,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseDataResponse.verify = function verify(message, long) { + EnterpriseDataResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) return "continuationToken: buffer expected"; @@ -81401,13 +75739,13 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.data)) return "data: array expected"; for (let i = 0; i < message.data.length; ++i) { - let error = $root.Enterprise.EnterpriseData.verify(message.data[i], long + 1); + let error = $root.Enterprise.EnterpriseData.verify(message.data[i]); if (error) return "data." + error; } } if (message.generalData != null && message.hasOwnProperty("generalData")) { - let error = $root.Enterprise.GeneralDataEntity.verify(message.generalData, long + 1); + let error = $root.Enterprise.GeneralDataEntity.verify(message.generalData); if (error) return "generalData." + error; } @@ -81422,13 +75760,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseDataResponse} EnterpriseDataResponse */ - EnterpriseDataResponse.fromObject = function fromObject(object, long) { + EnterpriseDataResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseDataResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseDataResponse(); if (object.continuationToken != null) if (typeof object.continuationToken === "string") @@ -81460,13 +75794,13 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.data.length; ++i) { if (typeof object.data[i] !== "object") throw TypeError(".Enterprise.EnterpriseDataResponse.data: object expected"); - message.data[i] = $root.Enterprise.EnterpriseData.fromObject(object.data[i], long + 1); + message.data[i] = $root.Enterprise.EnterpriseData.fromObject(object.data[i]); } } if (object.generalData != null) { if (typeof object.generalData !== "object") throw TypeError(".Enterprise.EnterpriseDataResponse.generalData: object expected"); - message.generalData = $root.Enterprise.GeneralDataEntity.fromObject(object.generalData, long + 1); + message.generalData = $root.Enterprise.GeneralDataEntity.fromObject(object.generalData); } return message; }; @@ -81480,13 +75814,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseDataResponse.toObject = function toObject(message, options, q) { + EnterpriseDataResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.data = []; @@ -81511,10 +75841,10 @@ export const Enterprise = $root.Enterprise = (() => { if (message.data && message.data.length) { object.data = []; for (let j = 0; j < message.data.length; ++j) - object.data[j] = $root.Enterprise.EnterpriseData.toObject(message.data[j], options, q + 1); + object.data[j] = $root.Enterprise.EnterpriseData.toObject(message.data[j], options); } if (message.generalData != null && message.hasOwnProperty("generalData")) - object.generalData = $root.Enterprise.GeneralDataEntity.toObject(message.generalData, options, q + 1); + object.generalData = $root.Enterprise.GeneralDataEntity.toObject(message.generalData, options); return object; }; @@ -81567,7 +75897,7 @@ export const Enterprise = $root.Enterprise = (() => { function BackupRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -81600,13 +75930,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRequest.encode = function encode(message, writer, q) { + BackupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); return writer; @@ -81636,25 +75962,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupRequest.decode = function decode(reader, length, error, long) { + BackupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.continuationToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -81685,13 +76005,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupRequest.verify = function verify(message, long) { + BackupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) return "continuationToken: buffer expected"; @@ -81706,13 +76022,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.BackupRequest} BackupRequest */ - BackupRequest.fromObject = function fromObject(object, long) { + BackupRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.BackupRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.BackupRequest(); if (object.continuationToken != null) if (typeof object.continuationToken === "string") @@ -81731,13 +76043,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupRequest.toObject = function toObject(message, options, q) { + BackupRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -81841,7 +76149,7 @@ export const Enterprise = $root.Enterprise = (() => { function BackupRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -81922,13 +76230,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupRecord.encode = function encode(message, writer, q) { + BackupRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -81970,18 +76274,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupRecord.decode = function decode(reader, length, error, long) { + BackupRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -82012,7 +76310,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -82043,13 +76341,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupRecord.verify = function verify(message, long) { + BackupRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -82090,13 +76384,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.BackupRecord} BackupRecord */ - BackupRecord.fromObject = function fromObject(object, long) { + BackupRecord.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.BackupRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.BackupRecord(); if (object.userId != null) message.userId = object.userId | 0; @@ -82162,13 +76452,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupRecord.toObject = function toObject(message, options, q) { + BackupRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -82270,7 +76556,7 @@ export const Enterprise = $root.Enterprise = (() => { function BackupKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -82311,13 +76597,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupKey.encode = function encode(message, writer, q) { + BackupKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.backupKey != null && Object.hasOwnProperty.call(message, "backupKey")) @@ -82349,18 +76631,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupKey.decode = function decode(reader, length, error, long) { + BackupKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -82371,7 +76647,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -82402,13 +76678,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupKey.verify = function verify(message, long) { + BackupKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -82426,13 +76698,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.BackupKey} BackupKey */ - BackupKey.fromObject = function fromObject(object, long) { + BackupKey.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.BackupKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.BackupKey(); if (object.userId != null) message.userId = object.userId | 0; @@ -82453,13 +76721,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupKey.toObject = function toObject(message, options, q) { + BackupKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -82536,7 +76800,7 @@ export const Enterprise = $root.Enterprise = (() => { this.backupKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -82633,13 +76897,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupUser.encode = function encode(message, writer, q) { + BackupUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) @@ -82656,7 +76916,7 @@ export const Enterprise = $root.Enterprise = (() => { writer.uint32(/* id 7, wireType 0 =*/56).int32(message.treeKeyType); if (message.backupKeys != null && message.backupKeys.length) for (let i = 0; i < message.backupKeys.length; ++i) - $root.Enterprise.BackupKey.encode(message.backupKeys[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Enterprise.BackupKey.encode(message.backupKeys[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.privateECKey != null && Object.hasOwnProperty.call(message, "privateECKey")) writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.privateECKey); return writer; @@ -82686,18 +76946,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupUser.decode = function decode(reader, length, error, long) { + BackupUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -82730,7 +76984,7 @@ export const Enterprise = $root.Enterprise = (() => { case 8: { if (!(message.backupKeys && message.backupKeys.length)) message.backupKeys = []; - message.backupKeys.push($root.Enterprise.BackupKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.backupKeys.push($root.Enterprise.BackupKey.decode(reader, reader.uint32())); break; } case 9: { @@ -82738,7 +76992,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -82769,13 +77023,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupUser.verify = function verify(message, long) { + BackupUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -82814,7 +77064,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.backupKeys)) return "backupKeys: array expected"; for (let i = 0; i < message.backupKeys.length; ++i) { - let error = $root.Enterprise.BackupKey.verify(message.backupKeys[i], long + 1); + let error = $root.Enterprise.BackupKey.verify(message.backupKeys[i]); if (error) return "backupKeys." + error; } @@ -82833,13 +77083,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.BackupUser} BackupUser */ - BackupUser.fromObject = function fromObject(object, long) { + BackupUser.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.BackupUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.BackupUser(); if (object.userId != null) message.userId = object.userId | 0; @@ -82911,7 +77157,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.backupKeys.length; ++i) { if (typeof object.backupKeys[i] !== "object") throw TypeError(".Enterprise.BackupUser.backupKeys: object expected"); - message.backupKeys[i] = $root.Enterprise.BackupKey.fromObject(object.backupKeys[i], long + 1); + message.backupKeys[i] = $root.Enterprise.BackupKey.fromObject(object.backupKeys[i]); } } if (object.privateECKey != null) @@ -82931,13 +77177,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupUser.toObject = function toObject(message, options, q) { + BackupUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.backupKeys = []; @@ -82992,7 +77234,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.backupKeys && message.backupKeys.length) { object.backupKeys = []; for (let j = 0; j < message.backupKeys.length; ++j) - object.backupKeys[j] = $root.Enterprise.BackupKey.toObject(message.backupKeys[j], options, q + 1); + object.backupKeys[j] = $root.Enterprise.BackupKey.toObject(message.backupKeys[j], options); } if (message.privateECKey != null && message.hasOwnProperty("privateECKey")) object.privateECKey = options.bytes === String ? $util.base64.encode(message.privateECKey, 0, message.privateECKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateECKey) : message.privateECKey; @@ -83053,7 +77295,7 @@ export const Enterprise = $root.Enterprise = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -83110,21 +77352,17 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupResponse.encode = function encode(message, writer, q) { + BackupResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseEccPrivateKey != null && Object.hasOwnProperty.call(message, "enterpriseEccPrivateKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.enterpriseEccPrivateKey); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.BackupUser.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.BackupUser.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Enterprise.BackupRecord.encode(message.records[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Enterprise.BackupRecord.encode(message.records[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.continuationToken); return writer; @@ -83154,18 +77392,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupResponse.decode = function decode(reader, length, error, long) { + BackupResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseEccPrivateKey = reader.bytes(); @@ -83174,13 +77406,13 @@ export const Enterprise = $root.Enterprise = (() => { case 2: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Enterprise.BackupUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Enterprise.BackupUser.decode(reader, reader.uint32())); break; } case 3: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Enterprise.BackupRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Enterprise.BackupRecord.decode(reader, reader.uint32())); break; } case 4: { @@ -83188,7 +77420,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -83219,13 +77451,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupResponse.verify = function verify(message, long) { + BackupResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty("enterpriseEccPrivateKey")) if (!(message.enterpriseEccPrivateKey && typeof message.enterpriseEccPrivateKey.length === "number" || $util.isString(message.enterpriseEccPrivateKey))) return "enterpriseEccPrivateKey: buffer expected"; @@ -83233,7 +77461,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Enterprise.BackupUser.verify(message.users[i], long + 1); + let error = $root.Enterprise.BackupUser.verify(message.users[i]); if (error) return "users." + error; } @@ -83242,7 +77470,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Enterprise.BackupRecord.verify(message.records[i], long + 1); + let error = $root.Enterprise.BackupRecord.verify(message.records[i]); if (error) return "records." + error; } @@ -83261,13 +77489,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.BackupResponse} BackupResponse */ - BackupResponse.fromObject = function fromObject(object, long) { + BackupResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.BackupResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.BackupResponse(); if (object.enterpriseEccPrivateKey != null) if (typeof object.enterpriseEccPrivateKey === "string") @@ -83281,7 +77505,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Enterprise.BackupResponse.users: object expected"); - message.users[i] = $root.Enterprise.BackupUser.fromObject(object.users[i], long + 1); + message.users[i] = $root.Enterprise.BackupUser.fromObject(object.users[i]); } } if (object.records) { @@ -83291,7 +77515,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Enterprise.BackupResponse.records: object expected"); - message.records[i] = $root.Enterprise.BackupRecord.fromObject(object.records[i], long + 1); + message.records[i] = $root.Enterprise.BackupRecord.fromObject(object.records[i]); } } if (object.continuationToken != null) @@ -83311,13 +77535,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupResponse.toObject = function toObject(message, options, q) { + BackupResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.users = []; @@ -83344,12 +77564,12 @@ export const Enterprise = $root.Enterprise = (() => { if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Enterprise.BackupUser.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Enterprise.BackupUser.toObject(message.users[j], options); } if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Enterprise.BackupRecord.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Enterprise.BackupRecord.toObject(message.records[j], options); } if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; @@ -83409,7 +77629,7 @@ export const Enterprise = $root.Enterprise = (() => { function BackupFile(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -83474,13 +77694,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupFile.encode = function encode(message, writer, q) { + BackupFile.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.user != null && Object.hasOwnProperty.call(message, "user")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.user); if (message.backupUid != null && Object.hasOwnProperty.call(message, "backupUid")) @@ -83518,18 +77734,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupFile.decode = function decode(reader, length, error, long) { + BackupFile.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupFile(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.user = reader.string(); @@ -83552,7 +77762,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -83583,13 +77793,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupFile.verify = function verify(message, long) { + BackupFile.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.user != null && message.hasOwnProperty("user")) if (!$util.isString(message.user)) return "user: string expected"; @@ -83616,13 +77822,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.BackupFile} BackupFile */ - BackupFile.fromObject = function fromObject(object, long) { + BackupFile.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.BackupFile) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.BackupFile(); if (object.user != null) message.user = String(object.user); @@ -83635,7 +77837,7 @@ export const Enterprise = $root.Enterprise = (() => { message.fileName = String(object.fileName); if (object.created != null) if ($util.Long) - message.created = $util.Long.fromValue(object.created, false); + (message.created = $util.Long.fromValue(object.created)).unsigned = false; else if (typeof object.created === "string") message.created = parseInt(object.created, 10); else if (typeof object.created === "number") @@ -83656,13 +77858,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupFile.toObject = function toObject(message, options, q) { + BackupFile.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.user = ""; @@ -83676,9 +77874,9 @@ export const Enterprise = $root.Enterprise = (() => { object.fileName = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.created = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.created = options.longs === String ? "0" : 0; object.downloadUrl = ""; } if (message.user != null && message.hasOwnProperty("user")) @@ -83688,9 +77886,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.fileName != null && message.hasOwnProperty("fileName")) object.fileName = message.fileName; if (message.created != null && message.hasOwnProperty("created")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.created = typeof message.created === "number" ? BigInt(message.created) : $util.Long.fromBits(message.created.low >>> 0, message.created.high >>> 0, false).toBigInt(); - else if (typeof message.created === "number") + if (typeof message.created === "number") object.created = options.longs === String ? String(message.created) : message.created; else object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; @@ -83749,7 +77945,7 @@ export const Enterprise = $root.Enterprise = (() => { this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -83782,16 +77978,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BackupsResponse.encode = function encode(message, writer, q) { + BackupsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.files != null && message.files.length) for (let i = 0; i < message.files.length; ++i) - $root.Enterprise.BackupFile.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.BackupFile.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -83819,27 +78011,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BackupsResponse.decode = function decode(reader, length, error, long) { + BackupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.files && message.files.length)) message.files = []; - message.files.push($root.Enterprise.BackupFile.decode(reader, reader.uint32(), undefined, long + 1)); + message.files.push($root.Enterprise.BackupFile.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -83870,18 +78056,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BackupsResponse.verify = function verify(message, long) { + BackupsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.files != null && message.hasOwnProperty("files")) { if (!Array.isArray(message.files)) return "files: array expected"; for (let i = 0; i < message.files.length; ++i) { - let error = $root.Enterprise.BackupFile.verify(message.files[i], long + 1); + let error = $root.Enterprise.BackupFile.verify(message.files[i]); if (error) return "files." + error; } @@ -83897,13 +78079,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.BackupsResponse} BackupsResponse */ - BackupsResponse.fromObject = function fromObject(object, long) { + BackupsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.BackupsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.BackupsResponse(); if (object.files) { if (!Array.isArray(object.files)) @@ -83912,7 +78090,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.files.length; ++i) { if (typeof object.files[i] !== "object") throw TypeError(".Enterprise.BackupsResponse.files: object expected"); - message.files[i] = $root.Enterprise.BackupFile.fromObject(object.files[i], long + 1); + message.files[i] = $root.Enterprise.BackupFile.fromObject(object.files[i]); } } return message; @@ -83927,20 +78105,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BackupsResponse.toObject = function toObject(message, options, q) { + BackupsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.files = []; if (message.files && message.files.length) { object.files = []; for (let j = 0; j < message.files.length; ++j) - object.files[j] = $root.Enterprise.BackupFile.toObject(message.files[j], options, q + 1); + object.files[j] = $root.Enterprise.BackupFile.toObject(message.files[j], options); } return object; }; @@ -83995,7 +78169,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -84028,13 +78202,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnterpriseDataKeysRequest.encode = function encode(message, writer, q) { + GetEnterpriseDataKeysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && message.roleId.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.roleId.length; ++i) @@ -84068,18 +78238,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnterpriseDataKeysRequest.decode = function decode(reader, length, error, long) { + GetEnterpriseDataKeysRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetEnterpriseDataKeysRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.roleId && message.roleId.length)) @@ -84093,7 +78257,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -84124,13 +78288,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEnterpriseDataKeysRequest.verify = function verify(message, long) { + GetEnterpriseDataKeysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) { if (!Array.isArray(message.roleId)) return "roleId: array expected"; @@ -84149,13 +78309,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.GetEnterpriseDataKeysRequest} GetEnterpriseDataKeysRequest */ - GetEnterpriseDataKeysRequest.fromObject = function fromObject(object, long) { + GetEnterpriseDataKeysRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.GetEnterpriseDataKeysRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.GetEnterpriseDataKeysRequest(); if (object.roleId) { if (!Array.isArray(object.roleId)) @@ -84163,7 +78319,7 @@ export const Enterprise = $root.Enterprise = (() => { message.roleId = []; for (let i = 0; i < object.roleId.length; ++i) if ($util.Long) - message.roleId[i] = $util.Long.fromValue(object.roleId[i], false); + (message.roleId[i] = $util.Long.fromValue(object.roleId[i])).unsigned = false; else if (typeof object.roleId[i] === "string") message.roleId[i] = parseInt(object.roleId[i], 10); else if (typeof object.roleId[i] === "number") @@ -84183,22 +78339,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnterpriseDataKeysRequest.toObject = function toObject(message, options, q) { + GetEnterpriseDataKeysRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.roleId = []; if (message.roleId && message.roleId.length) { object.roleId = []; for (let j = 0; j < message.roleId.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId[j] = typeof message.roleId[j] === "number" ? BigInt(message.roleId[j]) : $util.Long.fromBits(message.roleId[j].low >>> 0, message.roleId[j].high >>> 0, false).toBigInt(); - else if (typeof message.roleId[j] === "number") + if (typeof message.roleId[j] === "number") object.roleId[j] = options.longs === String ? String(message.roleId[j]) : message.roleId[j]; else object.roleId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.roleId[j]) : options.longs === Number ? new $util.LongBits(message.roleId[j].low >>> 0, message.roleId[j].high >>> 0).toNumber() : message.roleId[j]; @@ -84261,7 +78411,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -84326,25 +78476,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnterpriseDataKeysResponse.encode = function encode(message, writer, q) { + GetEnterpriseDataKeysResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.reEncryptedRoleKey != null && message.reEncryptedRoleKey.length) for (let i = 0; i < message.reEncryptedRoleKey.length; ++i) - $root.Enterprise.ReEncryptedRoleKey.encode(message.reEncryptedRoleKey[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.ReEncryptedRoleKey.encode(message.reEncryptedRoleKey[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.roleKey != null && message.roleKey.length) for (let i = 0; i < message.roleKey.length; ++i) - $root.Enterprise.RoleKey.encode(message.roleKey[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.RoleKey.encode(message.roleKey[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.mspKey != null && Object.hasOwnProperty.call(message, "mspKey")) - $root.Enterprise.MspKey.encode(message.mspKey, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Enterprise.MspKey.encode(message.mspKey, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.enterpriseKeys != null && Object.hasOwnProperty.call(message, "enterpriseKeys")) - $root.Enterprise.EnterpriseKeys.encode(message.enterpriseKeys, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseKeys.encode(message.enterpriseKeys, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) - $root.Enterprise.TreeKey.encode(message.treeKey, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Enterprise.TreeKey.encode(message.treeKey, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -84372,45 +78518,39 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnterpriseDataKeysResponse.decode = function decode(reader, length, error, long) { + GetEnterpriseDataKeysResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetEnterpriseDataKeysResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.reEncryptedRoleKey && message.reEncryptedRoleKey.length)) message.reEncryptedRoleKey = []; - message.reEncryptedRoleKey.push($root.Enterprise.ReEncryptedRoleKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.reEncryptedRoleKey.push($root.Enterprise.ReEncryptedRoleKey.decode(reader, reader.uint32())); break; } case 2: { if (!(message.roleKey && message.roleKey.length)) message.roleKey = []; - message.roleKey.push($root.Enterprise.RoleKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.roleKey.push($root.Enterprise.RoleKey.decode(reader, reader.uint32())); break; } case 3: { - message.mspKey = $root.Enterprise.MspKey.decode(reader, reader.uint32(), undefined, long + 1); + message.mspKey = $root.Enterprise.MspKey.decode(reader, reader.uint32()); break; } case 4: { - message.enterpriseKeys = $root.Enterprise.EnterpriseKeys.decode(reader, reader.uint32(), undefined, long + 1); + message.enterpriseKeys = $root.Enterprise.EnterpriseKeys.decode(reader, reader.uint32()); break; } case 5: { - message.treeKey = $root.Enterprise.TreeKey.decode(reader, reader.uint32(), undefined, long + 1); + message.treeKey = $root.Enterprise.TreeKey.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -84441,18 +78581,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEnterpriseDataKeysResponse.verify = function verify(message, long) { + GetEnterpriseDataKeysResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.reEncryptedRoleKey != null && message.hasOwnProperty("reEncryptedRoleKey")) { if (!Array.isArray(message.reEncryptedRoleKey)) return "reEncryptedRoleKey: array expected"; for (let i = 0; i < message.reEncryptedRoleKey.length; ++i) { - let error = $root.Enterprise.ReEncryptedRoleKey.verify(message.reEncryptedRoleKey[i], long + 1); + let error = $root.Enterprise.ReEncryptedRoleKey.verify(message.reEncryptedRoleKey[i]); if (error) return "reEncryptedRoleKey." + error; } @@ -84461,23 +78597,23 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.roleKey)) return "roleKey: array expected"; for (let i = 0; i < message.roleKey.length; ++i) { - let error = $root.Enterprise.RoleKey.verify(message.roleKey[i], long + 1); + let error = $root.Enterprise.RoleKey.verify(message.roleKey[i]); if (error) return "roleKey." + error; } } if (message.mspKey != null && message.hasOwnProperty("mspKey")) { - let error = $root.Enterprise.MspKey.verify(message.mspKey, long + 1); + let error = $root.Enterprise.MspKey.verify(message.mspKey); if (error) return "mspKey." + error; } if (message.enterpriseKeys != null && message.hasOwnProperty("enterpriseKeys")) { - let error = $root.Enterprise.EnterpriseKeys.verify(message.enterpriseKeys, long + 1); + let error = $root.Enterprise.EnterpriseKeys.verify(message.enterpriseKeys); if (error) return "enterpriseKeys." + error; } if (message.treeKey != null && message.hasOwnProperty("treeKey")) { - let error = $root.Enterprise.TreeKey.verify(message.treeKey, long + 1); + let error = $root.Enterprise.TreeKey.verify(message.treeKey); if (error) return "treeKey." + error; } @@ -84492,13 +78628,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.GetEnterpriseDataKeysResponse} GetEnterpriseDataKeysResponse */ - GetEnterpriseDataKeysResponse.fromObject = function fromObject(object, long) { + GetEnterpriseDataKeysResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.GetEnterpriseDataKeysResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.GetEnterpriseDataKeysResponse(); if (object.reEncryptedRoleKey) { if (!Array.isArray(object.reEncryptedRoleKey)) @@ -84507,7 +78639,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.reEncryptedRoleKey.length; ++i) { if (typeof object.reEncryptedRoleKey[i] !== "object") throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.reEncryptedRoleKey: object expected"); - message.reEncryptedRoleKey[i] = $root.Enterprise.ReEncryptedRoleKey.fromObject(object.reEncryptedRoleKey[i], long + 1); + message.reEncryptedRoleKey[i] = $root.Enterprise.ReEncryptedRoleKey.fromObject(object.reEncryptedRoleKey[i]); } } if (object.roleKey) { @@ -84517,23 +78649,23 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.roleKey.length; ++i) { if (typeof object.roleKey[i] !== "object") throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.roleKey: object expected"); - message.roleKey[i] = $root.Enterprise.RoleKey.fromObject(object.roleKey[i], long + 1); + message.roleKey[i] = $root.Enterprise.RoleKey.fromObject(object.roleKey[i]); } } if (object.mspKey != null) { if (typeof object.mspKey !== "object") throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.mspKey: object expected"); - message.mspKey = $root.Enterprise.MspKey.fromObject(object.mspKey, long + 1); + message.mspKey = $root.Enterprise.MspKey.fromObject(object.mspKey); } if (object.enterpriseKeys != null) { if (typeof object.enterpriseKeys !== "object") throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.enterpriseKeys: object expected"); - message.enterpriseKeys = $root.Enterprise.EnterpriseKeys.fromObject(object.enterpriseKeys, long + 1); + message.enterpriseKeys = $root.Enterprise.EnterpriseKeys.fromObject(object.enterpriseKeys); } if (object.treeKey != null) { if (typeof object.treeKey !== "object") throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.treeKey: object expected"); - message.treeKey = $root.Enterprise.TreeKey.fromObject(object.treeKey, long + 1); + message.treeKey = $root.Enterprise.TreeKey.fromObject(object.treeKey); } return message; }; @@ -84547,13 +78679,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnterpriseDataKeysResponse.toObject = function toObject(message, options, q) { + GetEnterpriseDataKeysResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.reEncryptedRoleKey = []; @@ -84567,19 +78695,19 @@ export const Enterprise = $root.Enterprise = (() => { if (message.reEncryptedRoleKey && message.reEncryptedRoleKey.length) { object.reEncryptedRoleKey = []; for (let j = 0; j < message.reEncryptedRoleKey.length; ++j) - object.reEncryptedRoleKey[j] = $root.Enterprise.ReEncryptedRoleKey.toObject(message.reEncryptedRoleKey[j], options, q + 1); + object.reEncryptedRoleKey[j] = $root.Enterprise.ReEncryptedRoleKey.toObject(message.reEncryptedRoleKey[j], options); } if (message.roleKey && message.roleKey.length) { object.roleKey = []; for (let j = 0; j < message.roleKey.length; ++j) - object.roleKey[j] = $root.Enterprise.RoleKey.toObject(message.roleKey[j], options, q + 1); + object.roleKey[j] = $root.Enterprise.RoleKey.toObject(message.roleKey[j], options); } if (message.mspKey != null && message.hasOwnProperty("mspKey")) - object.mspKey = $root.Enterprise.MspKey.toObject(message.mspKey, options, q + 1); + object.mspKey = $root.Enterprise.MspKey.toObject(message.mspKey, options); if (message.enterpriseKeys != null && message.hasOwnProperty("enterpriseKeys")) - object.enterpriseKeys = $root.Enterprise.EnterpriseKeys.toObject(message.enterpriseKeys, options, q + 1); + object.enterpriseKeys = $root.Enterprise.EnterpriseKeys.toObject(message.enterpriseKeys, options); if (message.treeKey != null && message.hasOwnProperty("treeKey")) - object.treeKey = $root.Enterprise.TreeKey.toObject(message.treeKey, options, q + 1); + object.treeKey = $root.Enterprise.TreeKey.toObject(message.treeKey, options); return object; }; @@ -84634,7 +78762,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -84683,13 +78811,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleKey.encode = function encode(message, writer, q) { + RoleKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.encryptedKey != null && Object.hasOwnProperty.call(message, "encryptedKey")) @@ -84723,18 +78847,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleKey.decode = function decode(reader, length, error, long) { + RoleKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -84749,7 +78867,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -84780,13 +78898,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleKey.verify = function verify(message, long) { + RoleKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -84815,17 +78929,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleKey} RoleKey */ - RoleKey.fromObject = function fromObject(object, long) { + RoleKey.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleKey(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -84874,27 +78984,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleKey.toObject = function toObject(message, options, q) { + RoleKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; object.encryptedKey = ""; object.keyType = options.enums === String ? "KT_NO_KEY" : 0; } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -84955,7 +79059,7 @@ export const Enterprise = $root.Enterprise = (() => { function MspKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -84996,13 +79100,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MspKey.encode = function encode(message, writer, q) { + MspKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedMspTreeKey != null && Object.hasOwnProperty.call(message, "encryptedMspTreeKey")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.encryptedMspTreeKey); if (message.encryptedMspTreeKeyType != null && Object.hasOwnProperty.call(message, "encryptedMspTreeKeyType")) @@ -85034,18 +79134,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MspKey.decode = function decode(reader, length, error, long) { + MspKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MspKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedMspTreeKey = reader.string(); @@ -85056,7 +79150,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -85087,13 +79181,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MspKey.verify = function verify(message, long) { + MspKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedMspTreeKey != null && message.hasOwnProperty("encryptedMspTreeKey")) if (!$util.isString(message.encryptedMspTreeKey)) return "encryptedMspTreeKey: string expected"; @@ -85119,13 +79209,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.MspKey} MspKey */ - MspKey.fromObject = function fromObject(object, long) { + MspKey.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.MspKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.MspKey(); if (object.encryptedMspTreeKey != null) message.encryptedMspTreeKey = String(object.encryptedMspTreeKey); @@ -85169,13 +79255,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MspKey.toObject = function toObject(message, options, q) { + MspKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.encryptedMspTreeKey = ""; @@ -85260,7 +79342,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseKeys(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -85317,13 +79399,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseKeys.encode = function encode(message, writer, q) { + EnterpriseKeys.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.rsaPublicKey != null && Object.hasOwnProperty.call(message, "rsaPublicKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rsaPublicKey); if (message.rsaEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "rsaEncryptedPrivateKey")) @@ -85359,18 +79437,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseKeys.decode = function decode(reader, length, error, long) { + EnterpriseKeys.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseKeys(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.rsaPublicKey = reader.bytes(); @@ -85389,7 +79461,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -85420,13 +79492,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseKeys.verify = function verify(message, long) { + EnterpriseKeys.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) if (!(message.rsaPublicKey && typeof message.rsaPublicKey.length === "number" || $util.isString(message.rsaPublicKey))) return "rsaPublicKey: buffer expected"; @@ -85450,13 +79518,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseKeys} EnterpriseKeys */ - EnterpriseKeys.fromObject = function fromObject(object, long) { + EnterpriseKeys.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseKeys) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseKeys(); if (object.rsaPublicKey != null) if (typeof object.rsaPublicKey === "string") @@ -85490,13 +79554,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseKeys.toObject = function toObject(message, options, q) { + EnterpriseKeys.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -85589,7 +79649,7 @@ export const Enterprise = $root.Enterprise = (() => { function TreeKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -85630,13 +79690,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TreeKey.encode = function encode(message, writer, q) { + TreeKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.treeKey); if (message.keyTypeId != null && Object.hasOwnProperty.call(message, "keyTypeId")) @@ -85668,18 +79724,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TreeKey.decode = function decode(reader, length, error, long) { + TreeKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TreeKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.treeKey = reader.string(); @@ -85690,7 +79740,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -85721,13 +79771,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TreeKey.verify = function verify(message, long) { + TreeKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.treeKey != null && message.hasOwnProperty("treeKey")) if (!$util.isString(message.treeKey)) return "treeKey: string expected"; @@ -85753,13 +79799,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TreeKey} TreeKey */ - TreeKey.fromObject = function fromObject(object, long) { + TreeKey.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TreeKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TreeKey(); if (object.treeKey != null) message.treeKey = String(object.treeKey); @@ -85803,13 +79845,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TreeKey.toObject = function toObject(message, options, q) { + TreeKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.treeKey = ""; @@ -85872,7 +79910,7 @@ export const Enterprise = $root.Enterprise = (() => { this.events = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -85905,16 +79943,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedRecordResponse.encode = function encode(message, writer, q) { + SharedRecordResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.events != null && message.events.length) for (let i = 0; i < message.events.length; ++i) - $root.Enterprise.SharedRecordEvent.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.SharedRecordEvent.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -85942,27 +79976,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedRecordResponse.decode = function decode(reader, length, error, long) { + SharedRecordResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SharedRecordResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.events && message.events.length)) message.events = []; - message.events.push($root.Enterprise.SharedRecordEvent.decode(reader, reader.uint32(), undefined, long + 1)); + message.events.push($root.Enterprise.SharedRecordEvent.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -85993,18 +80021,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedRecordResponse.verify = function verify(message, long) { + SharedRecordResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.events != null && message.hasOwnProperty("events")) { if (!Array.isArray(message.events)) return "events: array expected"; for (let i = 0; i < message.events.length; ++i) { - let error = $root.Enterprise.SharedRecordEvent.verify(message.events[i], long + 1); + let error = $root.Enterprise.SharedRecordEvent.verify(message.events[i]); if (error) return "events." + error; } @@ -86020,13 +80044,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.SharedRecordResponse} SharedRecordResponse */ - SharedRecordResponse.fromObject = function fromObject(object, long) { + SharedRecordResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.SharedRecordResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.SharedRecordResponse(); if (object.events) { if (!Array.isArray(object.events)) @@ -86035,7 +80055,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.events.length; ++i) { if (typeof object.events[i] !== "object") throw TypeError(".Enterprise.SharedRecordResponse.events: object expected"); - message.events[i] = $root.Enterprise.SharedRecordEvent.fromObject(object.events[i], long + 1); + message.events[i] = $root.Enterprise.SharedRecordEvent.fromObject(object.events[i]); } } return message; @@ -86050,20 +80070,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedRecordResponse.toObject = function toObject(message, options, q) { + SharedRecordResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.events = []; if (message.events && message.events.length) { object.events = []; for (let j = 0; j < message.events.length; ++j) - object.events[j] = $root.Enterprise.SharedRecordEvent.toObject(message.events[j], options, q + 1); + object.events[j] = $root.Enterprise.SharedRecordEvent.toObject(message.events[j], options); } return object; }; @@ -86121,7 +80137,7 @@ export const Enterprise = $root.Enterprise = (() => { function SharedRecordEvent(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -86186,13 +80202,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedRecordEvent.encode = function encode(message, writer, q) { + SharedRecordEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) @@ -86230,18 +80242,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedRecordEvent.decode = function decode(reader, length, error, long) { + SharedRecordEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SharedRecordEvent(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -86264,7 +80270,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -86295,13 +80301,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedRecordEvent.verify = function verify(message, long) { + SharedRecordEvent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -86328,13 +80330,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.SharedRecordEvent} SharedRecordEvent */ - SharedRecordEvent.fromObject = function fromObject(object, long) { + SharedRecordEvent.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.SharedRecordEvent) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.SharedRecordEvent(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -86361,13 +80359,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedRecordEvent.toObject = function toObject(message, options, q) { + SharedRecordEvent.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -86480,7 +80474,7 @@ export const Enterprise = $root.Enterprise = (() => { function SetRestrictVisibilityRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -86513,13 +80507,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetRestrictVisibilityRequest.encode = function encode(message, writer, q) { + SetRestrictVisibilityRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); return writer; @@ -86549,25 +80539,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetRestrictVisibilityRequest.decode = function decode(reader, length, error, long) { + SetRestrictVisibilityRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SetRestrictVisibilityRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nodeId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -86598,13 +80582,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetRestrictVisibilityRequest.verify = function verify(message, long) { + SetRestrictVisibilityRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeId != null && message.hasOwnProperty("nodeId")) if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) return "nodeId: integer|Long expected"; @@ -86619,17 +80599,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.SetRestrictVisibilityRequest} SetRestrictVisibilityRequest */ - SetRestrictVisibilityRequest.fromObject = function fromObject(object, long) { + SetRestrictVisibilityRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.SetRestrictVisibilityRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.SetRestrictVisibilityRequest(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -86648,24 +80624,18 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetRestrictVisibilityRequest.toObject = function toObject(message, options, q) { + SetRestrictVisibilityRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -86728,7 +80698,7 @@ export const Enterprise = $root.Enterprise = (() => { function UserAddRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -86817,13 +80787,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserAddRequest.encode = function encode(message, writer, q) { + UserAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -86867,18 +80833,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserAddRequest.decode = function decode(reader, length, error, long) { + UserAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -86913,7 +80873,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -86944,13 +80904,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserAddRequest.verify = function verify(message, long) { + UserAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -86994,17 +80950,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserAddRequest} UserAddRequest */ - UserAddRequest.fromObject = function fromObject(object, long) { + UserAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserAddRequest(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -87013,7 +80965,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -87073,25 +81025,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserAddRequest.toObject = function toObject(message, options, q) { + UserAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if (options.bytes === String) object.encryptedData = ""; else { @@ -87106,16 +81054,12 @@ export const Enterprise = $root.Enterprise = (() => { object.suppressEmailInvite = false; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -87184,7 +81128,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -87217,16 +81161,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserUpdateRequest.encode = function encode(message, writer, q) { + UserUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.UserUpdate.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.UserUpdate.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -87254,27 +81194,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserUpdateRequest.decode = function decode(reader, length, error, long) { + UserUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Enterprise.UserUpdate.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Enterprise.UserUpdate.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -87305,18 +81239,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserUpdateRequest.verify = function verify(message, long) { + UserUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.users != null && message.hasOwnProperty("users")) { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Enterprise.UserUpdate.verify(message.users[i], long + 1); + let error = $root.Enterprise.UserUpdate.verify(message.users[i]); if (error) return "users." + error; } @@ -87332,13 +81262,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserUpdateRequest} UserUpdateRequest */ - UserUpdateRequest.fromObject = function fromObject(object, long) { + UserUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserUpdateRequest(); if (object.users) { if (!Array.isArray(object.users)) @@ -87347,7 +81273,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Enterprise.UserUpdateRequest.users: object expected"); - message.users[i] = $root.Enterprise.UserUpdate.fromObject(object.users[i], long + 1); + message.users[i] = $root.Enterprise.UserUpdate.fromObject(object.users[i]); } } return message; @@ -87362,20 +81288,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserUpdateRequest.toObject = function toObject(message, options, q) { + UserUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.users = []; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Enterprise.UserUpdate.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Enterprise.UserUpdate.toObject(message.users[j], options); } return object; }; @@ -87435,7 +81357,7 @@ export const Enterprise = $root.Enterprise = (() => { function UserUpdate(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -87516,13 +81438,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserUpdate.encode = function encode(message, writer, q) { + UserUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -87564,18 +81482,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserUpdate.decode = function decode(reader, length, error, long) { + UserUpdate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserUpdate(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -87606,7 +81518,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -87637,13 +81549,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserUpdate.verify = function verify(message, long) { + UserUpdate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -87684,17 +81592,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserUpdate} UserUpdate */ - UserUpdate.fromObject = function fromObject(object, long) { + UserUpdate.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserUpdate) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserUpdate(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -87703,7 +81607,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -87761,25 +81665,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserUpdate.toObject = function toObject(message, options, q) { + UserUpdate.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if (options.bytes === String) object.encryptedData = ""; else { @@ -87793,16 +81693,12 @@ export const Enterprise = $root.Enterprise = (() => { object.email = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -87869,7 +81765,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -87902,16 +81798,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserUpdateResponse.encode = function encode(message, writer, q) { + UserUpdateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.UserUpdateResult.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.UserUpdateResult.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -87939,27 +81831,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserUpdateResponse.decode = function decode(reader, length, error, long) { + UserUpdateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Enterprise.UserUpdateResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Enterprise.UserUpdateResult.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -87990,18 +81876,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserUpdateResponse.verify = function verify(message, long) { + UserUpdateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.users != null && message.hasOwnProperty("users")) { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Enterprise.UserUpdateResult.verify(message.users[i], long + 1); + let error = $root.Enterprise.UserUpdateResult.verify(message.users[i]); if (error) return "users." + error; } @@ -88017,13 +81899,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserUpdateResponse} UserUpdateResponse */ - UserUpdateResponse.fromObject = function fromObject(object, long) { + UserUpdateResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserUpdateResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserUpdateResponse(); if (object.users) { if (!Array.isArray(object.users)) @@ -88032,7 +81910,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Enterprise.UserUpdateResponse.users: object expected"); - message.users[i] = $root.Enterprise.UserUpdateResult.fromObject(object.users[i], long + 1); + message.users[i] = $root.Enterprise.UserUpdateResult.fromObject(object.users[i]); } } return message; @@ -88047,20 +81925,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserUpdateResponse.toObject = function toObject(message, options, q) { + UserUpdateResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.users = []; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Enterprise.UserUpdateResult.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Enterprise.UserUpdateResult.toObject(message.users[j], options); } return object; }; @@ -88115,7 +81989,7 @@ export const Enterprise = $root.Enterprise = (() => { function UserUpdateResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -88156,13 +82030,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserUpdateResult.encode = function encode(message, writer, q) { + UserUpdateResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -88194,18 +82064,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserUpdateResult.decode = function decode(reader, length, error, long) { + UserUpdateResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserUpdateResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -88216,7 +82080,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -88247,13 +82111,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserUpdateResult.verify = function verify(message, long) { + UserUpdateResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -88276,17 +82136,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserUpdateResult} UserUpdateResult */ - UserUpdateResult.fromObject = function fromObject(object, long) { + UserUpdateResult.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserUpdateResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserUpdateResult(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -88321,26 +82177,20 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserUpdateResult.toObject = function toObject(message, options, q) { + UserUpdateResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.status = options.enums === String ? "USER_UPDATE_OK" : 0; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -88414,7 +82264,7 @@ export const Enterprise = $root.Enterprise = (() => { this.nodeIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -88455,13 +82305,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceRecordOwnersRequest.encode = function encode(message, writer, q) { + ComplianceRecordOwnersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeIds != null && message.nodeIds.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.nodeIds.length; ++i) @@ -88497,18 +82343,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceRecordOwnersRequest.decode = function decode(reader, length, error, long) { + ComplianceRecordOwnersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceRecordOwnersRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.nodeIds && message.nodeIds.length)) @@ -88526,7 +82366,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -88557,13 +82397,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceRecordOwnersRequest.verify = function verify(message, long) { + ComplianceRecordOwnersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeIds != null && message.hasOwnProperty("nodeIds")) { if (!Array.isArray(message.nodeIds)) return "nodeIds: array expected"; @@ -88585,13 +82421,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceRecordOwnersRequest} ComplianceRecordOwnersRequest */ - ComplianceRecordOwnersRequest.fromObject = function fromObject(object, long) { + ComplianceRecordOwnersRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceRecordOwnersRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceRecordOwnersRequest(); if (object.nodeIds) { if (!Array.isArray(object.nodeIds)) @@ -88599,7 +82431,7 @@ export const Enterprise = $root.Enterprise = (() => { message.nodeIds = []; for (let i = 0; i < object.nodeIds.length; ++i) if ($util.Long) - message.nodeIds[i] = $util.Long.fromValue(object.nodeIds[i], false); + (message.nodeIds[i] = $util.Long.fromValue(object.nodeIds[i])).unsigned = false; else if (typeof object.nodeIds[i] === "string") message.nodeIds[i] = parseInt(object.nodeIds[i], 10); else if (typeof object.nodeIds[i] === "number") @@ -88621,13 +82453,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceRecordOwnersRequest.toObject = function toObject(message, options, q) { + ComplianceRecordOwnersRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.nodeIds = []; @@ -88636,9 +82464,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.nodeIds && message.nodeIds.length) { object.nodeIds = []; for (let j = 0; j < message.nodeIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeIds[j] = typeof message.nodeIds[j] === "number" ? BigInt(message.nodeIds[j]) : $util.Long.fromBits(message.nodeIds[j].low >>> 0, message.nodeIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.nodeIds[j] === "number") + if (typeof message.nodeIds[j] === "number") object.nodeIds[j] = options.longs === String ? String(message.nodeIds[j]) : message.nodeIds[j]; else object.nodeIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.nodeIds[j]) : options.longs === Number ? new $util.LongBits(message.nodeIds[j].low >>> 0, message.nodeIds[j].high >>> 0).toNumber() : message.nodeIds[j]; @@ -88698,7 +82524,7 @@ export const Enterprise = $root.Enterprise = (() => { this.recordOwners = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -88731,16 +82557,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceRecordOwnersResponse.encode = function encode(message, writer, q) { + ComplianceRecordOwnersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordOwners != null && message.recordOwners.length) for (let i = 0; i < message.recordOwners.length; ++i) - $root.Enterprise.RecordOwner.encode(message.recordOwners[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.RecordOwner.encode(message.recordOwners[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -88768,27 +82590,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceRecordOwnersResponse.decode = function decode(reader, length, error, long) { + ComplianceRecordOwnersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceRecordOwnersResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordOwners && message.recordOwners.length)) message.recordOwners = []; - message.recordOwners.push($root.Enterprise.RecordOwner.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordOwners.push($root.Enterprise.RecordOwner.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -88819,18 +82635,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceRecordOwnersResponse.verify = function verify(message, long) { + ComplianceRecordOwnersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordOwners != null && message.hasOwnProperty("recordOwners")) { if (!Array.isArray(message.recordOwners)) return "recordOwners: array expected"; for (let i = 0; i < message.recordOwners.length; ++i) { - let error = $root.Enterprise.RecordOwner.verify(message.recordOwners[i], long + 1); + let error = $root.Enterprise.RecordOwner.verify(message.recordOwners[i]); if (error) return "recordOwners." + error; } @@ -88846,13 +82658,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceRecordOwnersResponse} ComplianceRecordOwnersResponse */ - ComplianceRecordOwnersResponse.fromObject = function fromObject(object, long) { + ComplianceRecordOwnersResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceRecordOwnersResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceRecordOwnersResponse(); if (object.recordOwners) { if (!Array.isArray(object.recordOwners)) @@ -88861,7 +82669,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.recordOwners.length; ++i) { if (typeof object.recordOwners[i] !== "object") throw TypeError(".Enterprise.ComplianceRecordOwnersResponse.recordOwners: object expected"); - message.recordOwners[i] = $root.Enterprise.RecordOwner.fromObject(object.recordOwners[i], long + 1); + message.recordOwners[i] = $root.Enterprise.RecordOwner.fromObject(object.recordOwners[i]); } } return message; @@ -88876,20 +82684,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceRecordOwnersResponse.toObject = function toObject(message, options, q) { + ComplianceRecordOwnersResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordOwners = []; if (message.recordOwners && message.recordOwners.length) { object.recordOwners = []; for (let j = 0; j < message.recordOwners.length; ++j) - object.recordOwners[j] = $root.Enterprise.RecordOwner.toObject(message.recordOwners[j], options, q + 1); + object.recordOwners[j] = $root.Enterprise.RecordOwner.toObject(message.recordOwners[j], options); } return object; }; @@ -88944,7 +82748,7 @@ export const Enterprise = $root.Enterprise = (() => { function RecordOwner(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -88985,13 +82789,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordOwner.encode = function encode(message, writer, q) { + RecordOwner.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) @@ -89023,18 +82823,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordOwner.decode = function decode(reader, length, error, long) { + RecordOwner.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RecordOwner(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -89045,7 +82839,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -89076,13 +82870,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordOwner.verify = function verify(message, long) { + RecordOwner.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -89100,17 +82890,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RecordOwner} RecordOwner */ - RecordOwner.fromObject = function fromObject(object, long) { + RecordOwner.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RecordOwner) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RecordOwner(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -89131,26 +82917,20 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordOwner.toObject = function toObject(message, options, q) { + RecordOwner.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.shared = false; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -89212,7 +82992,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -89269,13 +83049,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PreliminaryComplianceDataRequest.encode = function encode(message, writer, q) { + PreliminaryComplianceDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.enterpriseUserIds.length; ++i) @@ -89315,18 +83091,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PreliminaryComplianceDataRequest.decode = function decode(reader, length, error, long) { + PreliminaryComplianceDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.PreliminaryComplianceDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.enterpriseUserIds && message.enterpriseUserIds.length)) @@ -89352,7 +83122,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -89383,13 +83153,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PreliminaryComplianceDataRequest.verify = function verify(message, long) { + PreliminaryComplianceDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { if (!Array.isArray(message.enterpriseUserIds)) return "enterpriseUserIds: array expected"; @@ -89417,13 +83183,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.PreliminaryComplianceDataRequest} PreliminaryComplianceDataRequest */ - PreliminaryComplianceDataRequest.fromObject = function fromObject(object, long) { + PreliminaryComplianceDataRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.PreliminaryComplianceDataRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.PreliminaryComplianceDataRequest(); if (object.enterpriseUserIds) { if (!Array.isArray(object.enterpriseUserIds)) @@ -89431,7 +83193,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i], false); + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; else if (typeof object.enterpriseUserIds[i] === "string") message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); else if (typeof object.enterpriseUserIds[i] === "number") @@ -89460,13 +83222,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PreliminaryComplianceDataRequest.toObject = function toObject(message, options, q) { + PreliminaryComplianceDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUserIds = []; @@ -89484,9 +83242,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserIds[j] = typeof message.enterpriseUserIds[j] === "number" ? BigInt(message.enterpriseUserIds[j]) : $util.Long.fromBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserIds[j] === "number") + if (typeof message.enterpriseUserIds[j] === "number") object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; else object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; @@ -89553,7 +83309,7 @@ export const Enterprise = $root.Enterprise = (() => { this.auditUserData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -89610,16 +83366,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PreliminaryComplianceDataResponse.encode = function encode(message, writer, q) { + PreliminaryComplianceDataResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.auditUserData != null && message.auditUserData.length) for (let i = 0; i < message.auditUserData.length; ++i) - $root.Enterprise.AuditUserData.encode(message.auditUserData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.AuditUserData.encode(message.auditUserData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.continuationToken); if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) @@ -89653,23 +83405,17 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PreliminaryComplianceDataResponse.decode = function decode(reader, length, error, long) { + PreliminaryComplianceDataResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.PreliminaryComplianceDataResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.auditUserData && message.auditUserData.length)) message.auditUserData = []; - message.auditUserData.push($root.Enterprise.AuditUserData.decode(reader, reader.uint32(), undefined, long + 1)); + message.auditUserData.push($root.Enterprise.AuditUserData.decode(reader, reader.uint32())); break; } case 2: { @@ -89685,7 +83431,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -89716,18 +83462,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PreliminaryComplianceDataResponse.verify = function verify(message, long) { + PreliminaryComplianceDataResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.auditUserData != null && message.hasOwnProperty("auditUserData")) { if (!Array.isArray(message.auditUserData)) return "auditUserData: array expected"; for (let i = 0; i < message.auditUserData.length; ++i) { - let error = $root.Enterprise.AuditUserData.verify(message.auditUserData[i], long + 1); + let error = $root.Enterprise.AuditUserData.verify(message.auditUserData[i]); if (error) return "auditUserData." + error; } @@ -89752,13 +83494,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.PreliminaryComplianceDataResponse} PreliminaryComplianceDataResponse */ - PreliminaryComplianceDataResponse.fromObject = function fromObject(object, long) { + PreliminaryComplianceDataResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.PreliminaryComplianceDataResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.PreliminaryComplianceDataResponse(); if (object.auditUserData) { if (!Array.isArray(object.auditUserData)) @@ -89767,7 +83505,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.auditUserData.length; ++i) { if (typeof object.auditUserData[i] !== "object") throw TypeError(".Enterprise.PreliminaryComplianceDataResponse.auditUserData: object expected"); - message.auditUserData[i] = $root.Enterprise.AuditUserData.fromObject(object.auditUserData[i], long + 1); + message.auditUserData[i] = $root.Enterprise.AuditUserData.fromObject(object.auditUserData[i]); } } if (object.continuationToken != null) @@ -89791,13 +83529,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PreliminaryComplianceDataResponse.toObject = function toObject(message, options, q) { + PreliminaryComplianceDataResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.auditUserData = []; @@ -89815,7 +83549,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.auditUserData && message.auditUserData.length) { object.auditUserData = []; for (let j = 0; j < message.auditUserData.length; ++j) - object.auditUserData[j] = $root.Enterprise.AuditUserData.toObject(message.auditUserData[j], options, q + 1); + object.auditUserData[j] = $root.Enterprise.AuditUserData.toObject(message.auditUserData[j], options); } if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; @@ -89877,7 +83611,7 @@ export const Enterprise = $root.Enterprise = (() => { function AuditUserRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -89926,13 +83660,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserRecord.encode = function encode(message, writer, q) { + AuditUserRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) @@ -89966,18 +83696,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserRecord.decode = function decode(reader, length, error, long) { + AuditUserRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditUserRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -89992,7 +83716,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -90023,13 +83747,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditUserRecord.verify = function verify(message, long) { + AuditUserRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -90050,13 +83770,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.AuditUserRecord} AuditUserRecord */ - AuditUserRecord.fromObject = function fromObject(object, long) { + AuditUserRecord.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.AuditUserRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.AuditUserRecord(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -90082,13 +83798,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditUserRecord.toObject = function toObject(message, options, q) { + AuditUserRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -90184,7 +83896,7 @@ export const Enterprise = $root.Enterprise = (() => { this.auditUserRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -90233,18 +83945,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditUserData.encode = function encode(message, writer, q) { + AuditUserData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.auditUserRecords != null && message.auditUserRecords.length) for (let i = 0; i < message.auditUserRecords.length; ++i) - $root.Enterprise.AuditUserRecord.encode(message.auditUserRecords[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.AuditUserRecord.encode(message.auditUserRecords[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); return writer; @@ -90274,18 +83982,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditUserData.decode = function decode(reader, length, error, long) { + AuditUserData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditUserData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -90294,7 +83996,7 @@ export const Enterprise = $root.Enterprise = (() => { case 2: { if (!(message.auditUserRecords && message.auditUserRecords.length)) message.auditUserRecords = []; - message.auditUserRecords.push($root.Enterprise.AuditUserRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.auditUserRecords.push($root.Enterprise.AuditUserRecord.decode(reader, reader.uint32())); break; } case 3: { @@ -90302,7 +84004,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -90333,13 +84035,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditUserData.verify = function verify(message, long) { + AuditUserData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -90347,7 +84045,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.auditUserRecords)) return "auditUserRecords: array expected"; for (let i = 0; i < message.auditUserRecords.length; ++i) { - let error = $root.Enterprise.AuditUserRecord.verify(message.auditUserRecords[i], long + 1); + let error = $root.Enterprise.AuditUserRecord.verify(message.auditUserRecords[i]); if (error) return "auditUserRecords." + error; } @@ -90372,17 +84070,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.AuditUserData} AuditUserData */ - AuditUserData.fromObject = function fromObject(object, long) { + AuditUserData.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.AuditUserData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.AuditUserData(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -90396,7 +84090,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.auditUserRecords.length; ++i) { if (typeof object.auditUserRecords[i] !== "object") throw TypeError(".Enterprise.AuditUserData.auditUserRecords: object expected"); - message.auditUserRecords[i] = $root.Enterprise.AuditUserRecord.fromObject(object.auditUserRecords[i], long + 1); + message.auditUserRecords[i] = $root.Enterprise.AuditUserRecord.fromObject(object.auditUserRecords[i]); } } switch (object.status) { @@ -90431,35 +84125,29 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditUserData.toObject = function toObject(message, options, q) { + AuditUserData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.auditUserRecords = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.status = options.enums === String ? "OK" : 0; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.auditUserRecords && message.auditUserRecords.length) { object.auditUserRecords = []; for (let j = 0; j < message.auditUserRecords.length; ++j) - object.auditUserRecords[j] = $root.Enterprise.AuditUserRecord.toObject(message.auditUserRecords[j], options, q + 1); + object.auditUserRecords[j] = $root.Enterprise.AuditUserRecord.toObject(message.auditUserRecords[j], options); } if (message.status != null && message.hasOwnProperty("status")) object.status = options.enums === String ? $root.Enterprise.AuditUserStatus[message.status] === undefined ? message.status : $root.Enterprise.AuditUserStatus[message.status] : message.status; @@ -90524,7 +84212,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -90589,13 +84277,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceReportFilters.encode = function encode(message, writer, q) { + ComplianceReportFilters.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordTitles != null && message.recordTitles.length) for (let i = 0; i < message.recordTitles.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.recordTitles[i]); @@ -90644,18 +84328,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceReportFilters.decode = function decode(reader, length, error, long) { + ComplianceReportFilters.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportFilters(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordTitles && message.recordTitles.length)) @@ -90698,7 +84376,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -90729,13 +84407,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceReportFilters.verify = function verify(message, long) { + ComplianceReportFilters.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordTitles != null && message.hasOwnProperty("recordTitles")) { if (!Array.isArray(message.recordTitles)) return "recordTitles: array expected"; @@ -90782,13 +84456,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceReportFilters} ComplianceReportFilters */ - ComplianceReportFilters.fromObject = function fromObject(object, long) { + ComplianceReportFilters.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceReportFilters) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceReportFilters(); if (object.recordTitles) { if (!Array.isArray(object.recordTitles)) @@ -90813,7 +84483,7 @@ export const Enterprise = $root.Enterprise = (() => { message.jobTitles = []; for (let i = 0; i < object.jobTitles.length; ++i) if ($util.Long) - message.jobTitles[i] = $util.Long.fromValue(object.jobTitles[i], false); + (message.jobTitles[i] = $util.Long.fromValue(object.jobTitles[i])).unsigned = false; else if (typeof object.jobTitles[i] === "string") message.jobTitles[i] = parseInt(object.jobTitles[i], 10); else if (typeof object.jobTitles[i] === "number") @@ -90834,7 +84504,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i], false); + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; else if (typeof object.enterpriseUserIds[i] === "string") message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); else if (typeof object.enterpriseUserIds[i] === "number") @@ -90854,13 +84524,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceReportFilters.toObject = function toObject(message, options, q) { + ComplianceReportFilters.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.recordTitles = []; @@ -90882,9 +84548,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.jobTitles && message.jobTitles.length) { object.jobTitles = []; for (let j = 0; j < message.jobTitles.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.jobTitles[j] = typeof message.jobTitles[j] === "number" ? BigInt(message.jobTitles[j]) : $util.Long.fromBits(message.jobTitles[j].low >>> 0, message.jobTitles[j].high >>> 0, false).toBigInt(); - else if (typeof message.jobTitles[j] === "number") + if (typeof message.jobTitles[j] === "number") object.jobTitles[j] = options.longs === String ? String(message.jobTitles[j]) : message.jobTitles[j]; else object.jobTitles[j] = options.longs === String ? $util.Long.prototype.toString.call(message.jobTitles[j]) : options.longs === Number ? new $util.LongBits(message.jobTitles[j].low >>> 0, message.jobTitles[j].high >>> 0).toNumber() : message.jobTitles[j]; @@ -90897,9 +84561,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserIds[j] = typeof message.enterpriseUserIds[j] === "number" ? BigInt(message.enterpriseUserIds[j]) : $util.Long.fromBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserIds[j] === "number") + if (typeof message.enterpriseUserIds[j] === "number") object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; else object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; @@ -90958,7 +84620,7 @@ export const Enterprise = $root.Enterprise = (() => { function ComplianceReportRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -91007,15 +84669,11 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceReportRequest.encode = function encode(message, writer, q) { + ComplianceReportRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.complianceReportRun != null && Object.hasOwnProperty.call(message, "complianceReportRun")) - $root.Enterprise.ComplianceReportRun.encode(message.complianceReportRun, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.ComplianceReportRun.encode(message.complianceReportRun, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.reportName != null && Object.hasOwnProperty.call(message, "reportName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.reportName); if (message.saveReport != null && Object.hasOwnProperty.call(message, "saveReport")) @@ -91047,21 +84705,15 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceReportRequest.decode = function decode(reader, length, error, long) { + ComplianceReportRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.complianceReportRun = $root.Enterprise.ComplianceReportRun.decode(reader, reader.uint32(), undefined, long + 1); + message.complianceReportRun = $root.Enterprise.ComplianceReportRun.decode(reader, reader.uint32()); break; } case 2: { @@ -91073,7 +84725,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -91104,15 +84756,11 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceReportRequest.verify = function verify(message, long) { + ComplianceReportRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.complianceReportRun != null && message.hasOwnProperty("complianceReportRun")) { - let error = $root.Enterprise.ComplianceReportRun.verify(message.complianceReportRun, long + 1); + let error = $root.Enterprise.ComplianceReportRun.verify(message.complianceReportRun); if (error) return "complianceReportRun." + error; } @@ -91133,18 +84781,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceReportRequest} ComplianceReportRequest */ - ComplianceReportRequest.fromObject = function fromObject(object, long) { + ComplianceReportRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceReportRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceReportRequest(); if (object.complianceReportRun != null) { if (typeof object.complianceReportRun !== "object") throw TypeError(".Enterprise.ComplianceReportRequest.complianceReportRun: object expected"); - message.complianceReportRun = $root.Enterprise.ComplianceReportRun.fromObject(object.complianceReportRun, long + 1); + message.complianceReportRun = $root.Enterprise.ComplianceReportRun.fromObject(object.complianceReportRun); } if (object.reportName != null) message.reportName = String(object.reportName); @@ -91162,13 +84806,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceReportRequest.toObject = function toObject(message, options, q) { + ComplianceReportRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.complianceReportRun = null; @@ -91176,7 +84816,7 @@ export const Enterprise = $root.Enterprise = (() => { object.saveReport = false; } if (message.complianceReportRun != null && message.hasOwnProperty("complianceReportRun")) - object.complianceReportRun = $root.Enterprise.ComplianceReportRun.toObject(message.complianceReportRun, options, q + 1); + object.complianceReportRun = $root.Enterprise.ComplianceReportRun.toObject(message.complianceReportRun, options); if (message.reportName != null && message.hasOwnProperty("reportName")) object.reportName = message.reportName; if (message.saveReport != null && message.hasOwnProperty("saveReport")) @@ -91237,7 +84877,7 @@ export const Enterprise = $root.Enterprise = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -91286,15 +84926,11 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceReportRun.encode = function encode(message, writer, q) { + ComplianceReportRun.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.reportCriteriaAndFilter != null && Object.hasOwnProperty.call(message, "reportCriteriaAndFilter")) - $root.Enterprise.ComplianceReportCriteriaAndFilter.encode(message.reportCriteriaAndFilter, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.ComplianceReportCriteriaAndFilter.encode(message.reportCriteriaAndFilter, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.users != null && message.users.length) { writer.uint32(/* id 2, wireType 2 =*/18).fork(); for (let i = 0; i < message.users.length; ++i) @@ -91331,21 +84967,15 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceReportRun.decode = function decode(reader, length, error, long) { + ComplianceReportRun.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportRun(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.decode(reader, reader.uint32(), undefined, long + 1); + message.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.decode(reader, reader.uint32()); break; } case 2: { @@ -91366,7 +84996,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -91397,15 +85027,11 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceReportRun.verify = function verify(message, long) { + ComplianceReportRun.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.reportCriteriaAndFilter != null && message.hasOwnProperty("reportCriteriaAndFilter")) { - let error = $root.Enterprise.ComplianceReportCriteriaAndFilter.verify(message.reportCriteriaAndFilter, long + 1); + let error = $root.Enterprise.ComplianceReportCriteriaAndFilter.verify(message.reportCriteriaAndFilter); if (error) return "reportCriteriaAndFilter." + error; } @@ -91434,18 +85060,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceReportRun} ComplianceReportRun */ - ComplianceReportRun.fromObject = function fromObject(object, long) { + ComplianceReportRun.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceReportRun) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceReportRun(); if (object.reportCriteriaAndFilter != null) { if (typeof object.reportCriteriaAndFilter !== "object") throw TypeError(".Enterprise.ComplianceReportRun.reportCriteriaAndFilter: object expected"); - message.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.fromObject(object.reportCriteriaAndFilter, long + 1); + message.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.fromObject(object.reportCriteriaAndFilter); } if (object.users) { if (!Array.isArray(object.users)) @@ -91453,7 +85075,7 @@ export const Enterprise = $root.Enterprise = (() => { message.users = []; for (let i = 0; i < object.users.length; ++i) if ($util.Long) - message.users[i] = $util.Long.fromValue(object.users[i], false); + (message.users[i] = $util.Long.fromValue(object.users[i])).unsigned = false; else if (typeof object.users[i] === "string") message.users[i] = parseInt(object.users[i], 10); else if (typeof object.users[i] === "number") @@ -91483,13 +85105,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceReportRun.toObject = function toObject(message, options, q) { + ComplianceReportRun.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.users = []; @@ -91498,13 +85116,11 @@ export const Enterprise = $root.Enterprise = (() => { if (options.defaults) object.reportCriteriaAndFilter = null; if (message.reportCriteriaAndFilter != null && message.hasOwnProperty("reportCriteriaAndFilter")) - object.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.toObject(message.reportCriteriaAndFilter, options, q + 1); + object.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.toObject(message.reportCriteriaAndFilter, options); if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.users[j] = typeof message.users[j] === "number" ? BigInt(message.users[j]) : $util.Long.fromBits(message.users[j].low >>> 0, message.users[j].high >>> 0, false).toBigInt(); - else if (typeof message.users[j] === "number") + if (typeof message.users[j] === "number") object.users[j] = options.longs === String ? String(message.users[j]) : message.users[j]; else object.users[j] = options.longs === String ? $util.Long.prototype.toString.call(message.users[j]) : options.longs === Number ? new $util.LongBits(message.users[j].low >>> 0, message.users[j].high >>> 0).toNumber() : message.users[j]; @@ -91573,7 +85189,7 @@ export const Enterprise = $root.Enterprise = (() => { this.filters = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -91654,13 +85270,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceReportCriteriaAndFilter.encode = function encode(message, writer, q) { + ComplianceReportCriteriaAndFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); if (message.criteriaUid != null && Object.hasOwnProperty.call(message, "criteriaUid")) @@ -91668,10 +85280,10 @@ export const Enterprise = $root.Enterprise = (() => { if (message.criteriaName != null && Object.hasOwnProperty.call(message, "criteriaName")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.criteriaName); if (message.criteria != null && Object.hasOwnProperty.call(message, "criteria")) - $root.Enterprise.ComplianceReportCriteria.encode(message.criteria, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Enterprise.ComplianceReportCriteria.encode(message.criteria, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.filters != null && message.filters.length) for (let i = 0; i < message.filters.length; ++i) - $root.Enterprise.ComplianceReportFilter.encode(message.filters[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Enterprise.ComplianceReportFilter.encode(message.filters[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) writer.uint32(/* id 6, wireType 0 =*/48).int64(message.lastModified); if (message.nodeEncryptedData != null && Object.hasOwnProperty.call(message, "nodeEncryptedData")) @@ -91703,18 +85315,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceReportCriteriaAndFilter.decode = function decode(reader, length, error, long) { + ComplianceReportCriteriaAndFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportCriteriaAndFilter(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nodeId = reader.int64(); @@ -91729,13 +85335,13 @@ export const Enterprise = $root.Enterprise = (() => { break; } case 4: { - message.criteria = $root.Enterprise.ComplianceReportCriteria.decode(reader, reader.uint32(), undefined, long + 1); + message.criteria = $root.Enterprise.ComplianceReportCriteria.decode(reader, reader.uint32()); break; } case 5: { if (!(message.filters && message.filters.length)) message.filters = []; - message.filters.push($root.Enterprise.ComplianceReportFilter.decode(reader, reader.uint32(), undefined, long + 1)); + message.filters.push($root.Enterprise.ComplianceReportFilter.decode(reader, reader.uint32())); break; } case 6: { @@ -91747,7 +85353,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -91778,13 +85384,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceReportCriteriaAndFilter.verify = function verify(message, long) { + ComplianceReportCriteriaAndFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeId != null && message.hasOwnProperty("nodeId")) if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) return "nodeId: integer|Long expected"; @@ -91795,7 +85397,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!$util.isString(message.criteriaName)) return "criteriaName: string expected"; if (message.criteria != null && message.hasOwnProperty("criteria")) { - let error = $root.Enterprise.ComplianceReportCriteria.verify(message.criteria, long + 1); + let error = $root.Enterprise.ComplianceReportCriteria.verify(message.criteria); if (error) return "criteria." + error; } @@ -91803,7 +85405,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.filters)) return "filters: array expected"; for (let i = 0; i < message.filters.length; ++i) { - let error = $root.Enterprise.ComplianceReportFilter.verify(message.filters[i], long + 1); + let error = $root.Enterprise.ComplianceReportFilter.verify(message.filters[i]); if (error) return "filters." + error; } @@ -91825,17 +85427,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceReportCriteriaAndFilter} ComplianceReportCriteriaAndFilter */ - ComplianceReportCriteriaAndFilter.fromObject = function fromObject(object, long) { + ComplianceReportCriteriaAndFilter.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceReportCriteriaAndFilter) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceReportCriteriaAndFilter(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -91852,7 +85450,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.criteria != null) { if (typeof object.criteria !== "object") throw TypeError(".Enterprise.ComplianceReportCriteriaAndFilter.criteria: object expected"); - message.criteria = $root.Enterprise.ComplianceReportCriteria.fromObject(object.criteria, long + 1); + message.criteria = $root.Enterprise.ComplianceReportCriteria.fromObject(object.criteria); } if (object.filters) { if (!Array.isArray(object.filters)) @@ -91861,12 +85459,12 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.filters.length; ++i) { if (typeof object.filters[i] !== "object") throw TypeError(".Enterprise.ComplianceReportCriteriaAndFilter.filters: object expected"); - message.filters[i] = $root.Enterprise.ComplianceReportFilter.fromObject(object.filters[i], long + 1); + message.filters[i] = $root.Enterprise.ComplianceReportFilter.fromObject(object.filters[i]); } } if (object.lastModified != null) if ($util.Long) - message.lastModified = $util.Long.fromValue(object.lastModified, false); + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; else if (typeof object.lastModified === "string") message.lastModified = parseInt(object.lastModified, 10); else if (typeof object.lastModified === "number") @@ -91890,22 +85488,18 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceReportCriteriaAndFilter.toObject = function toObject(message, options, q) { + ComplianceReportCriteriaAndFilter.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.filters = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if (options.bytes === String) object.criteriaUid = ""; else { @@ -91917,9 +85511,9 @@ export const Enterprise = $root.Enterprise = (() => { object.criteria = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastModified = options.longs === String ? "0" : 0; if (options.bytes === String) object.nodeEncryptedData = ""; else { @@ -91929,9 +85523,7 @@ export const Enterprise = $root.Enterprise = (() => { } } if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -91940,16 +85532,14 @@ export const Enterprise = $root.Enterprise = (() => { if (message.criteriaName != null && message.hasOwnProperty("criteriaName")) object.criteriaName = message.criteriaName; if (message.criteria != null && message.hasOwnProperty("criteria")) - object.criteria = $root.Enterprise.ComplianceReportCriteria.toObject(message.criteria, options, q + 1); + object.criteria = $root.Enterprise.ComplianceReportCriteria.toObject(message.criteria, options); if (message.filters && message.filters.length) { object.filters = []; for (let j = 0; j < message.filters.length; ++j) - object.filters[j] = $root.Enterprise.ComplianceReportFilter.toObject(message.filters[j], options, q + 1); + object.filters[j] = $root.Enterprise.ComplianceReportFilter.toObject(message.filters[j], options); } if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastModified = typeof message.lastModified === "number" ? BigInt(message.lastModified) : $util.Long.fromBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0, false).toBigInt(); - else if (typeof message.lastModified === "number") + if (typeof message.lastModified === "number") object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; else object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; @@ -92011,7 +85601,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -92060,13 +85650,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceReportCriteria.encode = function encode(message, writer, q) { + ComplianceReportCriteria.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.jobTitles != null && message.jobTitles.length) for (let i = 0; i < message.jobTitles.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.jobTitles[i]); @@ -92105,18 +85691,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceReportCriteria.decode = function decode(reader, length, error, long) { + ComplianceReportCriteria.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportCriteria(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.jobTitles && message.jobTitles.length)) @@ -92140,7 +85720,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -92171,13 +85751,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceReportCriteria.verify = function verify(message, long) { + ComplianceReportCriteria.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.jobTitles != null && message.hasOwnProperty("jobTitles")) { if (!Array.isArray(message.jobTitles)) return "jobTitles: array expected"; @@ -92206,13 +85782,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceReportCriteria} ComplianceReportCriteria */ - ComplianceReportCriteria.fromObject = function fromObject(object, long) { + ComplianceReportCriteria.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceReportCriteria) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceReportCriteria(); if (object.jobTitles) { if (!Array.isArray(object.jobTitles)) @@ -92227,7 +85799,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i], false); + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; else if (typeof object.enterpriseUserIds[i] === "string") message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); else if (typeof object.enterpriseUserIds[i] === "number") @@ -92249,13 +85821,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceReportCriteria.toObject = function toObject(message, options, q) { + ComplianceReportCriteria.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.jobTitles = []; @@ -92271,9 +85839,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserIds[j] = typeof message.enterpriseUserIds[j] === "number" ? BigInt(message.enterpriseUserIds[j]) : $util.Long.fromBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserIds[j] === "number") + if (typeof message.enterpriseUserIds[j] === "number") object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; else object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; @@ -92341,7 +85907,7 @@ export const Enterprise = $root.Enterprise = (() => { this.recordTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -92406,13 +85972,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceReportFilter.encode = function encode(message, writer, q) { + ComplianceReportFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordTitles != null && message.recordTitles.length) for (let i = 0; i < message.recordTitles.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.recordTitles[i]); @@ -92455,18 +86017,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceReportFilter.decode = function decode(reader, length, error, long) { + ComplianceReportFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportFilter(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordTitles && message.recordTitles.length)) @@ -92499,7 +86055,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -92530,13 +86086,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceReportFilter.verify = function verify(message, long) { + ComplianceReportFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordTitles != null && message.hasOwnProperty("recordTitles")) { if (!Array.isArray(message.recordTitles)) return "recordTitles: array expected"; @@ -92583,13 +86135,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceReportFilter} ComplianceReportFilter */ - ComplianceReportFilter.fromObject = function fromObject(object, long) { + ComplianceReportFilter.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceReportFilter) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceReportFilter(); if (object.recordTitles) { if (!Array.isArray(object.recordTitles)) @@ -92641,13 +86189,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceReportFilter.toObject = function toObject(message, options, q) { + ComplianceReportFilter.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.recordTitles = []; @@ -92757,7 +86301,7 @@ export const Enterprise = $root.Enterprise = (() => { this.linkedRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -92902,13 +86446,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceReportResponse.encode = function encode(message, writer, q) { + ComplianceReportResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.dateGenerated != null && Object.hasOwnProperty.call(message, "dateGenerated")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.dateGenerated); if (message.runByUserName != null && Object.hasOwnProperty.call(message, "runByUserName")) @@ -92918,37 +86458,37 @@ export const Enterprise = $root.Enterprise = (() => { if (message.reportUid != null && Object.hasOwnProperty.call(message, "reportUid")) writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.reportUid); if (message.complianceReportRun != null && Object.hasOwnProperty.call(message, "complianceReportRun")) - $root.Enterprise.ComplianceReportRun.encode(message.complianceReportRun, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Enterprise.ComplianceReportRun.encode(message.complianceReportRun, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.userProfiles != null && message.userProfiles.length) for (let i = 0; i < message.userProfiles.length; ++i) - $root.Enterprise.UserProfile.encode(message.userProfiles[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Enterprise.UserProfile.encode(message.userProfiles[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.auditTeams != null && message.auditTeams.length) for (let i = 0; i < message.auditTeams.length; ++i) - $root.Enterprise.AuditTeam.encode(message.auditTeams[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Enterprise.AuditTeam.encode(message.auditTeams[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.auditRecords != null && message.auditRecords.length) for (let i = 0; i < message.auditRecords.length; ++i) - $root.Enterprise.AuditRecord.encode(message.auditRecords[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Enterprise.AuditRecord.encode(message.auditRecords[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.userRecords != null && message.userRecords.length) for (let i = 0; i < message.userRecords.length; ++i) - $root.Enterprise.UserRecord.encode(message.userRecords[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.Enterprise.UserRecord.encode(message.userRecords[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.sharedFolderRecords != null && message.sharedFolderRecords.length) for (let i = 0; i < message.sharedFolderRecords.length; ++i) - $root.Enterprise.SharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.Enterprise.SharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.sharedFolderUsers != null && message.sharedFolderUsers.length) for (let i = 0; i < message.sharedFolderUsers.length; ++i) - $root.Enterprise.SharedFolderUser.encode(message.sharedFolderUsers[i], writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.Enterprise.SharedFolderUser.encode(message.sharedFolderUsers[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.sharedFolderTeams != null && message.sharedFolderTeams.length) for (let i = 0; i < message.sharedFolderTeams.length; ++i) - $root.Enterprise.SharedFolderTeam.encode(message.sharedFolderTeams[i], writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim(); + $root.Enterprise.SharedFolderTeam.encode(message.sharedFolderTeams[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.auditTeamUsers != null && message.auditTeamUsers.length) for (let i = 0; i < message.auditTeamUsers.length; ++i) - $root.Enterprise.AuditTeamUser.encode(message.auditTeamUsers[i], writer.uint32(/* id 13, wireType 2 =*/106).fork(), q + 1).ldelim(); + $root.Enterprise.AuditTeamUser.encode(message.auditTeamUsers[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.auditRoles != null && message.auditRoles.length) for (let i = 0; i < message.auditRoles.length; ++i) - $root.Enterprise.AuditRole.encode(message.auditRoles[i], writer.uint32(/* id 14, wireType 2 =*/114).fork(), q + 1).ldelim(); + $root.Enterprise.AuditRole.encode(message.auditRoles[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.linkedRecords != null && message.linkedRecords.length) for (let i = 0; i < message.linkedRecords.length; ++i) - $root.Enterprise.LinkedRecord.encode(message.linkedRecords[i], writer.uint32(/* id 15, wireType 2 =*/122).fork(), q + 1).ldelim(); + $root.Enterprise.LinkedRecord.encode(message.linkedRecords[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); return writer; }; @@ -92976,18 +86516,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceReportResponse.decode = function decode(reader, length, error, long) { + ComplianceReportResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.dateGenerated = reader.int64(); @@ -93006,71 +86540,71 @@ export const Enterprise = $root.Enterprise = (() => { break; } case 5: { - message.complianceReportRun = $root.Enterprise.ComplianceReportRun.decode(reader, reader.uint32(), undefined, long + 1); + message.complianceReportRun = $root.Enterprise.ComplianceReportRun.decode(reader, reader.uint32()); break; } case 6: { if (!(message.userProfiles && message.userProfiles.length)) message.userProfiles = []; - message.userProfiles.push($root.Enterprise.UserProfile.decode(reader, reader.uint32(), undefined, long + 1)); + message.userProfiles.push($root.Enterprise.UserProfile.decode(reader, reader.uint32())); break; } case 7: { if (!(message.auditTeams && message.auditTeams.length)) message.auditTeams = []; - message.auditTeams.push($root.Enterprise.AuditTeam.decode(reader, reader.uint32(), undefined, long + 1)); + message.auditTeams.push($root.Enterprise.AuditTeam.decode(reader, reader.uint32())); break; } case 8: { if (!(message.auditRecords && message.auditRecords.length)) message.auditRecords = []; - message.auditRecords.push($root.Enterprise.AuditRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.auditRecords.push($root.Enterprise.AuditRecord.decode(reader, reader.uint32())); break; } case 9: { if (!(message.userRecords && message.userRecords.length)) message.userRecords = []; - message.userRecords.push($root.Enterprise.UserRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.userRecords.push($root.Enterprise.UserRecord.decode(reader, reader.uint32())); break; } case 10: { if (!(message.sharedFolderRecords && message.sharedFolderRecords.length)) message.sharedFolderRecords = []; - message.sharedFolderRecords.push($root.Enterprise.SharedFolderRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderRecords.push($root.Enterprise.SharedFolderRecord.decode(reader, reader.uint32())); break; } case 11: { if (!(message.sharedFolderUsers && message.sharedFolderUsers.length)) message.sharedFolderUsers = []; - message.sharedFolderUsers.push($root.Enterprise.SharedFolderUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderUsers.push($root.Enterprise.SharedFolderUser.decode(reader, reader.uint32())); break; } case 12: { if (!(message.sharedFolderTeams && message.sharedFolderTeams.length)) message.sharedFolderTeams = []; - message.sharedFolderTeams.push($root.Enterprise.SharedFolderTeam.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderTeams.push($root.Enterprise.SharedFolderTeam.decode(reader, reader.uint32())); break; } case 13: { if (!(message.auditTeamUsers && message.auditTeamUsers.length)) message.auditTeamUsers = []; - message.auditTeamUsers.push($root.Enterprise.AuditTeamUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.auditTeamUsers.push($root.Enterprise.AuditTeamUser.decode(reader, reader.uint32())); break; } case 14: { if (!(message.auditRoles && message.auditRoles.length)) message.auditRoles = []; - message.auditRoles.push($root.Enterprise.AuditRole.decode(reader, reader.uint32(), undefined, long + 1)); + message.auditRoles.push($root.Enterprise.AuditRole.decode(reader, reader.uint32())); break; } case 15: { if (!(message.linkedRecords && message.linkedRecords.length)) message.linkedRecords = []; - message.linkedRecords.push($root.Enterprise.LinkedRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.linkedRecords.push($root.Enterprise.LinkedRecord.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -93101,13 +86635,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceReportResponse.verify = function verify(message, long) { + ComplianceReportResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.dateGenerated != null && message.hasOwnProperty("dateGenerated")) if (!$util.isInteger(message.dateGenerated) && !(message.dateGenerated && $util.isInteger(message.dateGenerated.low) && $util.isInteger(message.dateGenerated.high))) return "dateGenerated: integer|Long expected"; @@ -93121,7 +86651,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!(message.reportUid && typeof message.reportUid.length === "number" || $util.isString(message.reportUid))) return "reportUid: buffer expected"; if (message.complianceReportRun != null && message.hasOwnProperty("complianceReportRun")) { - let error = $root.Enterprise.ComplianceReportRun.verify(message.complianceReportRun, long + 1); + let error = $root.Enterprise.ComplianceReportRun.verify(message.complianceReportRun); if (error) return "complianceReportRun." + error; } @@ -93129,7 +86659,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.userProfiles)) return "userProfiles: array expected"; for (let i = 0; i < message.userProfiles.length; ++i) { - let error = $root.Enterprise.UserProfile.verify(message.userProfiles[i], long + 1); + let error = $root.Enterprise.UserProfile.verify(message.userProfiles[i]); if (error) return "userProfiles." + error; } @@ -93138,7 +86668,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.auditTeams)) return "auditTeams: array expected"; for (let i = 0; i < message.auditTeams.length; ++i) { - let error = $root.Enterprise.AuditTeam.verify(message.auditTeams[i], long + 1); + let error = $root.Enterprise.AuditTeam.verify(message.auditTeams[i]); if (error) return "auditTeams." + error; } @@ -93147,7 +86677,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.auditRecords)) return "auditRecords: array expected"; for (let i = 0; i < message.auditRecords.length; ++i) { - let error = $root.Enterprise.AuditRecord.verify(message.auditRecords[i], long + 1); + let error = $root.Enterprise.AuditRecord.verify(message.auditRecords[i]); if (error) return "auditRecords." + error; } @@ -93156,7 +86686,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.userRecords)) return "userRecords: array expected"; for (let i = 0; i < message.userRecords.length; ++i) { - let error = $root.Enterprise.UserRecord.verify(message.userRecords[i], long + 1); + let error = $root.Enterprise.UserRecord.verify(message.userRecords[i]); if (error) return "userRecords." + error; } @@ -93165,7 +86695,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.sharedFolderRecords)) return "sharedFolderRecords: array expected"; for (let i = 0; i < message.sharedFolderRecords.length; ++i) { - let error = $root.Enterprise.SharedFolderRecord.verify(message.sharedFolderRecords[i], long + 1); + let error = $root.Enterprise.SharedFolderRecord.verify(message.sharedFolderRecords[i]); if (error) return "sharedFolderRecords." + error; } @@ -93174,7 +86704,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.sharedFolderUsers)) return "sharedFolderUsers: array expected"; for (let i = 0; i < message.sharedFolderUsers.length; ++i) { - let error = $root.Enterprise.SharedFolderUser.verify(message.sharedFolderUsers[i], long + 1); + let error = $root.Enterprise.SharedFolderUser.verify(message.sharedFolderUsers[i]); if (error) return "sharedFolderUsers." + error; } @@ -93183,7 +86713,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.sharedFolderTeams)) return "sharedFolderTeams: array expected"; for (let i = 0; i < message.sharedFolderTeams.length; ++i) { - let error = $root.Enterprise.SharedFolderTeam.verify(message.sharedFolderTeams[i], long + 1); + let error = $root.Enterprise.SharedFolderTeam.verify(message.sharedFolderTeams[i]); if (error) return "sharedFolderTeams." + error; } @@ -93192,7 +86722,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.auditTeamUsers)) return "auditTeamUsers: array expected"; for (let i = 0; i < message.auditTeamUsers.length; ++i) { - let error = $root.Enterprise.AuditTeamUser.verify(message.auditTeamUsers[i], long + 1); + let error = $root.Enterprise.AuditTeamUser.verify(message.auditTeamUsers[i]); if (error) return "auditTeamUsers." + error; } @@ -93201,7 +86731,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.auditRoles)) return "auditRoles: array expected"; for (let i = 0; i < message.auditRoles.length; ++i) { - let error = $root.Enterprise.AuditRole.verify(message.auditRoles[i], long + 1); + let error = $root.Enterprise.AuditRole.verify(message.auditRoles[i]); if (error) return "auditRoles." + error; } @@ -93210,7 +86740,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.linkedRecords)) return "linkedRecords: array expected"; for (let i = 0; i < message.linkedRecords.length; ++i) { - let error = $root.Enterprise.LinkedRecord.verify(message.linkedRecords[i], long + 1); + let error = $root.Enterprise.LinkedRecord.verify(message.linkedRecords[i]); if (error) return "linkedRecords." + error; } @@ -93226,17 +86756,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceReportResponse} ComplianceReportResponse */ - ComplianceReportResponse.fromObject = function fromObject(object, long) { + ComplianceReportResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceReportResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceReportResponse(); if (object.dateGenerated != null) if ($util.Long) - message.dateGenerated = $util.Long.fromValue(object.dateGenerated, false); + (message.dateGenerated = $util.Long.fromValue(object.dateGenerated)).unsigned = false; else if (typeof object.dateGenerated === "string") message.dateGenerated = parseInt(object.dateGenerated, 10); else if (typeof object.dateGenerated === "number") @@ -93255,7 +86781,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.complianceReportRun != null) { if (typeof object.complianceReportRun !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.complianceReportRun: object expected"); - message.complianceReportRun = $root.Enterprise.ComplianceReportRun.fromObject(object.complianceReportRun, long + 1); + message.complianceReportRun = $root.Enterprise.ComplianceReportRun.fromObject(object.complianceReportRun); } if (object.userProfiles) { if (!Array.isArray(object.userProfiles)) @@ -93264,7 +86790,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.userProfiles.length; ++i) { if (typeof object.userProfiles[i] !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.userProfiles: object expected"); - message.userProfiles[i] = $root.Enterprise.UserProfile.fromObject(object.userProfiles[i], long + 1); + message.userProfiles[i] = $root.Enterprise.UserProfile.fromObject(object.userProfiles[i]); } } if (object.auditTeams) { @@ -93274,7 +86800,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.auditTeams.length; ++i) { if (typeof object.auditTeams[i] !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.auditTeams: object expected"); - message.auditTeams[i] = $root.Enterprise.AuditTeam.fromObject(object.auditTeams[i], long + 1); + message.auditTeams[i] = $root.Enterprise.AuditTeam.fromObject(object.auditTeams[i]); } } if (object.auditRecords) { @@ -93284,7 +86810,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.auditRecords.length; ++i) { if (typeof object.auditRecords[i] !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.auditRecords: object expected"); - message.auditRecords[i] = $root.Enterprise.AuditRecord.fromObject(object.auditRecords[i], long + 1); + message.auditRecords[i] = $root.Enterprise.AuditRecord.fromObject(object.auditRecords[i]); } } if (object.userRecords) { @@ -93294,7 +86820,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.userRecords.length; ++i) { if (typeof object.userRecords[i] !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.userRecords: object expected"); - message.userRecords[i] = $root.Enterprise.UserRecord.fromObject(object.userRecords[i], long + 1); + message.userRecords[i] = $root.Enterprise.UserRecord.fromObject(object.userRecords[i]); } } if (object.sharedFolderRecords) { @@ -93304,7 +86830,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.sharedFolderRecords.length; ++i) { if (typeof object.sharedFolderRecords[i] !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderRecords: object expected"); - message.sharedFolderRecords[i] = $root.Enterprise.SharedFolderRecord.fromObject(object.sharedFolderRecords[i], long + 1); + message.sharedFolderRecords[i] = $root.Enterprise.SharedFolderRecord.fromObject(object.sharedFolderRecords[i]); } } if (object.sharedFolderUsers) { @@ -93314,7 +86840,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.sharedFolderUsers.length; ++i) { if (typeof object.sharedFolderUsers[i] !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderUsers: object expected"); - message.sharedFolderUsers[i] = $root.Enterprise.SharedFolderUser.fromObject(object.sharedFolderUsers[i], long + 1); + message.sharedFolderUsers[i] = $root.Enterprise.SharedFolderUser.fromObject(object.sharedFolderUsers[i]); } } if (object.sharedFolderTeams) { @@ -93324,7 +86850,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.sharedFolderTeams.length; ++i) { if (typeof object.sharedFolderTeams[i] !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderTeams: object expected"); - message.sharedFolderTeams[i] = $root.Enterprise.SharedFolderTeam.fromObject(object.sharedFolderTeams[i], long + 1); + message.sharedFolderTeams[i] = $root.Enterprise.SharedFolderTeam.fromObject(object.sharedFolderTeams[i]); } } if (object.auditTeamUsers) { @@ -93334,7 +86860,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.auditTeamUsers.length; ++i) { if (typeof object.auditTeamUsers[i] !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.auditTeamUsers: object expected"); - message.auditTeamUsers[i] = $root.Enterprise.AuditTeamUser.fromObject(object.auditTeamUsers[i], long + 1); + message.auditTeamUsers[i] = $root.Enterprise.AuditTeamUser.fromObject(object.auditTeamUsers[i]); } } if (object.auditRoles) { @@ -93344,7 +86870,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.auditRoles.length; ++i) { if (typeof object.auditRoles[i] !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.auditRoles: object expected"); - message.auditRoles[i] = $root.Enterprise.AuditRole.fromObject(object.auditRoles[i], long + 1); + message.auditRoles[i] = $root.Enterprise.AuditRole.fromObject(object.auditRoles[i]); } } if (object.linkedRecords) { @@ -93354,7 +86880,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.linkedRecords.length; ++i) { if (typeof object.linkedRecords[i] !== "object") throw TypeError(".Enterprise.ComplianceReportResponse.linkedRecords: object expected"); - message.linkedRecords[i] = $root.Enterprise.LinkedRecord.fromObject(object.linkedRecords[i], long + 1); + message.linkedRecords[i] = $root.Enterprise.LinkedRecord.fromObject(object.linkedRecords[i]); } } return message; @@ -93369,13 +86895,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceReportResponse.toObject = function toObject(message, options, q) { + ComplianceReportResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.userProfiles = []; @@ -93392,9 +86914,9 @@ export const Enterprise = $root.Enterprise = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateGenerated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dateGenerated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dateGenerated = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dateGenerated = options.longs === String ? "0" : 0; object.runByUserName = ""; object.reportName = ""; if (options.bytes === String) @@ -93407,9 +86929,7 @@ export const Enterprise = $root.Enterprise = (() => { object.complianceReportRun = null; } if (message.dateGenerated != null && message.hasOwnProperty("dateGenerated")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dateGenerated = typeof message.dateGenerated === "number" ? BigInt(message.dateGenerated) : $util.Long.fromBits(message.dateGenerated.low >>> 0, message.dateGenerated.high >>> 0, false).toBigInt(); - else if (typeof message.dateGenerated === "number") + if (typeof message.dateGenerated === "number") object.dateGenerated = options.longs === String ? String(message.dateGenerated) : message.dateGenerated; else object.dateGenerated = options.longs === String ? $util.Long.prototype.toString.call(message.dateGenerated) : options.longs === Number ? new $util.LongBits(message.dateGenerated.low >>> 0, message.dateGenerated.high >>> 0).toNumber() : message.dateGenerated; @@ -93420,56 +86940,56 @@ export const Enterprise = $root.Enterprise = (() => { if (message.reportUid != null && message.hasOwnProperty("reportUid")) object.reportUid = options.bytes === String ? $util.base64.encode(message.reportUid, 0, message.reportUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.reportUid) : message.reportUid; if (message.complianceReportRun != null && message.hasOwnProperty("complianceReportRun")) - object.complianceReportRun = $root.Enterprise.ComplianceReportRun.toObject(message.complianceReportRun, options, q + 1); + object.complianceReportRun = $root.Enterprise.ComplianceReportRun.toObject(message.complianceReportRun, options); if (message.userProfiles && message.userProfiles.length) { object.userProfiles = []; for (let j = 0; j < message.userProfiles.length; ++j) - object.userProfiles[j] = $root.Enterprise.UserProfile.toObject(message.userProfiles[j], options, q + 1); + object.userProfiles[j] = $root.Enterprise.UserProfile.toObject(message.userProfiles[j], options); } if (message.auditTeams && message.auditTeams.length) { object.auditTeams = []; for (let j = 0; j < message.auditTeams.length; ++j) - object.auditTeams[j] = $root.Enterprise.AuditTeam.toObject(message.auditTeams[j], options, q + 1); + object.auditTeams[j] = $root.Enterprise.AuditTeam.toObject(message.auditTeams[j], options); } if (message.auditRecords && message.auditRecords.length) { object.auditRecords = []; for (let j = 0; j < message.auditRecords.length; ++j) - object.auditRecords[j] = $root.Enterprise.AuditRecord.toObject(message.auditRecords[j], options, q + 1); + object.auditRecords[j] = $root.Enterprise.AuditRecord.toObject(message.auditRecords[j], options); } if (message.userRecords && message.userRecords.length) { object.userRecords = []; for (let j = 0; j < message.userRecords.length; ++j) - object.userRecords[j] = $root.Enterprise.UserRecord.toObject(message.userRecords[j], options, q + 1); + object.userRecords[j] = $root.Enterprise.UserRecord.toObject(message.userRecords[j], options); } if (message.sharedFolderRecords && message.sharedFolderRecords.length) { object.sharedFolderRecords = []; for (let j = 0; j < message.sharedFolderRecords.length; ++j) - object.sharedFolderRecords[j] = $root.Enterprise.SharedFolderRecord.toObject(message.sharedFolderRecords[j], options, q + 1); + object.sharedFolderRecords[j] = $root.Enterprise.SharedFolderRecord.toObject(message.sharedFolderRecords[j], options); } if (message.sharedFolderUsers && message.sharedFolderUsers.length) { object.sharedFolderUsers = []; for (let j = 0; j < message.sharedFolderUsers.length; ++j) - object.sharedFolderUsers[j] = $root.Enterprise.SharedFolderUser.toObject(message.sharedFolderUsers[j], options, q + 1); + object.sharedFolderUsers[j] = $root.Enterprise.SharedFolderUser.toObject(message.sharedFolderUsers[j], options); } if (message.sharedFolderTeams && message.sharedFolderTeams.length) { object.sharedFolderTeams = []; for (let j = 0; j < message.sharedFolderTeams.length; ++j) - object.sharedFolderTeams[j] = $root.Enterprise.SharedFolderTeam.toObject(message.sharedFolderTeams[j], options, q + 1); + object.sharedFolderTeams[j] = $root.Enterprise.SharedFolderTeam.toObject(message.sharedFolderTeams[j], options); } if (message.auditTeamUsers && message.auditTeamUsers.length) { object.auditTeamUsers = []; for (let j = 0; j < message.auditTeamUsers.length; ++j) - object.auditTeamUsers[j] = $root.Enterprise.AuditTeamUser.toObject(message.auditTeamUsers[j], options, q + 1); + object.auditTeamUsers[j] = $root.Enterprise.AuditTeamUser.toObject(message.auditTeamUsers[j], options); } if (message.auditRoles && message.auditRoles.length) { object.auditRoles = []; for (let j = 0; j < message.auditRoles.length; ++j) - object.auditRoles[j] = $root.Enterprise.AuditRole.toObject(message.auditRoles[j], options, q + 1); + object.auditRoles[j] = $root.Enterprise.AuditRole.toObject(message.auditRoles[j], options); } if (message.linkedRecords && message.linkedRecords.length) { object.linkedRecords = []; for (let j = 0; j < message.linkedRecords.length; ++j) - object.linkedRecords[j] = $root.Enterprise.LinkedRecord.toObject(message.linkedRecords[j], options, q + 1); + object.linkedRecords[j] = $root.Enterprise.LinkedRecord.toObject(message.linkedRecords[j], options); } return object; }; @@ -93528,7 +87048,7 @@ export const Enterprise = $root.Enterprise = (() => { function AuditRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -93601,13 +87121,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditRecord.encode = function encode(message, writer, q) { + AuditRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.auditData != null && Object.hasOwnProperty.call(message, "auditData")) @@ -93647,18 +87163,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditRecord.decode = function decode(reader, length, error, long) { + AuditRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -93685,7 +87195,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -93716,13 +87226,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditRecord.verify = function verify(message, long) { + AuditRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -93752,13 +87258,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.AuditRecord} AuditRecord */ - AuditRecord.fromObject = function fromObject(object, long) { + AuditRecord.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.AuditRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.AuditRecord(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -93790,13 +87292,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditRecord.toObject = function toObject(message, options, q) { + AuditRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -93889,7 +87387,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleNodeManagements = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -93970,13 +87468,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditRole.encode = function encode(message, writer, q) { + AuditRole.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) @@ -93991,7 +87485,7 @@ export const Enterprise = $root.Enterprise = (() => { writer.uint32(/* id 6, wireType 0 =*/48).bool(message.restrictMaskPasswordsWhileEditing); if (message.roleNodeManagements != null && message.roleNodeManagements.length) for (let i = 0; i < message.roleNodeManagements.length; ++i) - $root.Enterprise.RoleNodeManagement.encode(message.roleNodeManagements[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Enterprise.RoleNodeManagement.encode(message.roleNodeManagements[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -94019,18 +87513,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditRole.decode = function decode(reader, length, error, long) { + AuditRole.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditRole(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -94059,11 +87547,11 @@ export const Enterprise = $root.Enterprise = (() => { case 7: { if (!(message.roleNodeManagements && message.roleNodeManagements.length)) message.roleNodeManagements = []; - message.roleNodeManagements.push($root.Enterprise.RoleNodeManagement.decode(reader, reader.uint32(), undefined, long + 1)); + message.roleNodeManagements.push($root.Enterprise.RoleNodeManagement.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -94094,13 +87582,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditRole.verify = function verify(message, long) { + AuditRole.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -94123,7 +87607,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.roleNodeManagements)) return "roleNodeManagements: array expected"; for (let i = 0; i < message.roleNodeManagements.length; ++i) { - let error = $root.Enterprise.RoleNodeManagement.verify(message.roleNodeManagements[i], long + 1); + let error = $root.Enterprise.RoleNodeManagement.verify(message.roleNodeManagements[i]); if (error) return "roleNodeManagements." + error; } @@ -94139,17 +87623,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.AuditRole} AuditRole */ - AuditRole.fromObject = function fromObject(object, long) { + AuditRole.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.AuditRole) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.AuditRole(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -94176,7 +87656,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.roleNodeManagements.length; ++i) { if (typeof object.roleNodeManagements[i] !== "object") throw TypeError(".Enterprise.AuditRole.roleNodeManagements: object expected"); - message.roleNodeManagements[i] = $root.Enterprise.RoleNodeManagement.fromObject(object.roleNodeManagements[i], long + 1); + message.roleNodeManagements[i] = $root.Enterprise.RoleNodeManagement.fromObject(object.roleNodeManagements[i]); } } return message; @@ -94191,22 +87671,18 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditRole.toObject = function toObject(message, options, q) { + AuditRole.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.roleNodeManagements = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if (options.bytes === String) object.encryptedData = ""; else { @@ -94220,9 +87696,7 @@ export const Enterprise = $root.Enterprise = (() => { object.restrictMaskPasswordsWhileEditing = false; } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -94239,7 +87713,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.roleNodeManagements && message.roleNodeManagements.length) { object.roleNodeManagements = []; for (let j = 0; j < message.roleNodeManagements.length; ++j) - object.roleNodeManagements[j] = $root.Enterprise.RoleNodeManagement.toObject(message.roleNodeManagements[j], options, q + 1); + object.roleNodeManagements[j] = $root.Enterprise.RoleNodeManagement.toObject(message.roleNodeManagements[j], options); } return object; }; @@ -94296,7 +87770,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleNodeManagement(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -94353,13 +87827,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RoleNodeManagement.encode = function encode(message, writer, q) { + RoleNodeManagement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.treeLeft != null && Object.hasOwnProperty.call(message, "treeLeft")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.treeLeft); if (message.treeRight != null && Object.hasOwnProperty.call(message, "treeRight")) @@ -94395,18 +87865,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RoleNodeManagement.decode = function decode(reader, length, error, long) { + RoleNodeManagement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleNodeManagement(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.treeLeft = reader.int32(); @@ -94425,7 +87889,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -94456,13 +87920,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RoleNodeManagement.verify = function verify(message, long) { + RoleNodeManagement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.treeLeft != null && message.hasOwnProperty("treeLeft")) if (!$util.isInteger(message.treeLeft)) return "treeLeft: integer expected"; @@ -94486,13 +87946,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RoleNodeManagement} RoleNodeManagement */ - RoleNodeManagement.fromObject = function fromObject(object, long) { + RoleNodeManagement.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RoleNodeManagement) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RoleNodeManagement(); if (object.treeLeft != null) message.treeLeft = object.treeLeft | 0; @@ -94514,13 +87970,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RoleNodeManagement.toObject = function toObject(message, options, q) { + RoleNodeManagement.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.treeLeft = 0; @@ -94593,7 +88045,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -94658,13 +88110,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserProfile.encode = function encode(message, writer, q) { + UserProfile.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) @@ -94706,18 +88154,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserProfile.decode = function decode(reader, length, error, long) { + UserProfile.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserProfile(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -94747,7 +88189,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -94778,13 +88220,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserProfile.verify = function verify(message, long) { + UserProfile.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -94815,17 +88253,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserProfile} UserProfile */ - UserProfile.fromObject = function fromObject(object, long) { + UserProfile.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserProfile) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserProfile(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -94844,7 +88278,7 @@ export const Enterprise = $root.Enterprise = (() => { message.roleIds = []; for (let i = 0; i < object.roleIds.length; ++i) if ($util.Long) - message.roleIds[i] = $util.Long.fromValue(object.roleIds[i], false); + (message.roleIds[i] = $util.Long.fromValue(object.roleIds[i])).unsigned = false; else if (typeof object.roleIds[i] === "string") message.roleIds[i] = parseInt(object.roleIds[i], 10); else if (typeof object.roleIds[i] === "number") @@ -94864,30 +88298,24 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserProfile.toObject = function toObject(message, options, q) { + UserProfile.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.roleIds = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.fullName = ""; object.jobTitle = ""; object.email = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -94900,9 +88328,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.roleIds && message.roleIds.length) { object.roleIds = []; for (let j = 0; j < message.roleIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleIds[j] = typeof message.roleIds[j] === "number" ? BigInt(message.roleIds[j]) : $util.Long.fromBits(message.roleIds[j].low >>> 0, message.roleIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.roleIds[j] === "number") + if (typeof message.roleIds[j] === "number") object.roleIds[j] = options.longs === String ? String(message.roleIds[j]) : message.roleIds[j]; else object.roleIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.roleIds[j]) : options.longs === Number ? new $util.LongBits(message.roleIds[j].low >>> 0, message.roleIds[j].high >>> 0).toNumber() : message.roleIds[j]; @@ -94960,7 +88386,7 @@ export const Enterprise = $root.Enterprise = (() => { function RecordPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -95001,13 +88427,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordPermission.encode = function encode(message, writer, q) { + RecordPermission.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.permissionBits != null && Object.hasOwnProperty.call(message, "permissionBits")) @@ -95039,18 +88461,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordPermission.decode = function decode(reader, length, error, long) { + RecordPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RecordPermission(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -95061,7 +88477,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -95092,13 +88508,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordPermission.verify = function verify(message, long) { + RecordPermission.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -95116,13 +88528,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RecordPermission} RecordPermission */ - RecordPermission.fromObject = function fromObject(object, long) { + RecordPermission.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RecordPermission) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RecordPermission(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -95143,13 +88551,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordPermission.toObject = function toObject(message, options, q) { + RecordPermission.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -95219,7 +88623,7 @@ export const Enterprise = $root.Enterprise = (() => { this.recordPermissions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -95260,18 +88664,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecord.encode = function encode(message, writer, q) { + UserRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.recordPermissions != null && message.recordPermissions.length) for (let i = 0; i < message.recordPermissions.length; ++i) - $root.Enterprise.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -95299,18 +88699,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserRecord.decode = function decode(reader, length, error, long) { + UserRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -95319,11 +88713,11 @@ export const Enterprise = $root.Enterprise = (() => { case 2: { if (!(message.recordPermissions && message.recordPermissions.length)) message.recordPermissions = []; - message.recordPermissions.push($root.Enterprise.RecordPermission.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordPermissions.push($root.Enterprise.RecordPermission.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -95354,13 +88748,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserRecord.verify = function verify(message, long) { + UserRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -95368,7 +88758,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.recordPermissions)) return "recordPermissions: array expected"; for (let i = 0; i < message.recordPermissions.length; ++i) { - let error = $root.Enterprise.RecordPermission.verify(message.recordPermissions[i], long + 1); + let error = $root.Enterprise.RecordPermission.verify(message.recordPermissions[i]); if (error) return "recordPermissions." + error; } @@ -95384,17 +88774,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserRecord} UserRecord */ - UserRecord.fromObject = function fromObject(object, long) { + UserRecord.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserRecord(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -95408,7 +88794,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.recordPermissions.length; ++i) { if (typeof object.recordPermissions[i] !== "object") throw TypeError(".Enterprise.UserRecord.recordPermissions: object expected"); - message.recordPermissions[i] = $root.Enterprise.RecordPermission.fromObject(object.recordPermissions[i], long + 1); + message.recordPermissions[i] = $root.Enterprise.RecordPermission.fromObject(object.recordPermissions[i]); } } return message; @@ -95423,33 +88809,27 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRecord.toObject = function toObject(message, options, q) { + UserRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordPermissions = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.recordPermissions && message.recordPermissions.length) { object.recordPermissions = []; for (let j = 0; j < message.recordPermissions.length; ++j) - object.recordPermissions[j] = $root.Enterprise.RecordPermission.toObject(message.recordPermissions[j], options, q + 1); + object.recordPermissions[j] = $root.Enterprise.RecordPermission.toObject(message.recordPermissions[j], options); } return object; }; @@ -95506,7 +88886,7 @@ export const Enterprise = $root.Enterprise = (() => { function AuditTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -95563,13 +88943,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditTeam.encode = function encode(message, writer, q) { + AuditTeam.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.teamName != null && Object.hasOwnProperty.call(message, "teamName")) @@ -95605,18 +88981,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditTeam.decode = function decode(reader, length, error, long) { + AuditTeam.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditTeam(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -95635,7 +89005,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -95666,13 +89036,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditTeam.verify = function verify(message, long) { + AuditTeam.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -95696,13 +89062,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.AuditTeam} AuditTeam */ - AuditTeam.fromObject = function fromObject(object, long) { + AuditTeam.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.AuditTeam) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.AuditTeam(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -95727,13 +89089,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditTeam.toObject = function toObject(message, options, q) { + AuditTeam.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -95809,7 +89167,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -95850,13 +89208,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuditTeamUser.encode = function encode(message, writer, q) { + AuditTeamUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { @@ -95892,18 +89246,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuditTeamUser.decode = function decode(reader, length, error, long) { + AuditTeamUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditTeamUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -95921,7 +89269,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -95952,13 +89300,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuditTeamUser.verify = function verify(message, long) { + AuditTeamUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -95980,13 +89324,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.AuditTeamUser} AuditTeamUser */ - AuditTeamUser.fromObject = function fromObject(object, long) { + AuditTeamUser.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.AuditTeamUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.AuditTeamUser(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -95999,7 +89339,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i], false); + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; else if (typeof object.enterpriseUserIds[i] === "string") message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); else if (typeof object.enterpriseUserIds[i] === "number") @@ -96019,13 +89359,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuditTeamUser.toObject = function toObject(message, options, q) { + AuditTeamUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUserIds = []; @@ -96042,9 +89378,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserIds[j] = typeof message.enterpriseUserIds[j] === "number" ? BigInt(message.enterpriseUserIds[j]) : $util.Long.fromBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserIds[j] === "number") + if (typeof message.enterpriseUserIds[j] === "number") object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; else object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; @@ -96105,7 +89439,7 @@ export const Enterprise = $root.Enterprise = (() => { this.shareAdminRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -96154,21 +89488,17 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderRecord.encode = function encode(message, writer, q) { + SharedFolderRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.recordPermissions != null && message.recordPermissions.length) for (let i = 0; i < message.recordPermissions.length; ++i) - $root.Enterprise.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.shareAdminRecords != null && message.shareAdminRecords.length) for (let i = 0; i < message.shareAdminRecords.length; ++i) - $root.Enterprise.ShareAdminRecord.encode(message.shareAdminRecords[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Enterprise.ShareAdminRecord.encode(message.shareAdminRecords[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -96196,18 +89526,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderRecord.decode = function decode(reader, length, error, long) { + SharedFolderRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SharedFolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -96216,17 +89540,17 @@ export const Enterprise = $root.Enterprise = (() => { case 2: { if (!(message.recordPermissions && message.recordPermissions.length)) message.recordPermissions = []; - message.recordPermissions.push($root.Enterprise.RecordPermission.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordPermissions.push($root.Enterprise.RecordPermission.decode(reader, reader.uint32())); break; } case 3: { if (!(message.shareAdminRecords && message.shareAdminRecords.length)) message.shareAdminRecords = []; - message.shareAdminRecords.push($root.Enterprise.ShareAdminRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.shareAdminRecords.push($root.Enterprise.ShareAdminRecord.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -96257,13 +89581,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderRecord.verify = function verify(message, long) { + SharedFolderRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -96271,7 +89591,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.recordPermissions)) return "recordPermissions: array expected"; for (let i = 0; i < message.recordPermissions.length; ++i) { - let error = $root.Enterprise.RecordPermission.verify(message.recordPermissions[i], long + 1); + let error = $root.Enterprise.RecordPermission.verify(message.recordPermissions[i]); if (error) return "recordPermissions." + error; } @@ -96280,7 +89600,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.shareAdminRecords)) return "shareAdminRecords: array expected"; for (let i = 0; i < message.shareAdminRecords.length; ++i) { - let error = $root.Enterprise.ShareAdminRecord.verify(message.shareAdminRecords[i], long + 1); + let error = $root.Enterprise.ShareAdminRecord.verify(message.shareAdminRecords[i]); if (error) return "shareAdminRecords." + error; } @@ -96296,13 +89616,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.SharedFolderRecord} SharedFolderRecord */ - SharedFolderRecord.fromObject = function fromObject(object, long) { + SharedFolderRecord.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.SharedFolderRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.SharedFolderRecord(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -96316,7 +89632,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.recordPermissions.length; ++i) { if (typeof object.recordPermissions[i] !== "object") throw TypeError(".Enterprise.SharedFolderRecord.recordPermissions: object expected"); - message.recordPermissions[i] = $root.Enterprise.RecordPermission.fromObject(object.recordPermissions[i], long + 1); + message.recordPermissions[i] = $root.Enterprise.RecordPermission.fromObject(object.recordPermissions[i]); } } if (object.shareAdminRecords) { @@ -96326,7 +89642,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.shareAdminRecords.length; ++i) { if (typeof object.shareAdminRecords[i] !== "object") throw TypeError(".Enterprise.SharedFolderRecord.shareAdminRecords: object expected"); - message.shareAdminRecords[i] = $root.Enterprise.ShareAdminRecord.fromObject(object.shareAdminRecords[i], long + 1); + message.shareAdminRecords[i] = $root.Enterprise.ShareAdminRecord.fromObject(object.shareAdminRecords[i]); } } return message; @@ -96341,13 +89657,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderRecord.toObject = function toObject(message, options, q) { + SharedFolderRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.recordPermissions = []; @@ -96366,12 +89678,12 @@ export const Enterprise = $root.Enterprise = (() => { if (message.recordPermissions && message.recordPermissions.length) { object.recordPermissions = []; for (let j = 0; j < message.recordPermissions.length; ++j) - object.recordPermissions[j] = $root.Enterprise.RecordPermission.toObject(message.recordPermissions[j], options, q + 1); + object.recordPermissions[j] = $root.Enterprise.RecordPermission.toObject(message.recordPermissions[j], options); } if (message.shareAdminRecords && message.shareAdminRecords.length) { object.shareAdminRecords = []; for (let j = 0; j < message.shareAdminRecords.length; ++j) - object.shareAdminRecords[j] = $root.Enterprise.ShareAdminRecord.toObject(message.shareAdminRecords[j], options, q + 1); + object.shareAdminRecords[j] = $root.Enterprise.ShareAdminRecord.toObject(message.shareAdminRecords[j], options); } return object; }; @@ -96427,7 +89739,7 @@ export const Enterprise = $root.Enterprise = (() => { this.recordPermissionIndexes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -96468,13 +89780,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareAdminRecord.encode = function encode(message, writer, q) { + ShareAdminRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.recordPermissionIndexes != null && message.recordPermissionIndexes.length) { @@ -96510,18 +89818,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShareAdminRecord.decode = function decode(reader, length, error, long) { + ShareAdminRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ShareAdminRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -96539,7 +89841,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -96570,13 +89872,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShareAdminRecord.verify = function verify(message, long) { + ShareAdminRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -96598,17 +89896,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ShareAdminRecord} ShareAdminRecord */ - ShareAdminRecord.fromObject = function fromObject(object, long) { + ShareAdminRecord.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ShareAdminRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ShareAdminRecord(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -96634,26 +89928,20 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShareAdminRecord.toObject = function toObject(message, options, q) { + ShareAdminRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordPermissionIndexes = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -96716,7 +90004,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -96757,13 +90045,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUser.encode = function encode(message, writer, q) { + SharedFolderUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { @@ -96799,18 +90083,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUser.decode = function decode(reader, length, error, long) { + SharedFolderUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SharedFolderUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -96828,7 +90106,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -96859,13 +90137,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUser.verify = function verify(message, long) { + SharedFolderUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -96887,13 +90161,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.SharedFolderUser} SharedFolderUser */ - SharedFolderUser.fromObject = function fromObject(object, long) { + SharedFolderUser.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.SharedFolderUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.SharedFolderUser(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -96906,7 +90176,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i], false); + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; else if (typeof object.enterpriseUserIds[i] === "string") message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); else if (typeof object.enterpriseUserIds[i] === "number") @@ -96926,13 +90196,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUser.toObject = function toObject(message, options, q) { + SharedFolderUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUserIds = []; @@ -96949,9 +90215,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserIds[j] = typeof message.enterpriseUserIds[j] === "number" ? BigInt(message.enterpriseUserIds[j]) : $util.Long.fromBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserIds[j] === "number") + if (typeof message.enterpriseUserIds[j] === "number") object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; else object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; @@ -97010,7 +90274,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teamUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -97051,13 +90315,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderTeam.encode = function encode(message, writer, q) { + SharedFolderTeam.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.teamUids != null && message.teamUids.length) @@ -97090,18 +90350,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderTeam.decode = function decode(reader, length, error, long) { + SharedFolderTeam.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SharedFolderTeam(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -97114,7 +90368,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -97145,13 +90399,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderTeam.verify = function verify(message, long) { + SharedFolderTeam.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -97173,13 +90423,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.SharedFolderTeam} SharedFolderTeam */ - SharedFolderTeam.fromObject = function fromObject(object, long) { + SharedFolderTeam.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.SharedFolderTeam) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.SharedFolderTeam(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -97208,13 +90454,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderTeam.toObject = function toObject(message, options, q) { + SharedFolderTeam.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teamUids = []; @@ -97285,7 +90527,7 @@ export const Enterprise = $root.Enterprise = (() => { function GetComplianceReportRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -97318,13 +90560,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetComplianceReportRequest.encode = function encode(message, writer, q) { + GetComplianceReportRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.reportUid != null && Object.hasOwnProperty.call(message, "reportUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.reportUid); return writer; @@ -97354,25 +90592,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetComplianceReportRequest.decode = function decode(reader, length, error, long) { + GetComplianceReportRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetComplianceReportRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.reportUid = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -97403,13 +90635,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetComplianceReportRequest.verify = function verify(message, long) { + GetComplianceReportRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.reportUid != null && message.hasOwnProperty("reportUid")) if (!(message.reportUid && typeof message.reportUid.length === "number" || $util.isString(message.reportUid))) return "reportUid: buffer expected"; @@ -97424,13 +90652,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.GetComplianceReportRequest} GetComplianceReportRequest */ - GetComplianceReportRequest.fromObject = function fromObject(object, long) { + GetComplianceReportRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.GetComplianceReportRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.GetComplianceReportRequest(); if (object.reportUid != null) if (typeof object.reportUid === "string") @@ -97449,13 +90673,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetComplianceReportRequest.toObject = function toObject(message, options, q) { + GetComplianceReportRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -97519,7 +90739,7 @@ export const Enterprise = $root.Enterprise = (() => { function GetComplianceReportResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -97552,13 +90772,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetComplianceReportResponse.encode = function encode(message, writer, q) { + GetComplianceReportResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.downloadUrl != null && Object.hasOwnProperty.call(message, "downloadUrl")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.downloadUrl); return writer; @@ -97588,25 +90804,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetComplianceReportResponse.decode = function decode(reader, length, error, long) { + GetComplianceReportResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetComplianceReportResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.downloadUrl = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -97637,13 +90847,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetComplianceReportResponse.verify = function verify(message, long) { + GetComplianceReportResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.downloadUrl != null && message.hasOwnProperty("downloadUrl")) if (!$util.isString(message.downloadUrl)) return "downloadUrl: string expected"; @@ -97658,13 +90864,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.GetComplianceReportResponse} GetComplianceReportResponse */ - GetComplianceReportResponse.fromObject = function fromObject(object, long) { + GetComplianceReportResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.GetComplianceReportResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.GetComplianceReportResponse(); if (object.downloadUrl != null) message.downloadUrl = String(object.downloadUrl); @@ -97680,13 +90882,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetComplianceReportResponse.toObject = function toObject(message, options, q) { + GetComplianceReportResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.downloadUrl = ""; @@ -97744,7 +90942,7 @@ export const Enterprise = $root.Enterprise = (() => { function ComplianceReportCriteriaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -97777,13 +90975,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceReportCriteriaRequest.encode = function encode(message, writer, q) { + ComplianceReportCriteriaRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.criteriaUid != null && Object.hasOwnProperty.call(message, "criteriaUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.criteriaUid); return writer; @@ -97813,25 +91007,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceReportCriteriaRequest.decode = function decode(reader, length, error, long) { + ComplianceReportCriteriaRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportCriteriaRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.criteriaUid = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -97862,13 +91050,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceReportCriteriaRequest.verify = function verify(message, long) { + ComplianceReportCriteriaRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) if (!(message.criteriaUid && typeof message.criteriaUid.length === "number" || $util.isString(message.criteriaUid))) return "criteriaUid: buffer expected"; @@ -97883,13 +91067,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ComplianceReportCriteriaRequest} ComplianceReportCriteriaRequest */ - ComplianceReportCriteriaRequest.fromObject = function fromObject(object, long) { + ComplianceReportCriteriaRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ComplianceReportCriteriaRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ComplianceReportCriteriaRequest(); if (object.criteriaUid != null) if (typeof object.criteriaUid === "string") @@ -97908,13 +91088,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceReportCriteriaRequest.toObject = function toObject(message, options, q) { + ComplianceReportCriteriaRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -97978,7 +91154,7 @@ export const Enterprise = $root.Enterprise = (() => { function SaveComplianceReportCriteriaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -98011,13 +91187,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SaveComplianceReportCriteriaResponse.encode = function encode(message, writer, q) { + SaveComplianceReportCriteriaResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.criteriaUid != null && Object.hasOwnProperty.call(message, "criteriaUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.criteriaUid); return writer; @@ -98047,25 +91219,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SaveComplianceReportCriteriaResponse.decode = function decode(reader, length, error, long) { + SaveComplianceReportCriteriaResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SaveComplianceReportCriteriaResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.criteriaUid = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -98096,13 +91262,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SaveComplianceReportCriteriaResponse.verify = function verify(message, long) { + SaveComplianceReportCriteriaResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) if (!(message.criteriaUid && typeof message.criteriaUid.length === "number" || $util.isString(message.criteriaUid))) return "criteriaUid: buffer expected"; @@ -98117,13 +91279,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.SaveComplianceReportCriteriaResponse} SaveComplianceReportCriteriaResponse */ - SaveComplianceReportCriteriaResponse.fromObject = function fromObject(object, long) { + SaveComplianceReportCriteriaResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.SaveComplianceReportCriteriaResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.SaveComplianceReportCriteriaResponse(); if (object.criteriaUid != null) if (typeof object.criteriaUid === "string") @@ -98142,13 +91300,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SaveComplianceReportCriteriaResponse.toObject = function toObject(message, options, q) { + SaveComplianceReportCriteriaResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -98214,7 +91368,7 @@ export const Enterprise = $root.Enterprise = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -98255,13 +91409,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LinkedRecord.encode = function encode(message, writer, q) { + LinkedRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ownerUid != null && Object.hasOwnProperty.call(message, "ownerUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.ownerUid); if (message.recordUids != null && message.recordUids.length) @@ -98294,18 +91444,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LinkedRecord.decode = function decode(reader, length, error, long) { + LinkedRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LinkedRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ownerUid = reader.bytes(); @@ -98318,7 +91462,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -98349,13 +91493,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LinkedRecord.verify = function verify(message, long) { + LinkedRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ownerUid != null && message.hasOwnProperty("ownerUid")) if (!(message.ownerUid && typeof message.ownerUid.length === "number" || $util.isString(message.ownerUid))) return "ownerUid: buffer expected"; @@ -98377,13 +91517,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.LinkedRecord} LinkedRecord */ - LinkedRecord.fromObject = function fromObject(object, long) { + LinkedRecord.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.LinkedRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.LinkedRecord(); if (object.ownerUid != null) if (typeof object.ownerUid === "string") @@ -98412,13 +91548,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LinkedRecord.toObject = function toObject(message, options, q) { + LinkedRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordUids = []; @@ -98491,7 +91623,7 @@ export const Enterprise = $root.Enterprise = (() => { function GetSharingAdminsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -98540,13 +91672,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSharingAdminsRequest.encode = function encode(message, writer, q) { + GetSharingAdminsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -98580,18 +91708,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSharingAdminsRequest.decode = function decode(reader, length, error, long) { + GetSharingAdminsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetSharingAdminsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -98606,7 +91728,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -98637,13 +91759,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSharingAdminsRequest.verify = function verify(message, long) { + GetSharingAdminsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -98664,13 +91782,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.GetSharingAdminsRequest} GetSharingAdminsRequest */ - GetSharingAdminsRequest.fromObject = function fromObject(object, long) { + GetSharingAdminsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.GetSharingAdminsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.GetSharingAdminsRequest(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -98696,13 +91810,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSharingAdminsRequest.toObject = function toObject(message, options, q) { + GetSharingAdminsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -98786,7 +91896,7 @@ export const Enterprise = $root.Enterprise = (() => { function UserProfileExt(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -98875,13 +91985,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserProfileExt.encode = function encode(message, writer, q) { + UserProfileExt.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) @@ -98925,18 +92031,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserProfileExt.decode = function decode(reader, length, error, long) { + UserProfileExt.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserProfileExt(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.email = reader.string(); @@ -98971,7 +92071,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -99002,13 +92102,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserProfileExt.verify = function verify(message, long) { + UserProfileExt.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.email != null && message.hasOwnProperty("email")) if (!$util.isString(message.email)) return "email: string expected"; @@ -99044,13 +92140,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UserProfileExt} UserProfileExt */ - UserProfileExt.fromObject = function fromObject(object, long) { + UserProfileExt.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UserProfileExt) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UserProfileExt(); if (object.email != null) message.email = String(object.email); @@ -99080,13 +92172,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserProfileExt.toObject = function toObject(message, options, q) { + UserProfileExt.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.email = ""; @@ -99167,7 +92255,7 @@ export const Enterprise = $root.Enterprise = (() => { this.userProfileExts = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -99200,16 +92288,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSharingAdminsResponse.encode = function encode(message, writer, q) { + GetSharingAdminsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userProfileExts != null && message.userProfileExts.length) for (let i = 0; i < message.userProfileExts.length; ++i) - $root.Enterprise.UserProfileExt.encode(message.userProfileExts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.UserProfileExt.encode(message.userProfileExts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -99237,27 +92321,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSharingAdminsResponse.decode = function decode(reader, length, error, long) { + GetSharingAdminsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetSharingAdminsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.userProfileExts && message.userProfileExts.length)) message.userProfileExts = []; - message.userProfileExts.push($root.Enterprise.UserProfileExt.decode(reader, reader.uint32(), undefined, long + 1)); + message.userProfileExts.push($root.Enterprise.UserProfileExt.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -99288,18 +92366,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSharingAdminsResponse.verify = function verify(message, long) { + GetSharingAdminsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userProfileExts != null && message.hasOwnProperty("userProfileExts")) { if (!Array.isArray(message.userProfileExts)) return "userProfileExts: array expected"; for (let i = 0; i < message.userProfileExts.length; ++i) { - let error = $root.Enterprise.UserProfileExt.verify(message.userProfileExts[i], long + 1); + let error = $root.Enterprise.UserProfileExt.verify(message.userProfileExts[i]); if (error) return "userProfileExts." + error; } @@ -99315,13 +92389,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.GetSharingAdminsResponse} GetSharingAdminsResponse */ - GetSharingAdminsResponse.fromObject = function fromObject(object, long) { + GetSharingAdminsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.GetSharingAdminsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.GetSharingAdminsResponse(); if (object.userProfileExts) { if (!Array.isArray(object.userProfileExts)) @@ -99330,7 +92400,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.userProfileExts.length; ++i) { if (typeof object.userProfileExts[i] !== "object") throw TypeError(".Enterprise.GetSharingAdminsResponse.userProfileExts: object expected"); - message.userProfileExts[i] = $root.Enterprise.UserProfileExt.fromObject(object.userProfileExts[i], long + 1); + message.userProfileExts[i] = $root.Enterprise.UserProfileExt.fromObject(object.userProfileExts[i]); } } return message; @@ -99345,20 +92415,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSharingAdminsResponse.toObject = function toObject(message, options, q) { + GetSharingAdminsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.userProfileExts = []; if (message.userProfileExts && message.userProfileExts.length) { object.userProfileExts = []; for (let j = 0; j < message.userProfileExts.length; ++j) - object.userProfileExts[j] = $root.Enterprise.UserProfileExt.toObject(message.userProfileExts[j], options, q + 1); + object.userProfileExts[j] = $root.Enterprise.UserProfileExt.toObject(message.userProfileExts[j], options); } return object; }; @@ -99413,7 +92479,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teams = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -99446,16 +92512,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamsEnterpriseUsersAddRequest.encode = function encode(message, writer, q) { + TeamsEnterpriseUsersAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teams != null && message.teams.length) for (let i = 0; i < message.teams.length; ++i) - $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.encode(message.teams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.encode(message.teams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -99483,27 +92545,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamsEnterpriseUsersAddRequest.decode = function decode(reader, length, error, long) { + TeamsEnterpriseUsersAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.teams && message.teams.length)) message.teams = []; - message.teams.push($root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.teams.push($root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -99534,18 +92590,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamsEnterpriseUsersAddRequest.verify = function verify(message, long) { + TeamsEnterpriseUsersAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teams != null && message.hasOwnProperty("teams")) { if (!Array.isArray(message.teams)) return "teams: array expected"; for (let i = 0; i < message.teams.length; ++i) { - let error = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.verify(message.teams[i], long + 1); + let error = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.verify(message.teams[i]); if (error) return "teams." + error; } @@ -99561,13 +92613,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamsEnterpriseUsersAddRequest} TeamsEnterpriseUsersAddRequest */ - TeamsEnterpriseUsersAddRequest.fromObject = function fromObject(object, long) { + TeamsEnterpriseUsersAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamsEnterpriseUsersAddRequest(); if (object.teams) { if (!Array.isArray(object.teams)) @@ -99576,7 +92624,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.teams.length; ++i) { if (typeof object.teams[i] !== "object") throw TypeError(".Enterprise.TeamsEnterpriseUsersAddRequest.teams: object expected"); - message.teams[i] = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.fromObject(object.teams[i], long + 1); + message.teams[i] = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.fromObject(object.teams[i]); } } return message; @@ -99591,20 +92639,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamsEnterpriseUsersAddRequest.toObject = function toObject(message, options, q) { + TeamsEnterpriseUsersAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teams = []; if (message.teams && message.teams.length) { object.teams = []; for (let j = 0; j < message.teams.length; ++j) - object.teams[j] = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.toObject(message.teams[j], options, q + 1); + object.teams[j] = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.toObject(message.teams[j], options); } return object; }; @@ -99660,7 +92704,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -99701,18 +92745,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamsEnterpriseUsersAddTeamRequest.encode = function encode(message, writer, q) { + TeamsEnterpriseUsersAddTeamRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -99740,18 +92780,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamsEnterpriseUsersAddTeamRequest.decode = function decode(reader, length, error, long) { + TeamsEnterpriseUsersAddTeamRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -99760,11 +92794,11 @@ export const Enterprise = $root.Enterprise = (() => { case 2: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Enterprise.TeamsEnterpriseUsersAddUserRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Enterprise.TeamsEnterpriseUsersAddUserRequest.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -99795,13 +92829,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamsEnterpriseUsersAddTeamRequest.verify = function verify(message, long) { + TeamsEnterpriseUsersAddTeamRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -99809,7 +92839,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.verify(message.users[i], long + 1); + let error = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.verify(message.users[i]); if (error) return "users." + error; } @@ -99825,13 +92855,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamsEnterpriseUsersAddTeamRequest} TeamsEnterpriseUsersAddTeamRequest */ - TeamsEnterpriseUsersAddTeamRequest.fromObject = function fromObject(object, long) { + TeamsEnterpriseUsersAddTeamRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -99845,7 +92871,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamRequest.users: object expected"); - message.users[i] = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.fromObject(object.users[i], long + 1); + message.users[i] = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.fromObject(object.users[i]); } } return message; @@ -99860,13 +92886,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamsEnterpriseUsersAddTeamRequest.toObject = function toObject(message, options, q) { + TeamsEnterpriseUsersAddTeamRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.users = []; @@ -99883,7 +92905,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.toObject(message.users[j], options); } return object; }; @@ -99940,7 +92962,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamsEnterpriseUsersAddUserRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -99997,13 +93019,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamsEnterpriseUsersAddUserRequest.encode = function encode(message, writer, q) { + TeamsEnterpriseUsersAddUserRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.userType != null && Object.hasOwnProperty.call(message, "userType")) @@ -100011,7 +93029,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.teamKey); if (message.typedTeamKey != null && Object.hasOwnProperty.call(message, "typedTeamKey")) - $root.Enterprise.TypedKey.encode(message.typedTeamKey, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Enterprise.TypedKey.encode(message.typedTeamKey, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -100039,18 +93057,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamsEnterpriseUsersAddUserRequest.decode = function decode(reader, length, error, long) { + TeamsEnterpriseUsersAddUserRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -100065,11 +93077,11 @@ export const Enterprise = $root.Enterprise = (() => { break; } case 4: { - message.typedTeamKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32(), undefined, long + 1); + message.typedTeamKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -100100,13 +93112,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamsEnterpriseUsersAddUserRequest.verify = function verify(message, long) { + TeamsEnterpriseUsersAddUserRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -100123,7 +93131,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!$util.isString(message.teamKey)) return "teamKey: string expected"; if (message.typedTeamKey != null && message.hasOwnProperty("typedTeamKey")) { - let error = $root.Enterprise.TypedKey.verify(message.typedTeamKey, long + 1); + let error = $root.Enterprise.TypedKey.verify(message.typedTeamKey); if (error) return "typedTeamKey." + error; } @@ -100138,17 +93146,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamsEnterpriseUsersAddUserRequest} TeamsEnterpriseUsersAddUserRequest */ - TeamsEnterpriseUsersAddUserRequest.fromObject = function fromObject(object, long) { + TeamsEnterpriseUsersAddUserRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddUserRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamsEnterpriseUsersAddUserRequest(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -100180,7 +93184,7 @@ export const Enterprise = $root.Enterprise = (() => { if (object.typedTeamKey != null) { if (typeof object.typedTeamKey !== "object") throw TypeError(".Enterprise.TeamsEnterpriseUsersAddUserRequest.typedTeamKey: object expected"); - message.typedTeamKey = $root.Enterprise.TypedKey.fromObject(object.typedTeamKey, long + 1); + message.typedTeamKey = $root.Enterprise.TypedKey.fromObject(object.typedTeamKey); } return message; }; @@ -100194,28 +93198,22 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamsEnterpriseUsersAddUserRequest.toObject = function toObject(message, options, q) { + TeamsEnterpriseUsersAddUserRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.userType = options.enums === String ? "USER" : 0; object.teamKey = ""; object.typedTeamKey = null; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -100224,7 +93222,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.teamKey != null && message.hasOwnProperty("teamKey")) object.teamKey = message.teamKey; if (message.typedTeamKey != null && message.hasOwnProperty("typedTeamKey")) - object.typedTeamKey = $root.Enterprise.TypedKey.toObject(message.typedTeamKey, options, q + 1); + object.typedTeamKey = $root.Enterprise.TypedKey.toObject(message.typedTeamKey, options); return object; }; @@ -100278,7 +93276,7 @@ export const Enterprise = $root.Enterprise = (() => { function TypedKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -100319,13 +93317,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TypedKey.encode = function encode(message, writer, q) { + TypedKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) @@ -100357,18 +93351,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TypedKey.decode = function decode(reader, length, error, long) { + TypedKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TypedKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.key = reader.bytes(); @@ -100379,7 +93367,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -100410,13 +93398,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TypedKey.verify = function verify(message, long) { + TypedKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.key != null && message.hasOwnProperty("key")) if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) return "key: buffer expected"; @@ -100442,13 +93426,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TypedKey} TypedKey */ - TypedKey.fromObject = function fromObject(object, long) { + TypedKey.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TypedKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TypedKey(); if (object.key != null) if (typeof object.key === "string") @@ -100495,13 +93475,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TypedKey.toObject = function toObject(message, options, q) { + TypedKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -100587,7 +93563,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teams = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -100628,16 +93604,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamsEnterpriseUsersAddResponse.encode = function encode(message, writer, q) { + TeamsEnterpriseUsersAddResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teams != null && message.teams.length) for (let i = 0; i < message.teams.length; ++i) - $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.encode(message.teams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.encode(message.teams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); return writer; @@ -100667,23 +93639,17 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamsEnterpriseUsersAddResponse.decode = function decode(reader, length, error, long) { + TeamsEnterpriseUsersAddResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.teams && message.teams.length)) message.teams = []; - message.teams.push($root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.teams.push($root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.decode(reader, reader.uint32())); break; } case 2: { @@ -100691,7 +93657,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -100722,18 +93688,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamsEnterpriseUsersAddResponse.verify = function verify(message, long) { + TeamsEnterpriseUsersAddResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teams != null && message.hasOwnProperty("teams")) { if (!Array.isArray(message.teams)) return "teams: array expected"; for (let i = 0; i < message.teams.length; ++i) { - let error = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.verify(message.teams[i], long + 1); + let error = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.verify(message.teams[i]); if (error) return "teams." + error; } @@ -100752,13 +93714,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamsEnterpriseUsersAddResponse} TeamsEnterpriseUsersAddResponse */ - TeamsEnterpriseUsersAddResponse.fromObject = function fromObject(object, long) { + TeamsEnterpriseUsersAddResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamsEnterpriseUsersAddResponse(); if (object.teams) { if (!Array.isArray(object.teams)) @@ -100767,12 +93725,12 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.teams.length; ++i) { if (typeof object.teams[i] !== "object") throw TypeError(".Enterprise.TeamsEnterpriseUsersAddResponse.teams: object expected"); - message.teams[i] = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.fromObject(object.teams[i], long + 1); + message.teams[i] = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.fromObject(object.teams[i]); } } if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -100791,31 +93749,25 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamsEnterpriseUsersAddResponse.toObject = function toObject(message, options, q) { + TeamsEnterpriseUsersAddResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teams = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (message.teams && message.teams.length) { object.teams = []; for (let j = 0; j < message.teams.length; ++j) - object.teams[j] = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.toObject(message.teams[j], options, q + 1); + object.teams[j] = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.toObject(message.teams[j], options); } if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -100877,7 +93829,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -100950,18 +93902,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamsEnterpriseUsersAddTeamResponse.encode = function encode(message, writer, q) { + TeamsEnterpriseUsersAddTeamResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.success); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -100997,18 +93945,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamsEnterpriseUsersAddTeamResponse.decode = function decode(reader, length, error, long) { + TeamsEnterpriseUsersAddTeamResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -101017,7 +93959,7 @@ export const Enterprise = $root.Enterprise = (() => { case 2: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Enterprise.TeamsEnterpriseUsersAddUserResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Enterprise.TeamsEnterpriseUsersAddUserResponse.decode(reader, reader.uint32())); break; } case 3: { @@ -101037,7 +93979,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -101068,13 +94010,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamsEnterpriseUsersAddTeamResponse.verify = function verify(message, long) { + TeamsEnterpriseUsersAddTeamResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -101082,7 +94020,7 @@ export const Enterprise = $root.Enterprise = (() => { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.verify(message.users[i], long + 1); + let error = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.verify(message.users[i]); if (error) return "users." + error; } @@ -101110,13 +94048,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamsEnterpriseUsersAddTeamResponse} TeamsEnterpriseUsersAddTeamResponse */ - TeamsEnterpriseUsersAddTeamResponse.fromObject = function fromObject(object, long) { + TeamsEnterpriseUsersAddTeamResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -101130,7 +94064,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamResponse.users: object expected"); - message.users[i] = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.fromObject(object.users[i], long + 1); + message.users[i] = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.fromObject(object.users[i]); } } if (object.success != null) @@ -101153,13 +94087,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamsEnterpriseUsersAddTeamResponse.toObject = function toObject(message, options, q) { + TeamsEnterpriseUsersAddTeamResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.users = []; @@ -101181,7 +94111,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.toObject(message.users[j], options); } if (message.success != null && message.hasOwnProperty("success")) object.success = message.success; @@ -101248,7 +94178,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamsEnterpriseUsersAddUserResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -101321,13 +94251,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamsEnterpriseUsersAddUserResponse.encode = function encode(message, writer, q) { + TeamsEnterpriseUsersAddUserResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -101367,18 +94293,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamsEnterpriseUsersAddUserResponse.decode = function decode(reader, length, error, long) { + TeamsEnterpriseUsersAddUserResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -101405,7 +94325,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -101436,13 +94356,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamsEnterpriseUsersAddUserResponse.verify = function verify(message, long) { + TeamsEnterpriseUsersAddUserResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -101472,17 +94388,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamsEnterpriseUsersAddUserResponse} TeamsEnterpriseUsersAddUserResponse */ - TeamsEnterpriseUsersAddUserResponse.fromObject = function fromObject(object, long) { + TeamsEnterpriseUsersAddUserResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddUserResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamsEnterpriseUsersAddUserResponse(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -101491,7 +94403,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -101518,41 +94430,33 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamsEnterpriseUsersAddUserResponse.toObject = function toObject(message, options, q) { + TeamsEnterpriseUsersAddUserResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; object.success = false; object.message = ""; object.resultCode = ""; object.additionalInfo = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -101617,7 +94521,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamEnterpriseUserRemove(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -101658,13 +94562,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamEnterpriseUserRemove.encode = function encode(message, writer, q) { + TeamEnterpriseUserRemove.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) @@ -101696,18 +94596,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamEnterpriseUserRemove.decode = function decode(reader, length, error, long) { + TeamEnterpriseUserRemove.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemove(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -101718,7 +94612,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -101749,13 +94643,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamEnterpriseUserRemove.verify = function verify(message, long) { + TeamEnterpriseUserRemove.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -101773,13 +94663,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamEnterpriseUserRemove} TeamEnterpriseUserRemove */ - TeamEnterpriseUserRemove.fromObject = function fromObject(object, long) { + TeamEnterpriseUserRemove.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamEnterpriseUserRemove) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamEnterpriseUserRemove(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -101788,7 +94674,7 @@ export const Enterprise = $root.Enterprise = (() => { message.teamUid = object.teamUid; if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -101807,13 +94693,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamEnterpriseUserRemove.toObject = function toObject(message, options, q) { + TeamEnterpriseUserRemove.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -101825,16 +94707,14 @@ export const Enterprise = $root.Enterprise = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; } if (message.teamUid != null && message.hasOwnProperty("teamUid")) object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -101891,7 +94771,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teamEnterpriseUserRemove = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -101924,16 +94804,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamEnterpriseUserRemovesRequest.encode = function encode(message, writer, q) { + TeamEnterpriseUserRemovesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamEnterpriseUserRemove != null && message.teamEnterpriseUserRemove.length) for (let i = 0; i < message.teamEnterpriseUserRemove.length; ++i) - $root.Enterprise.TeamEnterpriseUserRemove.encode(message.teamEnterpriseUserRemove[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.TeamEnterpriseUserRemove.encode(message.teamEnterpriseUserRemove[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -101961,27 +94837,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamEnterpriseUserRemovesRequest.decode = function decode(reader, length, error, long) { + TeamEnterpriseUserRemovesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemovesRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.teamEnterpriseUserRemove && message.teamEnterpriseUserRemove.length)) message.teamEnterpriseUserRemove = []; - message.teamEnterpriseUserRemove.push($root.Enterprise.TeamEnterpriseUserRemove.decode(reader, reader.uint32(), undefined, long + 1)); + message.teamEnterpriseUserRemove.push($root.Enterprise.TeamEnterpriseUserRemove.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -102012,18 +94882,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamEnterpriseUserRemovesRequest.verify = function verify(message, long) { + TeamEnterpriseUserRemovesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty("teamEnterpriseUserRemove")) { if (!Array.isArray(message.teamEnterpriseUserRemove)) return "teamEnterpriseUserRemove: array expected"; for (let i = 0; i < message.teamEnterpriseUserRemove.length; ++i) { - let error = $root.Enterprise.TeamEnterpriseUserRemove.verify(message.teamEnterpriseUserRemove[i], long + 1); + let error = $root.Enterprise.TeamEnterpriseUserRemove.verify(message.teamEnterpriseUserRemove[i]); if (error) return "teamEnterpriseUserRemove." + error; } @@ -102039,13 +94905,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamEnterpriseUserRemovesRequest} TeamEnterpriseUserRemovesRequest */ - TeamEnterpriseUserRemovesRequest.fromObject = function fromObject(object, long) { + TeamEnterpriseUserRemovesRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamEnterpriseUserRemovesRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamEnterpriseUserRemovesRequest(); if (object.teamEnterpriseUserRemove) { if (!Array.isArray(object.teamEnterpriseUserRemove)) @@ -102054,7 +94916,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.teamEnterpriseUserRemove.length; ++i) { if (typeof object.teamEnterpriseUserRemove[i] !== "object") throw TypeError(".Enterprise.TeamEnterpriseUserRemovesRequest.teamEnterpriseUserRemove: object expected"); - message.teamEnterpriseUserRemove[i] = $root.Enterprise.TeamEnterpriseUserRemove.fromObject(object.teamEnterpriseUserRemove[i], long + 1); + message.teamEnterpriseUserRemove[i] = $root.Enterprise.TeamEnterpriseUserRemove.fromObject(object.teamEnterpriseUserRemove[i]); } } return message; @@ -102069,20 +94931,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamEnterpriseUserRemovesRequest.toObject = function toObject(message, options, q) { + TeamEnterpriseUserRemovesRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teamEnterpriseUserRemove = []; if (message.teamEnterpriseUserRemove && message.teamEnterpriseUserRemove.length) { object.teamEnterpriseUserRemove = []; for (let j = 0; j < message.teamEnterpriseUserRemove.length; ++j) - object.teamEnterpriseUserRemove[j] = $root.Enterprise.TeamEnterpriseUserRemove.toObject(message.teamEnterpriseUserRemove[j], options, q + 1); + object.teamEnterpriseUserRemove[j] = $root.Enterprise.TeamEnterpriseUserRemove.toObject(message.teamEnterpriseUserRemove[j], options); } return object; }; @@ -102137,7 +94995,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teamEnterpriseUserRemoveResponse = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -102170,16 +95028,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamEnterpriseUserRemovesResponse.encode = function encode(message, writer, q) { + TeamEnterpriseUserRemovesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamEnterpriseUserRemoveResponse != null && message.teamEnterpriseUserRemoveResponse.length) for (let i = 0; i < message.teamEnterpriseUserRemoveResponse.length; ++i) - $root.Enterprise.TeamEnterpriseUserRemoveResponse.encode(message.teamEnterpriseUserRemoveResponse[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.TeamEnterpriseUserRemoveResponse.encode(message.teamEnterpriseUserRemoveResponse[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -102207,27 +95061,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamEnterpriseUserRemovesResponse.decode = function decode(reader, length, error, long) { + TeamEnterpriseUserRemovesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemovesResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.teamEnterpriseUserRemoveResponse && message.teamEnterpriseUserRemoveResponse.length)) message.teamEnterpriseUserRemoveResponse = []; - message.teamEnterpriseUserRemoveResponse.push($root.Enterprise.TeamEnterpriseUserRemoveResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.teamEnterpriseUserRemoveResponse.push($root.Enterprise.TeamEnterpriseUserRemoveResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -102258,18 +95106,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamEnterpriseUserRemovesResponse.verify = function verify(message, long) { + TeamEnterpriseUserRemovesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamEnterpriseUserRemoveResponse != null && message.hasOwnProperty("teamEnterpriseUserRemoveResponse")) { if (!Array.isArray(message.teamEnterpriseUserRemoveResponse)) return "teamEnterpriseUserRemoveResponse: array expected"; for (let i = 0; i < message.teamEnterpriseUserRemoveResponse.length; ++i) { - let error = $root.Enterprise.TeamEnterpriseUserRemoveResponse.verify(message.teamEnterpriseUserRemoveResponse[i], long + 1); + let error = $root.Enterprise.TeamEnterpriseUserRemoveResponse.verify(message.teamEnterpriseUserRemoveResponse[i]); if (error) return "teamEnterpriseUserRemoveResponse." + error; } @@ -102285,13 +95129,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamEnterpriseUserRemovesResponse} TeamEnterpriseUserRemovesResponse */ - TeamEnterpriseUserRemovesResponse.fromObject = function fromObject(object, long) { + TeamEnterpriseUserRemovesResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamEnterpriseUserRemovesResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamEnterpriseUserRemovesResponse(); if (object.teamEnterpriseUserRemoveResponse) { if (!Array.isArray(object.teamEnterpriseUserRemoveResponse)) @@ -102300,7 +95140,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.teamEnterpriseUserRemoveResponse.length; ++i) { if (typeof object.teamEnterpriseUserRemoveResponse[i] !== "object") throw TypeError(".Enterprise.TeamEnterpriseUserRemovesResponse.teamEnterpriseUserRemoveResponse: object expected"); - message.teamEnterpriseUserRemoveResponse[i] = $root.Enterprise.TeamEnterpriseUserRemoveResponse.fromObject(object.teamEnterpriseUserRemoveResponse[i], long + 1); + message.teamEnterpriseUserRemoveResponse[i] = $root.Enterprise.TeamEnterpriseUserRemoveResponse.fromObject(object.teamEnterpriseUserRemoveResponse[i]); } } return message; @@ -102315,20 +95155,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamEnterpriseUserRemovesResponse.toObject = function toObject(message, options, q) { + TeamEnterpriseUserRemovesResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teamEnterpriseUserRemoveResponse = []; if (message.teamEnterpriseUserRemoveResponse && message.teamEnterpriseUserRemoveResponse.length) { object.teamEnterpriseUserRemoveResponse = []; for (let j = 0; j < message.teamEnterpriseUserRemoveResponse.length; ++j) - object.teamEnterpriseUserRemoveResponse[j] = $root.Enterprise.TeamEnterpriseUserRemoveResponse.toObject(message.teamEnterpriseUserRemoveResponse[j], options, q + 1); + object.teamEnterpriseUserRemoveResponse[j] = $root.Enterprise.TeamEnterpriseUserRemoveResponse.toObject(message.teamEnterpriseUserRemoveResponse[j], options); } return object; }; @@ -102386,7 +95222,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamEnterpriseUserRemoveResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -102451,15 +95287,11 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamEnterpriseUserRemoveResponse.encode = function encode(message, writer, q) { + TeamEnterpriseUserRemoveResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamEnterpriseUserRemove != null && Object.hasOwnProperty.call(message, "teamEnterpriseUserRemove")) - $root.Enterprise.TeamEnterpriseUserRemove.encode(message.teamEnterpriseUserRemove, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.TeamEnterpriseUserRemove.encode(message.teamEnterpriseUserRemove, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.success); if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) @@ -102495,21 +95327,15 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamEnterpriseUserRemoveResponse.decode = function decode(reader, length, error, long) { + TeamEnterpriseUserRemoveResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemoveResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.decode(reader, reader.uint32(), undefined, long + 1); + message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.decode(reader, reader.uint32()); break; } case 2: { @@ -102529,7 +95355,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -102560,15 +95386,11 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamEnterpriseUserRemoveResponse.verify = function verify(message, long) { + TeamEnterpriseUserRemoveResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty("teamEnterpriseUserRemove")) { - let error = $root.Enterprise.TeamEnterpriseUserRemove.verify(message.teamEnterpriseUserRemove, long + 1); + let error = $root.Enterprise.TeamEnterpriseUserRemove.verify(message.teamEnterpriseUserRemove); if (error) return "teamEnterpriseUserRemove." + error; } @@ -102595,18 +95417,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.TeamEnterpriseUserRemoveResponse} TeamEnterpriseUserRemoveResponse */ - TeamEnterpriseUserRemoveResponse.fromObject = function fromObject(object, long) { + TeamEnterpriseUserRemoveResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.TeamEnterpriseUserRemoveResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.TeamEnterpriseUserRemoveResponse(); if (object.teamEnterpriseUserRemove != null) { if (typeof object.teamEnterpriseUserRemove !== "object") throw TypeError(".Enterprise.TeamEnterpriseUserRemoveResponse.teamEnterpriseUserRemove: object expected"); - message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.fromObject(object.teamEnterpriseUserRemove, long + 1); + message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.fromObject(object.teamEnterpriseUserRemove); } if (object.success != null) message.success = Boolean(object.success); @@ -102628,13 +95446,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamEnterpriseUserRemoveResponse.toObject = function toObject(message, options, q) { + TeamEnterpriseUserRemoveResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.teamEnterpriseUserRemove = null; @@ -102644,7 +95458,7 @@ export const Enterprise = $root.Enterprise = (() => { object.additionalInfo = ""; } if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty("teamEnterpriseUserRemove")) - object.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.toObject(message.teamEnterpriseUserRemove, options, q + 1); + object.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.toObject(message.teamEnterpriseUserRemove, options); if (message.success != null && message.hasOwnProperty("success")) object.success = message.success; if (message.resultCode != null && message.hasOwnProperty("resultCode")) @@ -102708,7 +95522,7 @@ export const Enterprise = $root.Enterprise = (() => { function DomainAlias(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -102765,13 +95579,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DomainAlias.encode = function encode(message, writer, q) { + DomainAlias.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.domain != null && Object.hasOwnProperty.call(message, "domain")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.domain); if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) @@ -102807,18 +95617,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DomainAlias.decode = function decode(reader, length, error, long) { + DomainAlias.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainAlias(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.domain = reader.string(); @@ -102837,7 +95641,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -102868,13 +95672,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DomainAlias.verify = function verify(message, long) { + DomainAlias.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.domain != null && message.hasOwnProperty("domain")) if (!$util.isString(message.domain)) return "domain: string expected"; @@ -102898,13 +95698,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.DomainAlias} DomainAlias */ - DomainAlias.fromObject = function fromObject(object, long) { + DomainAlias.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.DomainAlias) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.DomainAlias(); if (object.domain != null) message.domain = String(object.domain); @@ -102926,13 +95722,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DomainAlias.toObject = function toObject(message, options, q) { + DomainAlias.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.domain = ""; @@ -103001,7 +95793,7 @@ export const Enterprise = $root.Enterprise = (() => { this.domainAlias = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -103034,16 +95826,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DomainAliasRequest.encode = function encode(message, writer, q) { + DomainAliasRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.domainAlias != null && message.domainAlias.length) for (let i = 0; i < message.domainAlias.length; ++i) - $root.Enterprise.DomainAlias.encode(message.domainAlias[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.DomainAlias.encode(message.domainAlias[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -103071,27 +95859,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DomainAliasRequest.decode = function decode(reader, length, error, long) { + DomainAliasRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainAliasRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.domainAlias && message.domainAlias.length)) message.domainAlias = []; - message.domainAlias.push($root.Enterprise.DomainAlias.decode(reader, reader.uint32(), undefined, long + 1)); + message.domainAlias.push($root.Enterprise.DomainAlias.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -103122,18 +95904,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DomainAliasRequest.verify = function verify(message, long) { + DomainAliasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.domainAlias != null && message.hasOwnProperty("domainAlias")) { if (!Array.isArray(message.domainAlias)) return "domainAlias: array expected"; for (let i = 0; i < message.domainAlias.length; ++i) { - let error = $root.Enterprise.DomainAlias.verify(message.domainAlias[i], long + 1); + let error = $root.Enterprise.DomainAlias.verify(message.domainAlias[i]); if (error) return "domainAlias." + error; } @@ -103149,13 +95927,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.DomainAliasRequest} DomainAliasRequest */ - DomainAliasRequest.fromObject = function fromObject(object, long) { + DomainAliasRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.DomainAliasRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.DomainAliasRequest(); if (object.domainAlias) { if (!Array.isArray(object.domainAlias)) @@ -103164,7 +95938,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.domainAlias.length; ++i) { if (typeof object.domainAlias[i] !== "object") throw TypeError(".Enterprise.DomainAliasRequest.domainAlias: object expected"); - message.domainAlias[i] = $root.Enterprise.DomainAlias.fromObject(object.domainAlias[i], long + 1); + message.domainAlias[i] = $root.Enterprise.DomainAlias.fromObject(object.domainAlias[i]); } } return message; @@ -103179,20 +95953,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DomainAliasRequest.toObject = function toObject(message, options, q) { + DomainAliasRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.domainAlias = []; if (message.domainAlias && message.domainAlias.length) { object.domainAlias = []; for (let j = 0; j < message.domainAlias.length; ++j) - object.domainAlias[j] = $root.Enterprise.DomainAlias.toObject(message.domainAlias[j], options, q + 1); + object.domainAlias[j] = $root.Enterprise.DomainAlias.toObject(message.domainAlias[j], options); } return object; }; @@ -103247,7 +96017,7 @@ export const Enterprise = $root.Enterprise = (() => { this.domainAlias = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -103280,16 +96050,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DomainAliasResponse.encode = function encode(message, writer, q) { + DomainAliasResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.domainAlias != null && message.domainAlias.length) for (let i = 0; i < message.domainAlias.length; ++i) - $root.Enterprise.DomainAlias.encode(message.domainAlias[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.DomainAlias.encode(message.domainAlias[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -103317,27 +96083,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DomainAliasResponse.decode = function decode(reader, length, error, long) { + DomainAliasResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainAliasResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.domainAlias && message.domainAlias.length)) message.domainAlias = []; - message.domainAlias.push($root.Enterprise.DomainAlias.decode(reader, reader.uint32(), undefined, long + 1)); + message.domainAlias.push($root.Enterprise.DomainAlias.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -103368,18 +96128,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DomainAliasResponse.verify = function verify(message, long) { + DomainAliasResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.domainAlias != null && message.hasOwnProperty("domainAlias")) { if (!Array.isArray(message.domainAlias)) return "domainAlias: array expected"; for (let i = 0; i < message.domainAlias.length; ++i) { - let error = $root.Enterprise.DomainAlias.verify(message.domainAlias[i], long + 1); + let error = $root.Enterprise.DomainAlias.verify(message.domainAlias[i]); if (error) return "domainAlias." + error; } @@ -103395,13 +96151,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.DomainAliasResponse} DomainAliasResponse */ - DomainAliasResponse.fromObject = function fromObject(object, long) { + DomainAliasResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.DomainAliasResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.DomainAliasResponse(); if (object.domainAlias) { if (!Array.isArray(object.domainAlias)) @@ -103410,7 +96162,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.domainAlias.length; ++i) { if (typeof object.domainAlias[i] !== "object") throw TypeError(".Enterprise.DomainAliasResponse.domainAlias: object expected"); - message.domainAlias[i] = $root.Enterprise.DomainAlias.fromObject(object.domainAlias[i], long + 1); + message.domainAlias[i] = $root.Enterprise.DomainAlias.fromObject(object.domainAlias[i]); } } return message; @@ -103425,20 +96177,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DomainAliasResponse.toObject = function toObject(message, options, q) { + DomainAliasResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.domainAlias = []; if (message.domainAlias && message.domainAlias.length) { object.domainAlias = []; for (let j = 0; j < message.domainAlias.length; ++j) - object.domainAlias[j] = $root.Enterprise.DomainAlias.toObject(message.domainAlias[j], options, q + 1); + object.domainAlias[j] = $root.Enterprise.DomainAlias.toObject(message.domainAlias[j], options); } return object; }; @@ -103494,7 +96242,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -103535,16 +96283,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUsersProvisionRequest.encode = function encode(message, writer, q) { + EnterpriseUsersProvisionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.EnterpriseUsersProvision.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseUsersProvision.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); return writer; @@ -103574,23 +96318,17 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUsersProvisionRequest.decode = function decode(reader, length, error, long) { + EnterpriseUsersProvisionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersProvisionRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Enterprise.EnterpriseUsersProvision.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Enterprise.EnterpriseUsersProvision.decode(reader, reader.uint32())); break; } case 2: { @@ -103598,7 +96336,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -103629,18 +96367,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUsersProvisionRequest.verify = function verify(message, long) { + EnterpriseUsersProvisionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.users != null && message.hasOwnProperty("users")) { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Enterprise.EnterpriseUsersProvision.verify(message.users[i], long + 1); + let error = $root.Enterprise.EnterpriseUsersProvision.verify(message.users[i]); if (error) return "users." + error; } @@ -103659,13 +96393,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUsersProvisionRequest} EnterpriseUsersProvisionRequest */ - EnterpriseUsersProvisionRequest.fromObject = function fromObject(object, long) { + EnterpriseUsersProvisionRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUsersProvisionRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUsersProvisionRequest(); if (object.users) { if (!Array.isArray(object.users)) @@ -103674,7 +96404,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Enterprise.EnterpriseUsersProvisionRequest.users: object expected"); - message.users[i] = $root.Enterprise.EnterpriseUsersProvision.fromObject(object.users[i], long + 1); + message.users[i] = $root.Enterprise.EnterpriseUsersProvision.fromObject(object.users[i]); } } if (object.clientVersion != null) @@ -103691,13 +96421,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUsersProvisionRequest.toObject = function toObject(message, options, q) { + EnterpriseUsersProvisionRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.users = []; @@ -103706,7 +96432,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Enterprise.EnterpriseUsersProvision.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Enterprise.EnterpriseUsersProvision.toObject(message.users[j], options); } if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) object.clientVersion = message.clientVersion; @@ -103777,7 +96503,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUsersProvision(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -103930,13 +96656,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUsersProvision.encode = function encode(message, writer, q) { + EnterpriseUsersProvision.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -103996,18 +96718,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUsersProvision.decode = function decode(reader, length, error, long) { + EnterpriseUsersProvision.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersProvision(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -104074,7 +96790,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -104105,13 +96821,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUsersProvision.verify = function verify(message, long) { + EnterpriseUsersProvision.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -104179,17 +96891,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUsersProvision} EnterpriseUsersProvision */ - EnterpriseUsersProvision.fromObject = function fromObject(object, long) { + EnterpriseUsersProvision.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUsersProvision) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUsersProvision(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -104200,7 +96908,7 @@ export const Enterprise = $root.Enterprise = (() => { message.username = String(object.username); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -104298,26 +97006,22 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUsersProvision.toObject = function toObject(message, options, q) { + EnterpriseUsersProvision.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.username = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.encryptedData = ""; object.keyType = options.enums === String ? "KT_NO_KEY" : 0; object.fullName = ""; @@ -104387,18 +97091,14 @@ export const Enterprise = $root.Enterprise = (() => { } } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.username != null && message.hasOwnProperty("username")) object.username = message.username; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -104481,7 +97181,7 @@ export const Enterprise = $root.Enterprise = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -104514,16 +97214,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUsersProvisionResponse.encode = function encode(message, writer, q) { + EnterpriseUsersProvisionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.Enterprise.EnterpriseUsersProvisionResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseUsersProvisionResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -104551,27 +97247,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUsersProvisionResponse.decode = function decode(reader, length, error, long) { + EnterpriseUsersProvisionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersProvisionResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.results && message.results.length)) message.results = []; - message.results.push($root.Enterprise.EnterpriseUsersProvisionResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.results.push($root.Enterprise.EnterpriseUsersProvisionResult.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -104602,18 +97292,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUsersProvisionResponse.verify = function verify(message, long) { + EnterpriseUsersProvisionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.results != null && message.hasOwnProperty("results")) { if (!Array.isArray(message.results)) return "results: array expected"; for (let i = 0; i < message.results.length; ++i) { - let error = $root.Enterprise.EnterpriseUsersProvisionResult.verify(message.results[i], long + 1); + let error = $root.Enterprise.EnterpriseUsersProvisionResult.verify(message.results[i]); if (error) return "results." + error; } @@ -104629,13 +97315,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUsersProvisionResponse} EnterpriseUsersProvisionResponse */ - EnterpriseUsersProvisionResponse.fromObject = function fromObject(object, long) { + EnterpriseUsersProvisionResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUsersProvisionResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUsersProvisionResponse(); if (object.results) { if (!Array.isArray(object.results)) @@ -104644,7 +97326,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.results.length; ++i) { if (typeof object.results[i] !== "object") throw TypeError(".Enterprise.EnterpriseUsersProvisionResponse.results: object expected"); - message.results[i] = $root.Enterprise.EnterpriseUsersProvisionResult.fromObject(object.results[i], long + 1); + message.results[i] = $root.Enterprise.EnterpriseUsersProvisionResult.fromObject(object.results[i]); } } return message; @@ -104659,20 +97341,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUsersProvisionResponse.toObject = function toObject(message, options, q) { + EnterpriseUsersProvisionResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.results = []; if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.Enterprise.EnterpriseUsersProvisionResult.toObject(message.results[j], options, q + 1); + object.results[j] = $root.Enterprise.EnterpriseUsersProvisionResult.toObject(message.results[j], options); } return object; }; @@ -104729,7 +97407,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUsersProvisionResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -104786,13 +97464,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUsersProvisionResult.encode = function encode(message, writer, q) { + EnterpriseUsersProvisionResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.code != null && Object.hasOwnProperty.call(message, "code")) @@ -104828,18 +97502,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUsersProvisionResult.decode = function decode(reader, length, error, long) { + EnterpriseUsersProvisionResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersProvisionResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -104858,7 +97526,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -104889,13 +97557,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUsersProvisionResult.verify = function verify(message, long) { + EnterpriseUsersProvisionResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -104919,17 +97583,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUsersProvisionResult} EnterpriseUsersProvisionResult */ - EnterpriseUsersProvisionResult.fromObject = function fromObject(object, long) { + EnterpriseUsersProvisionResult.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUsersProvisionResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUsersProvisionResult(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -104954,28 +97614,22 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUsersProvisionResult.toObject = function toObject(message, options, q) { + EnterpriseUsersProvisionResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.code = ""; object.message = ""; object.additionalInfo = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -105039,7 +97693,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -105080,16 +97734,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUsersAddRequest.encode = function encode(message, writer, q) { + EnterpriseUsersAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.EnterpriseUsersAdd.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseUsersAdd.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); return writer; @@ -105119,23 +97769,17 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUsersAddRequest.decode = function decode(reader, length, error, long) { + EnterpriseUsersAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Enterprise.EnterpriseUsersAdd.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Enterprise.EnterpriseUsersAdd.decode(reader, reader.uint32())); break; } case 2: { @@ -105143,7 +97787,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -105174,18 +97818,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUsersAddRequest.verify = function verify(message, long) { + EnterpriseUsersAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.users != null && message.hasOwnProperty("users")) { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Enterprise.EnterpriseUsersAdd.verify(message.users[i], long + 1); + let error = $root.Enterprise.EnterpriseUsersAdd.verify(message.users[i]); if (error) return "users." + error; } @@ -105204,13 +97844,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUsersAddRequest} EnterpriseUsersAddRequest */ - EnterpriseUsersAddRequest.fromObject = function fromObject(object, long) { + EnterpriseUsersAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUsersAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUsersAddRequest(); if (object.users) { if (!Array.isArray(object.users)) @@ -105219,7 +97855,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Enterprise.EnterpriseUsersAddRequest.users: object expected"); - message.users[i] = $root.Enterprise.EnterpriseUsersAdd.fromObject(object.users[i], long + 1); + message.users[i] = $root.Enterprise.EnterpriseUsersAdd.fromObject(object.users[i]); } } if (object.clientVersion != null) @@ -105236,13 +97872,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUsersAddRequest.toObject = function toObject(message, options, q) { + EnterpriseUsersAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.users = []; @@ -105251,7 +97883,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Enterprise.EnterpriseUsersAdd.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Enterprise.EnterpriseUsersAdd.toObject(message.users[j], options); } if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) object.clientVersion = message.clientVersion; @@ -105317,7 +97949,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUsersAdd(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -105430,13 +98062,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUsersAdd.encode = function encode(message, writer, q) { + EnterpriseUsersAdd.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -105486,18 +98114,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUsersAdd.decode = function decode(reader, length, error, long) { + EnterpriseUsersAdd.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersAdd(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -105544,7 +98166,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -105575,13 +98197,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUsersAdd.verify = function verify(message, long) { + EnterpriseUsersAdd.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -105634,17 +98252,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUsersAdd} EnterpriseUsersAdd */ - EnterpriseUsersAdd.fromObject = function fromObject(object, long) { + EnterpriseUsersAdd.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUsersAdd) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUsersAdd(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -105655,7 +98269,7 @@ export const Enterprise = $root.Enterprise = (() => { message.username = String(object.username); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -105704,7 +98318,7 @@ export const Enterprise = $root.Enterprise = (() => { message.move = Boolean(object.move); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -105723,26 +98337,22 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUsersAdd.toObject = function toObject(message, options, q) { + EnterpriseUsersAdd.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.username = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.encryptedData = ""; object.keyType = options.enums === String ? "KT_NO_KEY" : 0; object.fullName = ""; @@ -105752,23 +98362,19 @@ export const Enterprise = $root.Enterprise = (() => { object.move = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.username != null && message.hasOwnProperty("username")) object.username = message.username; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -105787,9 +98393,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.move != null && message.hasOwnProperty("move")) object.move = message.move; if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -105850,7 +98454,7 @@ export const Enterprise = $root.Enterprise = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -105915,16 +98519,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUsersAddResponse.encode = function encode(message, writer, q) { + EnterpriseUsersAddResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.Enterprise.EnterpriseUsersAddResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.EnterpriseUsersAddResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.success); if (message.code != null && Object.hasOwnProperty.call(message, "code")) @@ -105960,23 +98560,17 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUsersAddResponse.decode = function decode(reader, length, error, long) { + EnterpriseUsersAddResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.results && message.results.length)) message.results = []; - message.results.push($root.Enterprise.EnterpriseUsersAddResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.results.push($root.Enterprise.EnterpriseUsersAddResult.decode(reader, reader.uint32())); break; } case 2: { @@ -105996,7 +98590,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -106027,18 +98621,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUsersAddResponse.verify = function verify(message, long) { + EnterpriseUsersAddResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.results != null && message.hasOwnProperty("results")) { if (!Array.isArray(message.results)) return "results: array expected"; for (let i = 0; i < message.results.length; ++i) { - let error = $root.Enterprise.EnterpriseUsersAddResult.verify(message.results[i], long + 1); + let error = $root.Enterprise.EnterpriseUsersAddResult.verify(message.results[i]); if (error) return "results." + error; } @@ -106066,13 +98656,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUsersAddResponse} EnterpriseUsersAddResponse */ - EnterpriseUsersAddResponse.fromObject = function fromObject(object, long) { + EnterpriseUsersAddResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUsersAddResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUsersAddResponse(); if (object.results) { if (!Array.isArray(object.results)) @@ -106081,7 +98667,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.results.length; ++i) { if (typeof object.results[i] !== "object") throw TypeError(".Enterprise.EnterpriseUsersAddResponse.results: object expected"); - message.results[i] = $root.Enterprise.EnterpriseUsersAddResult.fromObject(object.results[i], long + 1); + message.results[i] = $root.Enterprise.EnterpriseUsersAddResult.fromObject(object.results[i]); } } if (object.success != null) @@ -106104,13 +98690,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUsersAddResponse.toObject = function toObject(message, options, q) { + EnterpriseUsersAddResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.results = []; @@ -106123,7 +98705,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.Enterprise.EnterpriseUsersAddResult.toObject(message.results[j], options, q + 1); + object.results[j] = $root.Enterprise.EnterpriseUsersAddResult.toObject(message.results[j], options); } if (message.success != null && message.hasOwnProperty("success")) object.success = message.success; @@ -106190,7 +98772,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUsersAddResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -106263,13 +98845,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseUsersAddResult.encode = function encode(message, writer, q) { + EnterpriseUsersAddResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.success != null && Object.hasOwnProperty.call(message, "success")) @@ -106309,18 +98887,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseUsersAddResult.decode = function decode(reader, length, error, long) { + EnterpriseUsersAddResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersAddResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -106347,7 +98919,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -106378,13 +98950,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseUsersAddResult.verify = function verify(message, long) { + EnterpriseUsersAddResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -106414,17 +98982,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.EnterpriseUsersAddResult} EnterpriseUsersAddResult */ - EnterpriseUsersAddResult.fromObject = function fromObject(object, long) { + EnterpriseUsersAddResult.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.EnterpriseUsersAddResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.EnterpriseUsersAddResult(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -106453,20 +99017,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseUsersAddResult.toObject = function toObject(message, options, q) { + EnterpriseUsersAddResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.success = false; object.verificationCode = ""; object.code = ""; @@ -106474,9 +99034,7 @@ export const Enterprise = $root.Enterprise = (() => { object.additionalInfo = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -106549,7 +99107,7 @@ export const Enterprise = $root.Enterprise = (() => { this.allowedAddOns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -106622,13 +99180,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateMSPPermitsRequest.encode = function encode(message, writer, q) { + UpdateMSPPermitsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.mspEnterpriseId != null && Object.hasOwnProperty.call(message, "mspEnterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mspEnterpriseId); if (message.maxAllowedLicenses != null && Object.hasOwnProperty.call(message, "maxAllowedLicenses")) @@ -106670,18 +99224,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateMSPPermitsRequest.decode = function decode(reader, length, error, long) { + UpdateMSPPermitsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UpdateMSPPermitsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.mspEnterpriseId = reader.int32(); @@ -106712,7 +99260,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -106743,13 +99291,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateMSPPermitsRequest.verify = function verify(message, long) { + UpdateMSPPermitsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.mspEnterpriseId != null && message.hasOwnProperty("mspEnterpriseId")) if (!$util.isInteger(message.mspEnterpriseId)) return "mspEnterpriseId: integer expected"; @@ -106787,13 +99331,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.UpdateMSPPermitsRequest} UpdateMSPPermitsRequest */ - UpdateMSPPermitsRequest.fromObject = function fromObject(object, long) { + UpdateMSPPermitsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.UpdateMSPPermitsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.UpdateMSPPermitsRequest(); if (object.mspEnterpriseId != null) message.mspEnterpriseId = object.mspEnterpriseId | 0; @@ -106829,13 +99369,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateMSPPermitsRequest.toObject = function toObject(message, options, q) { + UpdateMSPPermitsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.allowedMcProducts = []; @@ -106938,7 +99474,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -106971,13 +99507,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnterpriseUsersRequest.encode = function encode(message, writer, q) { + DeleteEnterpriseUsersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.enterpriseUserIds.length; ++i) @@ -107011,18 +99543,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnterpriseUsersRequest.decode = function decode(reader, length, error, long) { + DeleteEnterpriseUsersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DeleteEnterpriseUsersRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.enterpriseUserIds && message.enterpriseUserIds.length)) @@ -107036,7 +99562,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -107067,13 +99593,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEnterpriseUsersRequest.verify = function verify(message, long) { + DeleteEnterpriseUsersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { if (!Array.isArray(message.enterpriseUserIds)) return "enterpriseUserIds: array expected"; @@ -107092,13 +99614,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.DeleteEnterpriseUsersRequest} DeleteEnterpriseUsersRequest */ - DeleteEnterpriseUsersRequest.fromObject = function fromObject(object, long) { + DeleteEnterpriseUsersRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.DeleteEnterpriseUsersRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.DeleteEnterpriseUsersRequest(); if (object.enterpriseUserIds) { if (!Array.isArray(object.enterpriseUserIds)) @@ -107106,7 +99624,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i], false); + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; else if (typeof object.enterpriseUserIds[i] === "string") message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); else if (typeof object.enterpriseUserIds[i] === "number") @@ -107126,22 +99644,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEnterpriseUsersRequest.toObject = function toObject(message, options, q) { + DeleteEnterpriseUsersRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUserIds = []; if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserIds[j] = typeof message.enterpriseUserIds[j] === "number" ? BigInt(message.enterpriseUserIds[j]) : $util.Long.fromBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserIds[j] === "number") + if (typeof message.enterpriseUserIds[j] === "number") object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; else object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; @@ -107219,7 +99731,7 @@ export const Enterprise = $root.Enterprise = (() => { function DeleteEnterpriseUserStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -107260,13 +99772,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnterpriseUserStatus.encode = function encode(message, writer, q) { + DeleteEnterpriseUserStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -107298,18 +99806,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnterpriseUserStatus.decode = function decode(reader, length, error, long) { + DeleteEnterpriseUserStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DeleteEnterpriseUserStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -107320,7 +99822,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -107351,13 +99853,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEnterpriseUserStatus.verify = function verify(message, long) { + DeleteEnterpriseUserStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -107383,17 +99881,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.DeleteEnterpriseUserStatus} DeleteEnterpriseUserStatus */ - DeleteEnterpriseUserStatus.fromObject = function fromObject(object, long) { + DeleteEnterpriseUserStatus.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.DeleteEnterpriseUserStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.DeleteEnterpriseUserStatus(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -107440,26 +99934,20 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEnterpriseUserStatus.toObject = function toObject(message, options, q) { + DeleteEnterpriseUserStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.status = options.enums === String ? "SUCCESS" : 0; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -107518,7 +100006,7 @@ export const Enterprise = $root.Enterprise = (() => { this.deleteStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -107551,16 +100039,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnterpriseUsersResponse.encode = function encode(message, writer, q) { + DeleteEnterpriseUsersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deleteStatus != null && message.deleteStatus.length) for (let i = 0; i < message.deleteStatus.length; ++i) - $root.Enterprise.DeleteEnterpriseUserStatus.encode(message.deleteStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.DeleteEnterpriseUserStatus.encode(message.deleteStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -107588,27 +100072,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnterpriseUsersResponse.decode = function decode(reader, length, error, long) { + DeleteEnterpriseUsersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DeleteEnterpriseUsersResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.deleteStatus && message.deleteStatus.length)) message.deleteStatus = []; - message.deleteStatus.push($root.Enterprise.DeleteEnterpriseUserStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.deleteStatus.push($root.Enterprise.DeleteEnterpriseUserStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -107639,18 +100117,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEnterpriseUsersResponse.verify = function verify(message, long) { + DeleteEnterpriseUsersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deleteStatus != null && message.hasOwnProperty("deleteStatus")) { if (!Array.isArray(message.deleteStatus)) return "deleteStatus: array expected"; for (let i = 0; i < message.deleteStatus.length; ++i) { - let error = $root.Enterprise.DeleteEnterpriseUserStatus.verify(message.deleteStatus[i], long + 1); + let error = $root.Enterprise.DeleteEnterpriseUserStatus.verify(message.deleteStatus[i]); if (error) return "deleteStatus." + error; } @@ -107666,13 +100140,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.DeleteEnterpriseUsersResponse} DeleteEnterpriseUsersResponse */ - DeleteEnterpriseUsersResponse.fromObject = function fromObject(object, long) { + DeleteEnterpriseUsersResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.DeleteEnterpriseUsersResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.DeleteEnterpriseUsersResponse(); if (object.deleteStatus) { if (!Array.isArray(object.deleteStatus)) @@ -107681,7 +100151,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.deleteStatus.length; ++i) { if (typeof object.deleteStatus[i] !== "object") throw TypeError(".Enterprise.DeleteEnterpriseUsersResponse.deleteStatus: object expected"); - message.deleteStatus[i] = $root.Enterprise.DeleteEnterpriseUserStatus.fromObject(object.deleteStatus[i], long + 1); + message.deleteStatus[i] = $root.Enterprise.DeleteEnterpriseUserStatus.fromObject(object.deleteStatus[i]); } } return message; @@ -107696,20 +100166,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEnterpriseUsersResponse.toObject = function toObject(message, options, q) { + DeleteEnterpriseUsersResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.deleteStatus = []; if (message.deleteStatus && message.deleteStatus.length) { object.deleteStatus = []; for (let j = 0; j < message.deleteStatus.length; ++j) - object.deleteStatus[j] = $root.Enterprise.DeleteEnterpriseUserStatus.toObject(message.deleteStatus[j], options, q + 1); + object.deleteStatus[j] = $root.Enterprise.DeleteEnterpriseUserStatus.toObject(message.deleteStatus[j], options); } return object; }; @@ -107782,7 +100248,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -107831,13 +100297,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClearSecurityDataRequest.encode = function encode(message, writer, q) { + ClearSecurityDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && message.enterpriseUserId.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.enterpriseUserId.length; ++i) @@ -107875,18 +100337,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClearSecurityDataRequest.decode = function decode(reader, length, error, long) { + ClearSecurityDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ClearSecurityDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.enterpriseUserId && message.enterpriseUserId.length)) @@ -107908,7 +100364,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -107939,13 +100395,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClearSecurityDataRequest.verify = function verify(message, long) { + ClearSecurityDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) { if (!Array.isArray(message.enterpriseUserId)) return "enterpriseUserId: array expected"; @@ -107976,13 +100428,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ClearSecurityDataRequest} ClearSecurityDataRequest */ - ClearSecurityDataRequest.fromObject = function fromObject(object, long) { + ClearSecurityDataRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ClearSecurityDataRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ClearSecurityDataRequest(); if (object.enterpriseUserId) { if (!Array.isArray(object.enterpriseUserId)) @@ -107990,7 +100438,7 @@ export const Enterprise = $root.Enterprise = (() => { message.enterpriseUserId = []; for (let i = 0; i < object.enterpriseUserId.length; ++i) if ($util.Long) - message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i], false); + (message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i])).unsigned = false; else if (typeof object.enterpriseUserId[i] === "string") message.enterpriseUserId[i] = parseInt(object.enterpriseUserId[i], 10); else if (typeof object.enterpriseUserId[i] === "number") @@ -108032,13 +100480,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClearSecurityDataRequest.toObject = function toObject(message, options, q) { + ClearSecurityDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.enterpriseUserId = []; @@ -108049,9 +100493,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.enterpriseUserId && message.enterpriseUserId.length) { object.enterpriseUserId = []; for (let j = 0; j < message.enterpriseUserId.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId[j] = typeof message.enterpriseUserId[j] === "number" ? BigInt(message.enterpriseUserId[j]) : $util.Long.fromBits(message.enterpriseUserId[j].low >>> 0, message.enterpriseUserId[j].high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId[j] === "number") + if (typeof message.enterpriseUserId[j] === "number") object.enterpriseUserId[j] = options.longs === String ? String(message.enterpriseUserId[j]) : message.enterpriseUserId[j]; else object.enterpriseUserId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId[j].low >>> 0, message.enterpriseUserId[j].high >>> 0).toNumber() : message.enterpriseUserId[j]; @@ -108113,7 +100555,7 @@ export const Enterprise = $root.Enterprise = (() => { this.domain = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -108146,13 +100588,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDomainsResponse.encode = function encode(message, writer, q) { + ListDomainsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.domain != null && message.domain.length) for (let i = 0; i < message.domain.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.domain[i]); @@ -108183,18 +100621,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDomainsResponse.decode = function decode(reader, length, error, long) { + ListDomainsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ListDomainsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.domain && message.domain.length)) @@ -108203,7 +100635,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -108234,13 +100666,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDomainsResponse.verify = function verify(message, long) { + ListDomainsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.domain != null && message.hasOwnProperty("domain")) { if (!Array.isArray(message.domain)) return "domain: array expected"; @@ -108259,13 +100687,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ListDomainsResponse} ListDomainsResponse */ - ListDomainsResponse.fromObject = function fromObject(object, long) { + ListDomainsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ListDomainsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ListDomainsResponse(); if (object.domain) { if (!Array.isArray(object.domain)) @@ -108286,13 +100710,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDomainsResponse.toObject = function toObject(message, options, q) { + ListDomainsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.domain = []; @@ -108370,7 +100790,7 @@ export const Enterprise = $root.Enterprise = (() => { function ReserveDomainRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -108411,13 +100831,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveDomainRequest.encode = function encode(message, writer, q) { + ReserveDomainRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.reserveDomainAction != null && Object.hasOwnProperty.call(message, "reserveDomainAction")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.reserveDomainAction); if (message.domain != null && Object.hasOwnProperty.call(message, "domain")) @@ -108449,18 +100865,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveDomainRequest.decode = function decode(reader, length, error, long) { + ReserveDomainRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ReserveDomainRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.reserveDomainAction = reader.int32(); @@ -108471,7 +100881,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -108502,13 +100912,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveDomainRequest.verify = function verify(message, long) { + ReserveDomainRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.reserveDomainAction != null && message.hasOwnProperty("reserveDomainAction")) switch (message.reserveDomainAction) { default: @@ -108532,13 +100938,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ReserveDomainRequest} ReserveDomainRequest */ - ReserveDomainRequest.fromObject = function fromObject(object, long) { + ReserveDomainRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ReserveDomainRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ReserveDomainRequest(); switch (object.reserveDomainAction) { default: @@ -108574,13 +100976,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveDomainRequest.toObject = function toObject(message, options, q) { + ReserveDomainRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.reserveDomainAction = options.enums === String ? "DOMAIN_TOKEN" : 0; @@ -108642,7 +101040,7 @@ export const Enterprise = $root.Enterprise = (() => { function ReserveDomainResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -108675,13 +101073,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReserveDomainResponse.encode = function encode(message, writer, q) { + ReserveDomainResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.token != null && Object.hasOwnProperty.call(message, "token")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); return writer; @@ -108711,25 +101105,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReserveDomainResponse.decode = function decode(reader, length, error, long) { + ReserveDomainResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ReserveDomainResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.token = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -108760,13 +101148,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReserveDomainResponse.verify = function verify(message, long) { + ReserveDomainResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.token != null && message.hasOwnProperty("token")) if (!$util.isString(message.token)) return "token: string expected"; @@ -108781,13 +101165,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.ReserveDomainResponse} ReserveDomainResponse */ - ReserveDomainResponse.fromObject = function fromObject(object, long) { + ReserveDomainResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.ReserveDomainResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.ReserveDomainResponse(); if (object.token != null) message.token = String(object.token); @@ -108803,13 +101183,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReserveDomainResponse.toObject = function toObject(message, options, q) { + ReserveDomainResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.token = ""; @@ -108869,7 +101245,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -108910,13 +101286,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolesByTeam.encode = function encode(message, writer, q) { + RolesByTeam.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.roleId != null && message.roleId.length) { @@ -108952,18 +101324,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolesByTeam.decode = function decode(reader, length, error, long) { + RolesByTeam.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RolesByTeam(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -108981,7 +101347,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -109012,13 +101378,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RolesByTeam.verify = function verify(message, long) { + RolesByTeam.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -109040,13 +101402,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.RolesByTeam} RolesByTeam */ - RolesByTeam.fromObject = function fromObject(object, long) { + RolesByTeam.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.RolesByTeam) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.RolesByTeam(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -109059,7 +101417,7 @@ export const Enterprise = $root.Enterprise = (() => { message.roleId = []; for (let i = 0; i < object.roleId.length; ++i) if ($util.Long) - message.roleId[i] = $util.Long.fromValue(object.roleId[i], false); + (message.roleId[i] = $util.Long.fromValue(object.roleId[i])).unsigned = false; else if (typeof object.roleId[i] === "string") message.roleId[i] = parseInt(object.roleId[i], 10); else if (typeof object.roleId[i] === "number") @@ -109079,13 +101437,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RolesByTeam.toObject = function toObject(message, options, q) { + RolesByTeam.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.roleId = []; @@ -109102,9 +101456,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.roleId && message.roleId.length) { object.roleId = []; for (let j = 0; j < message.roleId.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId[j] = typeof message.roleId[j] === "number" ? BigInt(message.roleId[j]) : $util.Long.fromBits(message.roleId[j].low >>> 0, message.roleId[j].high >>> 0, false).toBigInt(); - else if (typeof message.roleId[j] === "number") + if (typeof message.roleId[j] === "number") object.roleId[j] = options.longs === String ? String(message.roleId[j]) : message.roleId[j]; else object.roleId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.roleId[j]) : options.longs === Number ? new $util.LongBits(message.roleId[j].low >>> 0, message.roleId[j].high >>> 0).toNumber() : message.roleId[j]; @@ -109167,7 +101519,7 @@ export const Enterprise = $root.Enterprise = (() => { this.unlockEnterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -109224,13 +101576,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LockUsersRequest.encode = function encode(message, writer, q) { + LockUsersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.lockEnterpriseUserIds != null && message.lockEnterpriseUserIds.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.lockEnterpriseUserIds.length; ++i) @@ -109278,18 +101626,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LockUsersRequest.decode = function decode(reader, length, error, long) { + LockUsersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LockUsersRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.lockEnterpriseUserIds && message.lockEnterpriseUserIds.length)) @@ -109329,7 +101671,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -109360,13 +101702,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LockUsersRequest.verify = function verify(message, long) { + LockUsersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.lockEnterpriseUserIds != null && message.hasOwnProperty("lockEnterpriseUserIds")) { if (!Array.isArray(message.lockEnterpriseUserIds)) return "lockEnterpriseUserIds: array expected"; @@ -109402,13 +101740,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.LockUsersRequest} LockUsersRequest */ - LockUsersRequest.fromObject = function fromObject(object, long) { + LockUsersRequest.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.LockUsersRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.LockUsersRequest(); if (object.lockEnterpriseUserIds) { if (!Array.isArray(object.lockEnterpriseUserIds)) @@ -109416,7 +101750,7 @@ export const Enterprise = $root.Enterprise = (() => { message.lockEnterpriseUserIds = []; for (let i = 0; i < object.lockEnterpriseUserIds.length; ++i) if ($util.Long) - message.lockEnterpriseUserIds[i] = $util.Long.fromValue(object.lockEnterpriseUserIds[i], false); + (message.lockEnterpriseUserIds[i] = $util.Long.fromValue(object.lockEnterpriseUserIds[i])).unsigned = false; else if (typeof object.lockEnterpriseUserIds[i] === "string") message.lockEnterpriseUserIds[i] = parseInt(object.lockEnterpriseUserIds[i], 10); else if (typeof object.lockEnterpriseUserIds[i] === "number") @@ -109430,7 +101764,7 @@ export const Enterprise = $root.Enterprise = (() => { message.disableEnterpriseUserIds = []; for (let i = 0; i < object.disableEnterpriseUserIds.length; ++i) if ($util.Long) - message.disableEnterpriseUserIds[i] = $util.Long.fromValue(object.disableEnterpriseUserIds[i], false); + (message.disableEnterpriseUserIds[i] = $util.Long.fromValue(object.disableEnterpriseUserIds[i])).unsigned = false; else if (typeof object.disableEnterpriseUserIds[i] === "string") message.disableEnterpriseUserIds[i] = parseInt(object.disableEnterpriseUserIds[i], 10); else if (typeof object.disableEnterpriseUserIds[i] === "number") @@ -109444,7 +101778,7 @@ export const Enterprise = $root.Enterprise = (() => { message.unlockEnterpriseUserIds = []; for (let i = 0; i < object.unlockEnterpriseUserIds.length; ++i) if ($util.Long) - message.unlockEnterpriseUserIds[i] = $util.Long.fromValue(object.unlockEnterpriseUserIds[i], false); + (message.unlockEnterpriseUserIds[i] = $util.Long.fromValue(object.unlockEnterpriseUserIds[i])).unsigned = false; else if (typeof object.unlockEnterpriseUserIds[i] === "string") message.unlockEnterpriseUserIds[i] = parseInt(object.unlockEnterpriseUserIds[i], 10); else if (typeof object.unlockEnterpriseUserIds[i] === "number") @@ -109466,13 +101800,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LockUsersRequest.toObject = function toObject(message, options, q) { + LockUsersRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.lockEnterpriseUserIds = []; @@ -109484,9 +101814,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.lockEnterpriseUserIds && message.lockEnterpriseUserIds.length) { object.lockEnterpriseUserIds = []; for (let j = 0; j < message.lockEnterpriseUserIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lockEnterpriseUserIds[j] = typeof message.lockEnterpriseUserIds[j] === "number" ? BigInt(message.lockEnterpriseUserIds[j]) : $util.Long.fromBits(message.lockEnterpriseUserIds[j].low >>> 0, message.lockEnterpriseUserIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.lockEnterpriseUserIds[j] === "number") + if (typeof message.lockEnterpriseUserIds[j] === "number") object.lockEnterpriseUserIds[j] = options.longs === String ? String(message.lockEnterpriseUserIds[j]) : message.lockEnterpriseUserIds[j]; else object.lockEnterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.lockEnterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.lockEnterpriseUserIds[j].low >>> 0, message.lockEnterpriseUserIds[j].high >>> 0).toNumber() : message.lockEnterpriseUserIds[j]; @@ -109494,9 +101822,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.disableEnterpriseUserIds && message.disableEnterpriseUserIds.length) { object.disableEnterpriseUserIds = []; for (let j = 0; j < message.disableEnterpriseUserIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.disableEnterpriseUserIds[j] = typeof message.disableEnterpriseUserIds[j] === "number" ? BigInt(message.disableEnterpriseUserIds[j]) : $util.Long.fromBits(message.disableEnterpriseUserIds[j].low >>> 0, message.disableEnterpriseUserIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.disableEnterpriseUserIds[j] === "number") + if (typeof message.disableEnterpriseUserIds[j] === "number") object.disableEnterpriseUserIds[j] = options.longs === String ? String(message.disableEnterpriseUserIds[j]) : message.disableEnterpriseUserIds[j]; else object.disableEnterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.disableEnterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.disableEnterpriseUserIds[j].low >>> 0, message.disableEnterpriseUserIds[j].high >>> 0).toNumber() : message.disableEnterpriseUserIds[j]; @@ -109504,9 +101830,7 @@ export const Enterprise = $root.Enterprise = (() => { if (message.unlockEnterpriseUserIds && message.unlockEnterpriseUserIds.length) { object.unlockEnterpriseUserIds = []; for (let j = 0; j < message.unlockEnterpriseUserIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.unlockEnterpriseUserIds[j] = typeof message.unlockEnterpriseUserIds[j] === "number" ? BigInt(message.unlockEnterpriseUserIds[j]) : $util.Long.fromBits(message.unlockEnterpriseUserIds[j].low >>> 0, message.unlockEnterpriseUserIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.unlockEnterpriseUserIds[j] === "number") + if (typeof message.unlockEnterpriseUserIds[j] === "number") object.unlockEnterpriseUserIds[j] = options.longs === String ? String(message.unlockEnterpriseUserIds[j]) : message.unlockEnterpriseUserIds[j]; else object.unlockEnterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.unlockEnterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.unlockEnterpriseUserIds[j].low >>> 0, message.unlockEnterpriseUserIds[j].high >>> 0).toNumber() : message.unlockEnterpriseUserIds[j]; @@ -109566,7 +101890,7 @@ export const Enterprise = $root.Enterprise = (() => { this.response = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -109599,16 +101923,12 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LockUsersResponse.encode = function encode(message, writer, q) { + LockUsersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.response != null && message.response.length) for (let i = 0; i < message.response.length; ++i) - $root.Enterprise.LockUserResponse.encode(message.response[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Enterprise.LockUserResponse.encode(message.response[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -109636,27 +101956,21 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LockUsersResponse.decode = function decode(reader, length, error, long) { + LockUsersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LockUsersResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.response && message.response.length)) message.response = []; - message.response.push($root.Enterprise.LockUserResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.response.push($root.Enterprise.LockUserResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -109687,18 +102001,14 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LockUsersResponse.verify = function verify(message, long) { + LockUsersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.response != null && message.hasOwnProperty("response")) { if (!Array.isArray(message.response)) return "response: array expected"; for (let i = 0; i < message.response.length; ++i) { - let error = $root.Enterprise.LockUserResponse.verify(message.response[i], long + 1); + let error = $root.Enterprise.LockUserResponse.verify(message.response[i]); if (error) return "response." + error; } @@ -109714,13 +102024,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.LockUsersResponse} LockUsersResponse */ - LockUsersResponse.fromObject = function fromObject(object, long) { + LockUsersResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.LockUsersResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.LockUsersResponse(); if (object.response) { if (!Array.isArray(object.response)) @@ -109729,7 +102035,7 @@ export const Enterprise = $root.Enterprise = (() => { for (let i = 0; i < object.response.length; ++i) { if (typeof object.response[i] !== "object") throw TypeError(".Enterprise.LockUsersResponse.response: object expected"); - message.response[i] = $root.Enterprise.LockUserResponse.fromObject(object.response[i], long + 1); + message.response[i] = $root.Enterprise.LockUserResponse.fromObject(object.response[i]); } } return message; @@ -109744,20 +102050,16 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LockUsersResponse.toObject = function toObject(message, options, q) { + LockUsersResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.response = []; if (message.response && message.response.length) { object.response = []; for (let j = 0; j < message.response.length; ++j) - object.response[j] = $root.Enterprise.LockUserResponse.toObject(message.response[j], options, q + 1); + object.response[j] = $root.Enterprise.LockUserResponse.toObject(message.response[j], options); } return object; }; @@ -109835,7 +102137,7 @@ export const Enterprise = $root.Enterprise = (() => { function LockUserResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -109884,13 +102186,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LockUserResponse.encode = function encode(message, writer, q) { + LockUserResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -109924,18 +102222,12 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LockUserResponse.decode = function decode(reader, length, error, long) { + LockUserResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LockUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -109950,7 +102242,7 @@ export const Enterprise = $root.Enterprise = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -109981,13 +102273,9 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LockUserResponse.verify = function verify(message, long) { + LockUserResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -110017,17 +102305,13 @@ export const Enterprise = $root.Enterprise = (() => { * @param {Object.} object Plain object * @returns {Enterprise.LockUserResponse} LockUserResponse */ - LockUserResponse.fromObject = function fromObject(object, long) { + LockUserResponse.fromObject = function fromObject(object) { if (object instanceof $root.Enterprise.LockUserResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Enterprise.LockUserResponse(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -110080,27 +102364,21 @@ export const Enterprise = $root.Enterprise = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LockUserResponse.toObject = function toObject(message, options, q) { + LockUserResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.status = options.enums === String ? "UNKNOWN_LOCK_STATUS" : 0; object.errorMessage = ""; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -110191,7 +102469,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function AccountSummaryRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -110232,13 +102510,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountSummaryRequest.encode = function encode(message, writer, q) { + AccountSummaryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.summaryVersion != null && Object.hasOwnProperty.call(message, "summaryVersion")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.summaryVersion); if (message.includeRecentActivity != null && Object.hasOwnProperty.call(message, "includeRecentActivity")) @@ -110270,18 +102544,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountSummaryRequest.decode = function decode(reader, length, error, long) { + AccountSummaryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.AccountSummaryRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.summaryVersion = reader.int32(); @@ -110292,7 +102560,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -110323,13 +102591,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AccountSummaryRequest.verify = function verify(message, long) { + AccountSummaryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.summaryVersion != null && message.hasOwnProperty("summaryVersion")) if (!$util.isInteger(message.summaryVersion)) return "summaryVersion: integer expected"; @@ -110347,13 +102611,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.AccountSummaryRequest} AccountSummaryRequest */ - AccountSummaryRequest.fromObject = function fromObject(object, long) { + AccountSummaryRequest.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.AccountSummaryRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.AccountSummaryRequest(); if (object.summaryVersion != null) message.summaryVersion = object.summaryVersion | 0; @@ -110371,13 +102631,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AccountSummaryRequest.toObject = function toObject(message, options, q) { + AccountSummaryRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.summaryVersion = 0; @@ -110463,7 +102719,7 @@ export const AccountSummary = $root.AccountSummary = (() => { this.disallowedFeatures = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -110648,35 +102904,31 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccountSummaryElements.encode = function encode(message, writer, q) { + AccountSummaryElements.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.clientKey); if (message.settings != null && Object.hasOwnProperty.call(message, "settings")) - $root.AccountSummary.Settings.encode(message.settings, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.AccountSummary.Settings.encode(message.settings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.keysInfo != null && Object.hasOwnProperty.call(message, "keysInfo")) - $root.AccountSummary.KeysInfo.encode(message.keysInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.AccountSummary.KeysInfo.encode(message.keysInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.syncLogs != null && message.syncLogs.length) for (let i = 0; i < message.syncLogs.length; ++i) - $root.AccountSummary.SyncLog.encode(message.syncLogs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.AccountSummary.SyncLog.encode(message.syncLogs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.isEnterpriseAdmin != null && Object.hasOwnProperty.call(message, "isEnterpriseAdmin")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isEnterpriseAdmin); if (message.license != null && Object.hasOwnProperty.call(message, "license")) - $root.AccountSummary.License.encode(message.license, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.AccountSummary.License.encode(message.license, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.group != null && Object.hasOwnProperty.call(message, "group")) - $root.AccountSummary.Group.encode(message.group, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.AccountSummary.Group.encode(message.group, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.Enforcements != null && Object.hasOwnProperty.call(message, "Enforcements")) - $root.AccountSummary.Enforcements.encode(message.Enforcements, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.AccountSummary.Enforcements.encode(message.Enforcements, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.Images != null && message.Images.length) for (let i = 0; i < message.Images.length; ++i) - $root.AccountSummary.KeyValue.encode(message.Images[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.AccountSummary.KeyValue.encode(message.Images[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.personalLicense != null && Object.hasOwnProperty.call(message, "personalLicense")) - $root.AccountSummary.License.encode(message.personalLicense, writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.AccountSummary.License.encode(message.personalLicense, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.fixSharedFolderRecords != null && Object.hasOwnProperty.call(message, "fixSharedFolderRecords")) writer.uint32(/* id 11, wireType 0 =*/88).bool(message.fixSharedFolderRecords); if (message.usernames != null && message.usernames.length) @@ -110684,7 +102936,7 @@ export const AccountSummary = $root.AccountSummary = (() => { writer.uint32(/* id 12, wireType 2 =*/98).string(message.usernames[i]); if (message.devices != null && message.devices.length) for (let i = 0; i < message.devices.length; ++i) - $root.AccountSummary.DeviceInfo.encode(message.devices[i], writer.uint32(/* id 13, wireType 2 =*/106).fork(), q + 1).ldelim(); + $root.AccountSummary.DeviceInfo.encode(message.devices[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isShareAdmin); if (message.accountRecovery != null && Object.hasOwnProperty.call(message, "accountRecovery")) @@ -110727,35 +102979,29 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccountSummaryElements.decode = function decode(reader, length, error, long) { + AccountSummaryElements.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.AccountSummaryElements(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.clientKey = reader.bytes(); break; } case 2: { - message.settings = $root.AccountSummary.Settings.decode(reader, reader.uint32(), undefined, long + 1); + message.settings = $root.AccountSummary.Settings.decode(reader, reader.uint32()); break; } case 3: { - message.keysInfo = $root.AccountSummary.KeysInfo.decode(reader, reader.uint32(), undefined, long + 1); + message.keysInfo = $root.AccountSummary.KeysInfo.decode(reader, reader.uint32()); break; } case 4: { if (!(message.syncLogs && message.syncLogs.length)) message.syncLogs = []; - message.syncLogs.push($root.AccountSummary.SyncLog.decode(reader, reader.uint32(), undefined, long + 1)); + message.syncLogs.push($root.AccountSummary.SyncLog.decode(reader, reader.uint32())); break; } case 5: { @@ -110763,25 +103009,25 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } case 6: { - message.license = $root.AccountSummary.License.decode(reader, reader.uint32(), undefined, long + 1); + message.license = $root.AccountSummary.License.decode(reader, reader.uint32()); break; } case 7: { - message.group = $root.AccountSummary.Group.decode(reader, reader.uint32(), undefined, long + 1); + message.group = $root.AccountSummary.Group.decode(reader, reader.uint32()); break; } case 8: { - message.Enforcements = $root.AccountSummary.Enforcements.decode(reader, reader.uint32(), undefined, long + 1); + message.Enforcements = $root.AccountSummary.Enforcements.decode(reader, reader.uint32()); break; } case 9: { if (!(message.Images && message.Images.length)) message.Images = []; - message.Images.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32(), undefined, long + 1)); + message.Images.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32())); break; } case 10: { - message.personalLicense = $root.AccountSummary.License.decode(reader, reader.uint32(), undefined, long + 1); + message.personalLicense = $root.AccountSummary.License.decode(reader, reader.uint32()); break; } case 11: { @@ -110797,7 +103043,7 @@ export const AccountSummary = $root.AccountSummary = (() => { case 13: { if (!(message.devices && message.devices.length)) message.devices = []; - message.devices.push($root.AccountSummary.DeviceInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.devices.push($root.AccountSummary.DeviceInfo.decode(reader, reader.uint32())); break; } case 14: { @@ -110831,7 +103077,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -110862,23 +103108,19 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AccountSummaryElements.verify = function verify(message, long) { + AccountSummaryElements.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.clientKey != null && message.hasOwnProperty("clientKey")) if (!(message.clientKey && typeof message.clientKey.length === "number" || $util.isString(message.clientKey))) return "clientKey: buffer expected"; if (message.settings != null && message.hasOwnProperty("settings")) { - let error = $root.AccountSummary.Settings.verify(message.settings, long + 1); + let error = $root.AccountSummary.Settings.verify(message.settings); if (error) return "settings." + error; } if (message.keysInfo != null && message.hasOwnProperty("keysInfo")) { - let error = $root.AccountSummary.KeysInfo.verify(message.keysInfo, long + 1); + let error = $root.AccountSummary.KeysInfo.verify(message.keysInfo); if (error) return "keysInfo." + error; } @@ -110886,7 +103128,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!Array.isArray(message.syncLogs)) return "syncLogs: array expected"; for (let i = 0; i < message.syncLogs.length; ++i) { - let error = $root.AccountSummary.SyncLog.verify(message.syncLogs[i], long + 1); + let error = $root.AccountSummary.SyncLog.verify(message.syncLogs[i]); if (error) return "syncLogs." + error; } @@ -110895,17 +103137,17 @@ export const AccountSummary = $root.AccountSummary = (() => { if (typeof message.isEnterpriseAdmin !== "boolean") return "isEnterpriseAdmin: boolean expected"; if (message.license != null && message.hasOwnProperty("license")) { - let error = $root.AccountSummary.License.verify(message.license, long + 1); + let error = $root.AccountSummary.License.verify(message.license); if (error) return "license." + error; } if (message.group != null && message.hasOwnProperty("group")) { - let error = $root.AccountSummary.Group.verify(message.group, long + 1); + let error = $root.AccountSummary.Group.verify(message.group); if (error) return "group." + error; } if (message.Enforcements != null && message.hasOwnProperty("Enforcements")) { - let error = $root.AccountSummary.Enforcements.verify(message.Enforcements, long + 1); + let error = $root.AccountSummary.Enforcements.verify(message.Enforcements); if (error) return "Enforcements." + error; } @@ -110913,13 +103155,13 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!Array.isArray(message.Images)) return "Images: array expected"; for (let i = 0; i < message.Images.length; ++i) { - let error = $root.AccountSummary.KeyValue.verify(message.Images[i], long + 1); + let error = $root.AccountSummary.KeyValue.verify(message.Images[i]); if (error) return "Images." + error; } } if (message.personalLicense != null && message.hasOwnProperty("personalLicense")) { - let error = $root.AccountSummary.License.verify(message.personalLicense, long + 1); + let error = $root.AccountSummary.License.verify(message.personalLicense); if (error) return "personalLicense." + error; } @@ -110937,7 +103179,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!Array.isArray(message.devices)) return "devices: array expected"; for (let i = 0; i < message.devices.length; ++i) { - let error = $root.AccountSummary.DeviceInfo.verify(message.devices[i], long + 1); + let error = $root.AccountSummary.DeviceInfo.verify(message.devices[i]); if (error) return "devices." + error; } @@ -110978,13 +103220,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.AccountSummaryElements} AccountSummaryElements */ - AccountSummaryElements.fromObject = function fromObject(object, long) { + AccountSummaryElements.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.AccountSummaryElements) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.AccountSummaryElements(); if (object.clientKey != null) if (typeof object.clientKey === "string") @@ -110994,12 +103232,12 @@ export const AccountSummary = $root.AccountSummary = (() => { if (object.settings != null) { if (typeof object.settings !== "object") throw TypeError(".AccountSummary.AccountSummaryElements.settings: object expected"); - message.settings = $root.AccountSummary.Settings.fromObject(object.settings, long + 1); + message.settings = $root.AccountSummary.Settings.fromObject(object.settings); } if (object.keysInfo != null) { if (typeof object.keysInfo !== "object") throw TypeError(".AccountSummary.AccountSummaryElements.keysInfo: object expected"); - message.keysInfo = $root.AccountSummary.KeysInfo.fromObject(object.keysInfo, long + 1); + message.keysInfo = $root.AccountSummary.KeysInfo.fromObject(object.keysInfo); } if (object.syncLogs) { if (!Array.isArray(object.syncLogs)) @@ -111008,7 +103246,7 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.syncLogs.length; ++i) { if (typeof object.syncLogs[i] !== "object") throw TypeError(".AccountSummary.AccountSummaryElements.syncLogs: object expected"); - message.syncLogs[i] = $root.AccountSummary.SyncLog.fromObject(object.syncLogs[i], long + 1); + message.syncLogs[i] = $root.AccountSummary.SyncLog.fromObject(object.syncLogs[i]); } } if (object.isEnterpriseAdmin != null) @@ -111016,17 +103254,17 @@ export const AccountSummary = $root.AccountSummary = (() => { if (object.license != null) { if (typeof object.license !== "object") throw TypeError(".AccountSummary.AccountSummaryElements.license: object expected"); - message.license = $root.AccountSummary.License.fromObject(object.license, long + 1); + message.license = $root.AccountSummary.License.fromObject(object.license); } if (object.group != null) { if (typeof object.group !== "object") throw TypeError(".AccountSummary.AccountSummaryElements.group: object expected"); - message.group = $root.AccountSummary.Group.fromObject(object.group, long + 1); + message.group = $root.AccountSummary.Group.fromObject(object.group); } if (object.Enforcements != null) { if (typeof object.Enforcements !== "object") throw TypeError(".AccountSummary.AccountSummaryElements.Enforcements: object expected"); - message.Enforcements = $root.AccountSummary.Enforcements.fromObject(object.Enforcements, long + 1); + message.Enforcements = $root.AccountSummary.Enforcements.fromObject(object.Enforcements); } if (object.Images) { if (!Array.isArray(object.Images)) @@ -111035,13 +103273,13 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.Images.length; ++i) { if (typeof object.Images[i] !== "object") throw TypeError(".AccountSummary.AccountSummaryElements.Images: object expected"); - message.Images[i] = $root.AccountSummary.KeyValue.fromObject(object.Images[i], long + 1); + message.Images[i] = $root.AccountSummary.KeyValue.fromObject(object.Images[i]); } } if (object.personalLicense != null) { if (typeof object.personalLicense !== "object") throw TypeError(".AccountSummary.AccountSummaryElements.personalLicense: object expected"); - message.personalLicense = $root.AccountSummary.License.fromObject(object.personalLicense, long + 1); + message.personalLicense = $root.AccountSummary.License.fromObject(object.personalLicense); } if (object.fixSharedFolderRecords != null) message.fixSharedFolderRecords = Boolean(object.fixSharedFolderRecords); @@ -111059,7 +103297,7 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.devices.length; ++i) { if (typeof object.devices[i] !== "object") throw TypeError(".AccountSummary.AccountSummaryElements.devices: object expected"); - message.devices[i] = $root.AccountSummary.DeviceInfo.fromObject(object.devices[i], long + 1); + message.devices[i] = $root.AccountSummary.DeviceInfo.fromObject(object.devices[i]); } } if (object.isShareAdmin != null) @@ -111093,13 +103331,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AccountSummaryElements.toObject = function toObject(message, options, q) { + AccountSummaryElements.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.syncLogs = []; @@ -111134,29 +103368,29 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.clientKey != null && message.hasOwnProperty("clientKey")) object.clientKey = options.bytes === String ? $util.base64.encode(message.clientKey, 0, message.clientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientKey) : message.clientKey; if (message.settings != null && message.hasOwnProperty("settings")) - object.settings = $root.AccountSummary.Settings.toObject(message.settings, options, q + 1); + object.settings = $root.AccountSummary.Settings.toObject(message.settings, options); if (message.keysInfo != null && message.hasOwnProperty("keysInfo")) - object.keysInfo = $root.AccountSummary.KeysInfo.toObject(message.keysInfo, options, q + 1); + object.keysInfo = $root.AccountSummary.KeysInfo.toObject(message.keysInfo, options); if (message.syncLogs && message.syncLogs.length) { object.syncLogs = []; for (let j = 0; j < message.syncLogs.length; ++j) - object.syncLogs[j] = $root.AccountSummary.SyncLog.toObject(message.syncLogs[j], options, q + 1); + object.syncLogs[j] = $root.AccountSummary.SyncLog.toObject(message.syncLogs[j], options); } if (message.isEnterpriseAdmin != null && message.hasOwnProperty("isEnterpriseAdmin")) object.isEnterpriseAdmin = message.isEnterpriseAdmin; if (message.license != null && message.hasOwnProperty("license")) - object.license = $root.AccountSummary.License.toObject(message.license, options, q + 1); + object.license = $root.AccountSummary.License.toObject(message.license, options); if (message.group != null && message.hasOwnProperty("group")) - object.group = $root.AccountSummary.Group.toObject(message.group, options, q + 1); + object.group = $root.AccountSummary.Group.toObject(message.group, options); if (message.Enforcements != null && message.hasOwnProperty("Enforcements")) - object.Enforcements = $root.AccountSummary.Enforcements.toObject(message.Enforcements, options, q + 1); + object.Enforcements = $root.AccountSummary.Enforcements.toObject(message.Enforcements, options); if (message.Images && message.Images.length) { object.Images = []; for (let j = 0; j < message.Images.length; ++j) - object.Images[j] = $root.AccountSummary.KeyValue.toObject(message.Images[j], options, q + 1); + object.Images[j] = $root.AccountSummary.KeyValue.toObject(message.Images[j], options); } if (message.personalLicense != null && message.hasOwnProperty("personalLicense")) - object.personalLicense = $root.AccountSummary.License.toObject(message.personalLicense, options, q + 1); + object.personalLicense = $root.AccountSummary.License.toObject(message.personalLicense, options); if (message.fixSharedFolderRecords != null && message.hasOwnProperty("fixSharedFolderRecords")) object.fixSharedFolderRecords = message.fixSharedFolderRecords; if (message.usernames && message.usernames.length) { @@ -111167,7 +103401,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.devices && message.devices.length) { object.devices = []; for (let j = 0; j < message.devices.length; ++j) - object.devices[j] = $root.AccountSummary.DeviceInfo.toObject(message.devices[j], options, q + 1); + object.devices[j] = $root.AccountSummary.DeviceInfo.toObject(message.devices[j], options); } if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) object.isShareAdmin = message.isShareAdmin; @@ -111250,7 +103484,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function DeviceInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -111379,13 +103613,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceInfo.encode = function encode(message, writer, q) { + DeviceInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) @@ -111439,18 +103669,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceInfo.decode = function decode(reader, length, error, long) { + DeviceInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.DeviceInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -111505,7 +103729,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -111536,13 +103760,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceInfo.verify = function verify(message, long) { + DeviceInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -111607,13 +103827,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.DeviceInfo} DeviceInfo */ - DeviceInfo.fromObject = function fromObject(object, long) { + DeviceInfo.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.DeviceInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.DeviceInfo(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -111664,7 +103880,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.ipAddress = String(object.ipAddress); if (object.approveRequestTime != null) if ($util.Long) - message.approveRequestTime = $util.Long.fromValue(object.approveRequestTime, false); + (message.approveRequestTime = $util.Long.fromValue(object.approveRequestTime)).unsigned = false; else if (typeof object.approveRequestTime === "string") message.approveRequestTime = parseInt(object.approveRequestTime, 10); else if (typeof object.approveRequestTime === "number") @@ -111675,7 +103891,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.encryptedDataKeyPresent = Boolean(object.encryptedDataKeyPresent); if (object.groupId != null) if ($util.Long) - message.groupId = $util.Long.fromValue(object.groupId, false); + (message.groupId = $util.Long.fromValue(object.groupId)).unsigned = false; else if (typeof object.groupId === "string") message.groupId = parseInt(object.groupId, 10); else if (typeof object.groupId === "number") @@ -111720,13 +103936,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceInfo.toObject = function toObject(message, options, q) { + DeviceInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -111757,15 +103969,15 @@ export const AccountSummary = $root.AccountSummary = (() => { object.ipAddress = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.approveRequestTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.approveRequestTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.approveRequestTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.approveRequestTime = options.longs === String ? "0" : 0; object.encryptedDataKeyPresent = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.groupId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.groupId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.groupId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.groupId = options.longs === String ? "0" : 0; object.devicePlatform = ""; object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; } @@ -111786,18 +103998,14 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) object.ipAddress = message.ipAddress; if (message.approveRequestTime != null && message.hasOwnProperty("approveRequestTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.approveRequestTime = typeof message.approveRequestTime === "number" ? BigInt(message.approveRequestTime) : $util.Long.fromBits(message.approveRequestTime.low >>> 0, message.approveRequestTime.high >>> 0, false).toBigInt(); - else if (typeof message.approveRequestTime === "number") + if (typeof message.approveRequestTime === "number") object.approveRequestTime = options.longs === String ? String(message.approveRequestTime) : message.approveRequestTime; else object.approveRequestTime = options.longs === String ? $util.Long.prototype.toString.call(message.approveRequestTime) : options.longs === Number ? new $util.LongBits(message.approveRequestTime.low >>> 0, message.approveRequestTime.high >>> 0).toNumber() : message.approveRequestTime; if (message.encryptedDataKeyPresent != null && message.hasOwnProperty("encryptedDataKeyPresent")) object.encryptedDataKeyPresent = message.encryptedDataKeyPresent; if (message.groupId != null && message.hasOwnProperty("groupId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.groupId = typeof message.groupId === "number" ? BigInt(message.groupId) : $util.Long.fromBits(message.groupId.low >>> 0, message.groupId.high >>> 0, false).toBigInt(); - else if (typeof message.groupId === "number") + if (typeof message.groupId === "number") object.groupId = options.longs === String ? String(message.groupId) : message.groupId; else object.groupId = options.longs === String ? $util.Long.prototype.toString.call(message.groupId) : options.longs === Number ? new $util.LongBits(message.groupId.low >>> 0, message.groupId.high >>> 0).toNumber() : message.groupId; @@ -111863,7 +104071,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function KeysInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -111944,13 +104152,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeysInfo.encode = function encode(message, writer, q) { + KeysInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptionParams); if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) @@ -111992,18 +104196,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeysInfo.decode = function decode(reader, length, error, long) { + KeysInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.KeysInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptionParams = reader.bytes(); @@ -112034,7 +104232,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -112065,13 +104263,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeysInfo.verify = function verify(message, long) { + KeysInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) if (!(message.encryptionParams && typeof message.encryptionParams.length === "number" || $util.isString(message.encryptionParams))) return "encryptionParams: buffer expected"; @@ -112104,13 +104298,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.KeysInfo} KeysInfo */ - KeysInfo.fromObject = function fromObject(object, long) { + KeysInfo.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.KeysInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.KeysInfo(); if (object.encryptionParams != null) if (typeof object.encryptionParams === "string") @@ -112156,13 +104346,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeysInfo.toObject = function toObject(message, options, q) { + KeysInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -112280,7 +104466,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function SyncLog(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -112353,13 +104539,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncLog.encode = function encode(message, writer, q) { + SyncLog.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.countryName != null && Object.hasOwnProperty.call(message, "countryName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.countryName); if (message.secondsAgo != null && Object.hasOwnProperty.call(message, "secondsAgo")) @@ -112399,18 +104581,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SyncLog.decode = function decode(reader, length, error, long) { + SyncLog.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.SyncLog(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.countryName = reader.string(); @@ -112437,7 +104613,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -112468,13 +104644,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SyncLog.verify = function verify(message, long) { + SyncLog.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.countryName != null && message.hasOwnProperty("countryName")) if (!$util.isString(message.countryName)) return "countryName: string expected"; @@ -112504,19 +104676,15 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.SyncLog} SyncLog */ - SyncLog.fromObject = function fromObject(object, long) { + SyncLog.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.SyncLog) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.SyncLog(); if (object.countryName != null) message.countryName = String(object.countryName); if (object.secondsAgo != null) if ($util.Long) - message.secondsAgo = $util.Long.fromValue(object.secondsAgo, false); + (message.secondsAgo = $util.Long.fromValue(object.secondsAgo)).unsigned = false; else if (typeof object.secondsAgo === "string") message.secondsAgo = parseInt(object.secondsAgo, 10); else if (typeof object.secondsAgo === "number") @@ -112546,21 +104714,17 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SyncLog.toObject = function toObject(message, options, q) { + SyncLog.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.countryName = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.secondsAgo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.secondsAgo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.secondsAgo = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.secondsAgo = options.longs === String ? "0" : 0; object.deviceName = ""; object.countryCode = ""; if (options.bytes === String) @@ -112575,9 +104739,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.countryName != null && message.hasOwnProperty("countryName")) object.countryName = message.countryName; if (message.secondsAgo != null && message.hasOwnProperty("secondsAgo")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.secondsAgo = typeof message.secondsAgo === "number" ? BigInt(message.secondsAgo) : $util.Long.fromBits(message.secondsAgo.low >>> 0, message.secondsAgo.high >>> 0, false).toBigInt(); - else if (typeof message.secondsAgo === "number") + if (typeof message.secondsAgo === "number") object.secondsAgo = options.longs === String ? String(message.secondsAgo) : message.secondsAgo; else object.secondsAgo = options.longs === String ? $util.Long.prototype.toString.call(message.secondsAgo) : options.longs === Number ? new $util.LongBits(message.secondsAgo.low >>> 0, message.secondsAgo.high >>> 0).toNumber() : message.secondsAgo; @@ -112674,7 +104836,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function License(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -112971,13 +105133,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - License.encode = function encode(message, writer, q) { + License.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.subscriptionCode != null && Object.hasOwnProperty.call(message, "subscriptionCode")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.subscriptionCode); if (message.productTypeId != null && Object.hasOwnProperty.call(message, "productTypeId")) @@ -113031,7 +105189,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.breachWatchDateCreated != null && Object.hasOwnProperty.call(message, "breachWatchDateCreated")) writer.uint32(/* id 26, wireType 0 =*/208).int64(message.breachWatchDateCreated); if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.AccountSummary.Result.encode(message.error, writer.uint32(/* id 27, wireType 2 =*/218).fork(), q + 1).ldelim(); + $root.AccountSummary.Result.encode(message.error, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) writer.uint32(/* id 29, wireType 0 =*/232).int64(message.expiration); if (message.storageExpiration != null && Object.hasOwnProperty.call(message, "storageExpiration")) @@ -113073,18 +105231,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - License.decode = function decode(reader, length, error, long) { + License.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.License(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.subscriptionCode = reader.string(); @@ -113191,7 +105343,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } case 27: { - message.error = $root.AccountSummary.Result.decode(reader, reader.uint32(), undefined, long + 1); + message.error = $root.AccountSummary.Result.decode(reader, reader.uint32()); break; } case 29: { @@ -113223,7 +105375,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -113254,13 +105406,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - License.verify = function verify(message, long) { + License.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.subscriptionCode != null && message.hasOwnProperty("subscriptionCode")) if (!$util.isString(message.subscriptionCode)) return "subscriptionCode: string expected"; @@ -113340,7 +105488,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!$util.isInteger(message.breachWatchDateCreated) && !(message.breachWatchDateCreated && $util.isInteger(message.breachWatchDateCreated.low) && $util.isInteger(message.breachWatchDateCreated.high))) return "breachWatchDateCreated: integer|Long expected"; if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.AccountSummary.Result.verify(message.error, long + 1); + let error = $root.AccountSummary.Result.verify(message.error); if (error) return "error." + error; } @@ -113376,13 +105524,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.License} License */ - License.fromObject = function fromObject(object, long) { + License.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.License) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.License(); if (object.subscriptionCode != null) message.subscriptionCode = String(object.subscriptionCode); @@ -113394,7 +105538,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.expirationDate = String(object.expirationDate); if (object.secondsUntilExpiration != null) if ($util.Long) - message.secondsUntilExpiration = $util.Long.fromValue(object.secondsUntilExpiration, false); + (message.secondsUntilExpiration = $util.Long.fromValue(object.secondsUntilExpiration)).unsigned = false; else if (typeof object.secondsUntilExpiration === "string") message.secondsUntilExpiration = parseInt(object.secondsUntilExpiration, 10); else if (typeof object.secondsUntilExpiration === "number") @@ -113407,7 +105551,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.filePlanType = object.filePlanType | 0; if (object.bytesUsed != null) if ($util.Long) - message.bytesUsed = $util.Long.fromValue(object.bytesUsed, false); + (message.bytesUsed = $util.Long.fromValue(object.bytesUsed)).unsigned = false; else if (typeof object.bytesUsed === "string") message.bytesUsed = parseInt(object.bytesUsed, 10); else if (typeof object.bytesUsed === "number") @@ -113416,7 +105560,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.bytesUsed = new $util.LongBits(object.bytesUsed.low >>> 0, object.bytesUsed.high >>> 0).toNumber(); if (object.bytesTotal != null) if ($util.Long) - message.bytesTotal = $util.Long.fromValue(object.bytesTotal, false); + (message.bytesTotal = $util.Long.fromValue(object.bytesTotal)).unsigned = false; else if (typeof object.bytesTotal === "string") message.bytesTotal = parseInt(object.bytesTotal, 10); else if (typeof object.bytesTotal === "number") @@ -113425,7 +105569,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.bytesTotal = new $util.LongBits(object.bytesTotal.low >>> 0, object.bytesTotal.high >>> 0).toNumber(); if (object.secondsUntilStorageExpiration != null) if ($util.Long) - message.secondsUntilStorageExpiration = $util.Long.fromValue(object.secondsUntilStorageExpiration, false); + (message.secondsUntilStorageExpiration = $util.Long.fromValue(object.secondsUntilStorageExpiration)).unsigned = false; else if (typeof object.secondsUntilStorageExpiration === "string") message.secondsUntilStorageExpiration = parseInt(object.secondsUntilStorageExpiration, 10); else if (typeof object.secondsUntilStorageExpiration === "number") @@ -113465,7 +105609,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.breachWatchScanned = Boolean(object.breachWatchScanned); if (object.breachWatchExpiration != null) if ($util.Long) - message.breachWatchExpiration = $util.Long.fromValue(object.breachWatchExpiration, false); + (message.breachWatchExpiration = $util.Long.fromValue(object.breachWatchExpiration)).unsigned = false; else if (typeof object.breachWatchExpiration === "string") message.breachWatchExpiration = parseInt(object.breachWatchExpiration, 10); else if (typeof object.breachWatchExpiration === "number") @@ -113474,7 +105618,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.breachWatchExpiration = new $util.LongBits(object.breachWatchExpiration.low >>> 0, object.breachWatchExpiration.high >>> 0).toNumber(); if (object.breachWatchDateCreated != null) if ($util.Long) - message.breachWatchDateCreated = $util.Long.fromValue(object.breachWatchDateCreated, false); + (message.breachWatchDateCreated = $util.Long.fromValue(object.breachWatchDateCreated)).unsigned = false; else if (typeof object.breachWatchDateCreated === "string") message.breachWatchDateCreated = parseInt(object.breachWatchDateCreated, 10); else if (typeof object.breachWatchDateCreated === "number") @@ -113484,11 +105628,11 @@ export const AccountSummary = $root.AccountSummary = (() => { if (object.error != null) { if (typeof object.error !== "object") throw TypeError(".AccountSummary.License.error: object expected"); - message.error = $root.AccountSummary.Result.fromObject(object.error, long + 1); + message.error = $root.AccountSummary.Result.fromObject(object.error); } if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -113497,7 +105641,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); if (object.storageExpiration != null) if ($util.Long) - message.storageExpiration = $util.Long.fromValue(object.storageExpiration, false); + (message.storageExpiration = $util.Long.fromValue(object.storageExpiration)).unsigned = false; else if (typeof object.storageExpiration === "string") message.storageExpiration = parseInt(object.storageExpiration, 10); else if (typeof object.storageExpiration === "number") @@ -113526,13 +105670,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - License.toObject = function toObject(message, options, q) { + License.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.subscriptionCode = ""; @@ -113541,26 +105681,26 @@ export const AccountSummary = $root.AccountSummary = (() => { object.expirationDate = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.secondsUntilExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.secondsUntilExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.secondsUntilExpiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.secondsUntilExpiration = options.longs === String ? "0" : 0; object.maxDevices = 0; object.filePlanType = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.bytesUsed = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.bytesUsed = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.bytesUsed = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.bytesUsed = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.bytesTotal = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.bytesTotal = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.bytesTotal = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.bytesTotal = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.secondsUntilStorageExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.secondsUntilStorageExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.secondsUntilStorageExpiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.secondsUntilStorageExpiration = options.longs === String ? "0" : 0; object.storageExpirationDate = ""; object.hasAutoRenewableAppstoreSubscription = false; object.accountType = 0; @@ -113583,25 +105723,25 @@ export const AccountSummary = $root.AccountSummary = (() => { object.breachWatchScanned = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.breachWatchExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.breachWatchExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.breachWatchExpiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.breachWatchExpiration = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.breachWatchDateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.breachWatchDateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.breachWatchDateCreated = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.breachWatchDateCreated = options.longs === String ? "0" : 0; object.error = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.storageExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.storageExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.storageExpiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.storageExpiration = options.longs === String ? "0" : 0; object.uploadsCount = 0; object.units = 0; object.pendingEnterprise = false; @@ -113617,9 +105757,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) object.expirationDate = message.expirationDate; if (message.secondsUntilExpiration != null && message.hasOwnProperty("secondsUntilExpiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.secondsUntilExpiration = typeof message.secondsUntilExpiration === "number" ? BigInt(message.secondsUntilExpiration) : $util.Long.fromBits(message.secondsUntilExpiration.low >>> 0, message.secondsUntilExpiration.high >>> 0, false).toBigInt(); - else if (typeof message.secondsUntilExpiration === "number") + if (typeof message.secondsUntilExpiration === "number") object.secondsUntilExpiration = options.longs === String ? String(message.secondsUntilExpiration) : message.secondsUntilExpiration; else object.secondsUntilExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.secondsUntilExpiration) : options.longs === Number ? new $util.LongBits(message.secondsUntilExpiration.low >>> 0, message.secondsUntilExpiration.high >>> 0).toNumber() : message.secondsUntilExpiration; @@ -113628,23 +105766,17 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) object.filePlanType = message.filePlanType; if (message.bytesUsed != null && message.hasOwnProperty("bytesUsed")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.bytesUsed = typeof message.bytesUsed === "number" ? BigInt(message.bytesUsed) : $util.Long.fromBits(message.bytesUsed.low >>> 0, message.bytesUsed.high >>> 0, false).toBigInt(); - else if (typeof message.bytesUsed === "number") + if (typeof message.bytesUsed === "number") object.bytesUsed = options.longs === String ? String(message.bytesUsed) : message.bytesUsed; else object.bytesUsed = options.longs === String ? $util.Long.prototype.toString.call(message.bytesUsed) : options.longs === Number ? new $util.LongBits(message.bytesUsed.low >>> 0, message.bytesUsed.high >>> 0).toNumber() : message.bytesUsed; if (message.bytesTotal != null && message.hasOwnProperty("bytesTotal")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.bytesTotal = typeof message.bytesTotal === "number" ? BigInt(message.bytesTotal) : $util.Long.fromBits(message.bytesTotal.low >>> 0, message.bytesTotal.high >>> 0, false).toBigInt(); - else if (typeof message.bytesTotal === "number") + if (typeof message.bytesTotal === "number") object.bytesTotal = options.longs === String ? String(message.bytesTotal) : message.bytesTotal; else object.bytesTotal = options.longs === String ? $util.Long.prototype.toString.call(message.bytesTotal) : options.longs === Number ? new $util.LongBits(message.bytesTotal.low >>> 0, message.bytesTotal.high >>> 0).toNumber() : message.bytesTotal; if (message.secondsUntilStorageExpiration != null && message.hasOwnProperty("secondsUntilStorageExpiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.secondsUntilStorageExpiration = typeof message.secondsUntilStorageExpiration === "number" ? BigInt(message.secondsUntilStorageExpiration) : $util.Long.fromBits(message.secondsUntilStorageExpiration.low >>> 0, message.secondsUntilStorageExpiration.high >>> 0, false).toBigInt(); - else if (typeof message.secondsUntilStorageExpiration === "number") + if (typeof message.secondsUntilStorageExpiration === "number") object.secondsUntilStorageExpiration = options.longs === String ? String(message.secondsUntilStorageExpiration) : message.secondsUntilStorageExpiration; else object.secondsUntilStorageExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.secondsUntilStorageExpiration) : options.longs === Number ? new $util.LongBits(message.secondsUntilStorageExpiration.low >>> 0, message.secondsUntilStorageExpiration.high >>> 0).toNumber() : message.secondsUntilStorageExpiration; @@ -113677,32 +105809,24 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.breachWatchScanned != null && message.hasOwnProperty("breachWatchScanned")) object.breachWatchScanned = message.breachWatchScanned; if (message.breachWatchExpiration != null && message.hasOwnProperty("breachWatchExpiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.breachWatchExpiration = typeof message.breachWatchExpiration === "number" ? BigInt(message.breachWatchExpiration) : $util.Long.fromBits(message.breachWatchExpiration.low >>> 0, message.breachWatchExpiration.high >>> 0, false).toBigInt(); - else if (typeof message.breachWatchExpiration === "number") + if (typeof message.breachWatchExpiration === "number") object.breachWatchExpiration = options.longs === String ? String(message.breachWatchExpiration) : message.breachWatchExpiration; else object.breachWatchExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.breachWatchExpiration) : options.longs === Number ? new $util.LongBits(message.breachWatchExpiration.low >>> 0, message.breachWatchExpiration.high >>> 0).toNumber() : message.breachWatchExpiration; if (message.breachWatchDateCreated != null && message.hasOwnProperty("breachWatchDateCreated")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.breachWatchDateCreated = typeof message.breachWatchDateCreated === "number" ? BigInt(message.breachWatchDateCreated) : $util.Long.fromBits(message.breachWatchDateCreated.low >>> 0, message.breachWatchDateCreated.high >>> 0, false).toBigInt(); - else if (typeof message.breachWatchDateCreated === "number") + if (typeof message.breachWatchDateCreated === "number") object.breachWatchDateCreated = options.longs === String ? String(message.breachWatchDateCreated) : message.breachWatchDateCreated; else object.breachWatchDateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.breachWatchDateCreated) : options.longs === Number ? new $util.LongBits(message.breachWatchDateCreated.low >>> 0, message.breachWatchDateCreated.high >>> 0).toNumber() : message.breachWatchDateCreated; if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.AccountSummary.Result.toObject(message.error, options, q + 1); + object.error = $root.AccountSummary.Result.toObject(message.error, options); if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; if (message.storageExpiration != null && message.hasOwnProperty("storageExpiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.storageExpiration = typeof message.storageExpiration === "number" ? BigInt(message.storageExpiration) : $util.Long.fromBits(message.storageExpiration.low >>> 0, message.storageExpiration.high >>> 0, false).toBigInt(); - else if (typeof message.storageExpiration === "number") + if (typeof message.storageExpiration === "number") object.storageExpiration = options.longs === String ? String(message.storageExpiration) : message.storageExpiration; else object.storageExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.storageExpiration) : options.longs === Number ? new $util.LongBits(message.storageExpiration.low >>> 0, message.storageExpiration.high >>> 0).toNumber() : message.storageExpiration; @@ -113775,7 +105899,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function AddOn(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -113864,13 +105988,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddOn.encode = function encode(message, writer, q) { + AddOn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.licenseKeyId != null && Object.hasOwnProperty.call(message, "licenseKeyId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.licenseKeyId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -113914,18 +106034,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddOn.decode = function decode(reader, length, error, long) { + AddOn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.AddOn(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.licenseKeyId = reader.int32(); @@ -113960,7 +106074,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -113991,13 +106105,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddOn.verify = function verify(message, long) { + AddOn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.licenseKeyId != null && message.hasOwnProperty("licenseKeyId")) if (!$util.isInteger(message.licenseKeyId)) return "licenseKeyId: integer expected"; @@ -114033,13 +106143,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.AddOn} AddOn */ - AddOn.fromObject = function fromObject(object, long) { + AddOn.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.AddOn) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.AddOn(); if (object.licenseKeyId != null) message.licenseKeyId = object.licenseKeyId | 0; @@ -114047,7 +106153,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.name = String(object.name); if (object.expirationDate != null) if ($util.Long) - message.expirationDate = $util.Long.fromValue(object.expirationDate, false); + (message.expirationDate = $util.Long.fromValue(object.expirationDate)).unsigned = false; else if (typeof object.expirationDate === "string") message.expirationDate = parseInt(object.expirationDate, 10); else if (typeof object.expirationDate === "number") @@ -114056,7 +106162,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.expirationDate = new $util.LongBits(object.expirationDate.low >>> 0, object.expirationDate.high >>> 0).toNumber(); if (object.createdDate != null) if ($util.Long) - message.createdDate = $util.Long.fromValue(object.createdDate, false); + (message.createdDate = $util.Long.fromValue(object.createdDate)).unsigned = false; else if (typeof object.createdDate === "string") message.createdDate = parseInt(object.createdDate, 10); else if (typeof object.createdDate === "number") @@ -114083,27 +106189,23 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddOn.toObject = function toObject(message, options, q) { + AddOn.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.licenseKeyId = 0; object.name = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expirationDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expirationDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expirationDate = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expirationDate = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.createdDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.createdDate = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.createdDate = options.longs === String ? "0" : 0; object.isTrial = false; object.enabled = false; object.scanned = false; @@ -114114,16 +106216,12 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expirationDate = typeof message.expirationDate === "number" ? BigInt(message.expirationDate) : $util.Long.fromBits(message.expirationDate.low >>> 0, message.expirationDate.high >>> 0, false).toBigInt(); - else if (typeof message.expirationDate === "number") + if (typeof message.expirationDate === "number") object.expirationDate = options.longs === String ? String(message.expirationDate) : message.expirationDate; else object.expirationDate = options.longs === String ? $util.Long.prototype.toString.call(message.expirationDate) : options.longs === Number ? new $util.LongBits(message.expirationDate.low >>> 0, message.expirationDate.high >>> 0).toNumber() : message.expirationDate; if (message.createdDate != null && message.hasOwnProperty("createdDate")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.createdDate = typeof message.createdDate === "number" ? BigInt(message.createdDate) : $util.Long.fromBits(message.createdDate.low >>> 0, message.createdDate.high >>> 0, false).toBigInt(); - else if (typeof message.createdDate === "number") + if (typeof message.createdDate === "number") object.createdDate = options.longs === String ? String(message.createdDate) : message.createdDate; else object.createdDate = options.longs === String ? $util.Long.prototype.toString.call(message.createdDate) : options.longs === Number ? new $util.LongBits(message.createdDate.low >>> 0, message.createdDate.high >>> 0).toNumber() : message.createdDate; @@ -114233,7 +106331,7 @@ export const AccountSummary = $root.AccountSummary = (() => { this.personalUsernames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -114586,23 +106684,19 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Settings.encode = function encode(message, writer, q) { + Settings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.audit); if (message.mustPerformAccountShareBy != null && Object.hasOwnProperty.call(message, "mustPerformAccountShareBy")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.mustPerformAccountShareBy); if (message.shareAccountTo != null && message.shareAccountTo.length) for (let i = 0; i < message.shareAccountTo.length; ++i) - $root.AccountSummary.MissingAccountShareKey.encode(message.shareAccountTo[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.AccountSummary.MissingAccountShareKey.encode(message.shareAccountTo[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.rules != null && message.rules.length) for (let i = 0; i < message.rules.length; ++i) - $root.AccountSummary.PasswordRule.encode(message.rules[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.AccountSummary.PasswordRule.encode(message.rules[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.passwordRulesIntro != null && Object.hasOwnProperty.call(message, "passwordRulesIntro")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.passwordRulesIntro); if (message.autoBackupDays != null && Object.hasOwnProperty.call(message, "autoBackupDays")) @@ -114623,10 +106717,10 @@ export const AccountSummary = $root.AccountSummary = (() => { writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.accountFolderKey); if (message.securityKeys != null && message.securityKeys.length) for (let i = 0; i < message.securityKeys.length; ++i) - $root.AccountSummary.SecurityKey.encode(message.securityKeys[i], writer.uint32(/* id 14, wireType 2 =*/114).fork(), q + 1).ldelim(); + $root.AccountSummary.SecurityKey.encode(message.securityKeys[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.keyValues != null && message.keyValues.length) for (let i = 0; i < message.keyValues.length; ++i) - $root.AccountSummary.KeyValue.encode(message.keyValues[i], writer.uint32(/* id 15, wireType 2 =*/122).fork(), q + 1).ldelim(); + $root.AccountSummary.KeyValue.encode(message.keyValues[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); if (message.ssoUser != null && Object.hasOwnProperty.call(message, "ssoUser")) writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ssoUser); if (message.onlineAccessOnly != null && Object.hasOwnProperty.call(message, "onlineAccessOnly")) @@ -114711,18 +106805,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Settings.decode = function decode(reader, length, error, long) { + Settings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.Settings(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.audit = reader.bool(); @@ -114735,13 +106823,13 @@ export const AccountSummary = $root.AccountSummary = (() => { case 3: { if (!(message.shareAccountTo && message.shareAccountTo.length)) message.shareAccountTo = []; - message.shareAccountTo.push($root.AccountSummary.MissingAccountShareKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.shareAccountTo.push($root.AccountSummary.MissingAccountShareKey.decode(reader, reader.uint32())); break; } case 4: { if (!(message.rules && message.rules.length)) message.rules = []; - message.rules.push($root.AccountSummary.PasswordRule.decode(reader, reader.uint32(), undefined, long + 1)); + message.rules.push($root.AccountSummary.PasswordRule.decode(reader, reader.uint32())); break; } case 5: { @@ -114783,13 +106871,13 @@ export const AccountSummary = $root.AccountSummary = (() => { case 14: { if (!(message.securityKeys && message.securityKeys.length)) message.securityKeys = []; - message.securityKeys.push($root.AccountSummary.SecurityKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.securityKeys.push($root.AccountSummary.SecurityKey.decode(reader, reader.uint32())); break; } case 15: { if (!(message.keyValues && message.keyValues.length)) message.keyValues = []; - message.keyValues.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32(), undefined, long + 1)); + message.keyValues.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32())); break; } case 16: { @@ -114906,7 +106994,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -114937,13 +107025,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Settings.verify = function verify(message, long) { + Settings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.audit != null && message.hasOwnProperty("audit")) if (typeof message.audit !== "boolean") return "audit: boolean expected"; @@ -114954,7 +107038,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!Array.isArray(message.shareAccountTo)) return "shareAccountTo: array expected"; for (let i = 0; i < message.shareAccountTo.length; ++i) { - let error = $root.AccountSummary.MissingAccountShareKey.verify(message.shareAccountTo[i], long + 1); + let error = $root.AccountSummary.MissingAccountShareKey.verify(message.shareAccountTo[i]); if (error) return "shareAccountTo." + error; } @@ -114963,7 +107047,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!Array.isArray(message.rules)) return "rules: array expected"; for (let i = 0; i < message.rules.length; ++i) { - let error = $root.AccountSummary.PasswordRule.verify(message.rules[i], long + 1); + let error = $root.AccountSummary.PasswordRule.verify(message.rules[i]); if (error) return "rules." + error; } @@ -114999,7 +107083,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!Array.isArray(message.securityKeys)) return "securityKeys: array expected"; for (let i = 0; i < message.securityKeys.length; ++i) { - let error = $root.AccountSummary.SecurityKey.verify(message.securityKeys[i], long + 1); + let error = $root.AccountSummary.SecurityKey.verify(message.securityKeys[i]); if (error) return "securityKeys." + error; } @@ -115008,7 +107092,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!Array.isArray(message.keyValues)) return "keyValues: array expected"; for (let i = 0; i < message.keyValues.length; ++i) { - let error = $root.AccountSummary.KeyValue.verify(message.keyValues[i], long + 1); + let error = $root.AccountSummary.KeyValue.verify(message.keyValues[i]); if (error) return "keyValues." + error; } @@ -115123,19 +107207,15 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.Settings} Settings */ - Settings.fromObject = function fromObject(object, long) { + Settings.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.Settings) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.Settings(); if (object.audit != null) message.audit = Boolean(object.audit); if (object.mustPerformAccountShareBy != null) if ($util.Long) - message.mustPerformAccountShareBy = $util.Long.fromValue(object.mustPerformAccountShareBy, false); + (message.mustPerformAccountShareBy = $util.Long.fromValue(object.mustPerformAccountShareBy)).unsigned = false; else if (typeof object.mustPerformAccountShareBy === "string") message.mustPerformAccountShareBy = parseInt(object.mustPerformAccountShareBy, 10); else if (typeof object.mustPerformAccountShareBy === "number") @@ -115149,7 +107229,7 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.shareAccountTo.length; ++i) { if (typeof object.shareAccountTo[i] !== "object") throw TypeError(".AccountSummary.Settings.shareAccountTo: object expected"); - message.shareAccountTo[i] = $root.AccountSummary.MissingAccountShareKey.fromObject(object.shareAccountTo[i], long + 1); + message.shareAccountTo[i] = $root.AccountSummary.MissingAccountShareKey.fromObject(object.shareAccountTo[i]); } } if (object.rules) { @@ -115159,7 +107239,7 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.rules.length; ++i) { if (typeof object.rules[i] !== "object") throw TypeError(".AccountSummary.Settings.rules: object expected"); - message.rules[i] = $root.AccountSummary.PasswordRule.fromObject(object.rules[i], long + 1); + message.rules[i] = $root.AccountSummary.PasswordRule.fromObject(object.rules[i]); } } if (object.passwordRulesIntro != null) @@ -115190,7 +107270,7 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.securityKeys.length; ++i) { if (typeof object.securityKeys[i] !== "object") throw TypeError(".AccountSummary.Settings.securityKeys: object expected"); - message.securityKeys[i] = $root.AccountSummary.SecurityKey.fromObject(object.securityKeys[i], long + 1); + message.securityKeys[i] = $root.AccountSummary.SecurityKey.fromObject(object.securityKeys[i]); } } if (object.keyValues) { @@ -115200,7 +107280,7 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.keyValues.length; ++i) { if (typeof object.keyValues[i] !== "object") throw TypeError(".AccountSummary.Settings.keyValues: object expected"); - message.keyValues[i] = $root.AccountSummary.KeyValue.fromObject(object.keyValues[i], long + 1); + message.keyValues[i] = $root.AccountSummary.KeyValue.fromObject(object.keyValues[i]); } } if (object.ssoUser != null) @@ -115225,7 +107305,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.restrictSharingIncomingEnterprise = Boolean(object.restrictSharingIncomingEnterprise); if (object.logoutTimer != null) if ($util.Long) - message.logoutTimer = $util.Long.fromValue(object.logoutTimer, false); + (message.logoutTimer = $util.Long.fromValue(object.logoutTimer)).unsigned = false; else if (typeof object.logoutTimer === "string") message.logoutTimer = parseInt(object.logoutTimer, 10); else if (typeof object.logoutTimer === "number") @@ -115330,13 +107410,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Settings.toObject = function toObject(message, options, q) { + Settings.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.shareAccountTo = []; @@ -115350,9 +107426,9 @@ export const AccountSummary = $root.AccountSummary = (() => { object.audit = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.mustPerformAccountShareBy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.mustPerformAccountShareBy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.mustPerformAccountShareBy = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.mustPerformAccountShareBy = options.longs === String ? "0" : 0; object.passwordRulesIntro = ""; object.autoBackupDays = 0; object.theme = ""; @@ -115380,9 +107456,9 @@ export const AccountSummary = $root.AccountSummary = (() => { object.restrictSharingIncomingEnterprise = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.logoutTimer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.logoutTimer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.logoutTimer = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.logoutTimer = options.longs === String ? "0" : 0; object.persistentLogin = false; object.ipDisableAutoApprove = false; object.shareDataKeyWithEccPublicKey = false; @@ -115400,21 +107476,19 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.audit != null && message.hasOwnProperty("audit")) object.audit = message.audit; if (message.mustPerformAccountShareBy != null && message.hasOwnProperty("mustPerformAccountShareBy")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.mustPerformAccountShareBy = typeof message.mustPerformAccountShareBy === "number" ? BigInt(message.mustPerformAccountShareBy) : $util.Long.fromBits(message.mustPerformAccountShareBy.low >>> 0, message.mustPerformAccountShareBy.high >>> 0, false).toBigInt(); - else if (typeof message.mustPerformAccountShareBy === "number") + if (typeof message.mustPerformAccountShareBy === "number") object.mustPerformAccountShareBy = options.longs === String ? String(message.mustPerformAccountShareBy) : message.mustPerformAccountShareBy; else object.mustPerformAccountShareBy = options.longs === String ? $util.Long.prototype.toString.call(message.mustPerformAccountShareBy) : options.longs === Number ? new $util.LongBits(message.mustPerformAccountShareBy.low >>> 0, message.mustPerformAccountShareBy.high >>> 0).toNumber() : message.mustPerformAccountShareBy; if (message.shareAccountTo && message.shareAccountTo.length) { object.shareAccountTo = []; for (let j = 0; j < message.shareAccountTo.length; ++j) - object.shareAccountTo[j] = $root.AccountSummary.MissingAccountShareKey.toObject(message.shareAccountTo[j], options, q + 1); + object.shareAccountTo[j] = $root.AccountSummary.MissingAccountShareKey.toObject(message.shareAccountTo[j], options); } if (message.rules && message.rules.length) { object.rules = []; for (let j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.AccountSummary.PasswordRule.toObject(message.rules[j], options, q + 1); + object.rules[j] = $root.AccountSummary.PasswordRule.toObject(message.rules[j], options); } if (message.passwordRulesIntro != null && message.hasOwnProperty("passwordRulesIntro")) object.passwordRulesIntro = message.passwordRulesIntro; @@ -115437,12 +107511,12 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.securityKeys && message.securityKeys.length) { object.securityKeys = []; for (let j = 0; j < message.securityKeys.length; ++j) - object.securityKeys[j] = $root.AccountSummary.SecurityKey.toObject(message.securityKeys[j], options, q + 1); + object.securityKeys[j] = $root.AccountSummary.SecurityKey.toObject(message.securityKeys[j], options); } if (message.keyValues && message.keyValues.length) { object.keyValues = []; for (let j = 0; j < message.keyValues.length; ++j) - object.keyValues[j] = $root.AccountSummary.KeyValue.toObject(message.keyValues[j], options, q + 1); + object.keyValues[j] = $root.AccountSummary.KeyValue.toObject(message.keyValues[j], options); } if (message.ssoUser != null && message.hasOwnProperty("ssoUser")) object.ssoUser = message.ssoUser; @@ -115465,9 +107539,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.restrictSharingIncomingEnterprise != null && message.hasOwnProperty("restrictSharingIncomingEnterprise")) object.restrictSharingIncomingEnterprise = message.restrictSharingIncomingEnterprise; if (message.logoutTimer != null && message.hasOwnProperty("logoutTimer")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.logoutTimer = typeof message.logoutTimer === "number" ? BigInt(message.logoutTimer) : $util.Long.fromBits(message.logoutTimer.low >>> 0, message.logoutTimer.high >>> 0, false).toBigInt(); - else if (typeof message.logoutTimer === "number") + if (typeof message.logoutTimer === "number") object.logoutTimer = options.longs === String ? String(message.logoutTimer) : message.logoutTimer; else object.logoutTimer = options.longs === String ? $util.Long.prototype.toString.call(message.logoutTimer) : options.longs === Number ? new $util.LongBits(message.logoutTimer.low >>> 0, message.logoutTimer.high >>> 0).toNumber() : message.logoutTimer; @@ -115560,7 +107632,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function KeyValue(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -115601,13 +107673,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeyValue.encode = function encode(message, writer, q) { + KeyValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -115639,18 +107707,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyValue.decode = function decode(reader, length, error, long) { + KeyValue.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.KeyValue(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.key = reader.string(); @@ -115661,7 +107723,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -115692,13 +107754,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeyValue.verify = function verify(message, long) { + KeyValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.key != null && message.hasOwnProperty("key")) if (!$util.isString(message.key)) return "key: string expected"; @@ -115716,13 +107774,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.KeyValue} KeyValue */ - KeyValue.fromObject = function fromObject(object, long) { + KeyValue.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.KeyValue) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.KeyValue(); if (object.key != null) message.key = String(object.key); @@ -115740,13 +107794,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeyValue.toObject = function toObject(message, options, q) { + KeyValue.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.key = ""; @@ -115809,7 +107859,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function KeyValueBoolean(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -115850,13 +107900,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeyValueBoolean.encode = function encode(message, writer, q) { + KeyValueBoolean.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -115888,18 +107934,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyValueBoolean.decode = function decode(reader, length, error, long) { + KeyValueBoolean.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.KeyValueBoolean(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.key = reader.string(); @@ -115910,7 +107950,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -115941,13 +107981,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeyValueBoolean.verify = function verify(message, long) { + KeyValueBoolean.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.key != null && message.hasOwnProperty("key")) if (!$util.isString(message.key)) return "key: string expected"; @@ -115965,13 +108001,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.KeyValueBoolean} KeyValueBoolean */ - KeyValueBoolean.fromObject = function fromObject(object, long) { + KeyValueBoolean.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.KeyValueBoolean) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.KeyValueBoolean(); if (object.key != null) message.key = String(object.key); @@ -115989,13 +108021,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeyValueBoolean.toObject = function toObject(message, options, q) { + KeyValueBoolean.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.key = ""; @@ -116058,7 +108086,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function KeyValueLong(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -116099,13 +108127,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeyValueLong.encode = function encode(message, writer, q) { + KeyValueLong.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -116137,18 +108161,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyValueLong.decode = function decode(reader, length, error, long) { + KeyValueLong.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.KeyValueLong(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.key = reader.string(); @@ -116159,7 +108177,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -116190,13 +108208,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeyValueLong.verify = function verify(message, long) { + KeyValueLong.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.key != null && message.hasOwnProperty("key")) if (!$util.isString(message.key)) return "key: string expected"; @@ -116214,19 +108228,15 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.KeyValueLong} KeyValueLong */ - KeyValueLong.fromObject = function fromObject(object, long) { + KeyValueLong.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.KeyValueLong) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.KeyValueLong(); if (object.key != null) message.key = String(object.key); if (object.value != null) if ($util.Long) - message.value = $util.Long.fromValue(object.value, false); + (message.value = $util.Long.fromValue(object.value)).unsigned = false; else if (typeof object.value === "string") message.value = parseInt(object.value, 10); else if (typeof object.value === "number") @@ -116245,28 +108255,22 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeyValueLong.toObject = function toObject(message, options, q) { + KeyValueLong.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.key = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.value = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.value = options.longs === String ? "0" : 0; } if (message.key != null && message.hasOwnProperty("key")) object.key = message.key; if (message.value != null && message.hasOwnProperty("value")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.value = typeof message.value === "number" ? BigInt(message.value) : $util.Long.fromBits(message.value.low >>> 0, message.value.high >>> 0, false).toBigInt(); - else if (typeof message.value === "number") + if (typeof message.value === "number") object.value = options.longs === String ? String(message.value) : message.value; else object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber() : message.value; @@ -116324,7 +108328,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function Result(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -116373,13 +108377,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encode = function encode(message, writer, q) { + Result.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.resultCode); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -116413,18 +108413,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decode = function decode(reader, length, error, long) { + Result.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.Result(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.resultCode = reader.string(); @@ -116439,7 +108433,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -116470,13 +108464,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Result.verify = function verify(message, long) { + Result.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.resultCode != null && message.hasOwnProperty("resultCode")) if (!$util.isString(message.resultCode)) return "resultCode: string expected"; @@ -116497,13 +108487,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.Result} Result */ - Result.fromObject = function fromObject(object, long) { + Result.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.Result) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.Result(); if (object.resultCode != null) message.resultCode = String(object.resultCode); @@ -116523,13 +108509,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Result.toObject = function toObject(message, options, q) { + Result.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.resultCode = ""; @@ -116601,7 +108583,7 @@ export const AccountSummary = $root.AccountSummary = (() => { this.jsons = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -116658,25 +108640,21 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Enforcements.encode = function encode(message, writer, q) { + Enforcements.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.strings != null && message.strings.length) for (let i = 0; i < message.strings.length; ++i) - $root.AccountSummary.KeyValue.encode(message.strings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.AccountSummary.KeyValue.encode(message.strings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.booleans != null && message.booleans.length) for (let i = 0; i < message.booleans.length; ++i) - $root.AccountSummary.KeyValueBoolean.encode(message.booleans[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.AccountSummary.KeyValueBoolean.encode(message.booleans[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.longs != null && message.longs.length) for (let i = 0; i < message.longs.length; ++i) - $root.AccountSummary.KeyValueLong.encode(message.longs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.AccountSummary.KeyValueLong.encode(message.longs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.jsons != null && message.jsons.length) for (let i = 0; i < message.jsons.length; ++i) - $root.AccountSummary.KeyValue.encode(message.jsons[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.AccountSummary.KeyValue.encode(message.jsons[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -116704,45 +108682,39 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Enforcements.decode = function decode(reader, length, error, long) { + Enforcements.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.Enforcements(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.strings && message.strings.length)) message.strings = []; - message.strings.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32(), undefined, long + 1)); + message.strings.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32())); break; } case 2: { if (!(message.booleans && message.booleans.length)) message.booleans = []; - message.booleans.push($root.AccountSummary.KeyValueBoolean.decode(reader, reader.uint32(), undefined, long + 1)); + message.booleans.push($root.AccountSummary.KeyValueBoolean.decode(reader, reader.uint32())); break; } case 3: { if (!(message.longs && message.longs.length)) message.longs = []; - message.longs.push($root.AccountSummary.KeyValueLong.decode(reader, reader.uint32(), undefined, long + 1)); + message.longs.push($root.AccountSummary.KeyValueLong.decode(reader, reader.uint32())); break; } case 4: { if (!(message.jsons && message.jsons.length)) message.jsons = []; - message.jsons.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32(), undefined, long + 1)); + message.jsons.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -116773,18 +108745,14 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Enforcements.verify = function verify(message, long) { + Enforcements.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.strings != null && message.hasOwnProperty("strings")) { if (!Array.isArray(message.strings)) return "strings: array expected"; for (let i = 0; i < message.strings.length; ++i) { - let error = $root.AccountSummary.KeyValue.verify(message.strings[i], long + 1); + let error = $root.AccountSummary.KeyValue.verify(message.strings[i]); if (error) return "strings." + error; } @@ -116793,7 +108761,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!Array.isArray(message.booleans)) return "booleans: array expected"; for (let i = 0; i < message.booleans.length; ++i) { - let error = $root.AccountSummary.KeyValueBoolean.verify(message.booleans[i], long + 1); + let error = $root.AccountSummary.KeyValueBoolean.verify(message.booleans[i]); if (error) return "booleans." + error; } @@ -116802,7 +108770,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!Array.isArray(message.longs)) return "longs: array expected"; for (let i = 0; i < message.longs.length; ++i) { - let error = $root.AccountSummary.KeyValueLong.verify(message.longs[i], long + 1); + let error = $root.AccountSummary.KeyValueLong.verify(message.longs[i]); if (error) return "longs." + error; } @@ -116811,7 +108779,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!Array.isArray(message.jsons)) return "jsons: array expected"; for (let i = 0; i < message.jsons.length; ++i) { - let error = $root.AccountSummary.KeyValue.verify(message.jsons[i], long + 1); + let error = $root.AccountSummary.KeyValue.verify(message.jsons[i]); if (error) return "jsons." + error; } @@ -116827,13 +108795,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.Enforcements} Enforcements */ - Enforcements.fromObject = function fromObject(object, long) { + Enforcements.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.Enforcements) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.Enforcements(); if (object.strings) { if (!Array.isArray(object.strings)) @@ -116842,7 +108806,7 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.strings.length; ++i) { if (typeof object.strings[i] !== "object") throw TypeError(".AccountSummary.Enforcements.strings: object expected"); - message.strings[i] = $root.AccountSummary.KeyValue.fromObject(object.strings[i], long + 1); + message.strings[i] = $root.AccountSummary.KeyValue.fromObject(object.strings[i]); } } if (object.booleans) { @@ -116852,7 +108816,7 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.booleans.length; ++i) { if (typeof object.booleans[i] !== "object") throw TypeError(".AccountSummary.Enforcements.booleans: object expected"); - message.booleans[i] = $root.AccountSummary.KeyValueBoolean.fromObject(object.booleans[i], long + 1); + message.booleans[i] = $root.AccountSummary.KeyValueBoolean.fromObject(object.booleans[i]); } } if (object.longs) { @@ -116862,7 +108826,7 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.longs.length; ++i) { if (typeof object.longs[i] !== "object") throw TypeError(".AccountSummary.Enforcements.longs: object expected"); - message.longs[i] = $root.AccountSummary.KeyValueLong.fromObject(object.longs[i], long + 1); + message.longs[i] = $root.AccountSummary.KeyValueLong.fromObject(object.longs[i]); } } if (object.jsons) { @@ -116872,7 +108836,7 @@ export const AccountSummary = $root.AccountSummary = (() => { for (let i = 0; i < object.jsons.length; ++i) { if (typeof object.jsons[i] !== "object") throw TypeError(".AccountSummary.Enforcements.jsons: object expected"); - message.jsons[i] = $root.AccountSummary.KeyValue.fromObject(object.jsons[i], long + 1); + message.jsons[i] = $root.AccountSummary.KeyValue.fromObject(object.jsons[i]); } } return message; @@ -116887,13 +108851,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Enforcements.toObject = function toObject(message, options, q) { + Enforcements.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.strings = []; @@ -116904,22 +108864,22 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.strings && message.strings.length) { object.strings = []; for (let j = 0; j < message.strings.length; ++j) - object.strings[j] = $root.AccountSummary.KeyValue.toObject(message.strings[j], options, q + 1); + object.strings[j] = $root.AccountSummary.KeyValue.toObject(message.strings[j], options); } if (message.booleans && message.booleans.length) { object.booleans = []; for (let j = 0; j < message.booleans.length; ++j) - object.booleans[j] = $root.AccountSummary.KeyValueBoolean.toObject(message.booleans[j], options, q + 1); + object.booleans[j] = $root.AccountSummary.KeyValueBoolean.toObject(message.booleans[j], options); } if (message.longs && message.longs.length) { object.longs = []; for (let j = 0; j < message.longs.length; ++j) - object.longs[j] = $root.AccountSummary.KeyValueLong.toObject(message.longs[j], options, q + 1); + object.longs[j] = $root.AccountSummary.KeyValueLong.toObject(message.longs[j], options); } if (message.jsons && message.jsons.length) { object.jsons = []; for (let j = 0; j < message.jsons.length; ++j) - object.jsons[j] = $root.AccountSummary.KeyValue.toObject(message.jsons[j], options, q + 1); + object.jsons[j] = $root.AccountSummary.KeyValue.toObject(message.jsons[j], options); } return object; }; @@ -116974,7 +108934,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function MissingAccountShareKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -117015,13 +108975,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MissingAccountShareKey.encode = function encode(message, writer, q) { + MissingAccountShareKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) @@ -117053,18 +109009,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MissingAccountShareKey.decode = function decode(reader, length, error, long) { + MissingAccountShareKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.MissingAccountShareKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.roleId = reader.int64(); @@ -117075,7 +109025,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -117106,13 +109056,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MissingAccountShareKey.verify = function verify(message, long) { + MissingAccountShareKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.roleId != null && message.hasOwnProperty("roleId")) if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) return "roleId: integer|Long expected"; @@ -117130,17 +109076,13 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.MissingAccountShareKey} MissingAccountShareKey */ - MissingAccountShareKey.fromObject = function fromObject(object, long) { + MissingAccountShareKey.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.MissingAccountShareKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.MissingAccountShareKey(); if (object.roleId != null) if ($util.Long) - message.roleId = $util.Long.fromValue(object.roleId, false); + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; else if (typeof object.roleId === "string") message.roleId = parseInt(object.roleId, 10); else if (typeof object.roleId === "number") @@ -117164,20 +109106,16 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MissingAccountShareKey.toObject = function toObject(message, options, q) { + MissingAccountShareKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.roleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.roleId = options.longs === String ? "0" : 0; if (options.bytes === String) object.publicKey = ""; else { @@ -117187,9 +109125,7 @@ export const AccountSummary = $root.AccountSummary = (() => { } } if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.roleId = typeof message.roleId === "number" ? BigInt(message.roleId) : $util.Long.fromBits(message.roleId.low >>> 0, message.roleId.high >>> 0, false).toBigInt(); - else if (typeof message.roleId === "number") + if (typeof message.roleId === "number") object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; @@ -117252,7 +109188,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function PasswordRule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -117325,13 +109261,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasswordRule.encode = function encode(message, writer, q) { + PasswordRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ruleType != null && Object.hasOwnProperty.call(message, "ruleType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.ruleType); if (message.pattern != null && Object.hasOwnProperty.call(message, "pattern")) @@ -117371,18 +109303,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasswordRule.decode = function decode(reader, length, error, long) { + PasswordRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.PasswordRule(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ruleType = reader.string(); @@ -117409,7 +109335,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -117440,13 +109366,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasswordRule.verify = function verify(message, long) { + PasswordRule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ruleType != null && message.hasOwnProperty("ruleType")) if (!$util.isString(message.ruleType)) return "ruleType: string expected"; @@ -117476,13 +109398,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.PasswordRule} PasswordRule */ - PasswordRule.fromObject = function fromObject(object, long) { + PasswordRule.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.PasswordRule) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.PasswordRule(); if (object.ruleType != null) message.ruleType = String(object.ruleType); @@ -117508,13 +109426,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasswordRule.toObject = function toObject(message, options, q) { + PasswordRule.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.ruleType = ""; @@ -117592,7 +109506,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function SecurityKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -117657,13 +109571,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityKey.encode = function encode(message, writer, q) { + SecurityKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) @@ -117673,7 +109583,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.isValid != null && Object.hasOwnProperty.call(message, "isValid")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isValid); if (message.deviceRegistration != null && Object.hasOwnProperty.call(message, "deviceRegistration")) - $root.AccountSummary.DeviceRegistration.encode(message.deviceRegistration, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.AccountSummary.DeviceRegistration.encode(message.deviceRegistration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -117701,18 +109611,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityKey.decode = function decode(reader, length, error, long) { + SecurityKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.SecurityKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.deviceId = reader.int64(); @@ -117731,11 +109635,11 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } case 5: { - message.deviceRegistration = $root.AccountSummary.DeviceRegistration.decode(reader, reader.uint32(), undefined, long + 1); + message.deviceRegistration = $root.AccountSummary.DeviceRegistration.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -117766,13 +109670,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityKey.verify = function verify(message, long) { + SecurityKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceId != null && message.hasOwnProperty("deviceId")) if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) return "deviceId: integer|Long expected"; @@ -117786,7 +109686,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (typeof message.isValid !== "boolean") return "isValid: boolean expected"; if (message.deviceRegistration != null && message.hasOwnProperty("deviceRegistration")) { - let error = $root.AccountSummary.DeviceRegistration.verify(message.deviceRegistration, long + 1); + let error = $root.AccountSummary.DeviceRegistration.verify(message.deviceRegistration); if (error) return "deviceRegistration." + error; } @@ -117801,17 +109701,13 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.SecurityKey} SecurityKey */ - SecurityKey.fromObject = function fromObject(object, long) { + SecurityKey.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.SecurityKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.SecurityKey(); if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -117822,7 +109718,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.deviceName = String(object.deviceName); if (object.dateAdded != null) if ($util.Long) - message.dateAdded = $util.Long.fromValue(object.dateAdded, false); + (message.dateAdded = $util.Long.fromValue(object.dateAdded)).unsigned = false; else if (typeof object.dateAdded === "string") message.dateAdded = parseInt(object.dateAdded, 10); else if (typeof object.dateAdded === "number") @@ -117834,7 +109730,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (object.deviceRegistration != null) { if (typeof object.deviceRegistration !== "object") throw TypeError(".AccountSummary.SecurityKey.deviceRegistration: object expected"); - message.deviceRegistration = $root.AccountSummary.DeviceRegistration.fromObject(object.deviceRegistration, long + 1); + message.deviceRegistration = $root.AccountSummary.DeviceRegistration.fromObject(object.deviceRegistration); } return message; }; @@ -117848,49 +109744,41 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityKey.toObject = function toObject(message, options, q) { + SecurityKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; object.deviceName = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateAdded = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dateAdded = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dateAdded = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dateAdded = options.longs === String ? "0" : 0; object.isValid = false; object.deviceRegistration = null; } if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; if (message.deviceName != null && message.hasOwnProperty("deviceName")) object.deviceName = message.deviceName; if (message.dateAdded != null && message.hasOwnProperty("dateAdded")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dateAdded = typeof message.dateAdded === "number" ? BigInt(message.dateAdded) : $util.Long.fromBits(message.dateAdded.low >>> 0, message.dateAdded.high >>> 0, false).toBigInt(); - else if (typeof message.dateAdded === "number") + if (typeof message.dateAdded === "number") object.dateAdded = options.longs === String ? String(message.dateAdded) : message.dateAdded; else object.dateAdded = options.longs === String ? $util.Long.prototype.toString.call(message.dateAdded) : options.longs === Number ? new $util.LongBits(message.dateAdded.low >>> 0, message.dateAdded.high >>> 0).toNumber() : message.dateAdded; if (message.isValid != null && message.hasOwnProperty("isValid")) object.isValid = message.isValid; if (message.deviceRegistration != null && message.hasOwnProperty("deviceRegistration")) - object.deviceRegistration = $root.AccountSummary.DeviceRegistration.toObject(message.deviceRegistration, options, q + 1); + object.deviceRegistration = $root.AccountSummary.DeviceRegistration.toObject(message.deviceRegistration, options); return object; }; @@ -117947,7 +109835,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function DeviceRegistration(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -118012,13 +109900,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceRegistration.encode = function encode(message, writer, q) { + DeviceRegistration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.keyHandle != null && Object.hasOwnProperty.call(message, "keyHandle")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyHandle); if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) @@ -118056,18 +109940,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceRegistration.decode = function decode(reader, length, error, long) { + DeviceRegistration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.DeviceRegistration(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.keyHandle = reader.string(); @@ -118090,7 +109968,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -118121,13 +109999,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceRegistration.verify = function verify(message, long) { + DeviceRegistration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.keyHandle != null && message.hasOwnProperty("keyHandle")) if (!$util.isString(message.keyHandle)) return "keyHandle: string expected"; @@ -118154,13 +110028,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.DeviceRegistration} DeviceRegistration */ - DeviceRegistration.fromObject = function fromObject(object, long) { + DeviceRegistration.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.DeviceRegistration) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.DeviceRegistration(); if (object.keyHandle != null) message.keyHandle = String(object.keyHandle); @@ -118173,7 +110043,7 @@ export const AccountSummary = $root.AccountSummary = (() => { message.attestationCert = String(object.attestationCert); if (object.counter != null) if ($util.Long) - message.counter = $util.Long.fromValue(object.counter, false); + (message.counter = $util.Long.fromValue(object.counter)).unsigned = false; else if (typeof object.counter === "string") message.counter = parseInt(object.counter, 10); else if (typeof object.counter === "number") @@ -118194,13 +110064,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceRegistration.toObject = function toObject(message, options, q) { + DeviceRegistration.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.keyHandle = ""; @@ -118214,9 +110080,9 @@ export const AccountSummary = $root.AccountSummary = (() => { object.attestationCert = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.counter = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.counter = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.counter = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.counter = options.longs === String ? "0" : 0; object.compromised = false; } if (message.keyHandle != null && message.hasOwnProperty("keyHandle")) @@ -118226,9 +110092,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.attestationCert != null && message.hasOwnProperty("attestationCert")) object.attestationCert = message.attestationCert; if (message.counter != null && message.hasOwnProperty("counter")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.counter = typeof message.counter === "number" ? BigInt(message.counter) : $util.Long.fromBits(message.counter.low >>> 0, message.counter.high >>> 0, false).toBigInt(); - else if (typeof message.counter === "number") + if (typeof message.counter === "number") object.counter = options.longs === String ? String(message.counter) : message.counter; else object.counter = options.longs === String ? $util.Long.prototype.toString.call(message.counter) : options.longs === Number ? new $util.LongBits(message.counter.low >>> 0, message.counter.high >>> 0).toNumber() : message.counter; @@ -118288,7 +110152,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function Group(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -118337,19 +110201,15 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Group.encode = function encode(message, writer, q) { + Group.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.admin != null && Object.hasOwnProperty.call(message, "admin")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.admin); if (message.groupVerificationCode != null && Object.hasOwnProperty.call(message, "groupVerificationCode")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupVerificationCode); if (message.administrator != null && Object.hasOwnProperty.call(message, "administrator")) - $root.AccountSummary.Administrator.encode(message.administrator, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.AccountSummary.Administrator.encode(message.administrator, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -118377,18 +110237,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Group.decode = function decode(reader, length, error, long) { + Group.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.Group(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.admin = reader.bool(); @@ -118399,11 +110253,11 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } case 4: { - message.administrator = $root.AccountSummary.Administrator.decode(reader, reader.uint32(), undefined, long + 1); + message.administrator = $root.AccountSummary.Administrator.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -118434,13 +110288,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Group.verify = function verify(message, long) { + Group.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.admin != null && message.hasOwnProperty("admin")) if (typeof message.admin !== "boolean") return "admin: boolean expected"; @@ -118448,7 +110298,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (!$util.isString(message.groupVerificationCode)) return "groupVerificationCode: string expected"; if (message.administrator != null && message.hasOwnProperty("administrator")) { - let error = $root.AccountSummary.Administrator.verify(message.administrator, long + 1); + let error = $root.AccountSummary.Administrator.verify(message.administrator); if (error) return "administrator." + error; } @@ -118463,13 +110313,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.Group} Group */ - Group.fromObject = function fromObject(object, long) { + Group.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.Group) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.Group(); if (object.admin != null) message.admin = Boolean(object.admin); @@ -118478,7 +110324,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (object.administrator != null) { if (typeof object.administrator !== "object") throw TypeError(".AccountSummary.Group.administrator: object expected"); - message.administrator = $root.AccountSummary.Administrator.fromObject(object.administrator, long + 1); + message.administrator = $root.AccountSummary.Administrator.fromObject(object.administrator); } return message; }; @@ -118492,13 +110338,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Group.toObject = function toObject(message, options, q) { + Group.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.admin = false; @@ -118510,7 +110352,7 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.groupVerificationCode != null && message.hasOwnProperty("groupVerificationCode")) object.groupVerificationCode = message.groupVerificationCode; if (message.administrator != null && message.hasOwnProperty("administrator")) - object.administrator = $root.AccountSummary.Administrator.toObject(message.administrator, options, q + 1); + object.administrator = $root.AccountSummary.Administrator.toObject(message.administrator, options); return object; }; @@ -118570,7 +110412,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function Administrator(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -118659,13 +110501,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Administrator.encode = function encode(message, writer, q) { + Administrator.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.firstName != null && Object.hasOwnProperty.call(message, "firstName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.firstName); if (message.lastName != null && Object.hasOwnProperty.call(message, "lastName")) @@ -118709,18 +110547,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Administrator.decode = function decode(reader, length, error, long) { + Administrator.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.Administrator(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.firstName = reader.string(); @@ -118755,7 +110587,7 @@ export const AccountSummary = $root.AccountSummary = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -118786,13 +110618,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Administrator.verify = function verify(message, long) { + Administrator.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.firstName != null && message.hasOwnProperty("firstName")) if (!$util.isString(message.firstName)) return "firstName: string expected"; @@ -118828,13 +110656,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {Object.} object Plain object * @returns {AccountSummary.Administrator} Administrator */ - Administrator.fromObject = function fromObject(object, long) { + Administrator.fromObject = function fromObject(object) { if (object instanceof $root.AccountSummary.Administrator) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.AccountSummary.Administrator(); if (object.firstName != null) message.firstName = String(object.firstName); @@ -118864,13 +110688,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Administrator.toObject = function toObject(message, options, q) { + Administrator.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.firstName = ""; @@ -119012,7 +110832,7 @@ export const Automator = $root.Automator = (() => { function AutomatorSettingValue(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -119149,13 +110969,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutomatorSettingValue.encode = function encode(message, writer, q) { + AutomatorSettingValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.settingId != null && Object.hasOwnProperty.call(message, "settingId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.settingId); if (message.settingTypeId != null && Object.hasOwnProperty.call(message, "settingTypeId")) @@ -119211,18 +111027,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutomatorSettingValue.decode = function decode(reader, length, error, long) { + AutomatorSettingValue.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AutomatorSettingValue(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.settingId = reader.int64(); @@ -119281,7 +111091,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -119312,13 +111122,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutomatorSettingValue.verify = function verify(message, long) { + AutomatorSettingValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.settingId != null && message.hasOwnProperty("settingId")) if (!$util.isInteger(message.settingId) && !(message.settingId && $util.isInteger(message.settingId.low) && $util.isInteger(message.settingId.high))) return "settingId: integer|Long expected"; @@ -119386,17 +111192,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AutomatorSettingValue} AutomatorSettingValue */ - AutomatorSettingValue.fromObject = function fromObject(object, long) { + AutomatorSettingValue.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AutomatorSettingValue) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AutomatorSettingValue(); if (object.settingId != null) if ($util.Long) - message.settingId = $util.Long.fromValue(object.settingId, false); + (message.settingId = $util.Long.fromValue(object.settingId)).unsigned = false; else if (typeof object.settingId === "string") message.settingId = parseInt(object.settingId, 10); else if (typeof object.settingId === "number") @@ -119491,20 +111293,16 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutomatorSettingValue.toObject = function toObject(message, options, q) { + AutomatorSettingValue.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.settingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.settingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.settingId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.settingId = options.longs === String ? "0" : 0; object.settingTypeId = 0; object.settingTag = ""; object.settingName = ""; @@ -119520,9 +111318,7 @@ export const Automator = $root.Automator = (() => { object.required = false; } if (message.settingId != null && message.hasOwnProperty("settingId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.settingId = typeof message.settingId === "number" ? BigInt(message.settingId) : $util.Long.fromBits(message.settingId.low >>> 0, message.settingId.high >>> 0, false).toBigInt(); - else if (typeof message.settingId === "number") + if (typeof message.settingId === "number") object.settingId = options.longs === String ? String(message.settingId) : message.settingId; else object.settingId = options.longs === String ? $util.Long.prototype.toString.call(message.settingId) : options.longs === Number ? new $util.LongBits(message.settingId.low >>> 0, message.settingId.high >>> 0).toNumber() : message.settingId; @@ -119618,7 +111414,7 @@ export const Automator = $root.Automator = (() => { function ApproveDeviceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -119731,13 +111527,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDeviceRequest.encode = function encode(message, writer, q) { + ApproveDeviceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.ssoAuthenticationProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthenticationProtocolType")) @@ -119787,18 +111579,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDeviceRequest.decode = function decode(reader, length, error, long) { + ApproveDeviceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveDeviceRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -119845,7 +111631,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -119876,13 +111662,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveDeviceRequest.verify = function verify(message, long) { + ApproveDeviceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -119941,17 +111723,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.ApproveDeviceRequest} ApproveDeviceRequest */ - ApproveDeviceRequest.fromObject = function fromObject(object, long) { + ApproveDeviceRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.ApproveDeviceRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.ApproveDeviceRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -120040,20 +111818,16 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveDeviceRequest.toObject = function toObject(message, options, q) { + ApproveDeviceRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.ssoAuthenticationProtocolType = options.enums === String ? "UNKNOWN_PROTOCOL" : 0; object.authMessage = ""; object.email = ""; @@ -120078,9 +111852,7 @@ export const Automator = $root.Automator = (() => { object.isEccOnly = false; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -120170,7 +111942,7 @@ export const Automator = $root.Automator = (() => { this.automatorSkills = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -120259,13 +112031,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetupRequest.encode = function encode(message, writer, q) { + SetupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) @@ -120278,7 +112046,7 @@ export const Automator = $root.Automator = (() => { writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedEnterprisePrivateRsaKey); if (message.automatorSkills != null && message.automatorSkills.length) for (let i = 0; i < message.automatorSkills.length; ++i) - $root.Automator.AutomatorSkill.encode(message.automatorSkills[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Automator.AutomatorSkill.encode(message.automatorSkills[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "encryptedTreeKey")) writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.encryptedTreeKey); if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) @@ -120310,18 +112078,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetupRequest.decode = function decode(reader, length, error, long) { + SetupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.SetupRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -120346,7 +112108,7 @@ export const Automator = $root.Automator = (() => { case 6: { if (!(message.automatorSkills && message.automatorSkills.length)) message.automatorSkills = []; - message.automatorSkills.push($root.Automator.AutomatorSkill.decode(reader, reader.uint32(), undefined, long + 1)); + message.automatorSkills.push($root.Automator.AutomatorSkill.decode(reader, reader.uint32())); break; } case 7: { @@ -120358,7 +112120,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -120389,13 +112151,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetupRequest.verify = function verify(message, long) { + SetupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -120424,7 +112182,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.automatorSkills)) return "automatorSkills: array expected"; for (let i = 0; i < message.automatorSkills.length; ++i) { - let error = $root.Automator.AutomatorSkill.verify(message.automatorSkills[i], long + 1); + let error = $root.Automator.AutomatorSkill.verify(message.automatorSkills[i]); if (error) return "automatorSkills." + error; } @@ -120446,17 +112204,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.SetupRequest} SetupRequest */ - SetupRequest.fromObject = function fromObject(object, long) { + SetupRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.SetupRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.SetupRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -120514,7 +112268,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.automatorSkills.length; ++i) { if (typeof object.automatorSkills[i] !== "object") throw TypeError(".Automator.SetupRequest.automatorSkills: object expected"); - message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i], long + 1); + message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i]); } } if (object.encryptedTreeKey != null) @@ -120536,22 +112290,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetupRequest.toObject = function toObject(message, options, q) { + SetupRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.automatorSkills = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.serverEccPublicKeyId = 0; object.automatorState = options.enums === String ? "UNKNOWN_STATE" : 0; if (options.bytes === String) @@ -120578,9 +112328,7 @@ export const Automator = $root.Automator = (() => { object.isEccOnly = false; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -120595,7 +112343,7 @@ export const Automator = $root.Automator = (() => { if (message.automatorSkills && message.automatorSkills.length) { object.automatorSkills = []; for (let j = 0; j < message.automatorSkills.length; ++j) - object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject(message.automatorSkills[j], options, q + 1); + object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject(message.automatorSkills[j], options); } if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) object.encryptedTreeKey = options.bytes === String ? $util.base64.encode(message.encryptedTreeKey, 0, message.encryptedTreeKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTreeKey) : message.encryptedTreeKey; @@ -120657,7 +112405,7 @@ export const Automator = $root.Automator = (() => { function StatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -120706,13 +112454,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StatusRequest.encode = function encode(message, writer, q) { + StatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) @@ -120746,18 +112490,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StatusRequest.decode = function decode(reader, length, error, long) { + StatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.StatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -120772,7 +112510,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -120803,13 +112541,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StatusRequest.verify = function verify(message, long) { + StatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -120830,17 +112564,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.StatusRequest} StatusRequest */ - StatusRequest.fromObject = function fromObject(object, long) { + StatusRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.StatusRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.StatusRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -120863,27 +112593,21 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StatusRequest.toObject = function toObject(message, options, q) { + StatusRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.serverEccPublicKeyId = 0; object.isEccOnly = false; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -120969,7 +112693,7 @@ export const Automator = $root.Automator = (() => { function InitializeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -121170,13 +112894,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InitializeRequest.encode = function encode(message, writer, q) { + InitializeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.idpMetadata != null && Object.hasOwnProperty.call(message, "idpMetadata")) @@ -121248,18 +112968,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InitializeRequest.decode = function decode(reader, length, error, long) { + InitializeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.InitializeRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -121350,7 +113064,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -121381,13 +113095,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InitializeRequest.verify = function verify(message, long) { + InitializeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -121465,17 +113175,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.InitializeRequest} InitializeRequest */ - InitializeRequest.fromObject = function fromObject(object, long) { + InitializeRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.InitializeRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.InitializeRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -121545,20 +113251,16 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InitializeRequest.toObject = function toObject(message, options, q) { + InitializeRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.idpMetadata = ""; if (options.bytes === String) object.idpSigningCertificate = ""; @@ -121600,9 +113302,7 @@ export const Automator = $root.Automator = (() => { object.isEccOnly = false; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -121713,7 +113413,7 @@ export const Automator = $root.Automator = (() => { function NotInitializedResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -121802,13 +113502,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotInitializedResponse.encode = function encode(message, writer, q) { + NotInitializedResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorTransmissionKey != null && Object.hasOwnProperty.call(message, "automatorTransmissionKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.automatorTransmissionKey); if (message.signingCertificate != null && Object.hasOwnProperty.call(message, "signingCertificate")) @@ -121852,18 +113548,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NotInitializedResponse.decode = function decode(reader, length, error, long) { + NotInitializedResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.NotInitializedResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorTransmissionKey = reader.bytes(); @@ -121898,7 +113588,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -121929,13 +113619,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NotInitializedResponse.verify = function verify(message, long) { + NotInitializedResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorTransmissionKey != null && message.hasOwnProperty("automatorTransmissionKey")) if (!(message.automatorTransmissionKey && typeof message.automatorTransmissionKey.length === "number" || $util.isString(message.automatorTransmissionKey))) return "automatorTransmissionKey: buffer expected"; @@ -121977,13 +113663,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.NotInitializedResponse} NotInitializedResponse */ - NotInitializedResponse.fromObject = function fromObject(object, long) { + NotInitializedResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.NotInitializedResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.NotInitializedResponse(); if (object.automatorTransmissionKey != null) if (typeof object.automatorTransmissionKey === "string") @@ -122043,13 +113725,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotInitializedResponse.toObject = function toObject(message, options, q) { + NotInitializedResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -122166,7 +113844,7 @@ export const Automator = $root.Automator = (() => { function AutomatorResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -122301,13 +113979,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutomatorResponse.encode = function encode(message, writer, q) { + AutomatorResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) @@ -122315,23 +113989,23 @@ export const Automator = $root.Automator = (() => { if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.timestamp); if (message.approveDevice != null && Object.hasOwnProperty.call(message, "approveDevice")) - $root.Automator.ApproveDeviceResponse.encode(message.approveDevice, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Automator.ApproveDeviceResponse.encode(message.approveDevice, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.Automator.StatusResponse.encode(message.status, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Automator.StatusResponse.encode(message.status, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.notInitialized != null && Object.hasOwnProperty.call(message, "notInitialized")) - $root.Automator.NotInitializedResponse.encode(message.notInitialized, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Automator.NotInitializedResponse.encode(message.notInitialized, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.Automator.ErrorResponse.encode(message.error, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Automator.ErrorResponse.encode(message.error, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) writer.uint32(/* id 8, wireType 0 =*/64).int32(message.automatorState); if (message.automatorPublicEccKey != null && Object.hasOwnProperty.call(message, "automatorPublicEccKey")) writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.automatorPublicEccKey); if (message.approveTeamsForUser != null && Object.hasOwnProperty.call(message, "approveTeamsForUser")) - $root.Automator.ApproveTeamsForUserResponse.encode(message.approveTeamsForUser, writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.Automator.ApproveTeamsForUserResponse.encode(message.approveTeamsForUser, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.approveTeams != null && Object.hasOwnProperty.call(message, "approveTeams")) - $root.Automator.ApproveTeamsResponse.encode(message.approveTeams, writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.Automator.ApproveTeamsResponse.encode(message.approveTeams, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.SemanticVersion.Version.encode(message.version, writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim(); + $root.SemanticVersion.Version.encode(message.version, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; @@ -122359,18 +114033,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutomatorResponse.decode = function decode(reader, length, error, long) { + AutomatorResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AutomatorResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -122385,27 +114053,27 @@ export const Automator = $root.Automator = (() => { break; } case 4: { - message.approveDevice = $root.Automator.ApproveDeviceResponse.decode(reader, reader.uint32(), undefined, long + 1); + message.approveDevice = $root.Automator.ApproveDeviceResponse.decode(reader, reader.uint32()); break; } case 5: { - message.status = $root.Automator.StatusResponse.decode(reader, reader.uint32(), undefined, long + 1); + message.status = $root.Automator.StatusResponse.decode(reader, reader.uint32()); break; } case 6: { - message.notInitialized = $root.Automator.NotInitializedResponse.decode(reader, reader.uint32(), undefined, long + 1); + message.notInitialized = $root.Automator.NotInitializedResponse.decode(reader, reader.uint32()); break; } case 7: { - message.error = $root.Automator.ErrorResponse.decode(reader, reader.uint32(), undefined, long + 1); + message.error = $root.Automator.ErrorResponse.decode(reader, reader.uint32()); break; } case 10: { - message.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.decode(reader, reader.uint32(), undefined, long + 1); + message.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.decode(reader, reader.uint32()); break; } case 11: { - message.approveTeams = $root.Automator.ApproveTeamsResponse.decode(reader, reader.uint32(), undefined, long + 1); + message.approveTeams = $root.Automator.ApproveTeamsResponse.decode(reader, reader.uint32()); break; } case 8: { @@ -122417,11 +114085,11 @@ export const Automator = $root.Automator = (() => { break; } case 12: { - message.version = $root.SemanticVersion.Version.decode(reader, reader.uint32(), undefined, long + 1); + message.version = $root.SemanticVersion.Version.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -122452,13 +114120,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutomatorResponse.verify = function verify(message, long) { + AutomatorResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) @@ -122472,7 +114136,7 @@ export const Automator = $root.Automator = (() => { if (message.approveDevice != null && message.hasOwnProperty("approveDevice")) { properties.response = 1; { - let error = $root.Automator.ApproveDeviceResponse.verify(message.approveDevice, long + 1); + let error = $root.Automator.ApproveDeviceResponse.verify(message.approveDevice); if (error) return "approveDevice." + error; } @@ -122482,7 +114146,7 @@ export const Automator = $root.Automator = (() => { return "response: multiple values"; properties.response = 1; { - let error = $root.Automator.StatusResponse.verify(message.status, long + 1); + let error = $root.Automator.StatusResponse.verify(message.status); if (error) return "status." + error; } @@ -122492,7 +114156,7 @@ export const Automator = $root.Automator = (() => { return "response: multiple values"; properties.response = 1; { - let error = $root.Automator.NotInitializedResponse.verify(message.notInitialized, long + 1); + let error = $root.Automator.NotInitializedResponse.verify(message.notInitialized); if (error) return "notInitialized." + error; } @@ -122502,7 +114166,7 @@ export const Automator = $root.Automator = (() => { return "response: multiple values"; properties.response = 1; { - let error = $root.Automator.ErrorResponse.verify(message.error, long + 1); + let error = $root.Automator.ErrorResponse.verify(message.error); if (error) return "error." + error; } @@ -122512,7 +114176,7 @@ export const Automator = $root.Automator = (() => { return "response: multiple values"; properties.response = 1; { - let error = $root.Automator.ApproveTeamsForUserResponse.verify(message.approveTeamsForUser, long + 1); + let error = $root.Automator.ApproveTeamsForUserResponse.verify(message.approveTeamsForUser); if (error) return "approveTeamsForUser." + error; } @@ -122522,7 +114186,7 @@ export const Automator = $root.Automator = (() => { return "response: multiple values"; properties.response = 1; { - let error = $root.Automator.ApproveTeamsResponse.verify(message.approveTeams, long + 1); + let error = $root.Automator.ApproveTeamsResponse.verify(message.approveTeams); if (error) return "approveTeams." + error; } @@ -122543,7 +114207,7 @@ export const Automator = $root.Automator = (() => { if (!(message.automatorPublicEccKey && typeof message.automatorPublicEccKey.length === "number" || $util.isString(message.automatorPublicEccKey))) return "automatorPublicEccKey: buffer expected"; if (message.version != null && message.hasOwnProperty("version")) { - let error = $root.SemanticVersion.Version.verify(message.version, long + 1); + let error = $root.SemanticVersion.Version.verify(message.version); if (error) return "version." + error; } @@ -122558,17 +114222,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AutomatorResponse} AutomatorResponse */ - AutomatorResponse.fromObject = function fromObject(object, long) { + AutomatorResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AutomatorResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AutomatorResponse(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -122579,7 +114239,7 @@ export const Automator = $root.Automator = (() => { message.enabled = Boolean(object.enabled); if (object.timestamp != null) if ($util.Long) - message.timestamp = $util.Long.fromValue(object.timestamp, false); + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; else if (typeof object.timestamp === "string") message.timestamp = parseInt(object.timestamp, 10); else if (typeof object.timestamp === "number") @@ -122589,32 +114249,32 @@ export const Automator = $root.Automator = (() => { if (object.approveDevice != null) { if (typeof object.approveDevice !== "object") throw TypeError(".Automator.AutomatorResponse.approveDevice: object expected"); - message.approveDevice = $root.Automator.ApproveDeviceResponse.fromObject(object.approveDevice, long + 1); + message.approveDevice = $root.Automator.ApproveDeviceResponse.fromObject(object.approveDevice); } if (object.status != null) { if (typeof object.status !== "object") throw TypeError(".Automator.AutomatorResponse.status: object expected"); - message.status = $root.Automator.StatusResponse.fromObject(object.status, long + 1); + message.status = $root.Automator.StatusResponse.fromObject(object.status); } if (object.notInitialized != null) { if (typeof object.notInitialized !== "object") throw TypeError(".Automator.AutomatorResponse.notInitialized: object expected"); - message.notInitialized = $root.Automator.NotInitializedResponse.fromObject(object.notInitialized, long + 1); + message.notInitialized = $root.Automator.NotInitializedResponse.fromObject(object.notInitialized); } if (object.error != null) { if (typeof object.error !== "object") throw TypeError(".Automator.AutomatorResponse.error: object expected"); - message.error = $root.Automator.ErrorResponse.fromObject(object.error, long + 1); + message.error = $root.Automator.ErrorResponse.fromObject(object.error); } if (object.approveTeamsForUser != null) { if (typeof object.approveTeamsForUser !== "object") throw TypeError(".Automator.AutomatorResponse.approveTeamsForUser: object expected"); - message.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.fromObject(object.approveTeamsForUser, long + 1); + message.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.fromObject(object.approveTeamsForUser); } if (object.approveTeams != null) { if (typeof object.approveTeams !== "object") throw TypeError(".Automator.AutomatorResponse.approveTeams: object expected"); - message.approveTeams = $root.Automator.ApproveTeamsResponse.fromObject(object.approveTeams, long + 1); + message.approveTeams = $root.Automator.ApproveTeamsResponse.fromObject(object.approveTeams); } switch (object.automatorState) { default: @@ -122656,7 +114316,7 @@ export const Automator = $root.Automator = (() => { if (object.version != null) { if (typeof object.version !== "object") throw TypeError(".Automator.AutomatorResponse.version: object expected"); - message.version = $root.SemanticVersion.Version.fromObject(object.version, long + 1); + message.version = $root.SemanticVersion.Version.fromObject(object.version); } return message; }; @@ -122670,26 +114330,22 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutomatorResponse.toObject = function toObject(message, options, q) { + AutomatorResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.enabled = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.timestamp = options.longs === String ? "0" : 0; object.automatorState = options.enums === String ? "UNKNOWN_STATE" : 0; if (options.bytes === String) object.automatorPublicEccKey = ""; @@ -122701,38 +114357,34 @@ export const Automator = $root.Automator = (() => { object.version = null; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; if (message.enabled != null && message.hasOwnProperty("enabled")) object.enabled = message.enabled; if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, false).toBigInt(); - else if (typeof message.timestamp === "number") + if (typeof message.timestamp === "number") object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; if (message.approveDevice != null && message.hasOwnProperty("approveDevice")) { - object.approveDevice = $root.Automator.ApproveDeviceResponse.toObject(message.approveDevice, options, q + 1); + object.approveDevice = $root.Automator.ApproveDeviceResponse.toObject(message.approveDevice, options); if (options.oneofs) object.response = "approveDevice"; } if (message.status != null && message.hasOwnProperty("status")) { - object.status = $root.Automator.StatusResponse.toObject(message.status, options, q + 1); + object.status = $root.Automator.StatusResponse.toObject(message.status, options); if (options.oneofs) object.response = "status"; } if (message.notInitialized != null && message.hasOwnProperty("notInitialized")) { - object.notInitialized = $root.Automator.NotInitializedResponse.toObject(message.notInitialized, options, q + 1); + object.notInitialized = $root.Automator.NotInitializedResponse.toObject(message.notInitialized, options); if (options.oneofs) object.response = "notInitialized"; } if (message.error != null && message.hasOwnProperty("error")) { - object.error = $root.Automator.ErrorResponse.toObject(message.error, options, q + 1); + object.error = $root.Automator.ErrorResponse.toObject(message.error, options); if (options.oneofs) object.response = "error"; } @@ -122741,17 +114393,17 @@ export const Automator = $root.Automator = (() => { if (message.automatorPublicEccKey != null && message.hasOwnProperty("automatorPublicEccKey")) object.automatorPublicEccKey = options.bytes === String ? $util.base64.encode(message.automatorPublicEccKey, 0, message.automatorPublicEccKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.automatorPublicEccKey) : message.automatorPublicEccKey; if (message.approveTeamsForUser != null && message.hasOwnProperty("approveTeamsForUser")) { - object.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.toObject(message.approveTeamsForUser, options, q + 1); + object.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.toObject(message.approveTeamsForUser, options); if (options.oneofs) object.response = "approveTeamsForUser"; } if (message.approveTeams != null && message.hasOwnProperty("approveTeams")) { - object.approveTeams = $root.Automator.ApproveTeamsResponse.toObject(message.approveTeams, options, q + 1); + object.approveTeams = $root.Automator.ApproveTeamsResponse.toObject(message.approveTeams, options); if (options.oneofs) object.response = "approveTeams"; } if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.SemanticVersion.Version.toObject(message.version, options, q + 1); + object.version = $root.SemanticVersion.Version.toObject(message.version, options); return object; }; @@ -122809,7 +114461,7 @@ export const Automator = $root.Automator = (() => { function ApproveDeviceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -122866,13 +114518,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveDeviceResponse.encode = function encode(message, writer, q) { + ApproveDeviceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.approved != null && Object.hasOwnProperty.call(message, "approved")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.approved); if (message.encryptedUserDataKey != null && Object.hasOwnProperty.call(message, "encryptedUserDataKey")) @@ -122908,18 +114556,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveDeviceResponse.decode = function decode(reader, length, error, long) { + ApproveDeviceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveDeviceResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.approved = reader.bool(); @@ -122938,7 +114580,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -122969,13 +114611,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveDeviceResponse.verify = function verify(message, long) { + ApproveDeviceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.approved != null && message.hasOwnProperty("approved")) if (typeof message.approved !== "boolean") return "approved: boolean expected"; @@ -123007,13 +114645,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.ApproveDeviceResponse} ApproveDeviceResponse */ - ApproveDeviceResponse.fromObject = function fromObject(object, long) { + ApproveDeviceResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.ApproveDeviceResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.ApproveDeviceResponse(); if (object.approved != null) message.approved = Boolean(object.approved); @@ -123064,13 +114698,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveDeviceResponse.toObject = function toObject(message, options, q) { + ApproveDeviceResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.approved = false; @@ -123163,7 +114793,7 @@ export const Automator = $root.Automator = (() => { this.sslCertificateInfo = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -123308,13 +114938,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StatusResponse.encode = function encode(message, writer, q) { + StatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.initialized != null && Object.hasOwnProperty.call(message, "initialized")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.initialized); if (message.enabledTimestamp != null && Object.hasOwnProperty.call(message, "enabledTimestamp")) @@ -123332,7 +114958,7 @@ export const Automator = $root.Automator = (() => { if (message.sslCertificateExpiration != null && Object.hasOwnProperty.call(message, "sslCertificateExpiration")) writer.uint32(/* id 8, wireType 0 =*/64).int64(message.sslCertificateExpiration); if (message.notInitializedResponse != null && Object.hasOwnProperty.call(message, "notInitializedResponse")) - $root.Automator.NotInitializedResponse.encode(message.notInitializedResponse, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.Automator.NotInitializedResponse.encode(message.notInitializedResponse, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.config != null && Object.hasOwnProperty.call(message, "config")) writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.config); if (message.numberOfTeamMembershipsApproved != null && Object.hasOwnProperty.call(message, "numberOfTeamMembershipsApproved")) @@ -123345,7 +114971,7 @@ export const Automator = $root.Automator = (() => { writer.uint32(/* id 14, wireType 0 =*/112).int64(message.numberOfTeamsDenied); if (message.sslCertificateInfo != null && message.sslCertificateInfo.length) for (let i = 0; i < message.sslCertificateInfo.length; ++i) - $root.Automator.SSLCertificateInfo.encode(message.sslCertificateInfo[i], writer.uint32(/* id 15, wireType 2 =*/122).fork(), q + 1).ldelim(); + $root.Automator.SSLCertificateInfo.encode(message.sslCertificateInfo[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); return writer; }; @@ -123373,18 +114999,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StatusResponse.decode = function decode(reader, length, error, long) { + StatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.StatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.initialized = reader.bool(); @@ -123419,7 +115039,7 @@ export const Automator = $root.Automator = (() => { break; } case 9: { - message.notInitializedResponse = $root.Automator.NotInitializedResponse.decode(reader, reader.uint32(), undefined, long + 1); + message.notInitializedResponse = $root.Automator.NotInitializedResponse.decode(reader, reader.uint32()); break; } case 10: { @@ -123445,11 +115065,11 @@ export const Automator = $root.Automator = (() => { case 15: { if (!(message.sslCertificateInfo && message.sslCertificateInfo.length)) message.sslCertificateInfo = []; - message.sslCertificateInfo.push($root.Automator.SSLCertificateInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.sslCertificateInfo.push($root.Automator.SSLCertificateInfo.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -123480,13 +115100,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StatusResponse.verify = function verify(message, long) { + StatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.initialized != null && message.hasOwnProperty("initialized")) if (typeof message.initialized !== "boolean") return "initialized: boolean expected"; @@ -123512,7 +115128,7 @@ export const Automator = $root.Automator = (() => { if (!$util.isInteger(message.sslCertificateExpiration) && !(message.sslCertificateExpiration && $util.isInteger(message.sslCertificateExpiration.low) && $util.isInteger(message.sslCertificateExpiration.high))) return "sslCertificateExpiration: integer|Long expected"; if (message.notInitializedResponse != null && message.hasOwnProperty("notInitializedResponse")) { - let error = $root.Automator.NotInitializedResponse.verify(message.notInitializedResponse, long + 1); + let error = $root.Automator.NotInitializedResponse.verify(message.notInitializedResponse); if (error) return "notInitializedResponse." + error; } @@ -123535,7 +115151,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.sslCertificateInfo)) return "sslCertificateInfo: array expected"; for (let i = 0; i < message.sslCertificateInfo.length; ++i) { - let error = $root.Automator.SSLCertificateInfo.verify(message.sslCertificateInfo[i], long + 1); + let error = $root.Automator.SSLCertificateInfo.verify(message.sslCertificateInfo[i]); if (error) return "sslCertificateInfo." + error; } @@ -123551,19 +115167,15 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.StatusResponse} StatusResponse */ - StatusResponse.fromObject = function fromObject(object, long) { + StatusResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.StatusResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.StatusResponse(); if (object.initialized != null) message.initialized = Boolean(object.initialized); if (object.enabledTimestamp != null) if ($util.Long) - message.enabledTimestamp = $util.Long.fromValue(object.enabledTimestamp, false); + (message.enabledTimestamp = $util.Long.fromValue(object.enabledTimestamp)).unsigned = false; else if (typeof object.enabledTimestamp === "string") message.enabledTimestamp = parseInt(object.enabledTimestamp, 10); else if (typeof object.enabledTimestamp === "number") @@ -123572,7 +115184,7 @@ export const Automator = $root.Automator = (() => { message.enabledTimestamp = new $util.LongBits(object.enabledTimestamp.low >>> 0, object.enabledTimestamp.high >>> 0).toNumber(); if (object.initializedTimestamp != null) if ($util.Long) - message.initializedTimestamp = $util.Long.fromValue(object.initializedTimestamp, false); + (message.initializedTimestamp = $util.Long.fromValue(object.initializedTimestamp)).unsigned = false; else if (typeof object.initializedTimestamp === "string") message.initializedTimestamp = parseInt(object.initializedTimestamp, 10); else if (typeof object.initializedTimestamp === "number") @@ -123581,7 +115193,7 @@ export const Automator = $root.Automator = (() => { message.initializedTimestamp = new $util.LongBits(object.initializedTimestamp.low >>> 0, object.initializedTimestamp.high >>> 0).toNumber(); if (object.updatedTimestamp != null) if ($util.Long) - message.updatedTimestamp = $util.Long.fromValue(object.updatedTimestamp, false); + (message.updatedTimestamp = $util.Long.fromValue(object.updatedTimestamp)).unsigned = false; else if (typeof object.updatedTimestamp === "string") message.updatedTimestamp = parseInt(object.updatedTimestamp, 10); else if (typeof object.updatedTimestamp === "number") @@ -123590,7 +115202,7 @@ export const Automator = $root.Automator = (() => { message.updatedTimestamp = new $util.LongBits(object.updatedTimestamp.low >>> 0, object.updatedTimestamp.high >>> 0).toNumber(); if (object.numberOfDevicesApproved != null) if ($util.Long) - message.numberOfDevicesApproved = $util.Long.fromValue(object.numberOfDevicesApproved, false); + (message.numberOfDevicesApproved = $util.Long.fromValue(object.numberOfDevicesApproved)).unsigned = false; else if (typeof object.numberOfDevicesApproved === "string") message.numberOfDevicesApproved = parseInt(object.numberOfDevicesApproved, 10); else if (typeof object.numberOfDevicesApproved === "number") @@ -123599,7 +115211,7 @@ export const Automator = $root.Automator = (() => { message.numberOfDevicesApproved = new $util.LongBits(object.numberOfDevicesApproved.low >>> 0, object.numberOfDevicesApproved.high >>> 0).toNumber(); if (object.numberOfDevicesDenied != null) if ($util.Long) - message.numberOfDevicesDenied = $util.Long.fromValue(object.numberOfDevicesDenied, false); + (message.numberOfDevicesDenied = $util.Long.fromValue(object.numberOfDevicesDenied)).unsigned = false; else if (typeof object.numberOfDevicesDenied === "string") message.numberOfDevicesDenied = parseInt(object.numberOfDevicesDenied, 10); else if (typeof object.numberOfDevicesDenied === "number") @@ -123608,7 +115220,7 @@ export const Automator = $root.Automator = (() => { message.numberOfDevicesDenied = new $util.LongBits(object.numberOfDevicesDenied.low >>> 0, object.numberOfDevicesDenied.high >>> 0).toNumber(); if (object.numberOfErrors != null) if ($util.Long) - message.numberOfErrors = $util.Long.fromValue(object.numberOfErrors, false); + (message.numberOfErrors = $util.Long.fromValue(object.numberOfErrors)).unsigned = false; else if (typeof object.numberOfErrors === "string") message.numberOfErrors = parseInt(object.numberOfErrors, 10); else if (typeof object.numberOfErrors === "number") @@ -123617,7 +115229,7 @@ export const Automator = $root.Automator = (() => { message.numberOfErrors = new $util.LongBits(object.numberOfErrors.low >>> 0, object.numberOfErrors.high >>> 0).toNumber(); if (object.sslCertificateExpiration != null) if ($util.Long) - message.sslCertificateExpiration = $util.Long.fromValue(object.sslCertificateExpiration, false); + (message.sslCertificateExpiration = $util.Long.fromValue(object.sslCertificateExpiration)).unsigned = false; else if (typeof object.sslCertificateExpiration === "string") message.sslCertificateExpiration = parseInt(object.sslCertificateExpiration, 10); else if (typeof object.sslCertificateExpiration === "number") @@ -123627,7 +115239,7 @@ export const Automator = $root.Automator = (() => { if (object.notInitializedResponse != null) { if (typeof object.notInitializedResponse !== "object") throw TypeError(".Automator.StatusResponse.notInitializedResponse: object expected"); - message.notInitializedResponse = $root.Automator.NotInitializedResponse.fromObject(object.notInitializedResponse, long + 1); + message.notInitializedResponse = $root.Automator.NotInitializedResponse.fromObject(object.notInitializedResponse); } if (object.config != null) if (typeof object.config === "string") @@ -123636,7 +115248,7 @@ export const Automator = $root.Automator = (() => { message.config = object.config; if (object.numberOfTeamMembershipsApproved != null) if ($util.Long) - message.numberOfTeamMembershipsApproved = $util.Long.fromValue(object.numberOfTeamMembershipsApproved, false); + (message.numberOfTeamMembershipsApproved = $util.Long.fromValue(object.numberOfTeamMembershipsApproved)).unsigned = false; else if (typeof object.numberOfTeamMembershipsApproved === "string") message.numberOfTeamMembershipsApproved = parseInt(object.numberOfTeamMembershipsApproved, 10); else if (typeof object.numberOfTeamMembershipsApproved === "number") @@ -123645,7 +115257,7 @@ export const Automator = $root.Automator = (() => { message.numberOfTeamMembershipsApproved = new $util.LongBits(object.numberOfTeamMembershipsApproved.low >>> 0, object.numberOfTeamMembershipsApproved.high >>> 0).toNumber(); if (object.numberOfTeamMembershipsDenied != null) if ($util.Long) - message.numberOfTeamMembershipsDenied = $util.Long.fromValue(object.numberOfTeamMembershipsDenied, false); + (message.numberOfTeamMembershipsDenied = $util.Long.fromValue(object.numberOfTeamMembershipsDenied)).unsigned = false; else if (typeof object.numberOfTeamMembershipsDenied === "string") message.numberOfTeamMembershipsDenied = parseInt(object.numberOfTeamMembershipsDenied, 10); else if (typeof object.numberOfTeamMembershipsDenied === "number") @@ -123654,7 +115266,7 @@ export const Automator = $root.Automator = (() => { message.numberOfTeamMembershipsDenied = new $util.LongBits(object.numberOfTeamMembershipsDenied.low >>> 0, object.numberOfTeamMembershipsDenied.high >>> 0).toNumber(); if (object.numberOfTeamsApproved != null) if ($util.Long) - message.numberOfTeamsApproved = $util.Long.fromValue(object.numberOfTeamsApproved, false); + (message.numberOfTeamsApproved = $util.Long.fromValue(object.numberOfTeamsApproved)).unsigned = false; else if (typeof object.numberOfTeamsApproved === "string") message.numberOfTeamsApproved = parseInt(object.numberOfTeamsApproved, 10); else if (typeof object.numberOfTeamsApproved === "number") @@ -123663,7 +115275,7 @@ export const Automator = $root.Automator = (() => { message.numberOfTeamsApproved = new $util.LongBits(object.numberOfTeamsApproved.low >>> 0, object.numberOfTeamsApproved.high >>> 0).toNumber(); if (object.numberOfTeamsDenied != null) if ($util.Long) - message.numberOfTeamsDenied = $util.Long.fromValue(object.numberOfTeamsDenied, false); + (message.numberOfTeamsDenied = $util.Long.fromValue(object.numberOfTeamsDenied)).unsigned = false; else if (typeof object.numberOfTeamsDenied === "string") message.numberOfTeamsDenied = parseInt(object.numberOfTeamsDenied, 10); else if (typeof object.numberOfTeamsDenied === "number") @@ -123677,7 +115289,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.sslCertificateInfo.length; ++i) { if (typeof object.sslCertificateInfo[i] !== "object") throw TypeError(".Automator.StatusResponse.sslCertificateInfo: object expected"); - message.sslCertificateInfo[i] = $root.Automator.SSLCertificateInfo.fromObject(object.sslCertificateInfo[i], long + 1); + message.sslCertificateInfo[i] = $root.Automator.SSLCertificateInfo.fromObject(object.sslCertificateInfo[i]); } } return message; @@ -123692,13 +115304,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StatusResponse.toObject = function toObject(message, options, q) { + StatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.sslCertificateInfo = []; @@ -123706,39 +115314,39 @@ export const Automator = $root.Automator = (() => { object.initialized = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enabledTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enabledTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enabledTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enabledTimestamp = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.initializedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.initializedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.initializedTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.initializedTimestamp = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.updatedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.updatedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.updatedTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.updatedTimestamp = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfDevicesApproved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.numberOfDevicesApproved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.numberOfDevicesApproved = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.numberOfDevicesApproved = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfDevicesDenied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.numberOfDevicesDenied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.numberOfDevicesDenied = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.numberOfDevicesDenied = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfErrors = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.numberOfErrors = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.numberOfErrors = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.numberOfErrors = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.sslCertificateExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.sslCertificateExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.sslCertificateExpiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.sslCertificateExpiration = options.longs === String ? "0" : 0; object.notInitializedResponse = null; if (options.bytes === String) object.config = ""; @@ -123749,112 +115357,90 @@ export const Automator = $root.Automator = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfTeamMembershipsApproved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.numberOfTeamMembershipsApproved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.numberOfTeamMembershipsApproved = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.numberOfTeamMembershipsApproved = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfTeamMembershipsDenied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.numberOfTeamMembershipsDenied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.numberOfTeamMembershipsDenied = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.numberOfTeamMembershipsDenied = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfTeamsApproved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.numberOfTeamsApproved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.numberOfTeamsApproved = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.numberOfTeamsApproved = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfTeamsDenied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.numberOfTeamsDenied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.numberOfTeamsDenied = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.numberOfTeamsDenied = options.longs === String ? "0" : 0; } if (message.initialized != null && message.hasOwnProperty("initialized")) object.initialized = message.initialized; if (message.enabledTimestamp != null && message.hasOwnProperty("enabledTimestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enabledTimestamp = typeof message.enabledTimestamp === "number" ? BigInt(message.enabledTimestamp) : $util.Long.fromBits(message.enabledTimestamp.low >>> 0, message.enabledTimestamp.high >>> 0, false).toBigInt(); - else if (typeof message.enabledTimestamp === "number") + if (typeof message.enabledTimestamp === "number") object.enabledTimestamp = options.longs === String ? String(message.enabledTimestamp) : message.enabledTimestamp; else object.enabledTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.enabledTimestamp) : options.longs === Number ? new $util.LongBits(message.enabledTimestamp.low >>> 0, message.enabledTimestamp.high >>> 0).toNumber() : message.enabledTimestamp; if (message.initializedTimestamp != null && message.hasOwnProperty("initializedTimestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.initializedTimestamp = typeof message.initializedTimestamp === "number" ? BigInt(message.initializedTimestamp) : $util.Long.fromBits(message.initializedTimestamp.low >>> 0, message.initializedTimestamp.high >>> 0, false).toBigInt(); - else if (typeof message.initializedTimestamp === "number") + if (typeof message.initializedTimestamp === "number") object.initializedTimestamp = options.longs === String ? String(message.initializedTimestamp) : message.initializedTimestamp; else object.initializedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.initializedTimestamp) : options.longs === Number ? new $util.LongBits(message.initializedTimestamp.low >>> 0, message.initializedTimestamp.high >>> 0).toNumber() : message.initializedTimestamp; if (message.updatedTimestamp != null && message.hasOwnProperty("updatedTimestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.updatedTimestamp = typeof message.updatedTimestamp === "number" ? BigInt(message.updatedTimestamp) : $util.Long.fromBits(message.updatedTimestamp.low >>> 0, message.updatedTimestamp.high >>> 0, false).toBigInt(); - else if (typeof message.updatedTimestamp === "number") + if (typeof message.updatedTimestamp === "number") object.updatedTimestamp = options.longs === String ? String(message.updatedTimestamp) : message.updatedTimestamp; else object.updatedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.updatedTimestamp) : options.longs === Number ? new $util.LongBits(message.updatedTimestamp.low >>> 0, message.updatedTimestamp.high >>> 0).toNumber() : message.updatedTimestamp; if (message.numberOfDevicesApproved != null && message.hasOwnProperty("numberOfDevicesApproved")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.numberOfDevicesApproved = typeof message.numberOfDevicesApproved === "number" ? BigInt(message.numberOfDevicesApproved) : $util.Long.fromBits(message.numberOfDevicesApproved.low >>> 0, message.numberOfDevicesApproved.high >>> 0, false).toBigInt(); - else if (typeof message.numberOfDevicesApproved === "number") + if (typeof message.numberOfDevicesApproved === "number") object.numberOfDevicesApproved = options.longs === String ? String(message.numberOfDevicesApproved) : message.numberOfDevicesApproved; else object.numberOfDevicesApproved = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfDevicesApproved) : options.longs === Number ? new $util.LongBits(message.numberOfDevicesApproved.low >>> 0, message.numberOfDevicesApproved.high >>> 0).toNumber() : message.numberOfDevicesApproved; if (message.numberOfDevicesDenied != null && message.hasOwnProperty("numberOfDevicesDenied")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.numberOfDevicesDenied = typeof message.numberOfDevicesDenied === "number" ? BigInt(message.numberOfDevicesDenied) : $util.Long.fromBits(message.numberOfDevicesDenied.low >>> 0, message.numberOfDevicesDenied.high >>> 0, false).toBigInt(); - else if (typeof message.numberOfDevicesDenied === "number") + if (typeof message.numberOfDevicesDenied === "number") object.numberOfDevicesDenied = options.longs === String ? String(message.numberOfDevicesDenied) : message.numberOfDevicesDenied; else object.numberOfDevicesDenied = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfDevicesDenied) : options.longs === Number ? new $util.LongBits(message.numberOfDevicesDenied.low >>> 0, message.numberOfDevicesDenied.high >>> 0).toNumber() : message.numberOfDevicesDenied; if (message.numberOfErrors != null && message.hasOwnProperty("numberOfErrors")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.numberOfErrors = typeof message.numberOfErrors === "number" ? BigInt(message.numberOfErrors) : $util.Long.fromBits(message.numberOfErrors.low >>> 0, message.numberOfErrors.high >>> 0, false).toBigInt(); - else if (typeof message.numberOfErrors === "number") + if (typeof message.numberOfErrors === "number") object.numberOfErrors = options.longs === String ? String(message.numberOfErrors) : message.numberOfErrors; else object.numberOfErrors = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfErrors) : options.longs === Number ? new $util.LongBits(message.numberOfErrors.low >>> 0, message.numberOfErrors.high >>> 0).toNumber() : message.numberOfErrors; if (message.sslCertificateExpiration != null && message.hasOwnProperty("sslCertificateExpiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.sslCertificateExpiration = typeof message.sslCertificateExpiration === "number" ? BigInt(message.sslCertificateExpiration) : $util.Long.fromBits(message.sslCertificateExpiration.low >>> 0, message.sslCertificateExpiration.high >>> 0, false).toBigInt(); - else if (typeof message.sslCertificateExpiration === "number") + if (typeof message.sslCertificateExpiration === "number") object.sslCertificateExpiration = options.longs === String ? String(message.sslCertificateExpiration) : message.sslCertificateExpiration; else object.sslCertificateExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.sslCertificateExpiration) : options.longs === Number ? new $util.LongBits(message.sslCertificateExpiration.low >>> 0, message.sslCertificateExpiration.high >>> 0).toNumber() : message.sslCertificateExpiration; if (message.notInitializedResponse != null && message.hasOwnProperty("notInitializedResponse")) - object.notInitializedResponse = $root.Automator.NotInitializedResponse.toObject(message.notInitializedResponse, options, q + 1); + object.notInitializedResponse = $root.Automator.NotInitializedResponse.toObject(message.notInitializedResponse, options); if (message.config != null && message.hasOwnProperty("config")) object.config = options.bytes === String ? $util.base64.encode(message.config, 0, message.config.length) : options.bytes === Array ? Array.prototype.slice.call(message.config) : message.config; if (message.numberOfTeamMembershipsApproved != null && message.hasOwnProperty("numberOfTeamMembershipsApproved")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.numberOfTeamMembershipsApproved = typeof message.numberOfTeamMembershipsApproved === "number" ? BigInt(message.numberOfTeamMembershipsApproved) : $util.Long.fromBits(message.numberOfTeamMembershipsApproved.low >>> 0, message.numberOfTeamMembershipsApproved.high >>> 0, false).toBigInt(); - else if (typeof message.numberOfTeamMembershipsApproved === "number") + if (typeof message.numberOfTeamMembershipsApproved === "number") object.numberOfTeamMembershipsApproved = options.longs === String ? String(message.numberOfTeamMembershipsApproved) : message.numberOfTeamMembershipsApproved; else object.numberOfTeamMembershipsApproved = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfTeamMembershipsApproved) : options.longs === Number ? new $util.LongBits(message.numberOfTeamMembershipsApproved.low >>> 0, message.numberOfTeamMembershipsApproved.high >>> 0).toNumber() : message.numberOfTeamMembershipsApproved; if (message.numberOfTeamMembershipsDenied != null && message.hasOwnProperty("numberOfTeamMembershipsDenied")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.numberOfTeamMembershipsDenied = typeof message.numberOfTeamMembershipsDenied === "number" ? BigInt(message.numberOfTeamMembershipsDenied) : $util.Long.fromBits(message.numberOfTeamMembershipsDenied.low >>> 0, message.numberOfTeamMembershipsDenied.high >>> 0, false).toBigInt(); - else if (typeof message.numberOfTeamMembershipsDenied === "number") + if (typeof message.numberOfTeamMembershipsDenied === "number") object.numberOfTeamMembershipsDenied = options.longs === String ? String(message.numberOfTeamMembershipsDenied) : message.numberOfTeamMembershipsDenied; else object.numberOfTeamMembershipsDenied = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfTeamMembershipsDenied) : options.longs === Number ? new $util.LongBits(message.numberOfTeamMembershipsDenied.low >>> 0, message.numberOfTeamMembershipsDenied.high >>> 0).toNumber() : message.numberOfTeamMembershipsDenied; if (message.numberOfTeamsApproved != null && message.hasOwnProperty("numberOfTeamsApproved")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.numberOfTeamsApproved = typeof message.numberOfTeamsApproved === "number" ? BigInt(message.numberOfTeamsApproved) : $util.Long.fromBits(message.numberOfTeamsApproved.low >>> 0, message.numberOfTeamsApproved.high >>> 0, false).toBigInt(); - else if (typeof message.numberOfTeamsApproved === "number") + if (typeof message.numberOfTeamsApproved === "number") object.numberOfTeamsApproved = options.longs === String ? String(message.numberOfTeamsApproved) : message.numberOfTeamsApproved; else object.numberOfTeamsApproved = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfTeamsApproved) : options.longs === Number ? new $util.LongBits(message.numberOfTeamsApproved.low >>> 0, message.numberOfTeamsApproved.high >>> 0).toNumber() : message.numberOfTeamsApproved; if (message.numberOfTeamsDenied != null && message.hasOwnProperty("numberOfTeamsDenied")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.numberOfTeamsDenied = typeof message.numberOfTeamsDenied === "number" ? BigInt(message.numberOfTeamsDenied) : $util.Long.fromBits(message.numberOfTeamsDenied.low >>> 0, message.numberOfTeamsDenied.high >>> 0, false).toBigInt(); - else if (typeof message.numberOfTeamsDenied === "number") + if (typeof message.numberOfTeamsDenied === "number") object.numberOfTeamsDenied = options.longs === String ? String(message.numberOfTeamsDenied) : message.numberOfTeamsDenied; else object.numberOfTeamsDenied = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfTeamsDenied) : options.longs === Number ? new $util.LongBits(message.numberOfTeamsDenied.low >>> 0, message.numberOfTeamsDenied.high >>> 0).toNumber() : message.numberOfTeamsDenied; if (message.sslCertificateInfo && message.sslCertificateInfo.length) { object.sslCertificateInfo = []; for (let j = 0; j < message.sslCertificateInfo.length; ++j) - object.sslCertificateInfo[j] = $root.Automator.SSLCertificateInfo.toObject(message.sslCertificateInfo[j], options, q + 1); + object.sslCertificateInfo[j] = $root.Automator.SSLCertificateInfo.toObject(message.sslCertificateInfo[j], options); } return object; }; @@ -123909,7 +115495,7 @@ export const Automator = $root.Automator = (() => { function ErrorResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -123942,13 +115528,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ErrorResponse.encode = function encode(message, writer, q) { + ErrorResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); return writer; @@ -123978,25 +115560,19 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ErrorResponse.decode = function decode(reader, length, error, long) { + ErrorResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ErrorResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.message = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -124027,13 +115603,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ErrorResponse.verify = function verify(message, long) { + ErrorResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.message != null && message.hasOwnProperty("message")) if (!$util.isString(message.message)) return "message: string expected"; @@ -124048,13 +115620,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.ErrorResponse} ErrorResponse */ - ErrorResponse.fromObject = function fromObject(object, long) { + ErrorResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.ErrorResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.ErrorResponse(); if (object.message != null) message.message = String(object.message); @@ -124070,13 +115638,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ErrorResponse.toObject = function toObject(message, options, q) { + ErrorResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.message = ""; @@ -124158,7 +115722,7 @@ export const Automator = $root.Automator = (() => { function LogEntry(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -124215,13 +115779,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LogEntry.encode = function encode(message, writer, q) { + LogEntry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serverTime != null && Object.hasOwnProperty.call(message, "serverTime")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.serverTime); if (message.messageLevel != null && Object.hasOwnProperty.call(message, "messageLevel")) @@ -124257,18 +115817,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LogEntry.decode = function decode(reader, length, error, long) { + LogEntry.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.LogEntry(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.serverTime = reader.string(); @@ -124287,7 +115841,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -124318,13 +115872,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LogEntry.verify = function verify(message, long) { + LogEntry.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serverTime != null && message.hasOwnProperty("serverTime")) if (!$util.isString(message.serverTime)) return "serverTime: string expected"; @@ -124348,13 +115898,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.LogEntry} LogEntry */ - LogEntry.fromObject = function fromObject(object, long) { + LogEntry.fromObject = function fromObject(object) { if (object instanceof $root.Automator.LogEntry) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.LogEntry(); if (object.serverTime != null) message.serverTime = String(object.serverTime); @@ -124376,13 +115922,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LogEntry.toObject = function toObject(message, options, q) { + LogEntry.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.serverTime = ""; @@ -124480,7 +116022,7 @@ export const Automator = $root.Automator = (() => { this.automatorInfo = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -124529,20 +116071,16 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminResponse.encode = function encode(message, writer, q) { + AdminResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); if (message.automatorInfo != null && message.automatorInfo.length) for (let i = 0; i < message.automatorInfo.length; ++i) - $root.Automator.AutomatorInfo.encode(message.automatorInfo[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Automator.AutomatorInfo.encode(message.automatorInfo[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -124570,18 +116108,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminResponse.decode = function decode(reader, length, error, long) { + AdminResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.success = reader.bool(); @@ -124594,11 +116126,11 @@ export const Automator = $root.Automator = (() => { case 3: { if (!(message.automatorInfo && message.automatorInfo.length)) message.automatorInfo = []; - message.automatorInfo.push($root.Automator.AutomatorInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.automatorInfo.push($root.Automator.AutomatorInfo.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -124629,13 +116161,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminResponse.verify = function verify(message, long) { + AdminResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.success != null && message.hasOwnProperty("success")) if (typeof message.success !== "boolean") return "success: boolean expected"; @@ -124646,7 +116174,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.automatorInfo)) return "automatorInfo: array expected"; for (let i = 0; i < message.automatorInfo.length; ++i) { - let error = $root.Automator.AutomatorInfo.verify(message.automatorInfo[i], long + 1); + let error = $root.Automator.AutomatorInfo.verify(message.automatorInfo[i]); if (error) return "automatorInfo." + error; } @@ -124662,13 +116190,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminResponse} AdminResponse */ - AdminResponse.fromObject = function fromObject(object, long) { + AdminResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminResponse(); if (object.success != null) message.success = Boolean(object.success); @@ -124681,7 +116205,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.automatorInfo.length; ++i) { if (typeof object.automatorInfo[i] !== "object") throw TypeError(".Automator.AdminResponse.automatorInfo: object expected"); - message.automatorInfo[i] = $root.Automator.AutomatorInfo.fromObject(object.automatorInfo[i], long + 1); + message.automatorInfo[i] = $root.Automator.AutomatorInfo.fromObject(object.automatorInfo[i]); } } return message; @@ -124696,13 +116220,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminResponse.toObject = function toObject(message, options, q) { + AdminResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.automatorInfo = []; @@ -124717,7 +116237,7 @@ export const Automator = $root.Automator = (() => { if (message.automatorInfo && message.automatorInfo.length) { object.automatorInfo = []; for (let j = 0; j < message.automatorInfo.length; ++j) - object.automatorInfo[j] = $root.Automator.AutomatorInfo.toObject(message.automatorInfo[j], options, q + 1); + object.automatorInfo[j] = $root.Automator.AutomatorInfo.toObject(message.automatorInfo[j], options); } return object; }; @@ -124785,7 +116305,7 @@ export const Automator = $root.Automator = (() => { this.logEntries = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -124906,13 +116426,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutomatorInfo.encode = function encode(message, writer, q) { + AutomatorInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -124925,15 +116441,15 @@ export const Automator = $root.Automator = (() => { writer.uint32(/* id 5, wireType 2 =*/42).string(message.url); if (message.automatorSkills != null && message.automatorSkills.length) for (let i = 0; i < message.automatorSkills.length; ++i) - $root.Automator.AutomatorSkill.encode(message.automatorSkills[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Automator.AutomatorSkill.encode(message.automatorSkills[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.automatorSettingValues != null && message.automatorSettingValues.length) for (let i = 0; i < message.automatorSettingValues.length; ++i) - $root.Automator.AutomatorSettingValue.encode(message.automatorSettingValues[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Automator.AutomatorSettingValue.encode(message.automatorSettingValues[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.Automator.StatusResponse.encode(message.status, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Automator.StatusResponse.encode(message.status, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.logEntries != null && message.logEntries.length) for (let i = 0; i < message.logEntries.length; ++i) - $root.Automator.LogEntry.encode(message.logEntries[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.Automator.LogEntry.encode(message.logEntries[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) writer.uint32(/* id 10, wireType 0 =*/80).int32(message.automatorState); if (message.version != null && Object.hasOwnProperty.call(message, "version")) @@ -124967,18 +116483,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutomatorInfo.decode = function decode(reader, length, error, long) { + AutomatorInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AutomatorInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -125003,23 +116513,23 @@ export const Automator = $root.Automator = (() => { case 6: { if (!(message.automatorSkills && message.automatorSkills.length)) message.automatorSkills = []; - message.automatorSkills.push($root.Automator.AutomatorSkill.decode(reader, reader.uint32(), undefined, long + 1)); + message.automatorSkills.push($root.Automator.AutomatorSkill.decode(reader, reader.uint32())); break; } case 7: { if (!(message.automatorSettingValues && message.automatorSettingValues.length)) message.automatorSettingValues = []; - message.automatorSettingValues.push($root.Automator.AutomatorSettingValue.decode(reader, reader.uint32(), undefined, long + 1)); + message.automatorSettingValues.push($root.Automator.AutomatorSettingValue.decode(reader, reader.uint32())); break; } case 8: { - message.status = $root.Automator.StatusResponse.decode(reader, reader.uint32(), undefined, long + 1); + message.status = $root.Automator.StatusResponse.decode(reader, reader.uint32()); break; } case 9: { if (!(message.logEntries && message.logEntries.length)) message.logEntries = []; - message.logEntries.push($root.Automator.LogEntry.decode(reader, reader.uint32(), undefined, long + 1)); + message.logEntries.push($root.Automator.LogEntry.decode(reader, reader.uint32())); break; } case 10: { @@ -125035,7 +116545,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -125066,13 +116576,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutomatorInfo.verify = function verify(message, long) { + AutomatorInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -125092,7 +116598,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.automatorSkills)) return "automatorSkills: array expected"; for (let i = 0; i < message.automatorSkills.length; ++i) { - let error = $root.Automator.AutomatorSkill.verify(message.automatorSkills[i], long + 1); + let error = $root.Automator.AutomatorSkill.verify(message.automatorSkills[i]); if (error) return "automatorSkills." + error; } @@ -125101,13 +116607,13 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.automatorSettingValues)) return "automatorSettingValues: array expected"; for (let i = 0; i < message.automatorSettingValues.length; ++i) { - let error = $root.Automator.AutomatorSettingValue.verify(message.automatorSettingValues[i], long + 1); + let error = $root.Automator.AutomatorSettingValue.verify(message.automatorSettingValues[i]); if (error) return "automatorSettingValues." + error; } } if (message.status != null && message.hasOwnProperty("status")) { - let error = $root.Automator.StatusResponse.verify(message.status, long + 1); + let error = $root.Automator.StatusResponse.verify(message.status); if (error) return "status." + error; } @@ -125115,7 +116621,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.logEntries)) return "logEntries: array expected"; for (let i = 0; i < message.logEntries.length; ++i) { - let error = $root.Automator.LogEntry.verify(message.logEntries[i], long + 1); + let error = $root.Automator.LogEntry.verify(message.logEntries[i]); if (error) return "logEntries." + error; } @@ -125149,17 +116655,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AutomatorInfo} AutomatorInfo */ - AutomatorInfo.fromObject = function fromObject(object, long) { + AutomatorInfo.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AutomatorInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AutomatorInfo(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -125168,7 +116670,7 @@ export const Automator = $root.Automator = (() => { message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -125188,7 +116690,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.automatorSkills.length; ++i) { if (typeof object.automatorSkills[i] !== "object") throw TypeError(".Automator.AutomatorInfo.automatorSkills: object expected"); - message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i], long + 1); + message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i]); } } if (object.automatorSettingValues) { @@ -125198,13 +116700,13 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.automatorSettingValues.length; ++i) { if (typeof object.automatorSettingValues[i] !== "object") throw TypeError(".Automator.AutomatorInfo.automatorSettingValues: object expected"); - message.automatorSettingValues[i] = $root.Automator.AutomatorSettingValue.fromObject(object.automatorSettingValues[i], long + 1); + message.automatorSettingValues[i] = $root.Automator.AutomatorSettingValue.fromObject(object.automatorSettingValues[i]); } } if (object.status != null) { if (typeof object.status !== "object") throw TypeError(".Automator.AutomatorInfo.status: object expected"); - message.status = $root.Automator.StatusResponse.fromObject(object.status, long + 1); + message.status = $root.Automator.StatusResponse.fromObject(object.status); } if (object.logEntries) { if (!Array.isArray(object.logEntries)) @@ -125213,7 +116715,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.logEntries.length; ++i) { if (typeof object.logEntries[i] !== "object") throw TypeError(".Automator.AutomatorInfo.logEntries: object expected"); - message.logEntries[i] = $root.Automator.LogEntry.fromObject(object.logEntries[i], long + 1); + message.logEntries[i] = $root.Automator.LogEntry.fromObject(object.logEntries[i]); } } switch (object.automatorState) { @@ -125264,13 +116766,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutomatorInfo.toObject = function toObject(message, options, q) { + AutomatorInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.automatorSkills = []; @@ -125280,14 +116778,14 @@ export const Automator = $root.Automator = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.name = ""; object.enabled = false; object.url = ""; @@ -125297,16 +116795,12 @@ export const Automator = $root.Automator = (() => { object.sslCertificateExpirationDate = ""; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -125319,19 +116813,19 @@ export const Automator = $root.Automator = (() => { if (message.automatorSkills && message.automatorSkills.length) { object.automatorSkills = []; for (let j = 0; j < message.automatorSkills.length; ++j) - object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject(message.automatorSkills[j], options, q + 1); + object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject(message.automatorSkills[j], options); } if (message.automatorSettingValues && message.automatorSettingValues.length) { object.automatorSettingValues = []; for (let j = 0; j < message.automatorSettingValues.length; ++j) - object.automatorSettingValues[j] = $root.Automator.AutomatorSettingValue.toObject(message.automatorSettingValues[j], options, q + 1); + object.automatorSettingValues[j] = $root.Automator.AutomatorSettingValue.toObject(message.automatorSettingValues[j], options); } if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.Automator.StatusResponse.toObject(message.status, options, q + 1); + object.status = $root.Automator.StatusResponse.toObject(message.status, options); if (message.logEntries && message.logEntries.length) { object.logEntries = []; for (let j = 0; j < message.logEntries.length; ++j) - object.logEntries[j] = $root.Automator.LogEntry.toObject(message.logEntries[j], options, q + 1); + object.logEntries[j] = $root.Automator.LogEntry.toObject(message.logEntries[j], options); } if (message.automatorState != null && message.hasOwnProperty("automatorState")) object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; @@ -125396,7 +116890,7 @@ export const Automator = $root.Automator = (() => { function AdminCreateAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -125445,19 +116939,15 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminCreateAutomatorRequest.encode = function encode(message, writer, q) { + AdminCreateAutomatorRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); if (message.skill != null && Object.hasOwnProperty.call(message, "skill")) - $root.Automator.AutomatorSkill.encode(message.skill, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Automator.AutomatorSkill.encode(message.skill, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -125485,18 +116975,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminCreateAutomatorRequest.decode = function decode(reader, length, error, long) { + AdminCreateAutomatorRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminCreateAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nodeId = reader.int64(); @@ -125507,11 +116991,11 @@ export const Automator = $root.Automator = (() => { break; } case 3: { - message.skill = $root.Automator.AutomatorSkill.decode(reader, reader.uint32(), undefined, long + 1); + message.skill = $root.Automator.AutomatorSkill.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -125542,13 +117026,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminCreateAutomatorRequest.verify = function verify(message, long) { + AdminCreateAutomatorRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeId != null && message.hasOwnProperty("nodeId")) if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) return "nodeId: integer|Long expected"; @@ -125556,7 +117036,7 @@ export const Automator = $root.Automator = (() => { if (!$util.isString(message.name)) return "name: string expected"; if (message.skill != null && message.hasOwnProperty("skill")) { - let error = $root.Automator.AutomatorSkill.verify(message.skill, long + 1); + let error = $root.Automator.AutomatorSkill.verify(message.skill); if (error) return "skill." + error; } @@ -125571,17 +117051,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminCreateAutomatorRequest} AdminCreateAutomatorRequest */ - AdminCreateAutomatorRequest.fromObject = function fromObject(object, long) { + AdminCreateAutomatorRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminCreateAutomatorRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminCreateAutomatorRequest(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -125593,7 +117069,7 @@ export const Automator = $root.Automator = (() => { if (object.skill != null) { if (typeof object.skill !== "object") throw TypeError(".Automator.AdminCreateAutomatorRequest.skill: object expected"); - message.skill = $root.Automator.AutomatorSkill.fromObject(object.skill, long + 1); + message.skill = $root.Automator.AutomatorSkill.fromObject(object.skill); } return message; }; @@ -125607,34 +117083,28 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminCreateAutomatorRequest.toObject = function toObject(message, options, q) { + AdminCreateAutomatorRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.name = ""; object.skill = null; } if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.skill != null && message.hasOwnProperty("skill")) - object.skill = $root.Automator.AutomatorSkill.toObject(message.skill, options, q + 1); + object.skill = $root.Automator.AutomatorSkill.toObject(message.skill, options); return object; }; @@ -125692,7 +117162,7 @@ export const Automator = $root.Automator = (() => { function AdminDeleteAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -125725,13 +117195,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminDeleteAutomatorRequest.encode = function encode(message, writer, q) { + AdminDeleteAutomatorRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); return writer; @@ -125761,25 +117227,19 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminDeleteAutomatorRequest.decode = function decode(reader, length, error, long) { + AdminDeleteAutomatorRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminDeleteAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -125810,13 +117270,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminDeleteAutomatorRequest.verify = function verify(message, long) { + AdminDeleteAutomatorRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -125831,17 +117287,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminDeleteAutomatorRequest} AdminDeleteAutomatorRequest */ - AdminDeleteAutomatorRequest.fromObject = function fromObject(object, long) { + AdminDeleteAutomatorRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminDeleteAutomatorRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminDeleteAutomatorRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -125860,24 +117312,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminDeleteAutomatorRequest.toObject = function toObject(message, options, q) { + AdminDeleteAutomatorRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -125937,7 +117383,7 @@ export const Automator = $root.Automator = (() => { function AdminGetAutomatorsOnNodeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -125970,13 +117416,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminGetAutomatorsOnNodeRequest.encode = function encode(message, writer, q) { + AdminGetAutomatorsOnNodeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); return writer; @@ -126006,25 +117448,19 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminGetAutomatorsOnNodeRequest.decode = function decode(reader, length, error, long) { + AdminGetAutomatorsOnNodeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminGetAutomatorsOnNodeRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nodeId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -126055,13 +117491,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminGetAutomatorsOnNodeRequest.verify = function verify(message, long) { + AdminGetAutomatorsOnNodeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeId != null && message.hasOwnProperty("nodeId")) if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) return "nodeId: integer|Long expected"; @@ -126076,17 +117508,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminGetAutomatorsOnNodeRequest} AdminGetAutomatorsOnNodeRequest */ - AdminGetAutomatorsOnNodeRequest.fromObject = function fromObject(object, long) { + AdminGetAutomatorsOnNodeRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminGetAutomatorsOnNodeRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminGetAutomatorsOnNodeRequest(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -126105,24 +117533,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminGetAutomatorsOnNodeRequest.toObject = function toObject(message, options, q) { + AdminGetAutomatorsOnNodeRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -126183,7 +117605,7 @@ export const Automator = $root.Automator = (() => { function AdminGetAutomatorsForEnterpriseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -126216,13 +117638,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminGetAutomatorsForEnterpriseRequest.encode = function encode(message, writer, q) { + AdminGetAutomatorsForEnterpriseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); return writer; @@ -126252,25 +117670,19 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminGetAutomatorsForEnterpriseRequest.decode = function decode(reader, length, error, long) { + AdminGetAutomatorsForEnterpriseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminGetAutomatorsForEnterpriseRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseId = reader.int32(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -126301,13 +117713,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminGetAutomatorsForEnterpriseRequest.verify = function verify(message, long) { + AdminGetAutomatorsForEnterpriseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) if (!$util.isInteger(message.enterpriseId)) return "enterpriseId: integer expected"; @@ -126322,13 +117730,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminGetAutomatorsForEnterpriseRequest} AdminGetAutomatorsForEnterpriseRequest */ - AdminGetAutomatorsForEnterpriseRequest.fromObject = function fromObject(object, long) { + AdminGetAutomatorsForEnterpriseRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminGetAutomatorsForEnterpriseRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminGetAutomatorsForEnterpriseRequest(); if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; @@ -126344,13 +117748,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminGetAutomatorsForEnterpriseRequest.toObject = function toObject(message, options, q) { + AdminGetAutomatorsForEnterpriseRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.enterpriseId = 0; @@ -126410,7 +117810,7 @@ export const Automator = $root.Automator = (() => { function AdminGetAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -126443,13 +117843,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminGetAutomatorRequest.encode = function encode(message, writer, q) { + AdminGetAutomatorRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); return writer; @@ -126479,25 +117875,19 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminGetAutomatorRequest.decode = function decode(reader, length, error, long) { + AdminGetAutomatorRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminGetAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -126528,13 +117918,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminGetAutomatorRequest.verify = function verify(message, long) { + AdminGetAutomatorRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -126549,17 +117935,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminGetAutomatorRequest} AdminGetAutomatorRequest */ - AdminGetAutomatorRequest.fromObject = function fromObject(object, long) { + AdminGetAutomatorRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminGetAutomatorRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminGetAutomatorRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -126578,24 +117960,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminGetAutomatorRequest.toObject = function toObject(message, options, q) { + AdminGetAutomatorRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -126654,7 +118030,7 @@ export const Automator = $root.Automator = (() => { function AdminEnableAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -126695,13 +118071,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminEnableAutomatorRequest.encode = function encode(message, writer, q) { + AdminEnableAutomatorRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) @@ -126733,18 +118105,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminEnableAutomatorRequest.decode = function decode(reader, length, error, long) { + AdminEnableAutomatorRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminEnableAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -126755,7 +118121,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -126786,13 +118152,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminEnableAutomatorRequest.verify = function verify(message, long) { + AdminEnableAutomatorRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -126810,17 +118172,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminEnableAutomatorRequest} AdminEnableAutomatorRequest */ - AdminEnableAutomatorRequest.fromObject = function fromObject(object, long) { + AdminEnableAutomatorRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminEnableAutomatorRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminEnableAutomatorRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -126841,26 +118199,20 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminEnableAutomatorRequest.toObject = function toObject(message, options, q) { + AdminEnableAutomatorRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.enabled = false; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -126929,7 +118281,7 @@ export const Automator = $root.Automator = (() => { this.automatorSettingValues = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -127002,13 +118354,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminEditAutomatorRequest.encode = function encode(message, writer, q) { + AdminEditAutomatorRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -127025,7 +118373,7 @@ export const Automator = $root.Automator = (() => { } if (message.automatorSettingValues != null && message.automatorSettingValues.length) for (let i = 0; i < message.automatorSettingValues.length; ++i) - $root.Automator.AutomatorSettingValue.encode(message.automatorSettingValues[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Automator.AutomatorSettingValue.encode(message.automatorSettingValues[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -127053,18 +118401,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminEditAutomatorRequest.decode = function decode(reader, length, error, long) { + AdminEditAutomatorRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminEditAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -127096,11 +118438,11 @@ export const Automator = $root.Automator = (() => { case 6: { if (!(message.automatorSettingValues && message.automatorSettingValues.length)) message.automatorSettingValues = []; - message.automatorSettingValues.push($root.Automator.AutomatorSettingValue.decode(reader, reader.uint32(), undefined, long + 1)); + message.automatorSettingValues.push($root.Automator.AutomatorSettingValue.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -127131,13 +118473,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminEditAutomatorRequest.verify = function verify(message, long) { + AdminEditAutomatorRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -127168,7 +118506,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.automatorSettingValues)) return "automatorSettingValues: array expected"; for (let i = 0; i < message.automatorSettingValues.length; ++i) { - let error = $root.Automator.AutomatorSettingValue.verify(message.automatorSettingValues[i], long + 1); + let error = $root.Automator.AutomatorSettingValue.verify(message.automatorSettingValues[i]); if (error) return "automatorSettingValues." + error; } @@ -127184,17 +118522,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminEditAutomatorRequest} AdminEditAutomatorRequest */ - AdminEditAutomatorRequest.fromObject = function fromObject(object, long) { + AdminEditAutomatorRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminEditAutomatorRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminEditAutomatorRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -127243,7 +118577,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.automatorSettingValues.length; ++i) { if (typeof object.automatorSettingValues[i] !== "object") throw TypeError(".Automator.AdminEditAutomatorRequest.automatorSettingValues: object expected"); - message.automatorSettingValues[i] = $root.Automator.AutomatorSettingValue.fromObject(object.automatorSettingValues[i], long + 1); + message.automatorSettingValues[i] = $root.Automator.AutomatorSettingValue.fromObject(object.automatorSettingValues[i]); } } return message; @@ -127258,13 +118592,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminEditAutomatorRequest.toObject = function toObject(message, options, q) { + AdminEditAutomatorRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.skillTypes = []; @@ -127273,17 +118603,15 @@ export const Automator = $root.Automator = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.name = ""; object.enabled = false; object.url = ""; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -127301,7 +118629,7 @@ export const Automator = $root.Automator = (() => { if (message.automatorSettingValues && message.automatorSettingValues.length) { object.automatorSettingValues = []; for (let j = 0; j < message.automatorSettingValues.length; ++j) - object.automatorSettingValues[j] = $root.Automator.AutomatorSettingValue.toObject(message.automatorSettingValues[j], options, q + 1); + object.automatorSettingValues[j] = $root.Automator.AutomatorSettingValue.toObject(message.automatorSettingValues[j], options); } return object; }; @@ -127365,7 +118693,7 @@ export const Automator = $root.Automator = (() => { this.skillTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -127438,13 +118766,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminSetupAutomatorRequest.encode = function encode(message, writer, q) { + AdminSetupAutomatorRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) @@ -127488,18 +118812,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminSetupAutomatorRequest.decode = function decode(reader, length, error, long) { + AdminSetupAutomatorRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminSetupAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -127533,7 +118851,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -127564,13 +118882,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminSetupAutomatorRequest.verify = function verify(message, long) { + AdminSetupAutomatorRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -127620,17 +118934,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminSetupAutomatorRequest} AdminSetupAutomatorRequest */ - AdminSetupAutomatorRequest.fromObject = function fromObject(object, long) { + AdminSetupAutomatorRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminSetupAutomatorRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminSetupAutomatorRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -127725,22 +119035,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminSetupAutomatorRequest.toObject = function toObject(message, options, q) { + AdminSetupAutomatorRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.skillTypes = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.automatorState = options.enums === String ? "UNKNOWN_STATE" : 0; if (options.bytes === String) object.encryptedEccEnterprisePrivateKey = ""; @@ -127765,9 +119071,7 @@ export const Automator = $root.Automator = (() => { } } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -127841,7 +119145,7 @@ export const Automator = $root.Automator = (() => { function AdminSetupAutomatorResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -127906,13 +119210,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminSetupAutomatorResponse.encode = function encode(message, writer, q) { + AdminSetupAutomatorResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -127950,18 +119250,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminSetupAutomatorResponse.decode = function decode(reader, length, error, long) { + AdminSetupAutomatorResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminSetupAutomatorResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.success = reader.bool(); @@ -127984,7 +119278,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -128015,13 +119309,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminSetupAutomatorResponse.verify = function verify(message, long) { + AdminSetupAutomatorResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.success != null && message.hasOwnProperty("success")) if (typeof message.success !== "boolean") return "success: boolean expected"; @@ -128057,13 +119347,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminSetupAutomatorResponse} AdminSetupAutomatorResponse */ - AdminSetupAutomatorResponse.fromObject = function fromObject(object, long) { + AdminSetupAutomatorResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminSetupAutomatorResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminSetupAutomatorResponse(); if (object.success != null) message.success = Boolean(object.success); @@ -128071,7 +119357,7 @@ export const Automator = $root.Automator = (() => { message.message = String(object.message); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -128127,22 +119413,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminSetupAutomatorResponse.toObject = function toObject(message, options, q) { + AdminSetupAutomatorResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.success = false; object.message = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.automatorState = options.enums === String ? "UNKNOWN_STATE" : 0; if (options.bytes === String) object.automatorEccPublicKey = ""; @@ -128157,9 +119439,7 @@ export const Automator = $root.Automator = (() => { if (message.message != null && message.hasOwnProperty("message")) object.message = message.message; if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -128222,7 +119502,7 @@ export const Automator = $root.Automator = (() => { function AdminAutomatorSkillsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -128255,13 +119535,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminAutomatorSkillsRequest.encode = function encode(message, writer, q) { + AdminAutomatorSkillsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); return writer; @@ -128291,25 +119567,19 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminAutomatorSkillsRequest.decode = function decode(reader, length, error, long) { + AdminAutomatorSkillsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminAutomatorSkillsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -128340,13 +119610,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminAutomatorSkillsRequest.verify = function verify(message, long) { + AdminAutomatorSkillsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -128361,17 +119627,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminAutomatorSkillsRequest} AdminAutomatorSkillsRequest */ - AdminAutomatorSkillsRequest.fromObject = function fromObject(object, long) { + AdminAutomatorSkillsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminAutomatorSkillsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminAutomatorSkillsRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -128390,24 +119652,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminAutomatorSkillsRequest.toObject = function toObject(message, options, q) { + AdminAutomatorSkillsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -128465,7 +119721,7 @@ export const Automator = $root.Automator = (() => { function AutomatorSkill(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -128514,13 +119770,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutomatorSkill.encode = function encode(message, writer, q) { + AutomatorSkill.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.skillType != null && Object.hasOwnProperty.call(message, "skillType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.skillType); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -128554,18 +119806,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutomatorSkill.decode = function decode(reader, length, error, long) { + AutomatorSkill.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AutomatorSkill(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.skillType = reader.int32(); @@ -128580,7 +119826,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -128611,13 +119857,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutomatorSkill.verify = function verify(message, long) { + AutomatorSkill.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.skillType != null && message.hasOwnProperty("skillType")) switch (message.skillType) { default: @@ -128645,13 +119887,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AutomatorSkill} AutomatorSkill */ - AutomatorSkill.fromObject = function fromObject(object, long) { + AutomatorSkill.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AutomatorSkill) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AutomatorSkill(); switch (object.skillType) { default: @@ -128693,13 +119931,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutomatorSkill.toObject = function toObject(message, options, q) { + AutomatorSkill.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.skillType = options.enums === String ? "UNKNOWN_SKILL_TYPE" : 0; @@ -128767,7 +120001,7 @@ export const Automator = $root.Automator = (() => { this.automatorSkills = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -128816,20 +120050,16 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminAutomatorSkillsResponse.encode = function encode(message, writer, q) { + AdminAutomatorSkillsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); if (message.automatorSkills != null && message.automatorSkills.length) for (let i = 0; i < message.automatorSkills.length; ++i) - $root.Automator.AutomatorSkill.encode(message.automatorSkills[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Automator.AutomatorSkill.encode(message.automatorSkills[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -128857,18 +120087,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminAutomatorSkillsResponse.decode = function decode(reader, length, error, long) { + AdminAutomatorSkillsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminAutomatorSkillsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.success = reader.bool(); @@ -128881,11 +120105,11 @@ export const Automator = $root.Automator = (() => { case 3: { if (!(message.automatorSkills && message.automatorSkills.length)) message.automatorSkills = []; - message.automatorSkills.push($root.Automator.AutomatorSkill.decode(reader, reader.uint32(), undefined, long + 1)); + message.automatorSkills.push($root.Automator.AutomatorSkill.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -128916,13 +120140,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminAutomatorSkillsResponse.verify = function verify(message, long) { + AdminAutomatorSkillsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.success != null && message.hasOwnProperty("success")) if (typeof message.success !== "boolean") return "success: boolean expected"; @@ -128933,7 +120153,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.automatorSkills)) return "automatorSkills: array expected"; for (let i = 0; i < message.automatorSkills.length; ++i) { - let error = $root.Automator.AutomatorSkill.verify(message.automatorSkills[i], long + 1); + let error = $root.Automator.AutomatorSkill.verify(message.automatorSkills[i]); if (error) return "automatorSkills." + error; } @@ -128949,13 +120169,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminAutomatorSkillsResponse} AdminAutomatorSkillsResponse */ - AdminAutomatorSkillsResponse.fromObject = function fromObject(object, long) { + AdminAutomatorSkillsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminAutomatorSkillsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminAutomatorSkillsResponse(); if (object.success != null) message.success = Boolean(object.success); @@ -128968,7 +120184,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.automatorSkills.length; ++i) { if (typeof object.automatorSkills[i] !== "object") throw TypeError(".Automator.AdminAutomatorSkillsResponse.automatorSkills: object expected"); - message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i], long + 1); + message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i]); } } return message; @@ -128983,13 +120199,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminAutomatorSkillsResponse.toObject = function toObject(message, options, q) { + AdminAutomatorSkillsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.automatorSkills = []; @@ -129004,7 +120216,7 @@ export const Automator = $root.Automator = (() => { if (message.automatorSkills && message.automatorSkills.length) { object.automatorSkills = []; for (let j = 0; j < message.automatorSkills.length; ++j) - object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject(message.automatorSkills[j], options, q + 1); + object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject(message.automatorSkills[j], options); } return object; }; @@ -129062,7 +120274,7 @@ export const Automator = $root.Automator = (() => { function AdminResetAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -129095,13 +120307,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminResetAutomatorRequest.encode = function encode(message, writer, q) { + AdminResetAutomatorRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); return writer; @@ -129131,25 +120339,19 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminResetAutomatorRequest.decode = function decode(reader, length, error, long) { + AdminResetAutomatorRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminResetAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -129180,13 +120382,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminResetAutomatorRequest.verify = function verify(message, long) { + AdminResetAutomatorRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -129201,17 +120399,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminResetAutomatorRequest} AdminResetAutomatorRequest */ - AdminResetAutomatorRequest.fromObject = function fromObject(object, long) { + AdminResetAutomatorRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminResetAutomatorRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminResetAutomatorRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -129230,24 +120424,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminResetAutomatorRequest.toObject = function toObject(message, options, q) { + AdminResetAutomatorRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -129306,7 +120494,7 @@ export const Automator = $root.Automator = (() => { function AdminInitializeAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -129339,13 +120527,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminInitializeAutomatorRequest.encode = function encode(message, writer, q) { + AdminInitializeAutomatorRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); return writer; @@ -129375,25 +120559,19 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminInitializeAutomatorRequest.decode = function decode(reader, length, error, long) { + AdminInitializeAutomatorRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminInitializeAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -129424,13 +120602,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminInitializeAutomatorRequest.verify = function verify(message, long) { + AdminInitializeAutomatorRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -129445,17 +120619,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminInitializeAutomatorRequest} AdminInitializeAutomatorRequest */ - AdminInitializeAutomatorRequest.fromObject = function fromObject(object, long) { + AdminInitializeAutomatorRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminInitializeAutomatorRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminInitializeAutomatorRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -129474,24 +120644,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminInitializeAutomatorRequest.toObject = function toObject(message, options, q) { + AdminInitializeAutomatorRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -129552,7 +120716,7 @@ export const Automator = $root.Automator = (() => { function AdminAutomatorLogRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -129585,13 +120749,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminAutomatorLogRequest.encode = function encode(message, writer, q) { + AdminAutomatorLogRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); return writer; @@ -129621,25 +120781,19 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminAutomatorLogRequest.decode = function decode(reader, length, error, long) { + AdminAutomatorLogRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminAutomatorLogRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -129670,13 +120824,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminAutomatorLogRequest.verify = function verify(message, long) { + AdminAutomatorLogRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -129691,17 +120841,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminAutomatorLogRequest} AdminAutomatorLogRequest */ - AdminAutomatorLogRequest.fromObject = function fromObject(object, long) { + AdminAutomatorLogRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminAutomatorLogRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminAutomatorLogRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -129720,24 +120866,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminAutomatorLogRequest.toObject = function toObject(message, options, q) { + AdminAutomatorLogRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -129798,7 +120938,7 @@ export const Automator = $root.Automator = (() => { function AdminAutomatorLogClearRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -129831,13 +120971,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AdminAutomatorLogClearRequest.encode = function encode(message, writer, q) { + AdminAutomatorLogClearRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); return writer; @@ -129867,25 +121003,19 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AdminAutomatorLogClearRequest.decode = function decode(reader, length, error, long) { + AdminAutomatorLogClearRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminAutomatorLogClearRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -129916,13 +121046,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AdminAutomatorLogClearRequest.verify = function verify(message, long) { + AdminAutomatorLogClearRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -129937,17 +121063,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.AdminAutomatorLogClearRequest} AdminAutomatorLogClearRequest */ - AdminAutomatorLogClearRequest.fromObject = function fromObject(object, long) { + AdminAutomatorLogClearRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.AdminAutomatorLogClearRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.AdminAutomatorLogClearRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -129966,24 +121088,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdminAutomatorLogClearRequest.toObject = function toObject(message, options, q) { + AdminAutomatorLogClearRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -130054,7 +121170,7 @@ export const Automator = $root.Automator = (() => { this.teamDescription = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -130167,13 +121283,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveTeamsForUserRequest.encode = function encode(message, writer, q) { + ApproveTeamsForUserRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.ssoAuthenticationProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthenticationProtocolType")) @@ -130190,7 +121302,7 @@ export const Automator = $root.Automator = (() => { writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.userPublicKey); if (message.teamDescription != null && message.teamDescription.length) for (let i = 0; i < message.teamDescription.length; ++i) - $root.Automator.TeamDescription.encode(message.teamDescription[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Automator.TeamDescription.encode(message.teamDescription[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.isTesting != null && Object.hasOwnProperty.call(message, "isTesting")) writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isTesting); if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) @@ -130224,18 +121336,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveTeamsForUserRequest.decode = function decode(reader, length, error, long) { + ApproveTeamsForUserRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveTeamsForUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -130268,7 +121374,7 @@ export const Automator = $root.Automator = (() => { case 8: { if (!(message.teamDescription && message.teamDescription.length)) message.teamDescription = []; - message.teamDescription.push($root.Automator.TeamDescription.decode(reader, reader.uint32(), undefined, long + 1)); + message.teamDescription.push($root.Automator.TeamDescription.decode(reader, reader.uint32())); break; } case 9: { @@ -130284,7 +121390,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -130315,13 +121421,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveTeamsForUserRequest.verify = function verify(message, long) { + ApproveTeamsForUserRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -130353,7 +121455,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.teamDescription)) return "teamDescription: array expected"; for (let i = 0; i < message.teamDescription.length; ++i) { - let error = $root.Automator.TeamDescription.verify(message.teamDescription[i], long + 1); + let error = $root.Automator.TeamDescription.verify(message.teamDescription[i]); if (error) return "teamDescription." + error; } @@ -130378,17 +121480,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.ApproveTeamsForUserRequest} ApproveTeamsForUserRequest */ - ApproveTeamsForUserRequest.fromObject = function fromObject(object, long) { + ApproveTeamsForUserRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.ApproveTeamsForUserRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.ApproveTeamsForUserRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -130435,7 +121533,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.teamDescription.length; ++i) { if (typeof object.teamDescription[i] !== "object") throw TypeError(".Automator.ApproveTeamsForUserRequest.teamDescription: object expected"); - message.teamDescription[i] = $root.Automator.TeamDescription.fromObject(object.teamDescription[i], long + 1); + message.teamDescription[i] = $root.Automator.TeamDescription.fromObject(object.teamDescription[i]); } } if (object.isTesting != null) @@ -130459,22 +121557,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveTeamsForUserRequest.toObject = function toObject(message, options, q) { + ApproveTeamsForUserRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teamDescription = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.ssoAuthenticationProtocolType = options.enums === String ? "UNKNOWN_PROTOCOL" : 0; object.authMessage = ""; object.email = ""; @@ -130498,9 +121592,7 @@ export const Automator = $root.Automator = (() => { } } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -130519,7 +121611,7 @@ export const Automator = $root.Automator = (() => { if (message.teamDescription && message.teamDescription.length) { object.teamDescription = []; for (let j = 0; j < message.teamDescription.length; ++j) - object.teamDescription[j] = $root.Automator.TeamDescription.toObject(message.teamDescription[j], options, q + 1); + object.teamDescription[j] = $root.Automator.TeamDescription.toObject(message.teamDescription[j], options); } if (message.isTesting != null && message.hasOwnProperty("isTesting")) object.isTesting = message.isTesting; @@ -130585,7 +121677,7 @@ export const Automator = $root.Automator = (() => { function TeamDescription(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -130642,13 +121734,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamDescription.encode = function encode(message, writer, q) { + TeamDescription.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.teamName != null && Object.hasOwnProperty.call(message, "teamName")) @@ -130684,18 +121772,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamDescription.decode = function decode(reader, length, error, long) { + TeamDescription.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.TeamDescription(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -130714,7 +121796,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -130745,13 +121827,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamDescription.verify = function verify(message, long) { + TeamDescription.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -130783,13 +121861,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.TeamDescription} TeamDescription */ - TeamDescription.fromObject = function fromObject(object, long) { + TeamDescription.fromObject = function fromObject(object) { if (object instanceof $root.Automator.TeamDescription) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.TeamDescription(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -130843,13 +121917,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamDescription.toObject = function toObject(message, options, q) { + TeamDescription.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -130936,7 +122006,7 @@ export const Automator = $root.Automator = (() => { this.approveTeamResponse = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -130993,13 +122063,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveTeamsForUserResponse.encode = function encode(message, writer, q) { + ApproveTeamsForUserResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.email != null && Object.hasOwnProperty.call(message, "email")) @@ -131008,7 +122074,7 @@ export const Automator = $root.Automator = (() => { writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); if (message.approveTeamResponse != null && message.approveTeamResponse.length) for (let i = 0; i < message.approveTeamResponse.length; ++i) - $root.Automator.ApproveOneTeamForUserResponse.encode(message.approveTeamResponse[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Automator.ApproveOneTeamForUserResponse.encode(message.approveTeamResponse[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -131036,18 +122102,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveTeamsForUserResponse.decode = function decode(reader, length, error, long) { + ApproveTeamsForUserResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveTeamsForUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -131064,11 +122124,11 @@ export const Automator = $root.Automator = (() => { case 4: { if (!(message.approveTeamResponse && message.approveTeamResponse.length)) message.approveTeamResponse = []; - message.approveTeamResponse.push($root.Automator.ApproveOneTeamForUserResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.approveTeamResponse.push($root.Automator.ApproveOneTeamForUserResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -131099,13 +122159,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveTeamsForUserResponse.verify = function verify(message, long) { + ApproveTeamsForUserResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -131119,7 +122175,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.approveTeamResponse)) return "approveTeamResponse: array expected"; for (let i = 0; i < message.approveTeamResponse.length; ++i) { - let error = $root.Automator.ApproveOneTeamForUserResponse.verify(message.approveTeamResponse[i], long + 1); + let error = $root.Automator.ApproveOneTeamForUserResponse.verify(message.approveTeamResponse[i]); if (error) return "approveTeamResponse." + error; } @@ -131135,17 +122191,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.ApproveTeamsForUserResponse} ApproveTeamsForUserResponse */ - ApproveTeamsForUserResponse.fromObject = function fromObject(object, long) { + ApproveTeamsForUserResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.ApproveTeamsForUserResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.ApproveTeamsForUserResponse(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -131163,7 +122215,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.approveTeamResponse.length; ++i) { if (typeof object.approveTeamResponse[i] !== "object") throw TypeError(".Automator.ApproveTeamsForUserResponse.approveTeamResponse: object expected"); - message.approveTeamResponse[i] = $root.Automator.ApproveOneTeamForUserResponse.fromObject(object.approveTeamResponse[i], long + 1); + message.approveTeamResponse[i] = $root.Automator.ApproveOneTeamForUserResponse.fromObject(object.approveTeamResponse[i]); } } return message; @@ -131178,29 +122230,23 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveTeamsForUserResponse.toObject = function toObject(message, options, q) { + ApproveTeamsForUserResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.approveTeamResponse = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.email = ""; object.message = ""; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -131211,7 +122257,7 @@ export const Automator = $root.Automator = (() => { if (message.approveTeamResponse && message.approveTeamResponse.length) { object.approveTeamResponse = []; for (let j = 0; j < message.approveTeamResponse.length; ++j) - object.approveTeamResponse[j] = $root.Automator.ApproveOneTeamForUserResponse.toObject(message.approveTeamResponse[j], options, q + 1); + object.approveTeamResponse[j] = $root.Automator.ApproveOneTeamForUserResponse.toObject(message.approveTeamResponse[j], options); } return object; }; @@ -131275,7 +122321,7 @@ export const Automator = $root.Automator = (() => { function ApproveOneTeamForUserResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -131364,13 +122410,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveOneTeamForUserResponse.encode = function encode(message, writer, q) { + ApproveOneTeamForUserResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.approved != null && Object.hasOwnProperty.call(message, "approved")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.approved); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -131414,18 +122456,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveOneTeamForUserResponse.decode = function decode(reader, length, error, long) { + ApproveOneTeamForUserResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveOneTeamForUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.approved = reader.bool(); @@ -131460,7 +122496,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -131491,13 +122527,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveOneTeamForUserResponse.verify = function verify(message, long) { + ApproveOneTeamForUserResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.approved != null && message.hasOwnProperty("approved")) if (typeof message.approved !== "boolean") return "approved: boolean expected"; @@ -131549,13 +122581,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.ApproveOneTeamForUserResponse} ApproveOneTeamForUserResponse */ - ApproveOneTeamForUserResponse.fromObject = function fromObject(object, long) { + ApproveOneTeamForUserResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.ApproveOneTeamForUserResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.ApproveOneTeamForUserResponse(); if (object.approved != null) message.approved = Boolean(object.approved); @@ -131646,13 +122674,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveOneTeamForUserResponse.toObject = function toObject(message, options, q) { + ApproveOneTeamForUserResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.approved = false; @@ -131763,7 +122787,7 @@ export const Automator = $root.Automator = (() => { this.teamDescription = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -131860,13 +122884,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveTeamsRequest.encode = function encode(message, writer, q) { + ApproveTeamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.ssoAuthenticationProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthenticationProtocolType")) @@ -131881,7 +122901,7 @@ export const Automator = $root.Automator = (() => { writer.uint32(/* id 6, wireType 2 =*/50).string(message.ipAddress); if (message.teamDescription != null && message.teamDescription.length) for (let i = 0; i < message.teamDescription.length; ++i) - $root.Automator.TeamDescription.encode(message.teamDescription[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Automator.TeamDescription.encode(message.teamDescription[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isEccOnly); if (message.isTesting != null && Object.hasOwnProperty.call(message, "isTesting")) @@ -131913,18 +122933,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveTeamsRequest.decode = function decode(reader, length, error, long) { + ApproveTeamsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveTeamsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -131953,7 +122967,7 @@ export const Automator = $root.Automator = (() => { case 7: { if (!(message.teamDescription && message.teamDescription.length)) message.teamDescription = []; - message.teamDescription.push($root.Automator.TeamDescription.decode(reader, reader.uint32(), undefined, long + 1)); + message.teamDescription.push($root.Automator.TeamDescription.decode(reader, reader.uint32())); break; } case 8: { @@ -131965,7 +122979,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -131996,13 +123010,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveTeamsRequest.verify = function verify(message, long) { + ApproveTeamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -132031,7 +123041,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.teamDescription)) return "teamDescription: array expected"; for (let i = 0; i < message.teamDescription.length; ++i) { - let error = $root.Automator.TeamDescription.verify(message.teamDescription[i], long + 1); + let error = $root.Automator.TeamDescription.verify(message.teamDescription[i]); if (error) return "teamDescription." + error; } @@ -132053,17 +123063,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.ApproveTeamsRequest} ApproveTeamsRequest */ - ApproveTeamsRequest.fromObject = function fromObject(object, long) { + ApproveTeamsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Automator.ApproveTeamsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.ApproveTeamsRequest(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -132105,7 +123111,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.teamDescription.length; ++i) { if (typeof object.teamDescription[i] !== "object") throw TypeError(".Automator.ApproveTeamsRequest.teamDescription: object expected"); - message.teamDescription[i] = $root.Automator.TeamDescription.fromObject(object.teamDescription[i], long + 1); + message.teamDescription[i] = $root.Automator.TeamDescription.fromObject(object.teamDescription[i]); } } if (object.isEccOnly != null) @@ -132124,22 +123130,18 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveTeamsRequest.toObject = function toObject(message, options, q) { + ApproveTeamsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teamDescription = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.ssoAuthenticationProtocolType = options.enums === String ? "UNKNOWN_PROTOCOL" : 0; object.authMessage = ""; object.email = ""; @@ -132149,9 +123151,7 @@ export const Automator = $root.Automator = (() => { object.isTesting = false; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -132168,7 +123168,7 @@ export const Automator = $root.Automator = (() => { if (message.teamDescription && message.teamDescription.length) { object.teamDescription = []; for (let j = 0; j < message.teamDescription.length; ++j) - object.teamDescription[j] = $root.Automator.TeamDescription.toObject(message.teamDescription[j], options, q + 1); + object.teamDescription[j] = $root.Automator.TeamDescription.toObject(message.teamDescription[j], options); } if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) object.isEccOnly = message.isEccOnly; @@ -132232,7 +123232,7 @@ export const Automator = $root.Automator = (() => { this.approveTeamResponse = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -132281,20 +123281,16 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveTeamsResponse.encode = function encode(message, writer, q) { + ApproveTeamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); if (message.approveTeamResponse != null && message.approveTeamResponse.length) for (let i = 0; i < message.approveTeamResponse.length; ++i) - $root.Automator.ApproveOneTeamResponse.encode(message.approveTeamResponse[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Automator.ApproveOneTeamResponse.encode(message.approveTeamResponse[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -132322,18 +123318,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveTeamsResponse.decode = function decode(reader, length, error, long) { + ApproveTeamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveTeamsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.int64(); @@ -132346,11 +123336,11 @@ export const Automator = $root.Automator = (() => { case 3: { if (!(message.approveTeamResponse && message.approveTeamResponse.length)) message.approveTeamResponse = []; - message.approveTeamResponse.push($root.Automator.ApproveOneTeamResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.approveTeamResponse.push($root.Automator.ApproveOneTeamResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -132381,13 +123371,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveTeamsResponse.verify = function verify(message, long) { + ApproveTeamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -132398,7 +123384,7 @@ export const Automator = $root.Automator = (() => { if (!Array.isArray(message.approveTeamResponse)) return "approveTeamResponse: array expected"; for (let i = 0; i < message.approveTeamResponse.length; ++i) { - let error = $root.Automator.ApproveOneTeamResponse.verify(message.approveTeamResponse[i], long + 1); + let error = $root.Automator.ApproveOneTeamResponse.verify(message.approveTeamResponse[i]); if (error) return "approveTeamResponse." + error; } @@ -132414,17 +123400,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.ApproveTeamsResponse} ApproveTeamsResponse */ - ApproveTeamsResponse.fromObject = function fromObject(object, long) { + ApproveTeamsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.ApproveTeamsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.ApproveTeamsResponse(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, false); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -132440,7 +123422,7 @@ export const Automator = $root.Automator = (() => { for (let i = 0; i < object.approveTeamResponse.length; ++i) { if (typeof object.approveTeamResponse[i] !== "object") throw TypeError(".Automator.ApproveTeamsResponse.approveTeamResponse: object expected"); - message.approveTeamResponse[i] = $root.Automator.ApproveOneTeamResponse.fromObject(object.approveTeamResponse[i], long + 1); + message.approveTeamResponse[i] = $root.Automator.ApproveOneTeamResponse.fromObject(object.approveTeamResponse[i]); } } return message; @@ -132455,28 +123437,22 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveTeamsResponse.toObject = function toObject(message, options, q) { + ApproveTeamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.approveTeamResponse = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.message = ""; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, false).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; @@ -132485,7 +123461,7 @@ export const Automator = $root.Automator = (() => { if (message.approveTeamResponse && message.approveTeamResponse.length) { object.approveTeamResponse = []; for (let j = 0; j < message.approveTeamResponse.length; ++j) - object.approveTeamResponse[j] = $root.Automator.ApproveOneTeamResponse.toObject(message.approveTeamResponse[j], options, q + 1); + object.approveTeamResponse[j] = $root.Automator.ApproveOneTeamResponse.toObject(message.approveTeamResponse[j], options); } return object; }; @@ -132556,7 +123532,7 @@ export const Automator = $root.Automator = (() => { function ApproveOneTeamResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -132693,13 +123669,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApproveOneTeamResponse.encode = function encode(message, writer, q) { + ApproveOneTeamResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.approved != null && Object.hasOwnProperty.call(message, "approved")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.approved); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -132755,18 +123727,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApproveOneTeamResponse.decode = function decode(reader, length, error, long) { + ApproveOneTeamResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveOneTeamResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.approved = reader.bool(); @@ -132825,7 +123791,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -132856,13 +123822,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApproveOneTeamResponse.verify = function verify(message, long) { + ApproveOneTeamResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.approved != null && message.hasOwnProperty("approved")) if (typeof message.approved !== "boolean") return "approved: boolean expected"; @@ -132948,13 +123910,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.ApproveOneTeamResponse} ApproveOneTeamResponse */ - ApproveOneTeamResponse.fromObject = function fromObject(object, long) { + ApproveOneTeamResponse.fromObject = function fromObject(object) { if (object instanceof $root.Automator.ApproveOneTeamResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.ApproveOneTeamResponse(); if (object.approved != null) message.approved = Boolean(object.approved); @@ -133121,13 +124079,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApproveOneTeamResponse.toObject = function toObject(message, options, q) { + ApproveOneTeamResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.approved = false; @@ -133274,7 +124228,7 @@ export const Automator = $root.Automator = (() => { function SSLCertificateInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -133355,13 +124309,9 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SSLCertificateInfo.encode = function encode(message, writer, q) { + SSLCertificateInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.automatorId); if (message.hostUrl != null && Object.hasOwnProperty.call(message, "hostUrl")) @@ -133403,18 +124353,12 @@ export const Automator = $root.Automator = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SSLCertificateInfo.decode = function decode(reader, length, error, long) { + SSLCertificateInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.SSLCertificateInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.automatorId = reader.uint64(); @@ -133445,7 +124389,7 @@ export const Automator = $root.Automator = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -133476,13 +124420,9 @@ export const Automator = $root.Automator = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SSLCertificateInfo.verify = function verify(message, long) { + SSLCertificateInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.automatorId != null && message.hasOwnProperty("automatorId")) if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) return "automatorId: integer|Long expected"; @@ -133515,17 +124455,13 @@ export const Automator = $root.Automator = (() => { * @param {Object.} object Plain object * @returns {Automator.SSLCertificateInfo} SSLCertificateInfo */ - SSLCertificateInfo.fromObject = function fromObject(object, long) { + SSLCertificateInfo.fromObject = function fromObject(object) { if (object instanceof $root.Automator.SSLCertificateInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Automator.SSLCertificateInfo(); if (object.automatorId != null) if ($util.Long) - message.automatorId = $util.Long.fromValue(object.automatorId, true); + (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = true; else if (typeof object.automatorId === "string") message.automatorId = parseInt(object.automatorId, 10); else if (typeof object.automatorId === "number") @@ -133540,7 +124476,7 @@ export const Automator = $root.Automator = (() => { message.issuer = String(object.issuer); if (object.issuedOn != null) if ($util.Long) - message.issuedOn = $util.Long.fromValue(object.issuedOn, true); + (message.issuedOn = $util.Long.fromValue(object.issuedOn)).unsigned = true; else if (typeof object.issuedOn === "string") message.issuedOn = parseInt(object.issuedOn, 10); else if (typeof object.issuedOn === "number") @@ -133549,7 +124485,7 @@ export const Automator = $root.Automator = (() => { message.issuedOn = new $util.LongBits(object.issuedOn.low >>> 0, object.issuedOn.high >>> 0).toNumber(true); if (object.expiresOn != null) if ($util.Long) - message.expiresOn = $util.Long.fromValue(object.expiresOn, true); + (message.expiresOn = $util.Long.fromValue(object.expiresOn)).unsigned = true; else if (typeof object.expiresOn === "string") message.expiresOn = parseInt(object.expiresOn, 10); else if (typeof object.expiresOn === "number") @@ -133558,7 +124494,7 @@ export const Automator = $root.Automator = (() => { message.expiresOn = new $util.LongBits(object.expiresOn.low >>> 0, object.expiresOn.high >>> 0).toNumber(true); if (object.checkedOn != null) if ($util.Long) - message.checkedOn = $util.Long.fromValue(object.checkedOn, true); + (message.checkedOn = $util.Long.fromValue(object.checkedOn)).unsigned = true; else if (typeof object.checkedOn === "string") message.checkedOn = parseInt(object.checkedOn, 10); else if (typeof object.checkedOn === "number") @@ -133577,43 +124513,37 @@ export const Automator = $root.Automator = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SSLCertificateInfo.toObject = function toObject(message, options, q) { + SSLCertificateInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.automatorId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.automatorId = options.longs === String ? "0" : 0; object.hostUrl = ""; object.subject = ""; object.issuer = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.issuedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.issuedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.issuedOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.issuedOn = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.expiresOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiresOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiresOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiresOn = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.checkedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.checkedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.checkedOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.checkedOn = options.longs === String ? "0" : 0; } if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.automatorId = typeof message.automatorId === "number" ? BigInt(message.automatorId) : $util.Long.fromBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0, true).toBigInt(); - else if (typeof message.automatorId === "number") + if (typeof message.automatorId === "number") object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber(true) : message.automatorId; @@ -133624,23 +124554,17 @@ export const Automator = $root.Automator = (() => { if (message.issuer != null && message.hasOwnProperty("issuer")) object.issuer = message.issuer; if (message.issuedOn != null && message.hasOwnProperty("issuedOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.issuedOn = typeof message.issuedOn === "number" ? BigInt(message.issuedOn) : $util.Long.fromBits(message.issuedOn.low >>> 0, message.issuedOn.high >>> 0, true).toBigInt(); - else if (typeof message.issuedOn === "number") + if (typeof message.issuedOn === "number") object.issuedOn = options.longs === String ? String(message.issuedOn) : message.issuedOn; else object.issuedOn = options.longs === String ? $util.Long.prototype.toString.call(message.issuedOn) : options.longs === Number ? new $util.LongBits(message.issuedOn.low >>> 0, message.issuedOn.high >>> 0).toNumber(true) : message.issuedOn; if (message.expiresOn != null && message.hasOwnProperty("expiresOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiresOn = typeof message.expiresOn === "number" ? BigInt(message.expiresOn) : $util.Long.fromBits(message.expiresOn.low >>> 0, message.expiresOn.high >>> 0, true).toBigInt(); - else if (typeof message.expiresOn === "number") + if (typeof message.expiresOn === "number") object.expiresOn = options.longs === String ? String(message.expiresOn) : message.expiresOn; else object.expiresOn = options.longs === String ? $util.Long.prototype.toString.call(message.expiresOn) : options.longs === Number ? new $util.LongBits(message.expiresOn.low >>> 0, message.expiresOn.high >>> 0).toNumber(true) : message.expiresOn; if (message.checkedOn != null && message.hasOwnProperty("checkedOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.checkedOn = typeof message.checkedOn === "number" ? BigInt(message.checkedOn) : $util.Long.fromBits(message.checkedOn.low >>> 0, message.checkedOn.high >>> 0, true).toBigInt(); - else if (typeof message.checkedOn === "number") + if (typeof message.checkedOn === "number") object.checkedOn = options.longs === String ? String(message.checkedOn) : message.checkedOn; else object.checkedOn = options.longs === String ? $util.Long.prototype.toString.call(message.checkedOn) : options.longs === Number ? new $util.LongBits(message.checkedOn.low >>> 0, message.checkedOn.high >>> 0).toNumber(true) : message.checkedOn; @@ -133846,7 +124770,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudSettingValue(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -133943,13 +124867,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudSettingValue.encode = function encode(message, writer, q) { + SsoCloudSettingValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.settingId != null && Object.hasOwnProperty.call(message, "settingId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.settingId); if (message.settingName != null && Object.hasOwnProperty.call(message, "settingName")) @@ -133995,18 +124915,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudSettingValue.decode = function decode(reader, length, error, long) { + SsoCloudSettingValue.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudSettingValue(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.settingId = reader.uint64(); @@ -134045,7 +124959,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -134076,13 +124990,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudSettingValue.verify = function verify(message, long) { + SsoCloudSettingValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.settingId != null && message.hasOwnProperty("settingId")) if (!$util.isInteger(message.settingId) && !(message.settingId && $util.isInteger(message.settingId.low) && $util.isInteger(message.settingId.high))) return "settingId: integer|Long expected"; @@ -134135,17 +125045,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudSettingValue} SsoCloudSettingValue */ - SsoCloudSettingValue.fromObject = function fromObject(object, long) { + SsoCloudSettingValue.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudSettingValue) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudSettingValue(); if (object.settingId != null) if ($util.Long) - message.settingId = $util.Long.fromValue(object.settingId, true); + (message.settingId = $util.Long.fromValue(object.settingId)).unsigned = true; else if (typeof object.settingId === "string") message.settingId = parseInt(object.settingId, 10); else if (typeof object.settingId === "number") @@ -134230,20 +125136,16 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudSettingValue.toObject = function toObject(message, options, q) { + SsoCloudSettingValue.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.settingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.settingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.settingId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.settingId = options.longs === String ? "0" : 0; object.settingName = ""; object.label = ""; object.value = ""; @@ -134254,9 +125156,7 @@ export const SsoCloud = $root.SsoCloud = (() => { object.isRequired = false; } if (message.settingId != null && message.hasOwnProperty("settingId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.settingId = typeof message.settingId === "number" ? BigInt(message.settingId) : $util.Long.fromBits(message.settingId.low >>> 0, message.settingId.high >>> 0, true).toBigInt(); - else if (typeof message.settingId === "number") + if (typeof message.settingId === "number") object.settingId = options.longs === String ? String(message.settingId) : message.settingId; else object.settingId = options.longs === String ? $util.Long.prototype.toString.call(message.settingId) : options.longs === Number ? new $util.LongBits(message.settingId.low >>> 0, message.settingId.high >>> 0).toNumber(true) : message.settingId; @@ -134331,7 +125231,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudSettingAction(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -134388,13 +125288,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudSettingAction.encode = function encode(message, writer, q) { + SsoCloudSettingAction.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.settingId != null && Object.hasOwnProperty.call(message, "settingId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.settingId); if (message.settingName != null && Object.hasOwnProperty.call(message, "settingName")) @@ -134430,18 +125326,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudSettingAction.decode = function decode(reader, length, error, long) { + SsoCloudSettingAction.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudSettingAction(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.settingId = reader.uint64(); @@ -134460,7 +125350,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -134491,13 +125381,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudSettingAction.verify = function verify(message, long) { + SsoCloudSettingAction.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.settingId != null && message.hasOwnProperty("settingId")) if (!$util.isInteger(message.settingId) && !(message.settingId && $util.isInteger(message.settingId.low) && $util.isInteger(message.settingId.high))) return "settingId: integer|Long expected"; @@ -134528,17 +125414,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudSettingAction} SsoCloudSettingAction */ - SsoCloudSettingAction.fromObject = function fromObject(object, long) { + SsoCloudSettingAction.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudSettingAction) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudSettingAction(); if (object.settingId != null) if ($util.Long) - message.settingId = $util.Long.fromValue(object.settingId, true); + (message.settingId = $util.Long.fromValue(object.settingId)).unsigned = true; else if (typeof object.settingId === "string") message.settingId = parseInt(object.settingId, 10); else if (typeof object.settingId === "number") @@ -134585,28 +125467,22 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudSettingAction.toObject = function toObject(message, options, q) { + SsoCloudSettingAction.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.settingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.settingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.settingId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.settingId = options.longs === String ? "0" : 0; object.settingName = ""; object.operation = options.enums === String ? "SET" : 0; object.value = ""; } if (message.settingId != null && message.hasOwnProperty("settingId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.settingId = typeof message.settingId === "number" ? BigInt(message.settingId) : $util.Long.fromBits(message.settingId.low >>> 0, message.settingId.high >>> 0, true).toBigInt(); - else if (typeof message.settingId === "number") + if (typeof message.settingId === "number") object.settingId = options.longs === String ? String(message.settingId) : message.settingId; else object.settingId = options.longs === String ? $util.Long.prototype.toString.call(message.settingId) : options.longs === Number ? new $util.LongBits(message.settingId.low >>> 0, message.settingId.high >>> 0).toNumber(true) : message.settingId; @@ -134673,7 +125549,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.ssoCloudSettingAction = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -134738,13 +125614,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudConfigurationRequest.encode = function encode(message, writer, q) { + SsoCloudConfigurationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) @@ -134755,7 +125627,7 @@ export const SsoCloud = $root.SsoCloud = (() => { writer.uint32(/* id 4, wireType 0 =*/32).int32(message.ssoAuthProtocolType); if (message.ssoCloudSettingAction != null && message.ssoCloudSettingAction.length) for (let i = 0; i < message.ssoCloudSettingAction.length; ++i) - $root.SsoCloud.SsoCloudSettingAction.encode(message.ssoCloudSettingAction[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.SsoCloud.SsoCloudSettingAction.encode(message.ssoCloudSettingAction[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -134783,18 +125655,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudConfigurationRequest.decode = function decode(reader, length, error, long) { + SsoCloudConfigurationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudConfigurationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoServiceProviderId = reader.uint64(); @@ -134815,11 +125681,11 @@ export const SsoCloud = $root.SsoCloud = (() => { case 5: { if (!(message.ssoCloudSettingAction && message.ssoCloudSettingAction.length)) message.ssoCloudSettingAction = []; - message.ssoCloudSettingAction.push($root.SsoCloud.SsoCloudSettingAction.decode(reader, reader.uint32(), undefined, long + 1)); + message.ssoCloudSettingAction.push($root.SsoCloud.SsoCloudSettingAction.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -134850,13 +125716,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudConfigurationRequest.verify = function verify(message, long) { + SsoCloudConfigurationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) return "ssoServiceProviderId: integer|Long expected"; @@ -134878,7 +125740,7 @@ export const SsoCloud = $root.SsoCloud = (() => { if (!Array.isArray(message.ssoCloudSettingAction)) return "ssoCloudSettingAction: array expected"; for (let i = 0; i < message.ssoCloudSettingAction.length; ++i) { - let error = $root.SsoCloud.SsoCloudSettingAction.verify(message.ssoCloudSettingAction[i], long + 1); + let error = $root.SsoCloud.SsoCloudSettingAction.verify(message.ssoCloudSettingAction[i]); if (error) return "ssoCloudSettingAction." + error; } @@ -134894,17 +125756,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudConfigurationRequest} SsoCloudConfigurationRequest */ - SsoCloudConfigurationRequest.fromObject = function fromObject(object, long) { + SsoCloudConfigurationRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudConfigurationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudConfigurationRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, true); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -134913,7 +125771,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); if (object.ssoSpConfigurationId != null) if ($util.Long) - message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId, true); + (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; else if (typeof object.ssoSpConfigurationId === "string") message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); else if (typeof object.ssoSpConfigurationId === "number") @@ -134945,7 +125803,7 @@ export const SsoCloud = $root.SsoCloud = (() => { for (let i = 0; i < object.ssoCloudSettingAction.length; ++i) { if (typeof object.ssoCloudSettingAction[i] !== "object") throw TypeError(".SsoCloud.SsoCloudConfigurationRequest.ssoCloudSettingAction: object expected"); - message.ssoCloudSettingAction[i] = $root.SsoCloud.SsoCloudSettingAction.fromObject(object.ssoCloudSettingAction[i], long + 1); + message.ssoCloudSettingAction[i] = $root.SsoCloud.SsoCloudSettingAction.fromObject(object.ssoCloudSettingAction[i]); } } return message; @@ -134960,41 +125818,33 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudConfigurationRequest.toObject = function toObject(message, options, q) { + SsoCloudConfigurationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.ssoCloudSettingAction = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoSpConfigurationId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoSpConfigurationId = options.longs === String ? "0" : 0; object.name = ""; object.ssoAuthProtocolType = options.enums === String ? "SAML2" : 0; } if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoSpConfigurationId = typeof message.ssoSpConfigurationId === "number" ? BigInt(message.ssoSpConfigurationId) : $util.Long.fromBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoSpConfigurationId === "number") + if (typeof message.ssoSpConfigurationId === "number") object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; @@ -135005,7 +125855,7 @@ export const SsoCloud = $root.SsoCloud = (() => { if (message.ssoCloudSettingAction && message.ssoCloudSettingAction.length) { object.ssoCloudSettingAction = []; for (let j = 0; j < message.ssoCloudSettingAction.length; ++j) - object.ssoCloudSettingAction[j] = $root.SsoCloud.SsoCloudSettingAction.toObject(message.ssoCloudSettingAction[j], options, q + 1); + object.ssoCloudSettingAction[j] = $root.SsoCloud.SsoCloudSettingAction.toObject(message.ssoCloudSettingAction[j], options); } return object; }; @@ -135061,7 +125911,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoSharedConfigItem(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -135110,13 +125960,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoSharedConfigItem.encode = function encode(message, writer, q) { + SsoSharedConfigItem.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoSpConfigurationId); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) @@ -135150,18 +125996,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoSharedConfigItem.decode = function decode(reader, length, error, long) { + SsoSharedConfigItem.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoSharedConfigItem(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoSpConfigurationId = reader.uint64(); @@ -135176,7 +126016,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -135207,13 +126047,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoSharedConfigItem.verify = function verify(message, long) { + SsoSharedConfigItem.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) return "ssoSpConfigurationId: integer|Long expected"; @@ -135234,17 +126070,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoSharedConfigItem} SsoSharedConfigItem */ - SsoSharedConfigItem.fromObject = function fromObject(object, long) { + SsoSharedConfigItem.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoSharedConfigItem) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoSharedConfigItem(); if (object.ssoSpConfigurationId != null) if ($util.Long) - message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId, true); + (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; else if (typeof object.ssoSpConfigurationId === "string") message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); else if (typeof object.ssoSpConfigurationId === "number") @@ -135253,7 +126085,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, true); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -135262,7 +126094,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); if (object.ssoNodeId != null) if ($util.Long) - message.ssoNodeId = $util.Long.fromValue(object.ssoNodeId, true); + (message.ssoNodeId = $util.Long.fromValue(object.ssoNodeId)).unsigned = true; else if (typeof object.ssoNodeId === "string") message.ssoNodeId = parseInt(object.ssoNodeId, 10); else if (typeof object.ssoNodeId === "number") @@ -135281,49 +126113,39 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoSharedConfigItem.toObject = function toObject(message, options, q) { + SsoSharedConfigItem.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoSpConfigurationId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoSpConfigurationId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoNodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoNodeId = options.longs === String ? "0" : 0; } if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoSpConfigurationId = typeof message.ssoSpConfigurationId === "number" ? BigInt(message.ssoSpConfigurationId) : $util.Long.fromBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoSpConfigurationId === "number") + if (typeof message.ssoSpConfigurationId === "number") object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; if (message.ssoNodeId != null && message.hasOwnProperty("ssoNodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoNodeId = typeof message.ssoNodeId === "number" ? BigInt(message.ssoNodeId) : $util.Long.fromBits(message.ssoNodeId.low >>> 0, message.ssoNodeId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoNodeId === "number") + if (typeof message.ssoNodeId === "number") object.ssoNodeId = options.longs === String ? String(message.ssoNodeId) : message.ssoNodeId; else object.ssoNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoNodeId) : options.longs === Number ? new $util.LongBits(message.ssoNodeId.low >>> 0, message.ssoNodeId.high >>> 0).toNumber(true) : message.ssoNodeId; @@ -135389,7 +126211,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.sharedConfigs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -135486,13 +126308,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudConfigurationResponse.encode = function encode(message, writer, q) { + SsoCloudConfigurationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) @@ -135507,12 +126325,12 @@ export const SsoCloud = $root.SsoCloud = (() => { writer.uint32(/* id 6, wireType 2 =*/50).string(message.lastModified); if (message.ssoCloudSettingValue != null && message.ssoCloudSettingValue.length) for (let i = 0; i < message.ssoCloudSettingValue.length; ++i) - $root.SsoCloud.SsoCloudSettingValue.encode(message.ssoCloudSettingValue[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.SsoCloud.SsoCloudSettingValue.encode(message.ssoCloudSettingValue[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.isShared != null && Object.hasOwnProperty.call(message, "isShared")) writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isShared); if (message.sharedConfigs != null && message.sharedConfigs.length) for (let i = 0; i < message.sharedConfigs.length; ++i) - $root.SsoCloud.SsoSharedConfigItem.encode(message.sharedConfigs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.SsoCloud.SsoSharedConfigItem.encode(message.sharedConfigs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; @@ -135540,18 +126358,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudConfigurationResponse.decode = function decode(reader, length, error, long) { + SsoCloudConfigurationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudConfigurationResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoServiceProviderId = reader.uint64(); @@ -135580,7 +126392,7 @@ export const SsoCloud = $root.SsoCloud = (() => { case 7: { if (!(message.ssoCloudSettingValue && message.ssoCloudSettingValue.length)) message.ssoCloudSettingValue = []; - message.ssoCloudSettingValue.push($root.SsoCloud.SsoCloudSettingValue.decode(reader, reader.uint32(), undefined, long + 1)); + message.ssoCloudSettingValue.push($root.SsoCloud.SsoCloudSettingValue.decode(reader, reader.uint32())); break; } case 8: { @@ -135590,11 +126402,11 @@ export const SsoCloud = $root.SsoCloud = (() => { case 9: { if (!(message.sharedConfigs && message.sharedConfigs.length)) message.sharedConfigs = []; - message.sharedConfigs.push($root.SsoCloud.SsoSharedConfigItem.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedConfigs.push($root.SsoCloud.SsoSharedConfigItem.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -135625,13 +126437,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudConfigurationResponse.verify = function verify(message, long) { + SsoCloudConfigurationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) return "ssoServiceProviderId: integer|Long expected"; @@ -135654,7 +126462,7 @@ export const SsoCloud = $root.SsoCloud = (() => { if (!Array.isArray(message.ssoCloudSettingValue)) return "ssoCloudSettingValue: array expected"; for (let i = 0; i < message.ssoCloudSettingValue.length; ++i) { - let error = $root.SsoCloud.SsoCloudSettingValue.verify(message.ssoCloudSettingValue[i], long + 1); + let error = $root.SsoCloud.SsoCloudSettingValue.verify(message.ssoCloudSettingValue[i]); if (error) return "ssoCloudSettingValue." + error; } @@ -135666,7 +126474,7 @@ export const SsoCloud = $root.SsoCloud = (() => { if (!Array.isArray(message.sharedConfigs)) return "sharedConfigs: array expected"; for (let i = 0; i < message.sharedConfigs.length; ++i) { - let error = $root.SsoCloud.SsoSharedConfigItem.verify(message.sharedConfigs[i], long + 1); + let error = $root.SsoCloud.SsoSharedConfigItem.verify(message.sharedConfigs[i]); if (error) return "sharedConfigs." + error; } @@ -135682,17 +126490,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudConfigurationResponse} SsoCloudConfigurationResponse */ - SsoCloudConfigurationResponse.fromObject = function fromObject(object, long) { + SsoCloudConfigurationResponse.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudConfigurationResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudConfigurationResponse(); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, true); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -135701,7 +126505,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); if (object.ssoSpConfigurationId != null) if ($util.Long) - message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId, true); + (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; else if (typeof object.ssoSpConfigurationId === "string") message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); else if (typeof object.ssoSpConfigurationId === "number") @@ -135710,7 +126514,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); if (object.enterpriseId != null) if ($util.Long) - message.enterpriseId = $util.Long.fromValue(object.enterpriseId, true); + (message.enterpriseId = $util.Long.fromValue(object.enterpriseId)).unsigned = true; else if (typeof object.enterpriseId === "string") message.enterpriseId = parseInt(object.enterpriseId, 10); else if (typeof object.enterpriseId === "number") @@ -135730,7 +126534,7 @@ export const SsoCloud = $root.SsoCloud = (() => { for (let i = 0; i < object.ssoCloudSettingValue.length; ++i) { if (typeof object.ssoCloudSettingValue[i] !== "object") throw TypeError(".SsoCloud.SsoCloudConfigurationResponse.ssoCloudSettingValue: object expected"); - message.ssoCloudSettingValue[i] = $root.SsoCloud.SsoCloudSettingValue.fromObject(object.ssoCloudSettingValue[i], long + 1); + message.ssoCloudSettingValue[i] = $root.SsoCloud.SsoCloudSettingValue.fromObject(object.ssoCloudSettingValue[i]); } } if (object.isShared != null) @@ -135742,7 +126546,7 @@ export const SsoCloud = $root.SsoCloud = (() => { for (let i = 0; i < object.sharedConfigs.length; ++i) { if (typeof object.sharedConfigs[i] !== "object") throw TypeError(".SsoCloud.SsoCloudConfigurationResponse.sharedConfigs: object expected"); - message.sharedConfigs[i] = $root.SsoCloud.SsoSharedConfigItem.fromObject(object.sharedConfigs[i], long + 1); + message.sharedConfigs[i] = $root.SsoCloud.SsoSharedConfigItem.fromObject(object.sharedConfigs[i]); } } return message; @@ -135757,13 +126561,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudConfigurationResponse.toObject = function toObject(message, options, q) { + SsoCloudConfigurationResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.ssoCloudSettingValue = []; @@ -135772,42 +126572,36 @@ export const SsoCloud = $root.SsoCloud = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoSpConfigurationId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoSpConfigurationId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.enterpriseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseId = options.longs === String ? "0" : 0; object.name = ""; object.protocol = ""; object.lastModified = ""; object.isShared = false; } if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoSpConfigurationId = typeof message.ssoSpConfigurationId === "number" ? BigInt(message.ssoSpConfigurationId) : $util.Long.fromBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoSpConfigurationId === "number") + if (typeof message.ssoSpConfigurationId === "number") object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseId = typeof message.enterpriseId === "number" ? BigInt(message.enterpriseId) : $util.Long.fromBits(message.enterpriseId.low >>> 0, message.enterpriseId.high >>> 0, true).toBigInt(); - else if (typeof message.enterpriseId === "number") + if (typeof message.enterpriseId === "number") object.enterpriseId = options.longs === String ? String(message.enterpriseId) : message.enterpriseId; else object.enterpriseId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseId) : options.longs === Number ? new $util.LongBits(message.enterpriseId.low >>> 0, message.enterpriseId.high >>> 0).toNumber(true) : message.enterpriseId; @@ -135820,14 +126614,14 @@ export const SsoCloud = $root.SsoCloud = (() => { if (message.ssoCloudSettingValue && message.ssoCloudSettingValue.length) { object.ssoCloudSettingValue = []; for (let j = 0; j < message.ssoCloudSettingValue.length; ++j) - object.ssoCloudSettingValue[j] = $root.SsoCloud.SsoCloudSettingValue.toObject(message.ssoCloudSettingValue[j], options, q + 1); + object.ssoCloudSettingValue[j] = $root.SsoCloud.SsoCloudSettingValue.toObject(message.ssoCloudSettingValue[j], options); } if (message.isShared != null && message.hasOwnProperty("isShared")) object.isShared = message.isShared; if (message.sharedConfigs && message.sharedConfigs.length) { object.sharedConfigs = []; for (let j = 0; j < message.sharedConfigs.length; ++j) - object.sharedConfigs[j] = $root.SsoCloud.SsoSharedConfigItem.toObject(message.sharedConfigs[j], options, q + 1); + object.sharedConfigs[j] = $root.SsoCloud.SsoSharedConfigItem.toObject(message.sharedConfigs[j], options); } return object; }; @@ -135883,7 +126677,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoIdpTypeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -135932,13 +126726,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoIdpTypeRequest.encode = function encode(message, writer, q) { + SsoIdpTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoIdpTypeId != null && Object.hasOwnProperty.call(message, "ssoIdpTypeId")) writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.ssoIdpTypeId); if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) @@ -135972,18 +126762,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoIdpTypeRequest.decode = function decode(reader, length, error, long) { + SsoIdpTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoIdpTypeRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoIdpTypeId = reader.uint32(); @@ -135998,7 +126782,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -136029,13 +126813,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoIdpTypeRequest.verify = function verify(message, long) { + SsoIdpTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoIdpTypeId != null && message.hasOwnProperty("ssoIdpTypeId")) if (!$util.isInteger(message.ssoIdpTypeId)) return "ssoIdpTypeId: integer expected"; @@ -136056,13 +126836,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoIdpTypeRequest} SsoIdpTypeRequest */ - SsoIdpTypeRequest.fromObject = function fromObject(object, long) { + SsoIdpTypeRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoIdpTypeRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoIdpTypeRequest(); if (object.ssoIdpTypeId != null) message.ssoIdpTypeId = object.ssoIdpTypeId >>> 0; @@ -136082,13 +126858,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoIdpTypeRequest.toObject = function toObject(message, options, q) { + SsoIdpTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.ssoIdpTypeId = 0; @@ -136155,7 +126927,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoIdpTypeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -136204,13 +126976,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoIdpTypeResponse.encode = function encode(message, writer, q) { + SsoIdpTypeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoIdpTypeId != null && Object.hasOwnProperty.call(message, "ssoIdpTypeId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ssoIdpTypeId); if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) @@ -136244,18 +127012,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoIdpTypeResponse.decode = function decode(reader, length, error, long) { + SsoIdpTypeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoIdpTypeResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoIdpTypeId = reader.int32(); @@ -136270,7 +127032,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -136301,13 +127063,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoIdpTypeResponse.verify = function verify(message, long) { + SsoIdpTypeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoIdpTypeId != null && message.hasOwnProperty("ssoIdpTypeId")) if (!$util.isInteger(message.ssoIdpTypeId)) return "ssoIdpTypeId: integer expected"; @@ -136328,13 +127086,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoIdpTypeResponse} SsoIdpTypeResponse */ - SsoIdpTypeResponse.fromObject = function fromObject(object, long) { + SsoIdpTypeResponse.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoIdpTypeResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoIdpTypeResponse(); if (object.ssoIdpTypeId != null) message.ssoIdpTypeId = object.ssoIdpTypeId | 0; @@ -136354,13 +127108,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoIdpTypeResponse.toObject = function toObject(message, options, q) { + SsoIdpTypeResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.ssoIdpTypeId = 0; @@ -136425,7 +127175,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudSAMLLogRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -136458,13 +127208,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudSAMLLogRequest.encode = function encode(message, writer, q) { + SsoCloudSAMLLogRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); return writer; @@ -136494,25 +127240,19 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudSAMLLogRequest.decode = function decode(reader, length, error, long) { + SsoCloudSAMLLogRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudSAMLLogRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoServiceProviderId = reader.uint64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -136543,13 +127283,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudSAMLLogRequest.verify = function verify(message, long) { + SsoCloudSAMLLogRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) return "ssoServiceProviderId: integer|Long expected"; @@ -136564,17 +127300,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudSAMLLogRequest} SsoCloudSAMLLogRequest */ - SsoCloudSAMLLogRequest.fromObject = function fromObject(object, long) { + SsoCloudSAMLLogRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudSAMLLogRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudSAMLLogRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, true); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -136593,24 +127325,18 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudSAMLLogRequest.toObject = function toObject(message, options, q) { + SsoCloudSAMLLogRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; @@ -136675,7 +127401,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudSAMLLogEntry(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -136780,13 +127506,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudSAMLLogEntry.encode = function encode(message, writer, q) { + SsoCloudSAMLLogEntry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serverTime != null && Object.hasOwnProperty.call(message, "serverTime")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.serverTime); if (message.direction != null && Object.hasOwnProperty.call(message, "direction")) @@ -136834,18 +127556,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudSAMLLogEntry.decode = function decode(reader, length, error, long) { + SsoCloudSAMLLogEntry.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudSAMLLogEntry(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.serverTime = reader.string(); @@ -136888,7 +127604,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -136919,13 +127635,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudSAMLLogEntry.verify = function verify(message, long) { + SsoCloudSAMLLogEntry.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serverTime != null && message.hasOwnProperty("serverTime")) if (!$util.isString(message.serverTime)) return "serverTime: string expected"; @@ -136967,13 +127679,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudSAMLLogEntry} SsoCloudSAMLLogEntry */ - SsoCloudSAMLLogEntry.fromObject = function fromObject(object, long) { + SsoCloudSAMLLogEntry.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudSAMLLogEntry) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudSAMLLogEntry(); if (object.serverTime != null) message.serverTime = String(object.serverTime); @@ -137007,13 +127715,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudSAMLLogEntry.toObject = function toObject(message, options, q) { + SsoCloudSAMLLogEntry.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.serverTime = ""; @@ -137101,7 +127805,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.entry = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -137142,18 +127846,14 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudSAMLLogResponse.encode = function encode(message, writer, q) { + SsoCloudSAMLLogResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); if (message.entry != null && message.entry.length) for (let i = 0; i < message.entry.length; ++i) - $root.SsoCloud.SsoCloudSAMLLogEntry.encode(message.entry[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.SsoCloud.SsoCloudSAMLLogEntry.encode(message.entry[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -137181,18 +127881,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudSAMLLogResponse.decode = function decode(reader, length, error, long) { + SsoCloudSAMLLogResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudSAMLLogResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoServiceProviderId = reader.uint64(); @@ -137201,11 +127895,11 @@ export const SsoCloud = $root.SsoCloud = (() => { case 2: { if (!(message.entry && message.entry.length)) message.entry = []; - message.entry.push($root.SsoCloud.SsoCloudSAMLLogEntry.decode(reader, reader.uint32(), undefined, long + 1)); + message.entry.push($root.SsoCloud.SsoCloudSAMLLogEntry.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -137236,13 +127930,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudSAMLLogResponse.verify = function verify(message, long) { + SsoCloudSAMLLogResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) return "ssoServiceProviderId: integer|Long expected"; @@ -137250,7 +127940,7 @@ export const SsoCloud = $root.SsoCloud = (() => { if (!Array.isArray(message.entry)) return "entry: array expected"; for (let i = 0; i < message.entry.length; ++i) { - let error = $root.SsoCloud.SsoCloudSAMLLogEntry.verify(message.entry[i], long + 1); + let error = $root.SsoCloud.SsoCloudSAMLLogEntry.verify(message.entry[i]); if (error) return "entry." + error; } @@ -137266,17 +127956,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudSAMLLogResponse} SsoCloudSAMLLogResponse */ - SsoCloudSAMLLogResponse.fromObject = function fromObject(object, long) { + SsoCloudSAMLLogResponse.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudSAMLLogResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudSAMLLogResponse(); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, true); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -137290,7 +127976,7 @@ export const SsoCloud = $root.SsoCloud = (() => { for (let i = 0; i < object.entry.length; ++i) { if (typeof object.entry[i] !== "object") throw TypeError(".SsoCloud.SsoCloudSAMLLogResponse.entry: object expected"); - message.entry[i] = $root.SsoCloud.SsoCloudSAMLLogEntry.fromObject(object.entry[i], long + 1); + message.entry[i] = $root.SsoCloud.SsoCloudSAMLLogEntry.fromObject(object.entry[i]); } } return message; @@ -137305,33 +127991,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudSAMLLogResponse.toObject = function toObject(message, options, q) { + SsoCloudSAMLLogResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.entry = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; if (message.entry && message.entry.length) { object.entry = []; for (let j = 0; j < message.entry.length; ++j) - object.entry[j] = $root.SsoCloud.SsoCloudSAMLLogEntry.toObject(message.entry[j], options, q + 1); + object.entry[j] = $root.SsoCloud.SsoCloudSAMLLogEntry.toObject(message.entry[j], options); } return object; }; @@ -137387,7 +128067,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudServiceProviderUpdateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -137428,13 +128108,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudServiceProviderUpdateRequest.encode = function encode(message, writer, q) { + SsoCloudServiceProviderUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) @@ -137466,18 +128142,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudServiceProviderUpdateRequest.decode = function decode(reader, length, error, long) { + SsoCloudServiceProviderUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudServiceProviderUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoServiceProviderId = reader.uint64(); @@ -137488,7 +128158,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -137519,13 +128189,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudServiceProviderUpdateRequest.verify = function verify(message, long) { + SsoCloudServiceProviderUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) return "ssoServiceProviderId: integer|Long expected"; @@ -137543,17 +128209,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudServiceProviderUpdateRequest} SsoCloudServiceProviderUpdateRequest */ - SsoCloudServiceProviderUpdateRequest.fromObject = function fromObject(object, long) { + SsoCloudServiceProviderUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudServiceProviderUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudServiceProviderUpdateRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, true); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -137562,7 +128224,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); if (object.ssoSpConfigurationId != null) if ($util.Long) - message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId, true); + (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; else if (typeof object.ssoSpConfigurationId === "string") message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); else if (typeof object.ssoSpConfigurationId === "number") @@ -137581,37 +128243,29 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudServiceProviderUpdateRequest.toObject = function toObject(message, options, q) { + SsoCloudServiceProviderUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoSpConfigurationId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoSpConfigurationId = options.longs === String ? "0" : 0; } if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoSpConfigurationId = typeof message.ssoSpConfigurationId === "number" ? BigInt(message.ssoSpConfigurationId) : $util.Long.fromBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoSpConfigurationId === "number") + if (typeof message.ssoSpConfigurationId === "number") object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; @@ -137670,7 +128324,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudIdpMetadataRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -137719,13 +128373,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudIdpMetadataRequest.encode = function encode(message, writer, q) { + SsoCloudIdpMetadataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoSpConfigurationId); if (message.filename != null && Object.hasOwnProperty.call(message, "filename")) @@ -137759,18 +128409,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudIdpMetadataRequest.decode = function decode(reader, length, error, long) { + SsoCloudIdpMetadataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudIdpMetadataRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoSpConfigurationId = reader.uint64(); @@ -137785,7 +128429,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -137816,13 +128460,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudIdpMetadataRequest.verify = function verify(message, long) { + SsoCloudIdpMetadataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) return "ssoSpConfigurationId: integer|Long expected"; @@ -137843,17 +128483,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudIdpMetadataRequest} SsoCloudIdpMetadataRequest */ - SsoCloudIdpMetadataRequest.fromObject = function fromObject(object, long) { + SsoCloudIdpMetadataRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudIdpMetadataRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudIdpMetadataRequest(); if (object.ssoSpConfigurationId != null) if ($util.Long) - message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId, true); + (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; else if (typeof object.ssoSpConfigurationId === "string") message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); else if (typeof object.ssoSpConfigurationId === "number") @@ -137879,20 +128515,16 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudIdpMetadataRequest.toObject = function toObject(message, options, q) { + SsoCloudIdpMetadataRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoSpConfigurationId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoSpConfigurationId = options.longs === String ? "0" : 0; object.filename = ""; if (options.bytes === String) object.content = ""; @@ -137903,9 +128535,7 @@ export const SsoCloud = $root.SsoCloud = (() => { } } if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoSpConfigurationId = typeof message.ssoSpConfigurationId === "number" ? BigInt(message.ssoSpConfigurationId) : $util.Long.fromBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoSpConfigurationId === "number") + if (typeof message.ssoSpConfigurationId === "number") object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; @@ -137970,7 +128600,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudIdpMetadataSupportRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -138035,13 +128665,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudIdpMetadataSupportRequest.encode = function encode(message, writer, q) { + SsoCloudIdpMetadataSupportRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) @@ -138079,18 +128705,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudIdpMetadataSupportRequest.decode = function decode(reader, length, error, long) { + SsoCloudIdpMetadataSupportRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudIdpMetadataSupportRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoServiceProviderId = reader.uint64(); @@ -138113,7 +128733,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -138144,13 +128764,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudIdpMetadataSupportRequest.verify = function verify(message, long) { + SsoCloudIdpMetadataSupportRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) return "ssoServiceProviderId: integer|Long expected"; @@ -138177,17 +128793,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudIdpMetadataSupportRequest} SsoCloudIdpMetadataSupportRequest */ - SsoCloudIdpMetadataSupportRequest.fromObject = function fromObject(object, long) { + SsoCloudIdpMetadataSupportRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudIdpMetadataSupportRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudIdpMetadataSupportRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, true); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -138196,7 +128808,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); if (object.ssoSpConfigurationId != null) if ($util.Long) - message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId, true); + (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; else if (typeof object.ssoSpConfigurationId === "string") message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); else if (typeof object.ssoSpConfigurationId === "number") @@ -138205,7 +128817,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); if (object.ssoEnterpriseId != null) if ($util.Long) - message.ssoEnterpriseId = $util.Long.fromValue(object.ssoEnterpriseId, true); + (message.ssoEnterpriseId = $util.Long.fromValue(object.ssoEnterpriseId)).unsigned = true; else if (typeof object.ssoEnterpriseId === "string") message.ssoEnterpriseId = parseInt(object.ssoEnterpriseId, 10); else if (typeof object.ssoEnterpriseId === "number") @@ -138231,30 +128843,26 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudIdpMetadataSupportRequest.toObject = function toObject(message, options, q) { + SsoCloudIdpMetadataSupportRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoSpConfigurationId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoSpConfigurationId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoEnterpriseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoEnterpriseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoEnterpriseId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoEnterpriseId = options.longs === String ? "0" : 0; object.filename = ""; if (options.bytes === String) object.content = ""; @@ -138265,23 +128873,17 @@ export const SsoCloud = $root.SsoCloud = (() => { } } if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoSpConfigurationId = typeof message.ssoSpConfigurationId === "number" ? BigInt(message.ssoSpConfigurationId) : $util.Long.fromBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoSpConfigurationId === "number") + if (typeof message.ssoSpConfigurationId === "number") object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; if (message.ssoEnterpriseId != null && message.hasOwnProperty("ssoEnterpriseId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoEnterpriseId = typeof message.ssoEnterpriseId === "number" ? BigInt(message.ssoEnterpriseId) : $util.Long.fromBits(message.ssoEnterpriseId.low >>> 0, message.ssoEnterpriseId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoEnterpriseId === "number") + if (typeof message.ssoEnterpriseId === "number") object.ssoEnterpriseId = options.longs === String ? String(message.ssoEnterpriseId) : message.ssoEnterpriseId; else object.ssoEnterpriseId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoEnterpriseId) : options.longs === Number ? new $util.LongBits(message.ssoEnterpriseId.low >>> 0, message.ssoEnterpriseId.high >>> 0).toNumber(true) : message.ssoEnterpriseId; @@ -138343,7 +128945,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.ssoSpConfigurationId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -138376,13 +128978,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudConfigurationValidationRequest.encode = function encode(message, writer, q) { + SsoCloudConfigurationValidationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoSpConfigurationId != null && message.ssoSpConfigurationId.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.ssoSpConfigurationId.length; ++i) @@ -138416,18 +129014,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudConfigurationValidationRequest.decode = function decode(reader, length, error, long) { + SsoCloudConfigurationValidationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudConfigurationValidationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.ssoSpConfigurationId && message.ssoSpConfigurationId.length)) @@ -138441,7 +129033,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -138472,13 +129064,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudConfigurationValidationRequest.verify = function verify(message, long) { + SsoCloudConfigurationValidationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) { if (!Array.isArray(message.ssoSpConfigurationId)) return "ssoSpConfigurationId: array expected"; @@ -138497,13 +129085,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudConfigurationValidationRequest} SsoCloudConfigurationValidationRequest */ - SsoCloudConfigurationValidationRequest.fromObject = function fromObject(object, long) { + SsoCloudConfigurationValidationRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudConfigurationValidationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudConfigurationValidationRequest(); if (object.ssoSpConfigurationId) { if (!Array.isArray(object.ssoSpConfigurationId)) @@ -138511,7 +129095,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoSpConfigurationId = []; for (let i = 0; i < object.ssoSpConfigurationId.length; ++i) if ($util.Long) - message.ssoSpConfigurationId[i] = $util.Long.fromValue(object.ssoSpConfigurationId[i], true); + (message.ssoSpConfigurationId[i] = $util.Long.fromValue(object.ssoSpConfigurationId[i])).unsigned = true; else if (typeof object.ssoSpConfigurationId[i] === "string") message.ssoSpConfigurationId[i] = parseInt(object.ssoSpConfigurationId[i], 10); else if (typeof object.ssoSpConfigurationId[i] === "number") @@ -138531,22 +129115,16 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudConfigurationValidationRequest.toObject = function toObject(message, options, q) { + SsoCloudConfigurationValidationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.ssoSpConfigurationId = []; if (message.ssoSpConfigurationId && message.ssoSpConfigurationId.length) { object.ssoSpConfigurationId = []; for (let j = 0; j < message.ssoSpConfigurationId.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoSpConfigurationId[j] = typeof message.ssoSpConfigurationId[j] === "number" ? BigInt(message.ssoSpConfigurationId[j]) : $util.Long.fromBits(message.ssoSpConfigurationId[j].low >>> 0, message.ssoSpConfigurationId[j].high >>> 0, true).toBigInt(); - else if (typeof message.ssoSpConfigurationId[j] === "number") + if (typeof message.ssoSpConfigurationId[j] === "number") object.ssoSpConfigurationId[j] = options.longs === String ? String(message.ssoSpConfigurationId[j]) : message.ssoSpConfigurationId[j]; else object.ssoSpConfigurationId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId[j]) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId[j].low >>> 0, message.ssoSpConfigurationId[j].high >>> 0).toNumber(true) : message.ssoSpConfigurationId[j]; @@ -138606,7 +129184,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.errorMessage = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -138655,13 +129233,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidationContent.encode = function encode(message, writer, q) { + ValidationContent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoSpConfigurationId); if (message.isSuccessful != null && Object.hasOwnProperty.call(message, "isSuccessful")) @@ -138696,18 +129270,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidationContent.decode = function decode(reader, length, error, long) { + ValidationContent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.ValidationContent(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoSpConfigurationId = reader.uint64(); @@ -138724,7 +129292,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -138755,13 +129323,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidationContent.verify = function verify(message, long) { + ValidationContent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) return "ssoSpConfigurationId: integer|Long expected"; @@ -138786,17 +129350,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.ValidationContent} ValidationContent */ - ValidationContent.fromObject = function fromObject(object, long) { + ValidationContent.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.ValidationContent) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.ValidationContent(); if (object.ssoSpConfigurationId != null) if ($util.Long) - message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId, true); + (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; else if (typeof object.ssoSpConfigurationId === "string") message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); else if (typeof object.ssoSpConfigurationId === "number") @@ -138824,28 +129384,22 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidationContent.toObject = function toObject(message, options, q) { + ValidationContent.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.errorMessage = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoSpConfigurationId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoSpConfigurationId = options.longs === String ? "0" : 0; object.isSuccessful = false; } if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoSpConfigurationId = typeof message.ssoSpConfigurationId === "number" ? BigInt(message.ssoSpConfigurationId) : $util.Long.fromBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoSpConfigurationId === "number") + if (typeof message.ssoSpConfigurationId === "number") object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; @@ -138909,7 +129463,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.validationContent = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -138942,16 +129496,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudConfigurationValidationResponse.encode = function encode(message, writer, q) { + SsoCloudConfigurationValidationResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.validationContent != null && message.validationContent.length) for (let i = 0; i < message.validationContent.length; ++i) - $root.SsoCloud.ValidationContent.encode(message.validationContent[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.SsoCloud.ValidationContent.encode(message.validationContent[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -138979,27 +129529,21 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudConfigurationValidationResponse.decode = function decode(reader, length, error, long) { + SsoCloudConfigurationValidationResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudConfigurationValidationResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.validationContent && message.validationContent.length)) message.validationContent = []; - message.validationContent.push($root.SsoCloud.ValidationContent.decode(reader, reader.uint32(), undefined, long + 1)); + message.validationContent.push($root.SsoCloud.ValidationContent.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -139030,18 +129574,14 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudConfigurationValidationResponse.verify = function verify(message, long) { + SsoCloudConfigurationValidationResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.validationContent != null && message.hasOwnProperty("validationContent")) { if (!Array.isArray(message.validationContent)) return "validationContent: array expected"; for (let i = 0; i < message.validationContent.length; ++i) { - let error = $root.SsoCloud.ValidationContent.verify(message.validationContent[i], long + 1); + let error = $root.SsoCloud.ValidationContent.verify(message.validationContent[i]); if (error) return "validationContent." + error; } @@ -139057,13 +129597,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudConfigurationValidationResponse} SsoCloudConfigurationValidationResponse */ - SsoCloudConfigurationValidationResponse.fromObject = function fromObject(object, long) { + SsoCloudConfigurationValidationResponse.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudConfigurationValidationResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudConfigurationValidationResponse(); if (object.validationContent) { if (!Array.isArray(object.validationContent)) @@ -139072,7 +129608,7 @@ export const SsoCloud = $root.SsoCloud = (() => { for (let i = 0; i < object.validationContent.length; ++i) { if (typeof object.validationContent[i] !== "object") throw TypeError(".SsoCloud.SsoCloudConfigurationValidationResponse.validationContent: object expected"); - message.validationContent[i] = $root.SsoCloud.ValidationContent.fromObject(object.validationContent[i], long + 1); + message.validationContent[i] = $root.SsoCloud.ValidationContent.fromObject(object.validationContent[i]); } } return message; @@ -139087,20 +129623,16 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudConfigurationValidationResponse.toObject = function toObject(message, options, q) { + SsoCloudConfigurationValidationResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.validationContent = []; if (message.validationContent && message.validationContent.length) { object.validationContent = []; for (let j = 0; j < message.validationContent.length; ++j) - object.validationContent[j] = $root.SsoCloud.ValidationContent.toObject(message.validationContent[j], options, q + 1); + object.validationContent[j] = $root.SsoCloud.ValidationContent.toObject(message.validationContent[j], options); } return object; }; @@ -139154,7 +129686,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudServiceProviderConfigurationListRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -139187,13 +129719,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudServiceProviderConfigurationListRequest.encode = function encode(message, writer, q) { + SsoCloudServiceProviderConfigurationListRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); return writer; @@ -139223,25 +129751,19 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudServiceProviderConfigurationListRequest.decode = function decode(reader, length, error, long) { + SsoCloudServiceProviderConfigurationListRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudServiceProviderConfigurationListRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoServiceProviderId = reader.uint64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -139272,13 +129794,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudServiceProviderConfigurationListRequest.verify = function verify(message, long) { + SsoCloudServiceProviderConfigurationListRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) return "ssoServiceProviderId: integer|Long expected"; @@ -139293,17 +129811,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudServiceProviderConfigurationListRequest} SsoCloudServiceProviderConfigurationListRequest */ - SsoCloudServiceProviderConfigurationListRequest.fromObject = function fromObject(object, long) { + SsoCloudServiceProviderConfigurationListRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudServiceProviderConfigurationListRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudServiceProviderConfigurationListRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, true); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -139322,24 +129836,18 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudServiceProviderConfigurationListRequest.toObject = function toObject(message, options, q) { + SsoCloudServiceProviderConfigurationListRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; @@ -139400,7 +129908,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.ssoServiceProviderId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -139457,13 +129965,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConfigurationListItem.encode = function encode(message, writer, q) { + ConfigurationListItem.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoSpConfigurationId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -139503,18 +130007,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConfigurationListItem.decode = function decode(reader, length, error, long) { + ConfigurationListItem.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.ConfigurationListItem(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoSpConfigurationId = reader.uint64(); @@ -139540,7 +130038,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -139571,13 +130069,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConfigurationListItem.verify = function verify(message, long) { + ConfigurationListItem.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) return "ssoSpConfigurationId: integer|Long expected"; @@ -139605,17 +130099,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.ConfigurationListItem} ConfigurationListItem */ - ConfigurationListItem.fromObject = function fromObject(object, long) { + ConfigurationListItem.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.ConfigurationListItem) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.ConfigurationListItem(); if (object.ssoSpConfigurationId != null) if ($util.Long) - message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId, true); + (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; else if (typeof object.ssoSpConfigurationId === "string") message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); else if (typeof object.ssoSpConfigurationId === "number") @@ -139632,7 +130122,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoServiceProviderId = []; for (let i = 0; i < object.ssoServiceProviderId.length; ++i) if ($util.Long) - message.ssoServiceProviderId[i] = $util.Long.fromValue(object.ssoServiceProviderId[i], true); + (message.ssoServiceProviderId[i] = $util.Long.fromValue(object.ssoServiceProviderId[i])).unsigned = true; else if (typeof object.ssoServiceProviderId[i] === "string") message.ssoServiceProviderId[i] = parseInt(object.ssoServiceProviderId[i], 10); else if (typeof object.ssoServiceProviderId[i] === "number") @@ -139652,29 +130142,23 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConfigurationListItem.toObject = function toObject(message, options, q) { + ConfigurationListItem.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.ssoServiceProviderId = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoSpConfigurationId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoSpConfigurationId = options.longs === String ? "0" : 0; object.name = ""; object.isSelected = false; } if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoSpConfigurationId = typeof message.ssoSpConfigurationId === "number" ? BigInt(message.ssoSpConfigurationId) : $util.Long.fromBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoSpConfigurationId === "number") + if (typeof message.ssoSpConfigurationId === "number") object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; @@ -139685,9 +130169,7 @@ export const SsoCloud = $root.SsoCloud = (() => { if (message.ssoServiceProviderId && message.ssoServiceProviderId.length) { object.ssoServiceProviderId = []; for (let j = 0; j < message.ssoServiceProviderId.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId[j] = typeof message.ssoServiceProviderId[j] === "number" ? BigInt(message.ssoServiceProviderId[j]) : $util.Long.fromBits(message.ssoServiceProviderId[j].low >>> 0, message.ssoServiceProviderId[j].high >>> 0, true).toBigInt(); - else if (typeof message.ssoServiceProviderId[j] === "number") + if (typeof message.ssoServiceProviderId[j] === "number") object.ssoServiceProviderId[j] = options.longs === String ? String(message.ssoServiceProviderId[j]) : message.ssoServiceProviderId[j]; else object.ssoServiceProviderId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId[j]) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId[j].low >>> 0, message.ssoServiceProviderId[j].high >>> 0).toNumber(true) : message.ssoServiceProviderId[j]; @@ -139745,7 +130227,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.configurationItem = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -139778,16 +130260,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudServiceProviderConfigurationListResponse.encode = function encode(message, writer, q) { + SsoCloudServiceProviderConfigurationListResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.configurationItem != null && message.configurationItem.length) for (let i = 0; i < message.configurationItem.length; ++i) - $root.SsoCloud.ConfigurationListItem.encode(message.configurationItem[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.SsoCloud.ConfigurationListItem.encode(message.configurationItem[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -139815,27 +130293,21 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudServiceProviderConfigurationListResponse.decode = function decode(reader, length, error, long) { + SsoCloudServiceProviderConfigurationListResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudServiceProviderConfigurationListResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.configurationItem && message.configurationItem.length)) message.configurationItem = []; - message.configurationItem.push($root.SsoCloud.ConfigurationListItem.decode(reader, reader.uint32(), undefined, long + 1)); + message.configurationItem.push($root.SsoCloud.ConfigurationListItem.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -139866,18 +130338,14 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudServiceProviderConfigurationListResponse.verify = function verify(message, long) { + SsoCloudServiceProviderConfigurationListResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.configurationItem != null && message.hasOwnProperty("configurationItem")) { if (!Array.isArray(message.configurationItem)) return "configurationItem: array expected"; for (let i = 0; i < message.configurationItem.length; ++i) { - let error = $root.SsoCloud.ConfigurationListItem.verify(message.configurationItem[i], long + 1); + let error = $root.SsoCloud.ConfigurationListItem.verify(message.configurationItem[i]); if (error) return "configurationItem." + error; } @@ -139893,13 +130361,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudServiceProviderConfigurationListResponse} SsoCloudServiceProviderConfigurationListResponse */ - SsoCloudServiceProviderConfigurationListResponse.fromObject = function fromObject(object, long) { + SsoCloudServiceProviderConfigurationListResponse.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudServiceProviderConfigurationListResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudServiceProviderConfigurationListResponse(); if (object.configurationItem) { if (!Array.isArray(object.configurationItem)) @@ -139908,7 +130372,7 @@ export const SsoCloud = $root.SsoCloud = (() => { for (let i = 0; i < object.configurationItem.length; ++i) { if (typeof object.configurationItem[i] !== "object") throw TypeError(".SsoCloud.SsoCloudServiceProviderConfigurationListResponse.configurationItem: object expected"); - message.configurationItem[i] = $root.SsoCloud.ConfigurationListItem.fromObject(object.configurationItem[i], long + 1); + message.configurationItem[i] = $root.SsoCloud.ConfigurationListItem.fromObject(object.configurationItem[i]); } } return message; @@ -139923,20 +130387,16 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudServiceProviderConfigurationListResponse.toObject = function toObject(message, options, q) { + SsoCloudServiceProviderConfigurationListResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.configurationItem = []; if (message.configurationItem && message.configurationItem.length) { object.configurationItem = []; for (let j = 0; j < message.configurationItem.length; ++j) - object.configurationItem[j] = $root.SsoCloud.ConfigurationListItem.toObject(message.configurationItem[j], options, q + 1); + object.configurationItem[j] = $root.SsoCloud.ConfigurationListItem.toObject(message.configurationItem[j], options); } return object; }; @@ -139999,7 +130459,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -140096,13 +130556,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudRequest.encode = function encode(message, writer, q) { + SsoCloudRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) @@ -140148,18 +130604,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudRequest.decode = function decode(reader, length, error, long) { + SsoCloudRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.messageSessionUid = reader.bytes(); @@ -140198,7 +130648,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -140229,13 +130679,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudRequest.verify = function verify(message, long) { + SsoCloudRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) return "messageSessionUid: buffer expected"; @@ -140274,13 +130720,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudRequest} SsoCloudRequest */ - SsoCloudRequest.fromObject = function fromObject(object, long) { + SsoCloudRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudRequest(); if (object.messageSessionUid != null) if (typeof object.messageSessionUid === "string") @@ -140315,13 +130757,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudRequest.toObject = function toObject(message, options, q) { + SsoCloudRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -140418,7 +130856,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -140507,13 +130945,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudResponse.encode = function encode(message, writer, q) { + SsoCloudResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.command != null && Object.hasOwnProperty.call(message, "command")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.command); if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) @@ -140557,18 +130991,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudResponse.decode = function decode(reader, length, error, long) { + SsoCloudResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.command = reader.string(); @@ -140603,7 +131031,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -140634,13 +131062,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudResponse.verify = function verify(message, long) { + SsoCloudResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.command != null && message.hasOwnProperty("command")) if (!$util.isString(message.command)) return "command: string expected"; @@ -140676,13 +131100,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudResponse} SsoCloudResponse */ - SsoCloudResponse.fromObject = function fromObject(object, long) { + SsoCloudResponse.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudResponse(); if (object.command != null) message.command = String(object.command); @@ -140721,13 +131141,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudResponse.toObject = function toObject(message, options, q) { + SsoCloudResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.command = ""; @@ -140827,7 +131243,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudLogRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -140876,13 +131292,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudLogRequest.encode = function encode(message, writer, q) { + SsoCloudLogRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName")) @@ -140916,18 +131328,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudLogRequest.decode = function decode(reader, length, error, long) { + SsoCloudLogRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudLogRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoServiceProviderId = reader.uint64(); @@ -140942,7 +131348,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -140973,13 +131379,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudLogRequest.verify = function verify(message, long) { + SsoCloudLogRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) return "ssoServiceProviderId: integer|Long expected"; @@ -141000,17 +131402,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudLogRequest} SsoCloudLogRequest */ - SsoCloudLogRequest.fromObject = function fromObject(object, long) { + SsoCloudLogRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudLogRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudLogRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, true); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -141033,27 +131431,21 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudLogRequest.toObject = function toObject(message, options, q) { + SsoCloudLogRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; object.serviceName = ""; object.serviceId = 0; } if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; @@ -141123,7 +131515,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SamlRelayState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -141236,13 +131628,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SamlRelayState.encode = function encode(message, writer, q) { + SamlRelayState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -141292,18 +131680,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SamlRelayState.decode = function decode(reader, length, error, long) { + SamlRelayState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SamlRelayState(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.messageSessionUid = reader.bytes(); @@ -141350,7 +131732,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -141381,13 +131763,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SamlRelayState.verify = function verify(message, long) { + SamlRelayState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) return "messageSessionUid: buffer expected"; @@ -141458,13 +131836,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SamlRelayState} SamlRelayState */ - SamlRelayState.fromObject = function fromObject(object, long) { + SamlRelayState.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SamlRelayState) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SamlRelayState(); if (object.messageSessionUid != null) if (typeof object.messageSessionUid === "string") @@ -141583,7 +131957,7 @@ export const SsoCloud = $root.SsoCloud = (() => { } if (object.checksum != null) if ($util.Long) - message.checksum = $util.Long.fromValue(object.checksum, true); + (message.checksum = $util.Long.fromValue(object.checksum)).unsigned = true; else if (typeof object.checksum === "string") message.checksum = parseInt(object.checksum, 10); else if (typeof object.checksum === "number") @@ -141594,7 +131968,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.isGeneratedUid = Boolean(object.isGeneratedUid); if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -141615,13 +131989,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SamlRelayState.toObject = function toObject(message, options, q) { + SamlRelayState.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -141639,15 +132009,15 @@ export const SsoCloud = $root.SsoCloud = (() => { object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.checksum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.checksum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.checksum = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.checksum = options.longs === String ? "0" : 0; object.isGeneratedUid = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; object.detached = false; } if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) @@ -141665,18 +132035,14 @@ export const SsoCloud = $root.SsoCloud = (() => { if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; if (message.checksum != null && message.hasOwnProperty("checksum")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.checksum = typeof message.checksum === "number" ? BigInt(message.checksum) : $util.Long.fromBits(message.checksum.low >>> 0, message.checksum.high >>> 0, true).toBigInt(); - else if (typeof message.checksum === "number") + if (typeof message.checksum === "number") object.checksum = options.longs === String ? String(message.checksum) : message.checksum; else object.checksum = options.longs === String ? $util.Long.prototype.toString.call(message.checksum) : options.longs === Number ? new $util.LongBits(message.checksum.low >>> 0, message.checksum.high >>> 0).toNumber(true) : message.checksum; if (message.isGeneratedUid != null && message.hasOwnProperty("isGeneratedUid")) object.isGeneratedUid = message.isGeneratedUid; if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; @@ -141751,7 +132117,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudMigrationStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -141808,13 +132174,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudMigrationStatusRequest.encode = function encode(message, writer, q) { + SsoCloudMigrationStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.nodeId); if (message.fullStatus != null && Object.hasOwnProperty.call(message, "fullStatus")) @@ -141850,18 +132212,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudMigrationStatusRequest.decode = function decode(reader, length, error, long) { + SsoCloudMigrationStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudMigrationStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nodeId = reader.uint64(); @@ -141880,7 +132236,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -141911,13 +132267,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudMigrationStatusRequest.verify = function verify(message, long) { + SsoCloudMigrationStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nodeId != null && message.hasOwnProperty("nodeId")) if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) return "nodeId: integer|Long expected"; @@ -141941,17 +132293,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudMigrationStatusRequest} SsoCloudMigrationStatusRequest */ - SsoCloudMigrationStatusRequest.fromObject = function fromObject(object, long) { + SsoCloudMigrationStatusRequest.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudMigrationStatusRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudMigrationStatusRequest(); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, true); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = true; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -141976,28 +132324,22 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudMigrationStatusRequest.toObject = function toObject(message, options, q) { + SsoCloudMigrationStatusRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.fullStatus = false; object.includeMigratedUsers = false; object.limit = 0; } if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, true).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber(true) : message.nodeId; @@ -142076,7 +132418,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.unmigratedUsers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -142189,13 +132531,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudMigrationStatusResponse.encode = function encode(message, writer, q) { + SsoCloudMigrationStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -142216,10 +132554,10 @@ export const SsoCloud = $root.SsoCloud = (() => { writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.usersMigratedCount); if (message.migratedUsers != null && message.migratedUsers.length) for (let i = 0; i < message.migratedUsers.length; ++i) - $root.SsoCloud.SsoCloudMigrationUserInfo.encode(message.migratedUsers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.SsoCloud.SsoCloudMigrationUserInfo.encode(message.migratedUsers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.unmigratedUsers != null && message.unmigratedUsers.length) for (let i = 0; i < message.unmigratedUsers.length; ++i) - $root.SsoCloud.SsoCloudMigrationUserInfo.encode(message.unmigratedUsers[i], writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.SsoCloud.SsoCloudMigrationUserInfo.encode(message.unmigratedUsers[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; @@ -142247,18 +132585,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudMigrationStatusResponse.decode = function decode(reader, length, error, long) { + SsoCloudMigrationStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudMigrationStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.success = reader.bool(); @@ -142299,17 +132631,17 @@ export const SsoCloud = $root.SsoCloud = (() => { case 10: { if (!(message.migratedUsers && message.migratedUsers.length)) message.migratedUsers = []; - message.migratedUsers.push($root.SsoCloud.SsoCloudMigrationUserInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.migratedUsers.push($root.SsoCloud.SsoCloudMigrationUserInfo.decode(reader, reader.uint32())); break; } case 11: { if (!(message.unmigratedUsers && message.unmigratedUsers.length)) message.unmigratedUsers = []; - message.unmigratedUsers.push($root.SsoCloud.SsoCloudMigrationUserInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.unmigratedUsers.push($root.SsoCloud.SsoCloudMigrationUserInfo.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -142340,13 +132672,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudMigrationStatusResponse.verify = function verify(message, long) { + SsoCloudMigrationStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.success != null && message.hasOwnProperty("success")) if (typeof message.success !== "boolean") return "success: boolean expected"; @@ -142378,7 +132706,7 @@ export const SsoCloud = $root.SsoCloud = (() => { if (!Array.isArray(message.migratedUsers)) return "migratedUsers: array expected"; for (let i = 0; i < message.migratedUsers.length; ++i) { - let error = $root.SsoCloud.SsoCloudMigrationUserInfo.verify(message.migratedUsers[i], long + 1); + let error = $root.SsoCloud.SsoCloudMigrationUserInfo.verify(message.migratedUsers[i]); if (error) return "migratedUsers." + error; } @@ -142387,7 +132715,7 @@ export const SsoCloud = $root.SsoCloud = (() => { if (!Array.isArray(message.unmigratedUsers)) return "unmigratedUsers: array expected"; for (let i = 0; i < message.unmigratedUsers.length; ++i) { - let error = $root.SsoCloud.SsoCloudMigrationUserInfo.verify(message.unmigratedUsers[i], long + 1); + let error = $root.SsoCloud.SsoCloudMigrationUserInfo.verify(message.unmigratedUsers[i]); if (error) return "unmigratedUsers." + error; } @@ -142403,13 +132731,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudMigrationStatusResponse} SsoCloudMigrationStatusResponse */ - SsoCloudMigrationStatusResponse.fromObject = function fromObject(object, long) { + SsoCloudMigrationStatusResponse.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudMigrationStatusResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudMigrationStatusResponse(); if (object.success != null) message.success = Boolean(object.success); @@ -142417,7 +132741,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.message = String(object.message); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, true); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = true; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -142426,7 +132750,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(true); if (object.ssoConnectId != null) if ($util.Long) - message.ssoConnectId = $util.Long.fromValue(object.ssoConnectId, true); + (message.ssoConnectId = $util.Long.fromValue(object.ssoConnectId)).unsigned = true; else if (typeof object.ssoConnectId === "string") message.ssoConnectId = parseInt(object.ssoConnectId, 10); else if (typeof object.ssoConnectId === "number") @@ -142437,7 +132761,7 @@ export const SsoCloud = $root.SsoCloud = (() => { message.ssoConnectName = String(object.ssoConnectName); if (object.ssoConnectCloudId != null) if ($util.Long) - message.ssoConnectCloudId = $util.Long.fromValue(object.ssoConnectCloudId, true); + (message.ssoConnectCloudId = $util.Long.fromValue(object.ssoConnectCloudId)).unsigned = true; else if (typeof object.ssoConnectCloudId === "string") message.ssoConnectCloudId = parseInt(object.ssoConnectCloudId, 10); else if (typeof object.ssoConnectCloudId === "number") @@ -142457,7 +132781,7 @@ export const SsoCloud = $root.SsoCloud = (() => { for (let i = 0; i < object.migratedUsers.length; ++i) { if (typeof object.migratedUsers[i] !== "object") throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse.migratedUsers: object expected"); - message.migratedUsers[i] = $root.SsoCloud.SsoCloudMigrationUserInfo.fromObject(object.migratedUsers[i], long + 1); + message.migratedUsers[i] = $root.SsoCloud.SsoCloudMigrationUserInfo.fromObject(object.migratedUsers[i]); } } if (object.unmigratedUsers) { @@ -142467,7 +132791,7 @@ export const SsoCloud = $root.SsoCloud = (() => { for (let i = 0; i < object.unmigratedUsers.length; ++i) { if (typeof object.unmigratedUsers[i] !== "object") throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse.unmigratedUsers: object expected"); - message.unmigratedUsers[i] = $root.SsoCloud.SsoCloudMigrationUserInfo.fromObject(object.unmigratedUsers[i], long + 1); + message.unmigratedUsers[i] = $root.SsoCloud.SsoCloudMigrationUserInfo.fromObject(object.unmigratedUsers[i]); } } return message; @@ -142482,13 +132806,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudMigrationStatusResponse.toObject = function toObject(message, options, q) { + SsoCloudMigrationStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.migratedUsers = []; @@ -142499,20 +132819,20 @@ export const SsoCloud = $root.SsoCloud = (() => { object.message = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoConnectId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoConnectId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoConnectId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoConnectId = options.longs === String ? "0" : 0; object.ssoConnectName = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoConnectCloudId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoConnectCloudId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoConnectCloudId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoConnectCloudId = options.longs === String ? "0" : 0; object.ssoConnectCloudName = ""; object.totalUsersCount = 0; object.usersMigratedCount = 0; @@ -142522,25 +132842,19 @@ export const SsoCloud = $root.SsoCloud = (() => { if (message.message != null && message.hasOwnProperty("message")) object.message = message.message; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, true).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber(true) : message.nodeId; if (message.ssoConnectId != null && message.hasOwnProperty("ssoConnectId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoConnectId = typeof message.ssoConnectId === "number" ? BigInt(message.ssoConnectId) : $util.Long.fromBits(message.ssoConnectId.low >>> 0, message.ssoConnectId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoConnectId === "number") + if (typeof message.ssoConnectId === "number") object.ssoConnectId = options.longs === String ? String(message.ssoConnectId) : message.ssoConnectId; else object.ssoConnectId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoConnectId) : options.longs === Number ? new $util.LongBits(message.ssoConnectId.low >>> 0, message.ssoConnectId.high >>> 0).toNumber(true) : message.ssoConnectId; if (message.ssoConnectName != null && message.hasOwnProperty("ssoConnectName")) object.ssoConnectName = message.ssoConnectName; if (message.ssoConnectCloudId != null && message.hasOwnProperty("ssoConnectCloudId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoConnectCloudId = typeof message.ssoConnectCloudId === "number" ? BigInt(message.ssoConnectCloudId) : $util.Long.fromBits(message.ssoConnectCloudId.low >>> 0, message.ssoConnectCloudId.high >>> 0, true).toBigInt(); - else if (typeof message.ssoConnectCloudId === "number") + if (typeof message.ssoConnectCloudId === "number") object.ssoConnectCloudId = options.longs === String ? String(message.ssoConnectCloudId) : message.ssoConnectCloudId; else object.ssoConnectCloudId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoConnectCloudId) : options.longs === Number ? new $util.LongBits(message.ssoConnectCloudId.low >>> 0, message.ssoConnectCloudId.high >>> 0).toNumber(true) : message.ssoConnectCloudId; @@ -142553,12 +132867,12 @@ export const SsoCloud = $root.SsoCloud = (() => { if (message.migratedUsers && message.migratedUsers.length) { object.migratedUsers = []; for (let j = 0; j < message.migratedUsers.length; ++j) - object.migratedUsers[j] = $root.SsoCloud.SsoCloudMigrationUserInfo.toObject(message.migratedUsers[j], options, q + 1); + object.migratedUsers[j] = $root.SsoCloud.SsoCloudMigrationUserInfo.toObject(message.migratedUsers[j], options); } if (message.unmigratedUsers && message.unmigratedUsers.length) { object.unmigratedUsers = []; for (let j = 0; j < message.unmigratedUsers.length; ++j) - object.unmigratedUsers[j] = $root.SsoCloud.SsoCloudMigrationUserInfo.toObject(message.unmigratedUsers[j], options, q + 1); + object.unmigratedUsers[j] = $root.SsoCloud.SsoCloudMigrationUserInfo.toObject(message.unmigratedUsers[j], options); } return object; }; @@ -142615,7 +132929,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudMigrationUserInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -142672,13 +132986,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SsoCloudMigrationUserInfo.encode = function encode(message, writer, q) { + SsoCloudMigrationUserInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.userId); if (message.email != null && Object.hasOwnProperty.call(message, "email")) @@ -142714,18 +133024,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SsoCloudMigrationUserInfo.decode = function decode(reader, length, error, long) { + SsoCloudMigrationUserInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudMigrationUserInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.uint32(); @@ -142744,7 +133048,7 @@ export const SsoCloud = $root.SsoCloud = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -142775,13 +133079,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SsoCloudMigrationUserInfo.verify = function verify(message, long) { + SsoCloudMigrationUserInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -142805,13 +133105,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {Object.} object Plain object * @returns {SsoCloud.SsoCloudMigrationUserInfo} SsoCloudMigrationUserInfo */ - SsoCloudMigrationUserInfo.fromObject = function fromObject(object, long) { + SsoCloudMigrationUserInfo.fromObject = function fromObject(object) { if (object instanceof $root.SsoCloud.SsoCloudMigrationUserInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SsoCloud.SsoCloudMigrationUserInfo(); if (object.userId != null) message.userId = object.userId >>> 0; @@ -142833,13 +133129,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SsoCloudMigrationUserInfo.toObject = function toObject(message, options, q) { + SsoCloudMigrationUserInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -142922,7 +133214,7 @@ export const SemanticVersion = $root.SemanticVersion = (() => { function Version(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -142979,13 +133271,9 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encode = function encode(message, writer, q) { + Version.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.major != null && Object.hasOwnProperty.call(message, "major")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.major); if (message.minor != null && Object.hasOwnProperty.call(message, "minor")) @@ -143021,18 +133309,12 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decode = function decode(reader, length, error, long) { + Version.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SemanticVersion.Version(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.major = reader.int32(); @@ -143051,7 +133333,7 @@ export const SemanticVersion = $root.SemanticVersion = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -143082,13 +133364,9 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Version.verify = function verify(message, long) { + Version.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.major != null && message.hasOwnProperty("major")) if (!$util.isInteger(message.major)) return "major: integer expected"; @@ -143112,13 +133390,9 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @param {Object.} object Plain object * @returns {SemanticVersion.Version} Version */ - Version.fromObject = function fromObject(object, long) { + Version.fromObject = function fromObject(object) { if (object instanceof $root.SemanticVersion.Version) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.SemanticVersion.Version(); if (object.major != null) message.major = object.major | 0; @@ -143140,13 +133414,9 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Version.toObject = function toObject(message, options, q) { + Version.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.major = 0; @@ -143243,7 +133513,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function BreachWatchRecordRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -143300,13 +133570,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchRecordRequest.encode = function encode(message, writer, q) { + BreachWatchRecordRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) @@ -143342,18 +133608,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchRecordRequest.decode = function decode(reader, length, error, long) { + BreachWatchRecordRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchRecordRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -143372,7 +133632,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -143403,13 +133663,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchRecordRequest.verify = function verify(message, long) { + BreachWatchRecordRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -143438,13 +133694,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.BreachWatchRecordRequest} BreachWatchRecordRequest */ - BreachWatchRecordRequest.fromObject = function fromObject(object, long) { + BreachWatchRecordRequest.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.BreachWatchRecordRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.BreachWatchRecordRequest(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -143486,13 +133738,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchRecordRequest.toObject = function toObject(message, options, q) { + BreachWatchRecordRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -143574,7 +133822,7 @@ export const BreachWatch = $root.BreachWatch = (() => { this.breachWatchRecordRequest = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -143615,16 +133863,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchUpdateRequest.encode = function encode(message, writer, q) { + BreachWatchUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.breachWatchRecordRequest != null && message.breachWatchRecordRequest.length) for (let i = 0; i < message.breachWatchRecordRequest.length; ++i) - $root.BreachWatch.BreachWatchRecordRequest.encode(message.breachWatchRecordRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BreachWatch.BreachWatchRecordRequest.encode(message.breachWatchRecordRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedData); return writer; @@ -143654,23 +133898,17 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchUpdateRequest.decode = function decode(reader, length, error, long) { + BreachWatchUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.breachWatchRecordRequest && message.breachWatchRecordRequest.length)) message.breachWatchRecordRequest = []; - message.breachWatchRecordRequest.push($root.BreachWatch.BreachWatchRecordRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.breachWatchRecordRequest.push($root.BreachWatch.BreachWatchRecordRequest.decode(reader, reader.uint32())); break; } case 2: { @@ -143678,7 +133916,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -143709,18 +133947,14 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchUpdateRequest.verify = function verify(message, long) { + BreachWatchUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.breachWatchRecordRequest != null && message.hasOwnProperty("breachWatchRecordRequest")) { if (!Array.isArray(message.breachWatchRecordRequest)) return "breachWatchRecordRequest: array expected"; for (let i = 0; i < message.breachWatchRecordRequest.length; ++i) { - let error = $root.BreachWatch.BreachWatchRecordRequest.verify(message.breachWatchRecordRequest[i], long + 1); + let error = $root.BreachWatch.BreachWatchRecordRequest.verify(message.breachWatchRecordRequest[i]); if (error) return "breachWatchRecordRequest." + error; } @@ -143739,13 +133973,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.BreachWatchUpdateRequest} BreachWatchUpdateRequest */ - BreachWatchUpdateRequest.fromObject = function fromObject(object, long) { + BreachWatchUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.BreachWatchUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.BreachWatchUpdateRequest(); if (object.breachWatchRecordRequest) { if (!Array.isArray(object.breachWatchRecordRequest)) @@ -143754,7 +133984,7 @@ export const BreachWatch = $root.BreachWatch = (() => { for (let i = 0; i < object.breachWatchRecordRequest.length; ++i) { if (typeof object.breachWatchRecordRequest[i] !== "object") throw TypeError(".BreachWatch.BreachWatchUpdateRequest.breachWatchRecordRequest: object expected"); - message.breachWatchRecordRequest[i] = $root.BreachWatch.BreachWatchRecordRequest.fromObject(object.breachWatchRecordRequest[i], long + 1); + message.breachWatchRecordRequest[i] = $root.BreachWatch.BreachWatchRecordRequest.fromObject(object.breachWatchRecordRequest[i]); } } if (object.encryptedData != null) @@ -143774,13 +134004,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchUpdateRequest.toObject = function toObject(message, options, q) { + BreachWatchUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.breachWatchRecordRequest = []; @@ -143795,7 +134021,7 @@ export const BreachWatch = $root.BreachWatch = (() => { if (message.breachWatchRecordRequest && message.breachWatchRecordRequest.length) { object.breachWatchRecordRequest = []; for (let j = 0; j < message.breachWatchRecordRequest.length; ++j) - object.breachWatchRecordRequest[j] = $root.BreachWatch.BreachWatchRecordRequest.toObject(message.breachWatchRecordRequest[j], options, q + 1); + object.breachWatchRecordRequest[j] = $root.BreachWatch.BreachWatchRecordRequest.toObject(message.breachWatchRecordRequest[j], options); } if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) object.encryptedData = options.bytes === String ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedData) : message.encryptedData; @@ -143853,7 +134079,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function BreachWatchRecordStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -143902,13 +134128,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchRecordStatus.encode = function encode(message, writer, q) { + BreachWatchRecordStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -143942,18 +134164,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchRecordStatus.decode = function decode(reader, length, error, long) { + BreachWatchRecordStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchRecordStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -143968,7 +134184,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -143999,13 +134215,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchRecordStatus.verify = function verify(message, long) { + BreachWatchRecordStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -144026,13 +134238,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.BreachWatchRecordStatus} BreachWatchRecordStatus */ - BreachWatchRecordStatus.fromObject = function fromObject(object, long) { + BreachWatchRecordStatus.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.BreachWatchRecordStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.BreachWatchRecordStatus(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -144055,13 +134263,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchRecordStatus.toObject = function toObject(message, options, q) { + BreachWatchRecordStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -144133,7 +134337,7 @@ export const BreachWatch = $root.BreachWatch = (() => { this.breachWatchRecordStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -144166,16 +134370,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchUpdateResponse.encode = function encode(message, writer, q) { + BreachWatchUpdateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.breachWatchRecordStatus != null && message.breachWatchRecordStatus.length) for (let i = 0; i < message.breachWatchRecordStatus.length; ++i) - $root.BreachWatch.BreachWatchRecordStatus.encode(message.breachWatchRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BreachWatch.BreachWatchRecordStatus.encode(message.breachWatchRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -144203,27 +134403,21 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchUpdateResponse.decode = function decode(reader, length, error, long) { + BreachWatchUpdateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.breachWatchRecordStatus && message.breachWatchRecordStatus.length)) message.breachWatchRecordStatus = []; - message.breachWatchRecordStatus.push($root.BreachWatch.BreachWatchRecordStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.breachWatchRecordStatus.push($root.BreachWatch.BreachWatchRecordStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -144254,18 +134448,14 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchUpdateResponse.verify = function verify(message, long) { + BreachWatchUpdateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.breachWatchRecordStatus != null && message.hasOwnProperty("breachWatchRecordStatus")) { if (!Array.isArray(message.breachWatchRecordStatus)) return "breachWatchRecordStatus: array expected"; for (let i = 0; i < message.breachWatchRecordStatus.length; ++i) { - let error = $root.BreachWatch.BreachWatchRecordStatus.verify(message.breachWatchRecordStatus[i], long + 1); + let error = $root.BreachWatch.BreachWatchRecordStatus.verify(message.breachWatchRecordStatus[i]); if (error) return "breachWatchRecordStatus." + error; } @@ -144281,13 +134471,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.BreachWatchUpdateResponse} BreachWatchUpdateResponse */ - BreachWatchUpdateResponse.fromObject = function fromObject(object, long) { + BreachWatchUpdateResponse.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.BreachWatchUpdateResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.BreachWatchUpdateResponse(); if (object.breachWatchRecordStatus) { if (!Array.isArray(object.breachWatchRecordStatus)) @@ -144296,7 +134482,7 @@ export const BreachWatch = $root.BreachWatch = (() => { for (let i = 0; i < object.breachWatchRecordStatus.length; ++i) { if (typeof object.breachWatchRecordStatus[i] !== "object") throw TypeError(".BreachWatch.BreachWatchUpdateResponse.breachWatchRecordStatus: object expected"); - message.breachWatchRecordStatus[i] = $root.BreachWatch.BreachWatchRecordStatus.fromObject(object.breachWatchRecordStatus[i], long + 1); + message.breachWatchRecordStatus[i] = $root.BreachWatch.BreachWatchRecordStatus.fromObject(object.breachWatchRecordStatus[i]); } } return message; @@ -144311,20 +134497,16 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchUpdateResponse.toObject = function toObject(message, options, q) { + BreachWatchUpdateResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.breachWatchRecordStatus = []; if (message.breachWatchRecordStatus && message.breachWatchRecordStatus.length) { object.breachWatchRecordStatus = []; for (let j = 0; j < message.breachWatchRecordStatus.length; ++j) - object.breachWatchRecordStatus[j] = $root.BreachWatch.BreachWatchRecordStatus.toObject(message.breachWatchRecordStatus[j], options, q + 1); + object.breachWatchRecordStatus[j] = $root.BreachWatch.BreachWatchRecordStatus.toObject(message.breachWatchRecordStatus[j], options); } return object; }; @@ -144378,7 +134560,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function BreachWatchTokenRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -144411,13 +134593,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchTokenRequest.encode = function encode(message, writer, q) { + BreachWatchTokenRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.breachWatchToken != null && Object.hasOwnProperty.call(message, "breachWatchToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.breachWatchToken); return writer; @@ -144447,25 +134625,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchTokenRequest.decode = function decode(reader, length, error, long) { + BreachWatchTokenRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchTokenRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.breachWatchToken = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -144496,13 +134668,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchTokenRequest.verify = function verify(message, long) { + BreachWatchTokenRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.breachWatchToken != null && message.hasOwnProperty("breachWatchToken")) if (!(message.breachWatchToken && typeof message.breachWatchToken.length === "number" || $util.isString(message.breachWatchToken))) return "breachWatchToken: buffer expected"; @@ -144517,13 +134685,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.BreachWatchTokenRequest} BreachWatchTokenRequest */ - BreachWatchTokenRequest.fromObject = function fromObject(object, long) { + BreachWatchTokenRequest.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.BreachWatchTokenRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.BreachWatchTokenRequest(); if (object.breachWatchToken != null) if (typeof object.breachWatchToken === "string") @@ -144542,13 +134706,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchTokenRequest.toObject = function toObject(message, options, q) { + BreachWatchTokenRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -144613,7 +134773,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function BreachWatchTokenResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -144654,13 +134814,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchTokenResponse.encode = function encode(message, writer, q) { + BreachWatchTokenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.breachWatchToken != null && Object.hasOwnProperty.call(message, "breachWatchToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.breachWatchToken); if (message.clientEncrypted != null && Object.hasOwnProperty.call(message, "clientEncrypted")) @@ -144692,18 +134848,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchTokenResponse.decode = function decode(reader, length, error, long) { + BreachWatchTokenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.breachWatchToken = reader.bytes(); @@ -144714,7 +134864,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -144745,13 +134895,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchTokenResponse.verify = function verify(message, long) { + BreachWatchTokenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.breachWatchToken != null && message.hasOwnProperty("breachWatchToken")) if (!(message.breachWatchToken && typeof message.breachWatchToken.length === "number" || $util.isString(message.breachWatchToken))) return "breachWatchToken: buffer expected"; @@ -144769,13 +134915,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.BreachWatchTokenResponse} BreachWatchTokenResponse */ - BreachWatchTokenResponse.fromObject = function fromObject(object, long) { + BreachWatchTokenResponse.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.BreachWatchTokenResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.BreachWatchTokenResponse(); if (object.breachWatchToken != null) if (typeof object.breachWatchToken === "string") @@ -144796,13 +134938,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchTokenResponse.toObject = function toObject(message, options, q) { + BreachWatchTokenResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -144872,7 +135010,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function AnonymizedTokenResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -144921,13 +135059,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AnonymizedTokenResponse.encode = function encode(message, writer, q) { + AnonymizedTokenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.domainToken != null && Object.hasOwnProperty.call(message, "domainToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.domainToken); if (message.emailToken != null && Object.hasOwnProperty.call(message, "emailToken")) @@ -144961,18 +135095,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AnonymizedTokenResponse.decode = function decode(reader, length, error, long) { + AnonymizedTokenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.AnonymizedTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.domainToken = reader.bytes(); @@ -144987,7 +135115,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -145018,13 +135146,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AnonymizedTokenResponse.verify = function verify(message, long) { + AnonymizedTokenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.domainToken != null && message.hasOwnProperty("domainToken")) if (!(message.domainToken && typeof message.domainToken.length === "number" || $util.isString(message.domainToken))) return "domainToken: buffer expected"; @@ -145045,13 +135169,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.AnonymizedTokenResponse} AnonymizedTokenResponse */ - AnonymizedTokenResponse.fromObject = function fromObject(object, long) { + AnonymizedTokenResponse.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.AnonymizedTokenResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.AnonymizedTokenResponse(); if (object.domainToken != null) if (typeof object.domainToken === "string") @@ -145080,13 +135200,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AnonymizedTokenResponse.toObject = function toObject(message, options, q) { + AnonymizedTokenResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -145170,7 +135286,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function HashCheck(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -145211,13 +135327,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HashCheck.encode = function encode(message, writer, q) { + HashCheck.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.hash1 != null && Object.hasOwnProperty.call(message, "hash1")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash1); if (message.euid != null && Object.hasOwnProperty.call(message, "euid")) @@ -145249,18 +135361,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HashCheck.decode = function decode(reader, length, error, long) { + HashCheck.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.HashCheck(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.hash1 = reader.bytes(); @@ -145271,7 +135377,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -145302,13 +135408,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HashCheck.verify = function verify(message, long) { + HashCheck.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.hash1 != null && message.hasOwnProperty("hash1")) if (!(message.hash1 && typeof message.hash1.length === "number" || $util.isString(message.hash1))) return "hash1: buffer expected"; @@ -145326,13 +135428,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.HashCheck} HashCheck */ - HashCheck.fromObject = function fromObject(object, long) { + HashCheck.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.HashCheck) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.HashCheck(); if (object.hash1 != null) if (typeof object.hash1 === "string") @@ -145356,13 +135454,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HashCheck.toObject = function toObject(message, options, q) { + HashCheck.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -145440,7 +135534,7 @@ export const BreachWatch = $root.BreachWatch = (() => { this.removedEuid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -145489,18 +135583,14 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchStatusRequest.encode = function encode(message, writer, q) { + BreachWatchStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.anonymizedToken != null && Object.hasOwnProperty.call(message, "anonymizedToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.anonymizedToken); if (message.hashCheck != null && message.hashCheck.length) for (let i = 0; i < message.hashCheck.length; ++i) - $root.BreachWatch.HashCheck.encode(message.hashCheck[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BreachWatch.HashCheck.encode(message.hashCheck[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.removedEuid != null && message.removedEuid.length) for (let i = 0; i < message.removedEuid.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.removedEuid[i]); @@ -145531,18 +135621,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchStatusRequest.decode = function decode(reader, length, error, long) { + BreachWatchStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.anonymizedToken = reader.bytes(); @@ -145551,7 +135635,7 @@ export const BreachWatch = $root.BreachWatch = (() => { case 2: { if (!(message.hashCheck && message.hashCheck.length)) message.hashCheck = []; - message.hashCheck.push($root.BreachWatch.HashCheck.decode(reader, reader.uint32(), undefined, long + 1)); + message.hashCheck.push($root.BreachWatch.HashCheck.decode(reader, reader.uint32())); break; } case 3: { @@ -145561,7 +135645,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -145592,13 +135676,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchStatusRequest.verify = function verify(message, long) { + BreachWatchStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.anonymizedToken != null && message.hasOwnProperty("anonymizedToken")) if (!(message.anonymizedToken && typeof message.anonymizedToken.length === "number" || $util.isString(message.anonymizedToken))) return "anonymizedToken: buffer expected"; @@ -145606,7 +135686,7 @@ export const BreachWatch = $root.BreachWatch = (() => { if (!Array.isArray(message.hashCheck)) return "hashCheck: array expected"; for (let i = 0; i < message.hashCheck.length; ++i) { - let error = $root.BreachWatch.HashCheck.verify(message.hashCheck[i], long + 1); + let error = $root.BreachWatch.HashCheck.verify(message.hashCheck[i]); if (error) return "hashCheck." + error; } @@ -145629,13 +135709,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.BreachWatchStatusRequest} BreachWatchStatusRequest */ - BreachWatchStatusRequest.fromObject = function fromObject(object, long) { + BreachWatchStatusRequest.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.BreachWatchStatusRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.BreachWatchStatusRequest(); if (object.anonymizedToken != null) if (typeof object.anonymizedToken === "string") @@ -145649,7 +135725,7 @@ export const BreachWatch = $root.BreachWatch = (() => { for (let i = 0; i < object.hashCheck.length; ++i) { if (typeof object.hashCheck[i] !== "object") throw TypeError(".BreachWatch.BreachWatchStatusRequest.hashCheck: object expected"); - message.hashCheck[i] = $root.BreachWatch.HashCheck.fromObject(object.hashCheck[i], long + 1); + message.hashCheck[i] = $root.BreachWatch.HashCheck.fromObject(object.hashCheck[i]); } } if (object.removedEuid) { @@ -145674,13 +135750,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchStatusRequest.toObject = function toObject(message, options, q) { + BreachWatchStatusRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.hashCheck = []; @@ -145699,7 +135771,7 @@ export const BreachWatch = $root.BreachWatch = (() => { if (message.hashCheck && message.hashCheck.length) { object.hashCheck = []; for (let j = 0; j < message.hashCheck.length; ++j) - object.hashCheck[j] = $root.BreachWatch.HashCheck.toObject(message.hashCheck[j], options, q + 1); + object.hashCheck[j] = $root.BreachWatch.HashCheck.toObject(message.hashCheck[j], options); } if (message.removedEuid && message.removedEuid.length) { object.removedEuid = []; @@ -145760,7 +135832,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function HashStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -145809,13 +135881,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HashStatus.encode = function encode(message, writer, q) { + HashStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.hash1 != null && Object.hasOwnProperty.call(message, "hash1")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash1); if (message.euid != null && Object.hasOwnProperty.call(message, "euid")) @@ -145849,18 +135917,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HashStatus.decode = function decode(reader, length, error, long) { + HashStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.HashStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.hash1 = reader.bytes(); @@ -145875,7 +135937,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -145906,13 +135968,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HashStatus.verify = function verify(message, long) { + HashStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.hash1 != null && message.hasOwnProperty("hash1")) if (!(message.hash1 && typeof message.hash1.length === "number" || $util.isString(message.hash1))) return "hash1: buffer expected"; @@ -145933,13 +135991,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.HashStatus} HashStatus */ - HashStatus.fromObject = function fromObject(object, long) { + HashStatus.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.HashStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.HashStatus(); if (object.hash1 != null) if (typeof object.hash1 === "string") @@ -145965,13 +136019,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HashStatus.toObject = function toObject(message, options, q) { + HashStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -146049,7 +136099,7 @@ export const BreachWatch = $root.BreachWatch = (() => { this.hashStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -146082,16 +136132,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchStatusResponse.encode = function encode(message, writer, q) { + BreachWatchStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.hashStatus != null && message.hashStatus.length) for (let i = 0; i < message.hashStatus.length; ++i) - $root.BreachWatch.HashStatus.encode(message.hashStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BreachWatch.HashStatus.encode(message.hashStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -146119,27 +136165,21 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchStatusResponse.decode = function decode(reader, length, error, long) { + BreachWatchStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 2: { if (!(message.hashStatus && message.hashStatus.length)) message.hashStatus = []; - message.hashStatus.push($root.BreachWatch.HashStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.hashStatus.push($root.BreachWatch.HashStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -146170,18 +136210,14 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchStatusResponse.verify = function verify(message, long) { + BreachWatchStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.hashStatus != null && message.hasOwnProperty("hashStatus")) { if (!Array.isArray(message.hashStatus)) return "hashStatus: array expected"; for (let i = 0; i < message.hashStatus.length; ++i) { - let error = $root.BreachWatch.HashStatus.verify(message.hashStatus[i], long + 1); + let error = $root.BreachWatch.HashStatus.verify(message.hashStatus[i]); if (error) return "hashStatus." + error; } @@ -146197,13 +136233,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.BreachWatchStatusResponse} BreachWatchStatusResponse */ - BreachWatchStatusResponse.fromObject = function fromObject(object, long) { + BreachWatchStatusResponse.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.BreachWatchStatusResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.BreachWatchStatusResponse(); if (object.hashStatus) { if (!Array.isArray(object.hashStatus)) @@ -146212,7 +136244,7 @@ export const BreachWatch = $root.BreachWatch = (() => { for (let i = 0; i < object.hashStatus.length; ++i) { if (typeof object.hashStatus[i] !== "object") throw TypeError(".BreachWatch.BreachWatchStatusResponse.hashStatus: object expected"); - message.hashStatus[i] = $root.BreachWatch.HashStatus.fromObject(object.hashStatus[i], long + 1); + message.hashStatus[i] = $root.BreachWatch.HashStatus.fromObject(object.hashStatus[i]); } } return message; @@ -146227,20 +136259,16 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchStatusResponse.toObject = function toObject(message, options, q) { + BreachWatchStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.hashStatus = []; if (message.hashStatus && message.hashStatus.length) { object.hashStatus = []; for (let j = 0; j < message.hashStatus.length; ++j) - object.hashStatus[j] = $root.BreachWatch.HashStatus.toObject(message.hashStatus[j], options, q + 1); + object.hashStatus[j] = $root.BreachWatch.HashStatus.toObject(message.hashStatus[j], options); } return object; }; @@ -146295,7 +136323,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function EnterprisePublicKeyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -146336,13 +136364,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterprisePublicKeyResponse.encode = function encode(message, writer, q) { + EnterprisePublicKeyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterprisePublicKey != null && Object.hasOwnProperty.call(message, "enterprisePublicKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.enterprisePublicKey); if (message.enterpriseECCPublicKey != null && Object.hasOwnProperty.call(message, "enterpriseECCPublicKey")) @@ -146374,18 +136398,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterprisePublicKeyResponse.decode = function decode(reader, length, error, long) { + EnterprisePublicKeyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.EnterprisePublicKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterprisePublicKey = reader.bytes(); @@ -146396,7 +136414,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -146427,13 +136445,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterprisePublicKeyResponse.verify = function verify(message, long) { + EnterprisePublicKeyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterprisePublicKey != null && message.hasOwnProperty("enterprisePublicKey")) if (!(message.enterprisePublicKey && typeof message.enterprisePublicKey.length === "number" || $util.isString(message.enterprisePublicKey))) return "enterprisePublicKey: buffer expected"; @@ -146451,13 +136465,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.EnterprisePublicKeyResponse} EnterprisePublicKeyResponse */ - EnterprisePublicKeyResponse.fromObject = function fromObject(object, long) { + EnterprisePublicKeyResponse.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.EnterprisePublicKeyResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.EnterprisePublicKeyResponse(); if (object.enterprisePublicKey != null) if (typeof object.enterprisePublicKey === "string") @@ -146481,13 +136491,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterprisePublicKeyResponse.toObject = function toObject(message, options, q) { + EnterprisePublicKeyResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -146561,7 +136567,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function FreeScanRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -146594,13 +136600,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FreeScanRequest.encode = function encode(message, writer, q) { + FreeScanRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.hashedEmail != null && Object.hasOwnProperty.call(message, "hashedEmail")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hashedEmail); return writer; @@ -146630,25 +136632,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FreeScanRequest.decode = function decode(reader, length, error, long) { + FreeScanRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.FreeScanRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.hashedEmail = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -146679,13 +136675,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FreeScanRequest.verify = function verify(message, long) { + FreeScanRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.hashedEmail != null && message.hasOwnProperty("hashedEmail")) if (!(message.hashedEmail && typeof message.hashedEmail.length === "number" || $util.isString(message.hashedEmail))) return "hashedEmail: buffer expected"; @@ -146700,13 +136692,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.FreeScanRequest} FreeScanRequest */ - FreeScanRequest.fromObject = function fromObject(object, long) { + FreeScanRequest.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.FreeScanRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.FreeScanRequest(); if (object.hashedEmail != null) if (typeof object.hashedEmail === "string") @@ -146725,13 +136713,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FreeScanRequest.toObject = function toObject(message, options, q) { + FreeScanRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -146796,7 +136780,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function FreeScanResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -146837,13 +136821,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FreeScanResponse.encode = function encode(message, writer, q) { + FreeScanResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.emailBreaches != null && Object.hasOwnProperty.call(message, "emailBreaches")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.emailBreaches); if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, "passwordBreaches")) @@ -146875,18 +136855,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FreeScanResponse.decode = function decode(reader, length, error, long) { + FreeScanResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.FreeScanResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.emailBreaches = reader.int32(); @@ -146897,7 +136871,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -146928,13 +136902,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FreeScanResponse.verify = function verify(message, long) { + FreeScanResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.emailBreaches != null && message.hasOwnProperty("emailBreaches")) if (!$util.isInteger(message.emailBreaches)) return "emailBreaches: integer expected"; @@ -146952,13 +136922,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.FreeScanResponse} FreeScanResponse */ - FreeScanResponse.fromObject = function fromObject(object, long) { + FreeScanResponse.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.FreeScanResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.FreeScanResponse(); if (object.emailBreaches != null) message.emailBreaches = object.emailBreaches | 0; @@ -146976,13 +136942,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FreeScanResponse.toObject = function toObject(message, options, q) { + FreeScanResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.emailBreaches = 0; @@ -147044,7 +137006,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function PaidUserRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -147077,13 +137039,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PaidUserRequest.encode = function encode(message, writer, q) { + PaidUserRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); return writer; @@ -147113,25 +137071,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PaidUserRequest.decode = function decode(reader, length, error, long) { + PaidUserRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.PaidUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.email = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -147162,13 +137114,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PaidUserRequest.verify = function verify(message, long) { + PaidUserRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.email != null && message.hasOwnProperty("email")) if (!$util.isString(message.email)) return "email: string expected"; @@ -147183,13 +137131,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.PaidUserRequest} PaidUserRequest */ - PaidUserRequest.fromObject = function fromObject(object, long) { + PaidUserRequest.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.PaidUserRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.PaidUserRequest(); if (object.email != null) message.email = String(object.email); @@ -147205,13 +137149,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PaidUserRequest.toObject = function toObject(message, options, q) { + PaidUserRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.email = ""; @@ -147269,7 +137209,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function PaidUserResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -147302,13 +137242,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PaidUserResponse.encode = function encode(message, writer, q) { + PaidUserResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.paidUser != null && Object.hasOwnProperty.call(message, "paidUser")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.paidUser); return writer; @@ -147338,25 +137274,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PaidUserResponse.decode = function decode(reader, length, error, long) { + PaidUserResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.PaidUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.paidUser = reader.bool(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -147387,13 +137317,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PaidUserResponse.verify = function verify(message, long) { + PaidUserResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.paidUser != null && message.hasOwnProperty("paidUser")) if (typeof message.paidUser !== "boolean") return "paidUser: boolean expected"; @@ -147408,13 +137334,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.PaidUserResponse} PaidUserResponse */ - PaidUserResponse.fromObject = function fromObject(object, long) { + PaidUserResponse.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.PaidUserResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.PaidUserResponse(); if (object.paidUser != null) message.paidUser = Boolean(object.paidUser); @@ -147430,13 +137352,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PaidUserResponse.toObject = function toObject(message, options, q) { + PaidUserResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.paidUser = false; @@ -147494,7 +137412,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function DetailedScanRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -147527,13 +137445,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetailedScanRequest.encode = function encode(message, writer, q) { + DetailedScanRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); return writer; @@ -147563,25 +137477,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetailedScanRequest.decode = function decode(reader, length, error, long) { + DetailedScanRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.DetailedScanRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.email = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -147612,13 +137520,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DetailedScanRequest.verify = function verify(message, long) { + DetailedScanRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.email != null && message.hasOwnProperty("email")) if (!$util.isString(message.email)) return "email: string expected"; @@ -147633,13 +137537,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.DetailedScanRequest} DetailedScanRequest */ - DetailedScanRequest.fromObject = function fromObject(object, long) { + DetailedScanRequest.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.DetailedScanRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.DetailedScanRequest(); if (object.email != null) message.email = String(object.email); @@ -147655,13 +137555,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DetailedScanRequest.toObject = function toObject(message, options, q) { + DetailedScanRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.email = ""; @@ -147719,7 +137615,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function UseOneTimeTokenRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -147752,13 +137648,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UseOneTimeTokenRequest.encode = function encode(message, writer, q) { + UseOneTimeTokenRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.token != null && Object.hasOwnProperty.call(message, "token")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.token); return writer; @@ -147788,25 +137680,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UseOneTimeTokenRequest.decode = function decode(reader, length, error, long) { + UseOneTimeTokenRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.UseOneTimeTokenRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.token = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -147837,13 +137723,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UseOneTimeTokenRequest.verify = function verify(message, long) { + UseOneTimeTokenRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.token != null && message.hasOwnProperty("token")) if (!(message.token && typeof message.token.length === "number" || $util.isString(message.token))) return "token: buffer expected"; @@ -147858,13 +137740,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.UseOneTimeTokenRequest} UseOneTimeTokenRequest */ - UseOneTimeTokenRequest.fromObject = function fromObject(object, long) { + UseOneTimeTokenRequest.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.UseOneTimeTokenRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.UseOneTimeTokenRequest(); if (object.token != null) if (typeof object.token === "string") @@ -147883,13 +137761,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UseOneTimeTokenRequest.toObject = function toObject(message, options, q) { + UseOneTimeTokenRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -147957,7 +137831,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function BreachEvent(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -148022,13 +137896,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachEvent.encode = function encode(message, writer, q) { + BreachEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.site != null && Object.hasOwnProperty.call(message, "site")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.site); if (message.email != null && Object.hasOwnProperty.call(message, "email")) @@ -148066,18 +137936,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachEvent.decode = function decode(reader, length, error, long) { + BreachEvent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachEvent(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.site = reader.string(); @@ -148100,7 +137964,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -148131,13 +137995,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachEvent.verify = function verify(message, long) { + BreachEvent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.site != null && message.hasOwnProperty("site")) if (!$util.isString(message.site)) return "site: string expected"; @@ -148164,13 +138024,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.BreachEvent} BreachEvent */ - BreachEvent.fromObject = function fromObject(object, long) { + BreachEvent.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.BreachEvent) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.BreachEvent(); if (object.site != null) message.site = String(object.site); @@ -148194,13 +138050,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachEvent.toObject = function toObject(message, options, q) { + BreachEvent.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.site = ""; @@ -148275,7 +138127,7 @@ export const BreachWatch = $root.BreachWatch = (() => { this.breachEvents = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -148332,20 +138184,16 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UseOneTimeTokenResponse.encode = function encode(message, writer, q) { + UseOneTimeTokenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.emailBreaches != null && Object.hasOwnProperty.call(message, "emailBreaches")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.emailBreaches); if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, "passwordBreaches")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.passwordBreaches); if (message.breachEvents != null && message.breachEvents.length) for (let i = 0; i < message.breachEvents.length; ++i) - $root.BreachWatch.BreachEvent.encode(message.breachEvents[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BreachWatch.BreachEvent.encode(message.breachEvents[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.email); return writer; @@ -148375,18 +138223,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UseOneTimeTokenResponse.decode = function decode(reader, length, error, long) { + UseOneTimeTokenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.UseOneTimeTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.emailBreaches = reader.int32(); @@ -148399,7 +138241,7 @@ export const BreachWatch = $root.BreachWatch = (() => { case 3: { if (!(message.breachEvents && message.breachEvents.length)) message.breachEvents = []; - message.breachEvents.push($root.BreachWatch.BreachEvent.decode(reader, reader.uint32(), undefined, long + 1)); + message.breachEvents.push($root.BreachWatch.BreachEvent.decode(reader, reader.uint32())); break; } case 4: { @@ -148407,7 +138249,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -148438,13 +138280,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UseOneTimeTokenResponse.verify = function verify(message, long) { + UseOneTimeTokenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.emailBreaches != null && message.hasOwnProperty("emailBreaches")) if (!$util.isInteger(message.emailBreaches)) return "emailBreaches: integer expected"; @@ -148455,7 +138293,7 @@ export const BreachWatch = $root.BreachWatch = (() => { if (!Array.isArray(message.breachEvents)) return "breachEvents: array expected"; for (let i = 0; i < message.breachEvents.length; ++i) { - let error = $root.BreachWatch.BreachEvent.verify(message.breachEvents[i], long + 1); + let error = $root.BreachWatch.BreachEvent.verify(message.breachEvents[i]); if (error) return "breachEvents." + error; } @@ -148474,13 +138312,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.UseOneTimeTokenResponse} UseOneTimeTokenResponse */ - UseOneTimeTokenResponse.fromObject = function fromObject(object, long) { + UseOneTimeTokenResponse.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.UseOneTimeTokenResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.UseOneTimeTokenResponse(); if (object.emailBreaches != null) message.emailBreaches = object.emailBreaches | 0; @@ -148493,7 +138327,7 @@ export const BreachWatch = $root.BreachWatch = (() => { for (let i = 0; i < object.breachEvents.length; ++i) { if (typeof object.breachEvents[i] !== "object") throw TypeError(".BreachWatch.UseOneTimeTokenResponse.breachEvents: object expected"); - message.breachEvents[i] = $root.BreachWatch.BreachEvent.fromObject(object.breachEvents[i], long + 1); + message.breachEvents[i] = $root.BreachWatch.BreachEvent.fromObject(object.breachEvents[i]); } } if (object.email != null) @@ -148510,13 +138344,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UseOneTimeTokenResponse.toObject = function toObject(message, options, q) { + UseOneTimeTokenResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.breachEvents = []; @@ -148532,7 +138362,7 @@ export const BreachWatch = $root.BreachWatch = (() => { if (message.breachEvents && message.breachEvents.length) { object.breachEvents = []; for (let j = 0; j < message.breachEvents.length; ++j) - object.breachEvents[j] = $root.BreachWatch.BreachEvent.toObject(message.breachEvents[j], options, q + 1); + object.breachEvents[j] = $root.BreachWatch.BreachEvent.toObject(message.breachEvents[j], options); } if (message.email != null && message.hasOwnProperty("email")) object.email = message.email; @@ -148589,7 +138419,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function OneTimeUseToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -148630,13 +138460,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneTimeUseToken.encode = function encode(message, writer, q) { + OneTimeUseToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); if (message.pad != null && Object.hasOwnProperty.call(message, "pad")) @@ -148668,18 +138494,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneTimeUseToken.decode = function decode(reader, length, error, long) { + OneTimeUseToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.OneTimeUseToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.email = reader.string(); @@ -148690,7 +138510,7 @@ export const BreachWatch = $root.BreachWatch = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -148721,13 +138541,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OneTimeUseToken.verify = function verify(message, long) { + OneTimeUseToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.email != null && message.hasOwnProperty("email")) if (!$util.isString(message.email)) return "email: string expected"; @@ -148745,13 +138561,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.OneTimeUseToken} OneTimeUseToken */ - OneTimeUseToken.fromObject = function fromObject(object, long) { + OneTimeUseToken.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.OneTimeUseToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.OneTimeUseToken(); if (object.email != null) message.email = String(object.email); @@ -148769,13 +138581,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneTimeUseToken.toObject = function toObject(message, options, q) { + OneTimeUseToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.email = ""; @@ -148837,7 +138645,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function FreePasswordScanRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -148870,13 +138678,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FreePasswordScanRequest.encode = function encode(message, writer, q) { + FreePasswordScanRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.hashedPassword != null && Object.hasOwnProperty.call(message, "hashedPassword")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hashedPassword); return writer; @@ -148906,25 +138710,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FreePasswordScanRequest.decode = function decode(reader, length, error, long) { + FreePasswordScanRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.FreePasswordScanRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.hashedPassword = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -148955,13 +138753,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FreePasswordScanRequest.verify = function verify(message, long) { + FreePasswordScanRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.hashedPassword != null && message.hasOwnProperty("hashedPassword")) if (!(message.hashedPassword && typeof message.hashedPassword.length === "number" || $util.isString(message.hashedPassword))) return "hashedPassword: buffer expected"; @@ -148976,13 +138770,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.FreePasswordScanRequest} FreePasswordScanRequest */ - FreePasswordScanRequest.fromObject = function fromObject(object, long) { + FreePasswordScanRequest.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.FreePasswordScanRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.FreePasswordScanRequest(); if (object.hashedPassword != null) if (typeof object.hashedPassword === "string") @@ -149001,13 +138791,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FreePasswordScanRequest.toObject = function toObject(message, options, q) { + FreePasswordScanRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -149071,7 +138857,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function FreePasswordScanResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -149104,13 +138890,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FreePasswordScanResponse.encode = function encode(message, writer, q) { + FreePasswordScanResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, "passwordBreaches")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.passwordBreaches); return writer; @@ -149140,25 +138922,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FreePasswordScanResponse.decode = function decode(reader, length, error, long) { + FreePasswordScanResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.FreePasswordScanResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.passwordBreaches = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -149189,13 +138965,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FreePasswordScanResponse.verify = function verify(message, long) { + FreePasswordScanResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) if (!$util.isInteger(message.passwordBreaches) && !(message.passwordBreaches && $util.isInteger(message.passwordBreaches.low) && $util.isInteger(message.passwordBreaches.high))) return "passwordBreaches: integer|Long expected"; @@ -149210,17 +138982,13 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {Object.} object Plain object * @returns {BreachWatch.FreePasswordScanResponse} FreePasswordScanResponse */ - FreePasswordScanResponse.fromObject = function fromObject(object, long) { + FreePasswordScanResponse.fromObject = function fromObject(object) { if (object instanceof $root.BreachWatch.FreePasswordScanResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BreachWatch.FreePasswordScanResponse(); if (object.passwordBreaches != null) if ($util.Long) - message.passwordBreaches = $util.Long.fromValue(object.passwordBreaches, false); + (message.passwordBreaches = $util.Long.fromValue(object.passwordBreaches)).unsigned = false; else if (typeof object.passwordBreaches === "string") message.passwordBreaches = parseInt(object.passwordBreaches, 10); else if (typeof object.passwordBreaches === "number") @@ -149239,24 +139007,18 @@ export const BreachWatch = $root.BreachWatch = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FreePasswordScanResponse.toObject = function toObject(message, options, q) { + FreePasswordScanResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.passwordBreaches = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.passwordBreaches = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.passwordBreaches = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.passwordBreaches = options.longs === String ? "0" : 0; if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.passwordBreaches = typeof message.passwordBreaches === "number" ? BigInt(message.passwordBreaches) : $util.Long.fromBits(message.passwordBreaches.low >>> 0, message.passwordBreaches.high >>> 0, false).toBigInt(); - else if (typeof message.passwordBreaches === "number") + if (typeof message.passwordBreaches === "number") object.passwordBreaches = options.longs === String ? String(message.passwordBreaches) : message.passwordBreaches; else object.passwordBreaches = options.longs === String ? $util.Long.prototype.toString.call(message.passwordBreaches) : options.longs === Number ? new $util.LongBits(message.passwordBreaches.low >>> 0, message.passwordBreaches.high >>> 0).toNumber() : message.passwordBreaches; @@ -149326,7 +139088,7 @@ export const Tokens = $root.Tokens = (() => { this.breachWatchRecordRequest = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -149367,16 +139129,12 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchUpdateRequest.encode = function encode(message, writer, q) { + BreachWatchUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.breachWatchRecordRequest != null && message.breachWatchRecordRequest.length) for (let i = 0; i < message.breachWatchRecordRequest.length; ++i) - $root.Tokens.BreachWatchRecordRequest.encode(message.breachWatchRecordRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Tokens.BreachWatchRecordRequest.encode(message.breachWatchRecordRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedData); return writer; @@ -149406,23 +139164,17 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchUpdateRequest.decode = function decode(reader, length, error, long) { + BreachWatchUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.BreachWatchUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.breachWatchRecordRequest && message.breachWatchRecordRequest.length)) message.breachWatchRecordRequest = []; - message.breachWatchRecordRequest.push($root.Tokens.BreachWatchRecordRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.breachWatchRecordRequest.push($root.Tokens.BreachWatchRecordRequest.decode(reader, reader.uint32())); break; } case 2: { @@ -149430,7 +139182,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -149461,18 +139213,14 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchUpdateRequest.verify = function verify(message, long) { + BreachWatchUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.breachWatchRecordRequest != null && message.hasOwnProperty("breachWatchRecordRequest")) { if (!Array.isArray(message.breachWatchRecordRequest)) return "breachWatchRecordRequest: array expected"; for (let i = 0; i < message.breachWatchRecordRequest.length; ++i) { - let error = $root.Tokens.BreachWatchRecordRequest.verify(message.breachWatchRecordRequest[i], long + 1); + let error = $root.Tokens.BreachWatchRecordRequest.verify(message.breachWatchRecordRequest[i]); if (error) return "breachWatchRecordRequest." + error; } @@ -149491,13 +139239,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.BreachWatchUpdateRequest} BreachWatchUpdateRequest */ - BreachWatchUpdateRequest.fromObject = function fromObject(object, long) { + BreachWatchUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.BreachWatchUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.BreachWatchUpdateRequest(); if (object.breachWatchRecordRequest) { if (!Array.isArray(object.breachWatchRecordRequest)) @@ -149506,7 +139250,7 @@ export const Tokens = $root.Tokens = (() => { for (let i = 0; i < object.breachWatchRecordRequest.length; ++i) { if (typeof object.breachWatchRecordRequest[i] !== "object") throw TypeError(".Tokens.BreachWatchUpdateRequest.breachWatchRecordRequest: object expected"); - message.breachWatchRecordRequest[i] = $root.Tokens.BreachWatchRecordRequest.fromObject(object.breachWatchRecordRequest[i], long + 1); + message.breachWatchRecordRequest[i] = $root.Tokens.BreachWatchRecordRequest.fromObject(object.breachWatchRecordRequest[i]); } } if (object.encryptedData != null) @@ -149526,13 +139270,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchUpdateRequest.toObject = function toObject(message, options, q) { + BreachWatchUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.breachWatchRecordRequest = []; @@ -149547,7 +139287,7 @@ export const Tokens = $root.Tokens = (() => { if (message.breachWatchRecordRequest && message.breachWatchRecordRequest.length) { object.breachWatchRecordRequest = []; for (let j = 0; j < message.breachWatchRecordRequest.length; ++j) - object.breachWatchRecordRequest[j] = $root.Tokens.BreachWatchRecordRequest.toObject(message.breachWatchRecordRequest[j], options, q + 1); + object.breachWatchRecordRequest[j] = $root.Tokens.BreachWatchRecordRequest.toObject(message.breachWatchRecordRequest[j], options); } if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) object.encryptedData = options.bytes === String ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedData) : message.encryptedData; @@ -149606,7 +139346,7 @@ export const Tokens = $root.Tokens = (() => { function BreachWatchRecordRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -149663,13 +139403,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchRecordRequest.encode = function encode(message, writer, q) { + BreachWatchRecordRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) @@ -149705,18 +139441,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchRecordRequest.decode = function decode(reader, length, error, long) { + BreachWatchRecordRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.BreachWatchRecordRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -149735,7 +139465,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -149766,13 +139496,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchRecordRequest.verify = function verify(message, long) { + BreachWatchRecordRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -149801,13 +139527,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.BreachWatchRecordRequest} BreachWatchRecordRequest */ - BreachWatchRecordRequest.fromObject = function fromObject(object, long) { + BreachWatchRecordRequest.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.BreachWatchRecordRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.BreachWatchRecordRequest(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -149849,13 +139571,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchRecordRequest.toObject = function toObject(message, options, q) { + BreachWatchRecordRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -149954,7 +139672,7 @@ export const Tokens = $root.Tokens = (() => { this.domains = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -150003,22 +139721,18 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchData.encode = function encode(message, writer, q) { + BreachWatchData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.passwords != null && message.passwords.length) for (let i = 0; i < message.passwords.length; ++i) - $root.Tokens.BWPassword.encode(message.passwords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Tokens.BWPassword.encode(message.passwords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.emails != null && message.emails.length) for (let i = 0; i < message.emails.length; ++i) - $root.Tokens.BWPassword.encode(message.emails[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Tokens.BWPassword.encode(message.emails[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.domains != null && message.domains.length) for (let i = 0; i < message.domains.length; ++i) - $root.Tokens.BWPassword.encode(message.domains[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Tokens.BWPassword.encode(message.domains[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -150046,39 +139760,33 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchData.decode = function decode(reader, length, error, long) { + BreachWatchData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.BreachWatchData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.passwords && message.passwords.length)) message.passwords = []; - message.passwords.push($root.Tokens.BWPassword.decode(reader, reader.uint32(), undefined, long + 1)); + message.passwords.push($root.Tokens.BWPassword.decode(reader, reader.uint32())); break; } case 2: { if (!(message.emails && message.emails.length)) message.emails = []; - message.emails.push($root.Tokens.BWPassword.decode(reader, reader.uint32(), undefined, long + 1)); + message.emails.push($root.Tokens.BWPassword.decode(reader, reader.uint32())); break; } case 3: { if (!(message.domains && message.domains.length)) message.domains = []; - message.domains.push($root.Tokens.BWPassword.decode(reader, reader.uint32(), undefined, long + 1)); + message.domains.push($root.Tokens.BWPassword.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -150109,18 +139817,14 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchData.verify = function verify(message, long) { + BreachWatchData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.passwords != null && message.hasOwnProperty("passwords")) { if (!Array.isArray(message.passwords)) return "passwords: array expected"; for (let i = 0; i < message.passwords.length; ++i) { - let error = $root.Tokens.BWPassword.verify(message.passwords[i], long + 1); + let error = $root.Tokens.BWPassword.verify(message.passwords[i]); if (error) return "passwords." + error; } @@ -150129,7 +139833,7 @@ export const Tokens = $root.Tokens = (() => { if (!Array.isArray(message.emails)) return "emails: array expected"; for (let i = 0; i < message.emails.length; ++i) { - let error = $root.Tokens.BWPassword.verify(message.emails[i], long + 1); + let error = $root.Tokens.BWPassword.verify(message.emails[i]); if (error) return "emails." + error; } @@ -150138,7 +139842,7 @@ export const Tokens = $root.Tokens = (() => { if (!Array.isArray(message.domains)) return "domains: array expected"; for (let i = 0; i < message.domains.length; ++i) { - let error = $root.Tokens.BWPassword.verify(message.domains[i], long + 1); + let error = $root.Tokens.BWPassword.verify(message.domains[i]); if (error) return "domains." + error; } @@ -150154,13 +139858,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.BreachWatchData} BreachWatchData */ - BreachWatchData.fromObject = function fromObject(object, long) { + BreachWatchData.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.BreachWatchData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.BreachWatchData(); if (object.passwords) { if (!Array.isArray(object.passwords)) @@ -150169,7 +139869,7 @@ export const Tokens = $root.Tokens = (() => { for (let i = 0; i < object.passwords.length; ++i) { if (typeof object.passwords[i] !== "object") throw TypeError(".Tokens.BreachWatchData.passwords: object expected"); - message.passwords[i] = $root.Tokens.BWPassword.fromObject(object.passwords[i], long + 1); + message.passwords[i] = $root.Tokens.BWPassword.fromObject(object.passwords[i]); } } if (object.emails) { @@ -150179,7 +139879,7 @@ export const Tokens = $root.Tokens = (() => { for (let i = 0; i < object.emails.length; ++i) { if (typeof object.emails[i] !== "object") throw TypeError(".Tokens.BreachWatchData.emails: object expected"); - message.emails[i] = $root.Tokens.BWPassword.fromObject(object.emails[i], long + 1); + message.emails[i] = $root.Tokens.BWPassword.fromObject(object.emails[i]); } } if (object.domains) { @@ -150189,7 +139889,7 @@ export const Tokens = $root.Tokens = (() => { for (let i = 0; i < object.domains.length; ++i) { if (typeof object.domains[i] !== "object") throw TypeError(".Tokens.BreachWatchData.domains: object expected"); - message.domains[i] = $root.Tokens.BWPassword.fromObject(object.domains[i], long + 1); + message.domains[i] = $root.Tokens.BWPassword.fromObject(object.domains[i]); } } return message; @@ -150204,13 +139904,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchData.toObject = function toObject(message, options, q) { + BreachWatchData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.passwords = []; @@ -150220,17 +139916,17 @@ export const Tokens = $root.Tokens = (() => { if (message.passwords && message.passwords.length) { object.passwords = []; for (let j = 0; j < message.passwords.length; ++j) - object.passwords[j] = $root.Tokens.BWPassword.toObject(message.passwords[j], options, q + 1); + object.passwords[j] = $root.Tokens.BWPassword.toObject(message.passwords[j], options); } if (message.emails && message.emails.length) { object.emails = []; for (let j = 0; j < message.emails.length; ++j) - object.emails[j] = $root.Tokens.BWPassword.toObject(message.emails[j], options, q + 1); + object.emails[j] = $root.Tokens.BWPassword.toObject(message.emails[j], options); } if (message.domains && message.domains.length) { object.domains = []; for (let j = 0; j < message.domains.length; ++j) - object.domains[j] = $root.Tokens.BWPassword.toObject(message.domains[j], options, q + 1); + object.domains[j] = $root.Tokens.BWPassword.toObject(message.domains[j], options); } return object; }; @@ -150287,7 +139983,7 @@ export const Tokens = $root.Tokens = (() => { function BWPassword(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -150344,13 +140040,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BWPassword.encode = function encode(message, writer, q) { + BWPassword.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.value != null && Object.hasOwnProperty.call(message, "value")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); if (message.resolved != null && Object.hasOwnProperty.call(message, "resolved")) @@ -150386,18 +140078,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BWPassword.decode = function decode(reader, length, error, long) { + BWPassword.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.BWPassword(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.value = reader.string(); @@ -150416,7 +140102,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -150447,13 +140133,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BWPassword.verify = function verify(message, long) { + BWPassword.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.value != null && message.hasOwnProperty("value")) if (!$util.isString(message.value)) return "value: string expected"; @@ -150485,19 +140167,15 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.BWPassword} BWPassword */ - BWPassword.fromObject = function fromObject(object, long) { + BWPassword.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.BWPassword) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.BWPassword(); if (object.value != null) message.value = String(object.value); if (object.resolved != null) if ($util.Long) - message.resolved = $util.Long.fromValue(object.resolved, true); + (message.resolved = $util.Long.fromValue(object.resolved)).unsigned = true; else if (typeof object.resolved === "string") message.resolved = parseInt(object.resolved, 10); else if (typeof object.resolved === "number") @@ -150549,21 +140227,17 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BWPassword.toObject = function toObject(message, options, q) { + BWPassword.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.value = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.resolved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.resolved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.resolved = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.resolved = options.longs === String ? "0" : 0; object.status = options.enums === String ? "GOOD" : 0; if (options.bytes === String) object.euid = ""; @@ -150576,9 +140250,7 @@ export const Tokens = $root.Tokens = (() => { if (message.value != null && message.hasOwnProperty("value")) object.value = message.value; if (message.resolved != null && message.hasOwnProperty("resolved")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.resolved = typeof message.resolved === "number" ? BigInt(message.resolved) : $util.Long.fromBits(message.resolved.low >>> 0, message.resolved.high >>> 0, true).toBigInt(); - else if (typeof message.resolved === "number") + if (typeof message.resolved === "number") object.resolved = options.longs === String ? String(message.resolved) : message.resolved; else object.resolved = options.longs === String ? $util.Long.prototype.toString.call(message.resolved) : options.longs === Number ? new $util.LongBits(message.resolved.low >>> 0, message.resolved.high >>> 0).toNumber(true) : message.resolved; @@ -150659,7 +140331,7 @@ export const Tokens = $root.Tokens = (() => { function DeviceToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -150700,13 +140372,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceToken.encode = function encode(message, writer, q) { + DeviceToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -150738,18 +140406,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceToken.decode = function decode(reader, length, error, long) { + DeviceToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.DeviceToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.deviceId = reader.int64(); @@ -150760,7 +140422,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -150791,13 +140453,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceToken.verify = function verify(message, long) { + DeviceToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceId != null && message.hasOwnProperty("deviceId")) if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) return "deviceId: integer|Long expected"; @@ -150815,17 +140473,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.DeviceToken} DeviceToken */ - DeviceToken.fromObject = function fromObject(object, long) { + DeviceToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.DeviceToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.DeviceToken(); if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -150846,26 +140500,20 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceToken.toObject = function toObject(message, options, q) { + DeviceToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; object.region = 0; } if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; @@ -150926,7 +140574,7 @@ export const Tokens = $root.Tokens = (() => { function SSOLoginToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -150983,13 +140631,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SSOLoginToken.encode = function encode(message, writer, q) { + SSOLoginToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ssoServiceProviderId); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -151025,18 +140669,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SSOLoginToken.decode = function decode(reader, length, error, long) { + SSOLoginToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SSOLoginToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ssoServiceProviderId = reader.int64(); @@ -151055,7 +140693,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -151086,13 +140724,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SSOLoginToken.verify = function verify(message, long) { + SSOLoginToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) return "ssoServiceProviderId: integer|Long expected"; @@ -151116,17 +140750,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.SSOLoginToken} SSOLoginToken */ - SSOLoginToken.fromObject = function fromObject(object, long) { + SSOLoginToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.SSOLoginToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.SSOLoginToken(); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, false); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = false; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -151151,28 +140781,22 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SSOLoginToken.toObject = function toObject(message, options, q) { + SSOLoginToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; object.username = ""; object.alias = ""; object.displayname = ""; } if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, false).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber() : message.ssoServiceProviderId; @@ -151235,7 +140859,7 @@ export const Tokens = $root.Tokens = (() => { function PasskeyLoginToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -151276,13 +140900,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PasskeyLoginToken.encode = function encode(message, writer, q) { + PasskeyLoginToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.passkeyVerificationMS != null && Object.hasOwnProperty.call(message, "passkeyVerificationMS")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.passkeyVerificationMS); if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) @@ -151314,18 +140934,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PasskeyLoginToken.decode = function decode(reader, length, error, long) { + PasskeyLoginToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.PasskeyLoginToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.passkeyVerificationMS = reader.int64(); @@ -151336,7 +140950,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -151367,13 +140981,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PasskeyLoginToken.verify = function verify(message, long) { + PasskeyLoginToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.passkeyVerificationMS != null && message.hasOwnProperty("passkeyVerificationMS")) if (!$util.isInteger(message.passkeyVerificationMS) && !(message.passkeyVerificationMS && $util.isInteger(message.passkeyVerificationMS.low) && $util.isInteger(message.passkeyVerificationMS.high))) return "passkeyVerificationMS: integer|Long expected"; @@ -151391,17 +141001,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.PasskeyLoginToken} PasskeyLoginToken */ - PasskeyLoginToken.fromObject = function fromObject(object, long) { + PasskeyLoginToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.PasskeyLoginToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.PasskeyLoginToken(); if (object.passkeyVerificationMS != null) if ($util.Long) - message.passkeyVerificationMS = $util.Long.fromValue(object.passkeyVerificationMS, false); + (message.passkeyVerificationMS = $util.Long.fromValue(object.passkeyVerificationMS)).unsigned = false; else if (typeof object.passkeyVerificationMS === "string") message.passkeyVerificationMS = parseInt(object.passkeyVerificationMS, 10); else if (typeof object.passkeyVerificationMS === "number") @@ -151425,20 +141031,16 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PasskeyLoginToken.toObject = function toObject(message, options, q) { + PasskeyLoginToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.passkeyVerificationMS = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.passkeyVerificationMS = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.passkeyVerificationMS = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.passkeyVerificationMS = options.longs === String ? "0" : 0; if (options.bytes === String) object.challenge = ""; else { @@ -151448,9 +141050,7 @@ export const Tokens = $root.Tokens = (() => { } } if (message.passkeyVerificationMS != null && message.hasOwnProperty("passkeyVerificationMS")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.passkeyVerificationMS = typeof message.passkeyVerificationMS === "number" ? BigInt(message.passkeyVerificationMS) : $util.Long.fromBits(message.passkeyVerificationMS.low >>> 0, message.passkeyVerificationMS.high >>> 0, false).toBigInt(); - else if (typeof message.passkeyVerificationMS === "number") + if (typeof message.passkeyVerificationMS === "number") object.passkeyVerificationMS = options.longs === String ? String(message.passkeyVerificationMS) : message.passkeyVerificationMS; else object.passkeyVerificationMS = options.longs === String ? $util.Long.prototype.toString.call(message.passkeyVerificationMS) : options.longs === Number ? new $util.LongBits(message.passkeyVerificationMS.low >>> 0, message.passkeyVerificationMS.high >>> 0).toNumber() : message.passkeyVerificationMS; @@ -151524,7 +141124,7 @@ export const Tokens = $root.Tokens = (() => { function LoginToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -151685,13 +141285,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoginToken.encode = function encode(message, writer, q) { + LoginToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.loginSessionId != null && Object.hasOwnProperty.call(message, "loginSessionId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.loginSessionId); if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) @@ -151715,7 +141311,7 @@ export const Tokens = $root.Tokens = (() => { if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) writer.uint32(/* id 11, wireType 0 =*/88).int32(message.supportedLanguage); if (message.ssoLoginToken != null && Object.hasOwnProperty.call(message, "ssoLoginToken")) - $root.Tokens.SSOLoginToken.encode(message.ssoLoginToken, writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim(); + $root.Tokens.SSOLoginToken.encode(message.ssoLoginToken, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.username); if (message.relogin != null && Object.hasOwnProperty.call(message, "relogin")) @@ -151725,7 +141321,7 @@ export const Tokens = $root.Tokens = (() => { if (message.fromUserId != null && Object.hasOwnProperty.call(message, "fromUserId")) writer.uint32(/* id 16, wireType 0 =*/128).int32(message.fromUserId); if (message.passkeyLoginToken != null && Object.hasOwnProperty.call(message, "passkeyLoginToken")) - $root.Tokens.PasskeyLoginToken.encode(message.passkeyLoginToken, writer.uint32(/* id 17, wireType 2 =*/138).fork(), q + 1).ldelim(); + $root.Tokens.PasskeyLoginToken.encode(message.passkeyLoginToken, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); return writer; }; @@ -151753,18 +141349,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoginToken.decode = function decode(reader, length, error, long) { + LoginToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LoginToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.loginSessionId = reader.int64(); @@ -151811,7 +141401,7 @@ export const Tokens = $root.Tokens = (() => { break; } case 12: { - message.ssoLoginToken = $root.Tokens.SSOLoginToken.decode(reader, reader.uint32(), undefined, long + 1); + message.ssoLoginToken = $root.Tokens.SSOLoginToken.decode(reader, reader.uint32()); break; } case 13: { @@ -151831,11 +141421,11 @@ export const Tokens = $root.Tokens = (() => { break; } case 17: { - message.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.decode(reader, reader.uint32(), undefined, long + 1); + message.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -151866,13 +141456,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoginToken.verify = function verify(message, long) { + LoginToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.loginSessionId != null && message.hasOwnProperty("loginSessionId")) if (!$util.isInteger(message.loginSessionId) && !(message.loginSessionId && $util.isInteger(message.loginSessionId.low) && $util.isInteger(message.loginSessionId.high))) return "loginSessionId: integer|Long expected"; @@ -151967,7 +141553,7 @@ export const Tokens = $root.Tokens = (() => { break; } if (message.ssoLoginToken != null && message.hasOwnProperty("ssoLoginToken")) { - let error = $root.Tokens.SSOLoginToken.verify(message.ssoLoginToken, long + 1); + let error = $root.Tokens.SSOLoginToken.verify(message.ssoLoginToken); if (error) return "ssoLoginToken." + error; } @@ -151994,7 +141580,7 @@ export const Tokens = $root.Tokens = (() => { if (!$util.isInteger(message.fromUserId)) return "fromUserId: integer expected"; if (message.passkeyLoginToken != null && message.hasOwnProperty("passkeyLoginToken")) { - let error = $root.Tokens.PasskeyLoginToken.verify(message.passkeyLoginToken, long + 1); + let error = $root.Tokens.PasskeyLoginToken.verify(message.passkeyLoginToken); if (error) return "passkeyLoginToken." + error; } @@ -152009,17 +141595,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.LoginToken} LoginToken */ - LoginToken.fromObject = function fromObject(object, long) { + LoginToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.LoginToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.LoginToken(); if (object.loginSessionId != null) if ($util.Long) - message.loginSessionId = $util.Long.fromValue(object.loginSessionId, false); + (message.loginSessionId = $util.Long.fromValue(object.loginSessionId)).unsigned = false; else if (typeof object.loginSessionId === "string") message.loginSessionId = parseInt(object.loginSessionId, 10); else if (typeof object.loginSessionId === "number") @@ -152028,7 +141610,7 @@ export const Tokens = $root.Tokens = (() => { message.loginSessionId = new $util.LongBits(object.loginSessionId.low >>> 0, object.loginSessionId.high >>> 0).toNumber(); if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -152175,7 +141757,7 @@ export const Tokens = $root.Tokens = (() => { } if (object.creation != null) if ($util.Long) - message.creation = $util.Long.fromValue(object.creation, false); + (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; else if (typeof object.creation === "string") message.creation = parseInt(object.creation, 10); else if (typeof object.creation === "number") @@ -152186,7 +141768,7 @@ export const Tokens = $root.Tokens = (() => { message.userId = object.userId | 0; if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -152298,7 +141880,7 @@ export const Tokens = $root.Tokens = (() => { if (object.ssoLoginToken != null) { if (typeof object.ssoLoginToken !== "object") throw TypeError(".Tokens.LoginToken.ssoLoginToken: object expected"); - message.ssoLoginToken = $root.Tokens.SSOLoginToken.fromObject(object.ssoLoginToken, long + 1); + message.ssoLoginToken = $root.Tokens.SSOLoginToken.fromObject(object.ssoLoginToken); } if (object.username != null) message.username = String(object.username); @@ -152345,7 +141927,7 @@ export const Tokens = $root.Tokens = (() => { if (object.passkeyLoginToken != null) { if (typeof object.passkeyLoginToken !== "object") throw TypeError(".Tokens.LoginToken.passkeyLoginToken: object expected"); - message.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.fromObject(object.passkeyLoginToken, long + 1); + message.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.fromObject(object.passkeyLoginToken); } return message; }; @@ -152359,25 +141941,21 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoginToken.toObject = function toObject(message, options, q) { + LoginToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.loginSessionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.loginSessionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.loginSessionId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.loginSessionId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; if (options.bytes === String) object.accountUid = ""; else { @@ -152396,15 +141974,15 @@ export const Tokens = $root.Tokens = (() => { object.loginMethod = options.enums === String ? "INVALID_LOGINMETHOD" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.creation = options.longs === String ? "0" : 0; object.userId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.clientVersionId = 0; object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; object.ssoLoginToken = null; @@ -152415,16 +141993,12 @@ export const Tokens = $root.Tokens = (() => { object.passkeyLoginToken = null; } if (message.loginSessionId != null && message.hasOwnProperty("loginSessionId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.loginSessionId = typeof message.loginSessionId === "number" ? BigInt(message.loginSessionId) : $util.Long.fromBits(message.loginSessionId.low >>> 0, message.loginSessionId.high >>> 0, false).toBigInt(); - else if (typeof message.loginSessionId === "number") + if (typeof message.loginSessionId === "number") object.loginSessionId = options.longs === String ? String(message.loginSessionId) : message.loginSessionId; else object.loginSessionId = options.longs === String ? $util.Long.prototype.toString.call(message.loginSessionId) : options.longs === Number ? new $util.LongBits(message.loginSessionId.low >>> 0, message.loginSessionId.high >>> 0).toNumber() : message.loginSessionId; if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; @@ -152437,18 +142011,14 @@ export const Tokens = $root.Tokens = (() => { if (message.loginMethod != null && message.hasOwnProperty("loginMethod")) object.loginMethod = options.enums === String ? $root.Authentication.LoginMethod[message.loginMethod] === undefined ? message.loginMethod : $root.Authentication.LoginMethod[message.loginMethod] : message.loginMethod; if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.creation = typeof message.creation === "number" ? BigInt(message.creation) : $util.Long.fromBits(message.creation.low >>> 0, message.creation.high >>> 0, false).toBigInt(); - else if (typeof message.creation === "number") + if (typeof message.creation === "number") object.creation = options.longs === String ? String(message.creation) : message.creation; else object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; if (message.userId != null && message.hasOwnProperty("userId")) object.userId = message.userId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -152457,7 +142027,7 @@ export const Tokens = $root.Tokens = (() => { if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; if (message.ssoLoginToken != null && message.hasOwnProperty("ssoLoginToken")) - object.ssoLoginToken = $root.Tokens.SSOLoginToken.toObject(message.ssoLoginToken, options, q + 1); + object.ssoLoginToken = $root.Tokens.SSOLoginToken.toObject(message.ssoLoginToken, options); if (message.username != null && message.hasOwnProperty("username")) object.username = message.username; if (message.relogin != null && message.hasOwnProperty("relogin")) @@ -152467,7 +142037,7 @@ export const Tokens = $root.Tokens = (() => { if (message.fromUserId != null && message.hasOwnProperty("fromUserId")) object.fromUserId = message.fromUserId; if (message.passkeyLoginToken != null && message.hasOwnProperty("passkeyLoginToken")) - object.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.toObject(message.passkeyLoginToken, options, q + 1); + object.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.toObject(message.passkeyLoginToken, options); return object; }; @@ -152523,7 +142093,7 @@ export const Tokens = $root.Tokens = (() => { function DeviceApprovalToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -152580,19 +142150,15 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceApprovalToken.encode = function encode(message, writer, q) { + DeviceApprovalToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.creation); if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expiration); if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) - $root.Tokens.DeviceToken.encode(message.deviceToken, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Tokens.DeviceToken.encode(message.deviceToken, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.supportedLanguage); return writer; @@ -152622,18 +142188,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceApprovalToken.decode = function decode(reader, length, error, long) { + DeviceApprovalToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.DeviceApprovalToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.creation = reader.int64(); @@ -152644,7 +142204,7 @@ export const Tokens = $root.Tokens = (() => { break; } case 3: { - message.deviceToken = $root.Tokens.DeviceToken.decode(reader, reader.uint32(), undefined, long + 1); + message.deviceToken = $root.Tokens.DeviceToken.decode(reader, reader.uint32()); break; } case 4: { @@ -152652,7 +142212,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -152683,13 +142243,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceApprovalToken.verify = function verify(message, long) { + DeviceApprovalToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.creation != null && message.hasOwnProperty("creation")) if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) return "creation: integer|Long expected"; @@ -152697,7 +142253,7 @@ export const Tokens = $root.Tokens = (() => { if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) return "expiration: integer|Long expected"; if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) { - let error = $root.Tokens.DeviceToken.verify(message.deviceToken, long + 1); + let error = $root.Tokens.DeviceToken.verify(message.deviceToken); if (error) return "deviceToken." + error; } @@ -152741,17 +142297,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.DeviceApprovalToken} DeviceApprovalToken */ - DeviceApprovalToken.fromObject = function fromObject(object, long) { + DeviceApprovalToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.DeviceApprovalToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.DeviceApprovalToken(); if (object.creation != null) if ($util.Long) - message.creation = $util.Long.fromValue(object.creation, false); + (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; else if (typeof object.creation === "string") message.creation = parseInt(object.creation, 10); else if (typeof object.creation === "number") @@ -152760,7 +142312,7 @@ export const Tokens = $root.Tokens = (() => { message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -152770,7 +142322,7 @@ export const Tokens = $root.Tokens = (() => { if (object.deviceToken != null) { if (typeof object.deviceToken !== "object") throw TypeError(".Tokens.DeviceApprovalToken.deviceToken: object expected"); - message.deviceToken = $root.Tokens.DeviceToken.fromObject(object.deviceToken, long + 1); + message.deviceToken = $root.Tokens.DeviceToken.fromObject(object.deviceToken); } switch (object.supportedLanguage) { default: @@ -152884,44 +142436,36 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceApprovalToken.toObject = function toObject(message, options, q) { + DeviceApprovalToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.creation = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.deviceToken = null; object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; } if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.creation = typeof message.creation === "number" ? BigInt(message.creation) : $util.Long.fromBits(message.creation.low >>> 0, message.creation.high >>> 0, false).toBigInt(); - else if (typeof message.creation === "number") + if (typeof message.creation === "number") object.creation = options.longs === String ? String(message.creation) : message.creation; else object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) - object.deviceToken = $root.Tokens.DeviceToken.toObject(message.deviceToken, options, q + 1); + object.deviceToken = $root.Tokens.DeviceToken.toObject(message.deviceToken, options); if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; return object; @@ -152979,7 +142523,7 @@ export const Tokens = $root.Tokens = (() => { function TwoFactorToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -153036,19 +142580,15 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TwoFactorToken.encode = function encode(message, writer, q) { + TwoFactorToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.creation); if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expiration); if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) - $root.Tokens.DeviceToken.encode(message.deviceToken, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Tokens.DeviceToken.encode(message.deviceToken, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.deviceIp != null && Object.hasOwnProperty.call(message, "deviceIp")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.deviceIp); return writer; @@ -153078,18 +142618,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TwoFactorToken.decode = function decode(reader, length, error, long) { + TwoFactorToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.TwoFactorToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.creation = reader.int64(); @@ -153100,7 +142634,7 @@ export const Tokens = $root.Tokens = (() => { break; } case 3: { - message.deviceToken = $root.Tokens.DeviceToken.decode(reader, reader.uint32(), undefined, long + 1); + message.deviceToken = $root.Tokens.DeviceToken.decode(reader, reader.uint32()); break; } case 4: { @@ -153108,7 +142642,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -153139,13 +142673,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TwoFactorToken.verify = function verify(message, long) { + TwoFactorToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.creation != null && message.hasOwnProperty("creation")) if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) return "creation: integer|Long expected"; @@ -153153,7 +142683,7 @@ export const Tokens = $root.Tokens = (() => { if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) return "expiration: integer|Long expected"; if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) { - let error = $root.Tokens.DeviceToken.verify(message.deviceToken, long + 1); + let error = $root.Tokens.DeviceToken.verify(message.deviceToken); if (error) return "deviceToken." + error; } @@ -153171,17 +142701,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.TwoFactorToken} TwoFactorToken */ - TwoFactorToken.fromObject = function fromObject(object, long) { + TwoFactorToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.TwoFactorToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.TwoFactorToken(); if (object.creation != null) if ($util.Long) - message.creation = $util.Long.fromValue(object.creation, false); + (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; else if (typeof object.creation === "string") message.creation = parseInt(object.creation, 10); else if (typeof object.creation === "number") @@ -153190,7 +142716,7 @@ export const Tokens = $root.Tokens = (() => { message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -153200,7 +142726,7 @@ export const Tokens = $root.Tokens = (() => { if (object.deviceToken != null) { if (typeof object.deviceToken !== "object") throw TypeError(".Tokens.TwoFactorToken.deviceToken: object expected"); - message.deviceToken = $root.Tokens.DeviceToken.fromObject(object.deviceToken, long + 1); + message.deviceToken = $root.Tokens.DeviceToken.fromObject(object.deviceToken); } if (object.deviceIp != null) message.deviceIp = String(object.deviceIp); @@ -153216,44 +142742,36 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TwoFactorToken.toObject = function toObject(message, options, q) { + TwoFactorToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.creation = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.deviceToken = null; object.deviceIp = ""; } if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.creation = typeof message.creation === "number" ? BigInt(message.creation) : $util.Long.fromBits(message.creation.low >>> 0, message.creation.high >>> 0, false).toBigInt(); - else if (typeof message.creation === "number") + if (typeof message.creation === "number") object.creation = options.longs === String ? String(message.creation) : message.creation; else object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) - object.deviceToken = $root.Tokens.DeviceToken.toObject(message.deviceToken, options, q + 1); + object.deviceToken = $root.Tokens.DeviceToken.toObject(message.deviceToken, options); if (message.deviceIp != null && message.hasOwnProperty("deviceIp")) object.deviceIp = message.deviceIp; return object; @@ -153311,7 +142829,7 @@ export const Tokens = $root.Tokens = (() => { function BreachWatchToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -153368,13 +142886,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchToken.encode = function encode(message, writer, q) { + BreachWatchToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.domainUid != null && Object.hasOwnProperty.call(message, "domainUid")) @@ -153410,18 +142924,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchToken.decode = function decode(reader, length, error, long) { + BreachWatchToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.BreachWatchToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -153440,7 +142948,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -153471,13 +142979,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchToken.verify = function verify(message, long) { + BreachWatchToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -153501,13 +143005,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.BreachWatchToken} BreachWatchToken */ - BreachWatchToken.fromObject = function fromObject(object, long) { + BreachWatchToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.BreachWatchToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.BreachWatchToken(); if (object.userId != null) message.userId = object.userId | 0; @@ -153538,13 +143038,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchToken.toObject = function toObject(message, options, q) { + BreachWatchToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -153649,7 +143145,7 @@ export const Tokens = $root.Tokens = (() => { function AnonymizedToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -153706,13 +143202,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AnonymizedToken.encode = function encode(message, writer, q) { + AnonymizedToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.created != null && Object.hasOwnProperty.call(message, "created")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.created); if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) @@ -153748,18 +143240,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AnonymizedToken.decode = function decode(reader, length, error, long) { + AnonymizedToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.AnonymizedToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.created = reader.int64(); @@ -153778,7 +143264,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -153809,13 +143295,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AnonymizedToken.verify = function verify(message, long) { + AnonymizedToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.created != null && message.hasOwnProperty("created")) if (!$util.isInteger(message.created) && !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high))) return "created: integer|Long expected"; @@ -153845,17 +143327,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.AnonymizedToken} AnonymizedToken */ - AnonymizedToken.fromObject = function fromObject(object, long) { + AnonymizedToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.AnonymizedToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.AnonymizedToken(); if (object.created != null) if ($util.Long) - message.created = $util.Long.fromValue(object.created, false); + (message.created = $util.Long.fromValue(object.created)).unsigned = false; else if (typeof object.created === "string") message.created = parseInt(object.created, 10); else if (typeof object.created === "number") @@ -153864,7 +143342,7 @@ export const Tokens = $root.Tokens = (() => { message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -153908,25 +143386,21 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AnonymizedToken.toObject = function toObject(message, options, q) { + AnonymizedToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.created = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.created = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; if (options.bytes === String) object.uid = ""; else { @@ -153937,16 +143411,12 @@ export const Tokens = $root.Tokens = (() => { object.anonymizedTokenType = options.enums === String ? "DAT" : 0; } if (message.created != null && message.hasOwnProperty("created")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.created = typeof message.created === "number" ? BigInt(message.created) : $util.Long.fromBits(message.created.low >>> 0, message.created.high >>> 0, false).toBigInt(); - else if (typeof message.created === "number") + if (typeof message.created === "number") object.created = options.longs === String ? String(message.created) : message.created; else object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -154007,7 +143477,7 @@ export const Tokens = $root.Tokens = (() => { function LicenseToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -154048,13 +143518,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LicenseToken.encode = function encode(message, writer, q) { + LicenseToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expiration); if (message.licenseStatus != null && Object.hasOwnProperty.call(message, "licenseStatus")) @@ -154086,18 +143552,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LicenseToken.decode = function decode(reader, length, error, long) { + LicenseToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LicenseToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 2: { message.expiration = reader.int64(); @@ -154108,7 +143568,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -154139,13 +143599,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LicenseToken.verify = function verify(message, long) { + LicenseToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.expiration != null && message.hasOwnProperty("expiration")) if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) return "expiration: integer|Long expected"; @@ -154170,17 +143626,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.LicenseToken} LicenseToken */ - LicenseToken.fromObject = function fromObject(object, long) { + LicenseToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.LicenseToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.LicenseToken(); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -154223,26 +143675,20 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LicenseToken.toObject = function toObject(message, options, q) { + LicenseToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.licenseStatus = options.enums === String ? "OTHER" : 0; } if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -154338,7 +143784,7 @@ export const Tokens = $root.Tokens = (() => { function SessionToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -154547,13 +143993,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionToken.encode = function encode(message, writer, q) { + SessionToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.created != null && Object.hasOwnProperty.call(message, "created")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.created); if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) @@ -154563,7 +144005,7 @@ export const Tokens = $root.Tokens = (() => { if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.messageSessionUid); if (message.du8 != null && Object.hasOwnProperty.call(message, "du8")) - $root.Tokens.DeviceToken.encode(message.du8, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Tokens.DeviceToken.encode(message.du8, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.fromUserId != null && Object.hasOwnProperty.call(message, "fromUserId")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.fromUserId); if (message.forUserId != null && Object.hasOwnProperty.call(message, "forUserId")) @@ -154571,11 +144013,11 @@ export const Tokens = $root.Tokens = (() => { if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 8, wireType 0 =*/64).int64(message.enterpriseUserId); if (message.du2 != null && Object.hasOwnProperty.call(message, "du2")) - $root.Tokens.LicenseToken.encode(message.du2, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.Tokens.LicenseToken.encode(message.du2, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.du3 != null && Object.hasOwnProperty.call(message, "du3")) - $root.Tokens.LicenseToken.encode(message.du3, writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.Tokens.LicenseToken.encode(message.du3, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.du4 != null && Object.hasOwnProperty.call(message, "du4")) - $root.Tokens.LicenseToken.encode(message.du4, writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.Tokens.LicenseToken.encode(message.du4, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.du6 != null && Object.hasOwnProperty.call(message, "du6")) writer.uint32(/* id 12, wireType 0 =*/96).int32(message.du6); if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) @@ -154583,7 +144025,7 @@ export const Tokens = $root.Tokens = (() => { if (message.sessionTokenType != null && Object.hasOwnProperty.call(message, "sessionTokenType")) writer.uint32(/* id 14, wireType 0 =*/112).int32(message.sessionTokenType); if (message.du5 != null && Object.hasOwnProperty.call(message, "du5")) - $root.Tokens.LicenseToken.encode(message.du5, writer.uint32(/* id 15, wireType 2 =*/122).fork(), q + 1).ldelim(); + $root.Tokens.LicenseToken.encode(message.du5, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) writer.uint32(/* id 16, wireType 0 =*/128).int32(message.mcEnterpriseId); if (message.du7 != null && Object.hasOwnProperty.call(message, "du7")) @@ -154627,18 +144069,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionToken.decode = function decode(reader, length, error, long) { + SessionToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SessionToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.created = reader.int64(); @@ -154657,7 +144093,7 @@ export const Tokens = $root.Tokens = (() => { break; } case 5: { - message.du8 = $root.Tokens.DeviceToken.decode(reader, reader.uint32(), undefined, long + 1); + message.du8 = $root.Tokens.DeviceToken.decode(reader, reader.uint32()); break; } case 6: { @@ -154673,19 +144109,19 @@ export const Tokens = $root.Tokens = (() => { break; } case 9: { - message.du2 = $root.Tokens.LicenseToken.decode(reader, reader.uint32(), undefined, long + 1); + message.du2 = $root.Tokens.LicenseToken.decode(reader, reader.uint32()); break; } case 10: { - message.du3 = $root.Tokens.LicenseToken.decode(reader, reader.uint32(), undefined, long + 1); + message.du3 = $root.Tokens.LicenseToken.decode(reader, reader.uint32()); break; } case 11: { - message.du4 = $root.Tokens.LicenseToken.decode(reader, reader.uint32(), undefined, long + 1); + message.du4 = $root.Tokens.LicenseToken.decode(reader, reader.uint32()); break; } case 15: { - message.du5 = $root.Tokens.LicenseToken.decode(reader, reader.uint32(), undefined, long + 1); + message.du5 = $root.Tokens.LicenseToken.decode(reader, reader.uint32()); break; } case 12: { @@ -154733,7 +144169,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -154764,13 +144200,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SessionToken.verify = function verify(message, long) { + SessionToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.created != null && message.hasOwnProperty("created")) if (!$util.isInteger(message.created) && !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high))) return "created: integer|Long expected"; @@ -154784,7 +144216,7 @@ export const Tokens = $root.Tokens = (() => { if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) return "messageSessionUid: buffer expected"; if (message.du8 != null && message.hasOwnProperty("du8")) { - let error = $root.Tokens.DeviceToken.verify(message.du8, long + 1); + let error = $root.Tokens.DeviceToken.verify(message.du8); if (error) return "du8." + error; } @@ -154798,22 +144230,22 @@ export const Tokens = $root.Tokens = (() => { if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; if (message.du2 != null && message.hasOwnProperty("du2")) { - let error = $root.Tokens.LicenseToken.verify(message.du2, long + 1); + let error = $root.Tokens.LicenseToken.verify(message.du2); if (error) return "du2." + error; } if (message.du3 != null && message.hasOwnProperty("du3")) { - let error = $root.Tokens.LicenseToken.verify(message.du3, long + 1); + let error = $root.Tokens.LicenseToken.verify(message.du3); if (error) return "du3." + error; } if (message.du4 != null && message.hasOwnProperty("du4")) { - let error = $root.Tokens.LicenseToken.verify(message.du4, long + 1); + let error = $root.Tokens.LicenseToken.verify(message.du4); if (error) return "du4." + error; } if (message.du5 != null && message.hasOwnProperty("du5")) { - let error = $root.Tokens.LicenseToken.verify(message.du5, long + 1); + let error = $root.Tokens.LicenseToken.verify(message.du5); if (error) return "du5." + error; } @@ -154882,17 +144314,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.SessionToken} SessionToken */ - SessionToken.fromObject = function fromObject(object, long) { + SessionToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.SessionToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.SessionToken(); if (object.created != null) if ($util.Long) - message.created = $util.Long.fromValue(object.created, false); + (message.created = $util.Long.fromValue(object.created)).unsigned = false; else if (typeof object.created === "string") message.created = parseInt(object.created, 10); else if (typeof object.created === "number") @@ -154901,7 +144329,7 @@ export const Tokens = $root.Tokens = (() => { message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -154918,7 +144346,7 @@ export const Tokens = $root.Tokens = (() => { if (object.du8 != null) { if (typeof object.du8 !== "object") throw TypeError(".Tokens.SessionToken.du8: object expected"); - message.du8 = $root.Tokens.DeviceToken.fromObject(object.du8, long + 1); + message.du8 = $root.Tokens.DeviceToken.fromObject(object.du8); } if (object.fromUserId != null) message.fromUserId = object.fromUserId | 0; @@ -154926,7 +144354,7 @@ export const Tokens = $root.Tokens = (() => { message.forUserId = object.forUserId | 0; if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -154936,22 +144364,22 @@ export const Tokens = $root.Tokens = (() => { if (object.du2 != null) { if (typeof object.du2 !== "object") throw TypeError(".Tokens.SessionToken.du2: object expected"); - message.du2 = $root.Tokens.LicenseToken.fromObject(object.du2, long + 1); + message.du2 = $root.Tokens.LicenseToken.fromObject(object.du2); } if (object.du3 != null) { if (typeof object.du3 !== "object") throw TypeError(".Tokens.SessionToken.du3: object expected"); - message.du3 = $root.Tokens.LicenseToken.fromObject(object.du3, long + 1); + message.du3 = $root.Tokens.LicenseToken.fromObject(object.du3); } if (object.du4 != null) { if (typeof object.du4 !== "object") throw TypeError(".Tokens.SessionToken.du4: object expected"); - message.du4 = $root.Tokens.LicenseToken.fromObject(object.du4, long + 1); + message.du4 = $root.Tokens.LicenseToken.fromObject(object.du4); } if (object.du5 != null) { if (typeof object.du5 !== "object") throw TypeError(".Tokens.SessionToken.du5: object expected"); - message.du5 = $root.Tokens.LicenseToken.fromObject(object.du5, long + 1); + message.du5 = $root.Tokens.LicenseToken.fromObject(object.du5); } switch (object.du6) { default: @@ -155037,7 +144465,7 @@ export const Tokens = $root.Tokens = (() => { message.du7 = Boolean(object.du7); if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -155046,7 +144474,7 @@ export const Tokens = $root.Tokens = (() => { message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); if (object.loginSessionId != null) if ($util.Long) - message.loginSessionId = $util.Long.fromValue(object.loginSessionId, false); + (message.loginSessionId = $util.Long.fromValue(object.loginSessionId)).unsigned = false; else if (typeof object.loginSessionId === "string") message.loginSessionId = parseInt(object.loginSessionId, 10); else if (typeof object.loginSessionId === "number") @@ -155057,7 +144485,7 @@ export const Tokens = $root.Tokens = (() => { message.clientTypeId = object.clientTypeId | 0; if (object.ipAddress != null) if ($util.Long) - message.ipAddress = $util.Long.fromValue(object.ipAddress, false); + (message.ipAddress = $util.Long.fromValue(object.ipAddress)).unsigned = false; else if (typeof object.ipAddress === "string") message.ipAddress = parseInt(object.ipAddress, 10); else if (typeof object.ipAddress === "number") @@ -155080,25 +144508,21 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SessionToken.toObject = function toObject(message, options, q) { + SessionToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.created = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.created = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.du1 = ""; if (options.bytes === String) object.messageSessionUid = ""; @@ -155112,9 +144536,9 @@ export const Tokens = $root.Tokens = (() => { object.forUserId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.du2 = null; object.du3 = null; object.du4 = null; @@ -155126,34 +144550,30 @@ export const Tokens = $root.Tokens = (() => { object.du7 = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.loginSessionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.loginSessionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.loginSessionId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.loginSessionId = options.longs === String ? "0" : 0; object.clientTypeId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.ipAddress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ipAddress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ipAddress = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ipAddress = options.longs === String ? "0" : 0; object.latitude = 0; object.longitude = 0; } if (message.created != null && message.hasOwnProperty("created")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.created = typeof message.created === "number" ? BigInt(message.created) : $util.Long.fromBits(message.created.low >>> 0, message.created.high >>> 0, false).toBigInt(); - else if (typeof message.created === "number") + if (typeof message.created === "number") object.created = options.longs === String ? String(message.created) : message.created; else object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -155162,24 +144582,22 @@ export const Tokens = $root.Tokens = (() => { if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; if (message.du8 != null && message.hasOwnProperty("du8")) - object.du8 = $root.Tokens.DeviceToken.toObject(message.du8, options, q + 1); + object.du8 = $root.Tokens.DeviceToken.toObject(message.du8, options); if (message.fromUserId != null && message.hasOwnProperty("fromUserId")) object.fromUserId = message.fromUserId; if (message.forUserId != null && message.hasOwnProperty("forUserId")) object.forUserId = message.forUserId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.du2 != null && message.hasOwnProperty("du2")) - object.du2 = $root.Tokens.LicenseToken.toObject(message.du2, options, q + 1); + object.du2 = $root.Tokens.LicenseToken.toObject(message.du2, options); if (message.du3 != null && message.hasOwnProperty("du3")) - object.du3 = $root.Tokens.LicenseToken.toObject(message.du3, options, q + 1); + object.du3 = $root.Tokens.LicenseToken.toObject(message.du3, options); if (message.du4 != null && message.hasOwnProperty("du4")) - object.du4 = $root.Tokens.LicenseToken.toObject(message.du4, options, q + 1); + object.du4 = $root.Tokens.LicenseToken.toObject(message.du4, options); if (message.du6 != null && message.hasOwnProperty("du6")) object.du6 = options.enums === String ? $root.Authentication.AccountType[message.du6] === undefined ? message.du6 : $root.Authentication.AccountType[message.du6] : message.du6; if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) @@ -155187,31 +144605,25 @@ export const Tokens = $root.Tokens = (() => { if (message.sessionTokenType != null && message.hasOwnProperty("sessionTokenType")) object.sessionTokenType = options.enums === String ? $root.Authentication.SessionTokenType[message.sessionTokenType] === undefined ? message.sessionTokenType : $root.Authentication.SessionTokenType[message.sessionTokenType] : message.sessionTokenType; if (message.du5 != null && message.hasOwnProperty("du5")) - object.du5 = $root.Tokens.LicenseToken.toObject(message.du5, options, q + 1); + object.du5 = $root.Tokens.LicenseToken.toObject(message.du5, options); if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) object.mcEnterpriseId = message.mcEnterpriseId; if (message.du7 != null && message.hasOwnProperty("du7")) object.du7 = message.du7; if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; if (message.loginSessionId != null && message.hasOwnProperty("loginSessionId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.loginSessionId = typeof message.loginSessionId === "number" ? BigInt(message.loginSessionId) : $util.Long.fromBits(message.loginSessionId.low >>> 0, message.loginSessionId.high >>> 0, false).toBigInt(); - else if (typeof message.loginSessionId === "number") + if (typeof message.loginSessionId === "number") object.loginSessionId = options.longs === String ? String(message.loginSessionId) : message.loginSessionId; else object.loginSessionId = options.longs === String ? $util.Long.prototype.toString.call(message.loginSessionId) : options.longs === Number ? new $util.LongBits(message.loginSessionId.low >>> 0, message.loginSessionId.high >>> 0).toNumber() : message.loginSessionId; if (message.clientTypeId != null && message.hasOwnProperty("clientTypeId")) object.clientTypeId = message.clientTypeId; if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ipAddress = typeof message.ipAddress === "number" ? BigInt(message.ipAddress) : $util.Long.fromBits(message.ipAddress.low >>> 0, message.ipAddress.high >>> 0, false).toBigInt(); - else if (typeof message.ipAddress === "number") + if (typeof message.ipAddress === "number") object.ipAddress = options.longs === String ? String(message.ipAddress) : message.ipAddress; else object.ipAddress = options.longs === String ? $util.Long.prototype.toString.call(message.ipAddress) : options.longs === Number ? new $util.LongBits(message.ipAddress.low >>> 0, message.ipAddress.high >>> 0).toNumber() : message.ipAddress; @@ -155272,7 +144684,7 @@ export const Tokens = $root.Tokens = (() => { function UserLicenseStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -155313,13 +144725,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserLicenseStatus.encode = function encode(message, writer, q) { + UserLicenseStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.licenseType != null && Object.hasOwnProperty.call(message, "licenseType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.licenseType); if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) @@ -155351,18 +144759,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLicenseStatus.decode = function decode(reader, length, error, long) { + UserLicenseStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.UserLicenseStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.licenseType = reader.int32(); @@ -155373,7 +144775,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -155404,13 +144806,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserLicenseStatus.verify = function verify(message, long) { + UserLicenseStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.licenseType != null && message.hasOwnProperty("licenseType")) switch (message.licenseType) { default: @@ -155435,13 +144833,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.UserLicenseStatus} UserLicenseStatus */ - UserLicenseStatus.fromObject = function fromObject(object, long) { + UserLicenseStatus.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.UserLicenseStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.UserLicenseStatus(); switch (object.licenseType) { default: @@ -155469,7 +144863,7 @@ export const Tokens = $root.Tokens = (() => { } if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -155488,28 +144882,22 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserLicenseStatus.toObject = function toObject(message, options, q) { + UserLicenseStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.licenseType = options.enums === String ? "VAULT" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; } if (message.licenseType != null && message.hasOwnProperty("licenseType")) object.licenseType = options.enums === String ? $root.Authentication.LicenseType[message.licenseType] === undefined ? message.licenseType : $root.Authentication.LicenseType[message.licenseType] : message.licenseType; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -155565,7 +144953,7 @@ export const Tokens = $root.Tokens = (() => { function CheckOutTokenResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -155598,13 +144986,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CheckOutTokenResponse.encode = function encode(message, writer, q) { + CheckOutTokenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.checkOutToken != null && Object.hasOwnProperty.call(message, "checkOutToken")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.checkOutToken); return writer; @@ -155634,25 +145018,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CheckOutTokenResponse.decode = function decode(reader, length, error, long) { + CheckOutTokenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.CheckOutTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.checkOutToken = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -155683,13 +145061,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CheckOutTokenResponse.verify = function verify(message, long) { + CheckOutTokenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.checkOutToken != null && message.hasOwnProperty("checkOutToken")) if (!$util.isString(message.checkOutToken)) return "checkOutToken: string expected"; @@ -155704,13 +145078,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.CheckOutTokenResponse} CheckOutTokenResponse */ - CheckOutTokenResponse.fromObject = function fromObject(object, long) { + CheckOutTokenResponse.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.CheckOutTokenResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.CheckOutTokenResponse(); if (object.checkOutToken != null) message.checkOutToken = String(object.checkOutToken); @@ -155726,13 +145096,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CheckOutTokenResponse.toObject = function toObject(message, options, q) { + CheckOutTokenResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.checkOutToken = ""; @@ -155792,7 +145158,7 @@ export const Tokens = $root.Tokens = (() => { function ImporterToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -155841,13 +145207,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImporterToken.encode = function encode(message, writer, q) { + ImporterToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.importId != null && Object.hasOwnProperty.call(message, "importId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.importId); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) @@ -155881,18 +145243,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImporterToken.decode = function decode(reader, length, error, long) { + ImporterToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ImporterToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.importId = reader.int32(); @@ -155907,7 +145263,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -155938,13 +145294,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImporterToken.verify = function verify(message, long) { + ImporterToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.importId != null && message.hasOwnProperty("importId")) if (!$util.isInteger(message.importId)) return "importId: integer expected"; @@ -155965,13 +145317,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.ImporterToken} ImporterToken */ - ImporterToken.fromObject = function fromObject(object, long) { + ImporterToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.ImporterToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.ImporterToken(); if (object.importId != null) message.importId = object.importId | 0; @@ -155991,13 +145339,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImporterToken.toObject = function toObject(message, options, q) { + ImporterToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.importId = 0; @@ -156067,7 +145411,7 @@ export const Tokens = $root.Tokens = (() => { function ApiDecryptedRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -156140,17 +145484,13 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiDecryptedRequest.encode = function encode(message, writer, q) { + ApiDecryptedRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.decryptedTransmissionKey != null && Object.hasOwnProperty.call(message, "decryptedTransmissionKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.decryptedTransmissionKey); if (message.apiRequestPayload != null && Object.hasOwnProperty.call(message, "apiRequestPayload")) - $root.Authentication.ApiRequestPayload.encode(message.apiRequestPayload, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Authentication.ApiRequestPayload.encode(message.apiRequestPayload, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.supportedLanguage); if (message.recaptcha != null && Object.hasOwnProperty.call(message, "recaptcha")) @@ -156186,25 +145526,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApiDecryptedRequest.decode = function decode(reader, length, error, long) { + ApiDecryptedRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ApiDecryptedRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.decryptedTransmissionKey = reader.bytes(); break; } case 3: { - message.apiRequestPayload = $root.Authentication.ApiRequestPayload.decode(reader, reader.uint32(), undefined, long + 1); + message.apiRequestPayload = $root.Authentication.ApiRequestPayload.decode(reader, reader.uint32()); break; } case 4: { @@ -156224,7 +145558,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -156255,18 +145589,14 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApiDecryptedRequest.verify = function verify(message, long) { + ApiDecryptedRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.decryptedTransmissionKey != null && message.hasOwnProperty("decryptedTransmissionKey")) if (!(message.decryptedTransmissionKey && typeof message.decryptedTransmissionKey.length === "number" || $util.isString(message.decryptedTransmissionKey))) return "decryptedTransmissionKey: buffer expected"; if (message.apiRequestPayload != null && message.hasOwnProperty("apiRequestPayload")) { - let error = $root.Authentication.ApiRequestPayload.verify(message.apiRequestPayload, long + 1); + let error = $root.Authentication.ApiRequestPayload.verify(message.apiRequestPayload); if (error) return "apiRequestPayload." + error; } @@ -156319,13 +145649,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.ApiDecryptedRequest} ApiDecryptedRequest */ - ApiDecryptedRequest.fromObject = function fromObject(object, long) { + ApiDecryptedRequest.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.ApiDecryptedRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.ApiDecryptedRequest(); if (object.decryptedTransmissionKey != null) if (typeof object.decryptedTransmissionKey === "string") @@ -156335,7 +145661,7 @@ export const Tokens = $root.Tokens = (() => { if (object.apiRequestPayload != null) { if (typeof object.apiRequestPayload !== "object") throw TypeError(".Tokens.ApiDecryptedRequest.apiRequestPayload: object expected"); - message.apiRequestPayload = $root.Authentication.ApiRequestPayload.fromObject(object.apiRequestPayload, long + 1); + message.apiRequestPayload = $root.Authentication.ApiRequestPayload.fromObject(object.apiRequestPayload); } switch (object.supportedLanguage) { default: @@ -156455,13 +145781,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApiDecryptedRequest.toObject = function toObject(message, options, q) { + ApiDecryptedRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -156480,7 +145802,7 @@ export const Tokens = $root.Tokens = (() => { if (message.decryptedTransmissionKey != null && message.hasOwnProperty("decryptedTransmissionKey")) object.decryptedTransmissionKey = options.bytes === String ? $util.base64.encode(message.decryptedTransmissionKey, 0, message.decryptedTransmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.decryptedTransmissionKey) : message.decryptedTransmissionKey; if (message.apiRequestPayload != null && message.hasOwnProperty("apiRequestPayload")) - object.apiRequestPayload = $root.Authentication.ApiRequestPayload.toObject(message.apiRequestPayload, options, q + 1); + object.apiRequestPayload = $root.Authentication.ApiRequestPayload.toObject(message.apiRequestPayload, options); if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; if (message.recaptcha != null && message.hasOwnProperty("recaptcha")) @@ -156546,7 +145868,7 @@ export const Tokens = $root.Tokens = (() => { function ChangeEmailToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -156619,13 +145941,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChangeEmailToken.encode = function encode(message, writer, q) { + ChangeEmailToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.newEmail != null && Object.hasOwnProperty.call(message, "newEmail")) @@ -156665,18 +145983,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChangeEmailToken.decode = function decode(reader, length, error, long) { + ChangeEmailToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ChangeEmailToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -156703,7 +146015,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -156734,13 +146046,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChangeEmailToken.verify = function verify(message, long) { + ChangeEmailToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -156796,13 +146104,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.ChangeEmailToken} ChangeEmailToken */ - ChangeEmailToken.fromObject = function fromObject(object, long) { + ChangeEmailToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.ChangeEmailToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.ChangeEmailToken(); if (object.userId != null) message.userId = object.userId | 0; @@ -156910,7 +146214,7 @@ export const Tokens = $root.Tokens = (() => { } if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -156919,7 +146223,7 @@ export const Tokens = $root.Tokens = (() => { message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); if (object.creation != null) if ($util.Long) - message.creation = $util.Long.fromValue(object.creation, false); + (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; else if (typeof object.creation === "string") message.creation = parseInt(object.creation, 10); else if (typeof object.creation === "number") @@ -156940,13 +146244,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChangeEmailToken.toObject = function toObject(message, options, q) { + ChangeEmailToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -156954,14 +146254,14 @@ export const Tokens = $root.Tokens = (() => { object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.creation = options.longs === String ? "0" : 0; object.clientVersionId = 0; } if (message.userId != null && message.hasOwnProperty("userId")) @@ -156971,16 +146271,12 @@ export const Tokens = $root.Tokens = (() => { if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.creation = typeof message.creation === "number" ? BigInt(message.creation) : $util.Long.fromBits(message.creation.low >>> 0, message.creation.high >>> 0, false).toBigInt(); - else if (typeof message.creation === "number") + if (typeof message.creation === "number") object.creation = options.longs === String ? String(message.creation) : message.creation; else object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; @@ -157042,7 +146338,7 @@ export const Tokens = $root.Tokens = (() => { function EmailVerificationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -157107,13 +146403,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmailVerificationToken.encode = function encode(message, writer, q) { + EmailVerificationToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.email != null && Object.hasOwnProperty.call(message, "email")) @@ -157151,18 +146443,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmailVerificationToken.decode = function decode(reader, length, error, long) { + EmailVerificationToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EmailVerificationToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -157185,7 +146471,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -157216,13 +146502,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EmailVerificationToken.verify = function verify(message, long) { + EmailVerificationToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -157249,13 +146531,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.EmailVerificationToken} EmailVerificationToken */ - EmailVerificationToken.fromObject = function fromObject(object, long) { + EmailVerificationToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.EmailVerificationToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.EmailVerificationToken(); if (object.userId != null) message.userId = object.userId | 0; @@ -157265,7 +146543,7 @@ export const Tokens = $root.Tokens = (() => { message.du1 = String(object.du1); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -157274,7 +146552,7 @@ export const Tokens = $root.Tokens = (() => { message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); if (object.du2 != null) if ($util.Long) - message.du2 = $util.Long.fromValue(object.du2, false); + (message.du2 = $util.Long.fromValue(object.du2)).unsigned = false; else if (typeof object.du2 === "string") message.du2 = parseInt(object.du2, 10); else if (typeof object.du2 === "number") @@ -157293,13 +146571,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmailVerificationToken.toObject = function toObject(message, options, q) { + EmailVerificationToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -157307,14 +146581,14 @@ export const Tokens = $root.Tokens = (() => { object.du1 = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.du2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.du2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.du2 = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.du2 = options.longs === String ? "0" : 0; } if (message.userId != null && message.hasOwnProperty("userId")) object.userId = message.userId; @@ -157323,16 +146597,12 @@ export const Tokens = $root.Tokens = (() => { if (message.du1 != null && message.hasOwnProperty("du1")) object.du1 = message.du1; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.du2 != null && message.hasOwnProperty("du2")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.du2 = typeof message.du2 === "number" ? BigInt(message.du2) : $util.Long.fromBits(message.du2.low >>> 0, message.du2.high >>> 0, false).toBigInt(); - else if (typeof message.du2 === "number") + if (typeof message.du2 === "number") object.du2 = options.longs === String ? String(message.du2) : message.du2; else object.du2 = options.longs === String ? $util.Long.prototype.toString.call(message.du2) : options.longs === Number ? new $util.LongBits(message.du2.low >>> 0, message.du2.high >>> 0).toNumber() : message.du2; @@ -157395,7 +146665,7 @@ export const Tokens = $root.Tokens = (() => { function IpAddressVerificationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -157484,13 +146754,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IpAddressVerificationToken.encode = function encode(message, writer, q) { + IpAddressVerificationToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.email != null && Object.hasOwnProperty.call(message, "email")) @@ -157534,18 +146800,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IpAddressVerificationToken.decode = function decode(reader, length, error, long) { + IpAddressVerificationToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.IpAddressVerificationToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -157580,7 +146840,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -157611,13 +146871,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IpAddressVerificationToken.verify = function verify(message, long) { + IpAddressVerificationToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -157653,13 +146909,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.IpAddressVerificationToken} IpAddressVerificationToken */ - IpAddressVerificationToken.fromObject = function fromObject(object, long) { + IpAddressVerificationToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.IpAddressVerificationToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.IpAddressVerificationToken(); if (object.userId != null) message.userId = object.userId | 0; @@ -157667,7 +146919,7 @@ export const Tokens = $root.Tokens = (() => { message.email = String(object.email); if (object.ssoServiceProviderId != null) if ($util.Long) - message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId, false); + (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = false; else if (typeof object.ssoServiceProviderId === "string") message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); else if (typeof object.ssoServiceProviderId === "number") @@ -157680,7 +146932,7 @@ export const Tokens = $root.Tokens = (() => { message.du1 = String(object.du1); if (object.du2 != null) if ($util.Long) - message.du2 = $util.Long.fromValue(object.du2, false); + (message.du2 = $util.Long.fromValue(object.du2)).unsigned = false; else if (typeof object.du2 === "string") message.du2 = parseInt(object.du2, 10); else if (typeof object.du2 === "number") @@ -157691,7 +146943,7 @@ export const Tokens = $root.Tokens = (() => { message.enterpriseId = object.enterpriseId | 0; if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -157710,44 +146962,38 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IpAddressVerificationToken.toObject = function toObject(message, options, q) { + IpAddressVerificationToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; object.email = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ssoServiceProviderId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ssoServiceProviderId = options.longs === String ? "0" : 0; object.ipAddress = ""; object.du1 = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.du2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.du2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.du2 = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.du2 = options.longs === String ? "0" : 0; object.enterpriseId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; } if (message.userId != null && message.hasOwnProperty("userId")) object.userId = message.userId; if (message.email != null && message.hasOwnProperty("email")) object.email = message.email; if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ssoServiceProviderId = typeof message.ssoServiceProviderId === "number" ? BigInt(message.ssoServiceProviderId) : $util.Long.fromBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0, false).toBigInt(); - else if (typeof message.ssoServiceProviderId === "number") + if (typeof message.ssoServiceProviderId === "number") object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber() : message.ssoServiceProviderId; @@ -157756,18 +147002,14 @@ export const Tokens = $root.Tokens = (() => { if (message.du1 != null && message.hasOwnProperty("du1")) object.du1 = message.du1; if (message.du2 != null && message.hasOwnProperty("du2")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.du2 = typeof message.du2 === "number" ? BigInt(message.du2) : $util.Long.fromBits(message.du2.low >>> 0, message.du2.high >>> 0, false).toBigInt(); - else if (typeof message.du2 === "number") + if (typeof message.du2 === "number") object.du2 = options.longs === String ? String(message.du2) : message.du2; else object.du2 = options.longs === String ? $util.Long.prototype.toString.call(message.du2) : options.longs === Number ? new $util.LongBits(message.du2.low >>> 0, message.du2.high >>> 0).toNumber() : message.du2; if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) object.enterpriseId = message.enterpriseId; if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; @@ -157828,7 +147070,7 @@ export const Tokens = $root.Tokens = (() => { function EnterprisePersonalAccountToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -157901,13 +147143,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterprisePersonalAccountToken.encode = function encode(message, writer, q) { + EnterprisePersonalAccountToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.email != null && Object.hasOwnProperty.call(message, "email")) @@ -157947,18 +147185,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterprisePersonalAccountToken.decode = function decode(reader, length, error, long) { + EnterprisePersonalAccountToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterprisePersonalAccountToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -157985,7 +147217,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -158016,13 +147248,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterprisePersonalAccountToken.verify = function verify(message, long) { + EnterprisePersonalAccountToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -158078,17 +147306,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.EnterprisePersonalAccountToken} EnterprisePersonalAccountToken */ - EnterprisePersonalAccountToken.fromObject = function fromObject(object, long) { + EnterprisePersonalAccountToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.EnterprisePersonalAccountToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.EnterprisePersonalAccountToken(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -158199,7 +147423,7 @@ export const Tokens = $root.Tokens = (() => { } if (object.duration != null) if ($util.Long) - message.duration = $util.Long.fromValue(object.duration, false); + (message.duration = $util.Long.fromValue(object.duration)).unsigned = false; else if (typeof object.duration === "string") message.duration = parseInt(object.duration, 10); else if (typeof object.duration === "number") @@ -158210,7 +147434,7 @@ export const Tokens = $root.Tokens = (() => { message.referralName = String(object.referralName); if (object.creation != null) if ($util.Long) - message.creation = $util.Long.fromValue(object.creation, false); + (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; else if (typeof object.creation === "string") message.creation = parseInt(object.creation, 10); else if (typeof object.creation === "number") @@ -158229,38 +147453,32 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterprisePersonalAccountToken.toObject = function toObject(message, options, q) { + EnterprisePersonalAccountToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.email = ""; object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.duration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.duration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.duration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.duration = options.longs === String ? "0" : 0; object.referralName = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.creation = options.longs === String ? "0" : 0; } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -158269,18 +147487,14 @@ export const Tokens = $root.Tokens = (() => { if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; if (message.duration != null && message.hasOwnProperty("duration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.duration = typeof message.duration === "number" ? BigInt(message.duration) : $util.Long.fromBits(message.duration.low >>> 0, message.duration.high >>> 0, false).toBigInt(); - else if (typeof message.duration === "number") + if (typeof message.duration === "number") object.duration = options.longs === String ? String(message.duration) : message.duration; else object.duration = options.longs === String ? $util.Long.prototype.toString.call(message.duration) : options.longs === Number ? new $util.LongBits(message.duration.low >>> 0, message.duration.high >>> 0).toNumber() : message.duration; if (message.referralName != null && message.hasOwnProperty("referralName")) object.referralName = message.referralName; if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.creation = typeof message.creation === "number" ? BigInt(message.creation) : $util.Long.fromBits(message.creation.low >>> 0, message.creation.high >>> 0, false).toBigInt(); - else if (typeof message.creation === "number") + if (typeof message.creation === "number") object.creation = options.longs === String ? String(message.creation) : message.creation; else object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; @@ -158342,7 +147556,7 @@ export const Tokens = $root.Tokens = (() => { function UsernameVerificationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -158423,13 +147637,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UsernameVerificationToken.encode = function encode(message, writer, q) { + UsernameVerificationToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) @@ -158471,18 +147681,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UsernameVerificationToken.decode = function decode(reader, length, error, long) { + UsernameVerificationToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.UsernameVerificationToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -158513,7 +147717,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -158544,13 +147748,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UsernameVerificationToken.verify = function verify(message, long) { + UsernameVerificationToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -158609,13 +147809,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.UsernameVerificationToken} UsernameVerificationToken */ - UsernameVerificationToken.fromObject = function fromObject(object, long) { + UsernameVerificationToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.UsernameVerificationToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.UsernameVerificationToken(); if (object.username != null) message.username = String(object.username); @@ -158726,7 +147922,7 @@ export const Tokens = $root.Tokens = (() => { } if (object.creation != null) if ($util.Long) - message.creation = $util.Long.fromValue(object.creation, false); + (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; else if (typeof object.creation === "string") message.creation = parseInt(object.creation, 10); else if (typeof object.creation === "number") @@ -158751,13 +147947,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UsernameVerificationToken.toObject = function toObject(message, options, q) { + UsernameVerificationToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -158771,9 +147963,9 @@ export const Tokens = $root.Tokens = (() => { object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.creation = options.longs === String ? "0" : 0; object.clientVersionId = 0; object.alternateUsername = ""; object.toUsername = ""; @@ -158785,9 +147977,7 @@ export const Tokens = $root.Tokens = (() => { if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.creation = typeof message.creation === "number" ? BigInt(message.creation) : $util.Long.fromBits(message.creation.low >>> 0, message.creation.high >>> 0, false).toBigInt(); - else if (typeof message.creation === "number") + if (typeof message.creation === "number") object.creation = options.longs === String ? String(message.creation) : message.creation; else object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; @@ -158856,7 +148046,7 @@ export const Tokens = $root.Tokens = (() => { function DeviceVerificationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -158945,13 +148135,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeviceVerificationToken.encode = function encode(message, writer, q) { + DeviceVerificationToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -158995,18 +148181,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeviceVerificationToken.decode = function decode(reader, length, error, long) { + DeviceVerificationToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.DeviceVerificationToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.deviceId = reader.int64(); @@ -159041,7 +148221,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -159072,13 +148252,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeviceVerificationToken.verify = function verify(message, long) { + DeviceVerificationToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceId != null && message.hasOwnProperty("deviceId")) if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) return "deviceId: integer|Long expected"; @@ -159140,17 +148316,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.DeviceVerificationToken} DeviceVerificationToken */ - DeviceVerificationToken.fromObject = function fromObject(object, long) { + DeviceVerificationToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.DeviceVerificationToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.DeviceVerificationToken(); if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -159268,7 +148440,7 @@ export const Tokens = $root.Tokens = (() => { } if (object.creation != null) if ($util.Long) - message.creation = $util.Long.fromValue(object.creation, false); + (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; else if (typeof object.creation === "string") message.creation = parseInt(object.creation, 10); else if (typeof object.creation === "number") @@ -159294,20 +148466,16 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeviceVerificationToken.toObject = function toObject(message, options, q) { + DeviceVerificationToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; object.username = ""; if (options.bytes === String) object.accountUid = ""; @@ -159320,9 +148488,9 @@ export const Tokens = $root.Tokens = (() => { object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.creation = options.longs === String ? "0" : 0; if (options.bytes === String) object.messageSessionUid = ""; else { @@ -159333,9 +148501,7 @@ export const Tokens = $root.Tokens = (() => { object.ipAddress = ""; } if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; @@ -159348,9 +148514,7 @@ export const Tokens = $root.Tokens = (() => { if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.creation = typeof message.creation === "number" ? BigInt(message.creation) : $util.Long.fromBits(message.creation.low >>> 0, message.creation.high >>> 0, false).toBigInt(); - else if (typeof message.creation === "number") + if (typeof message.creation === "number") object.creation = options.longs === String ? String(message.creation) : message.creation; else object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; @@ -159415,7 +148579,7 @@ export const Tokens = $root.Tokens = (() => { function ReActivateDeviceApprovalRequestToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -159488,13 +148652,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReActivateDeviceApprovalRequestToken.encode = function encode(message, writer, q) { + ReActivateDeviceApprovalRequestToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); if (message.fromUsername != null && Object.hasOwnProperty.call(message, "fromUsername")) @@ -159534,18 +148694,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReActivateDeviceApprovalRequestToken.decode = function decode(reader, length, error, long) { + ReActivateDeviceApprovalRequestToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ReActivateDeviceApprovalRequestToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.deviceId = reader.int64(); @@ -159572,7 +148726,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -159603,13 +148757,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReActivateDeviceApprovalRequestToken.verify = function verify(message, long) { + ReActivateDeviceApprovalRequestToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceId != null && message.hasOwnProperty("deviceId")) if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) return "deviceId: integer|Long expected"; @@ -159665,17 +148815,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.ReActivateDeviceApprovalRequestToken} ReActivateDeviceApprovalRequestToken */ - ReActivateDeviceApprovalRequestToken.fromObject = function fromObject(object, long) { + ReActivateDeviceApprovalRequestToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.ReActivateDeviceApprovalRequestToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.ReActivateDeviceApprovalRequestToken(); if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -159693,7 +148839,7 @@ export const Tokens = $root.Tokens = (() => { message.accountUid = object.accountUid; if (object.requestTimeStamp != null) if ($util.Long) - message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp, false); + (message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp)).unsigned = false; else if (typeof object.requestTimeStamp === "string") message.requestTimeStamp = parseInt(object.requestTimeStamp, 10); else if (typeof object.requestTimeStamp === "number") @@ -159812,20 +148958,16 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReActivateDeviceApprovalRequestToken.toObject = function toObject(message, options, q) { + ReActivateDeviceApprovalRequestToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; object.fromUsername = ""; object.forUsername = ""; if (options.bytes === String) @@ -159837,15 +148979,13 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.requestTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.requestTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.requestTimeStamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.requestTimeStamp = options.longs === String ? "0" : 0; object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; } if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; @@ -159856,9 +148996,7 @@ export const Tokens = $root.Tokens = (() => { if (message.accountUid != null && message.hasOwnProperty("accountUid")) object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.requestTimeStamp = typeof message.requestTimeStamp === "number" ? BigInt(message.requestTimeStamp) : $util.Long.fromBits(message.requestTimeStamp.low >>> 0, message.requestTimeStamp.high >>> 0, false).toBigInt(); - else if (typeof message.requestTimeStamp === "number") + if (typeof message.requestTimeStamp === "number") object.requestTimeStamp = options.longs === String ? String(message.requestTimeStamp) : message.requestTimeStamp; else object.requestTimeStamp = options.longs === String ? $util.Long.prototype.toString.call(message.requestTimeStamp) : options.longs === Number ? new $util.LongBits(message.requestTimeStamp.low >>> 0, message.requestTimeStamp.high >>> 0).toNumber() : message.requestTimeStamp; @@ -159922,7 +149060,7 @@ export const Tokens = $root.Tokens = (() => { function CreateUserToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -160003,13 +149141,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateUserToken.encode = function encode(message, writer, q) { + CreateUserToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.createUserRequestId != null && Object.hasOwnProperty.call(message, "createUserRequestId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.createUserRequestId); if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) @@ -160051,18 +149185,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateUserToken.decode = function decode(reader, length, error, long) { + CreateUserToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.CreateUserToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.createUserRequestId = reader.int32(); @@ -160093,7 +149221,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -160124,13 +149252,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateUserToken.verify = function verify(message, long) { + CreateUserToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.createUserRequestId != null && message.hasOwnProperty("createUserRequestId")) if (!$util.isInteger(message.createUserRequestId)) return "createUserRequestId: integer expected"; @@ -160189,13 +149313,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.CreateUserToken} CreateUserToken */ - CreateUserToken.fromObject = function fromObject(object, long) { + CreateUserToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.CreateUserToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.CreateUserToken(); if (object.createUserRequestId != null) message.createUserRequestId = object.createUserRequestId | 0; @@ -160203,7 +149323,7 @@ export const Tokens = $root.Tokens = (() => { message.verificationCode = String(object.verificationCode); if (object.requestTimeStamp != null) if ($util.Long) - message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp, false); + (message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp)).unsigned = false; else if (typeof object.requestTimeStamp === "string") message.requestTimeStamp = parseInt(object.requestTimeStamp, 10); else if (typeof object.requestTimeStamp === "number") @@ -160319,7 +149439,7 @@ export const Tokens = $root.Tokens = (() => { message.messageSessionUid = object.messageSessionUid; if (object.deviceId != null) if ($util.Long) - message.deviceId = $util.Long.fromValue(object.deviceId, false); + (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; else if (typeof object.deviceId === "string") message.deviceId = parseInt(object.deviceId, 10); else if (typeof object.deviceId === "number") @@ -160338,22 +149458,18 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateUserToken.toObject = function toObject(message, options, q) { + CreateUserToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.createUserRequestId = 0; object.verificationCode = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.requestTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.requestTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.requestTimeStamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.requestTimeStamp = options.longs === String ? "0" : 0; object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; object.remoteAddress = ""; if (options.bytes === String) @@ -160365,18 +149481,16 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceId = options.longs === String ? "0" : 0; } if (message.createUserRequestId != null && message.hasOwnProperty("createUserRequestId")) object.createUserRequestId = message.createUserRequestId; if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) object.verificationCode = message.verificationCode; if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.requestTimeStamp = typeof message.requestTimeStamp === "number" ? BigInt(message.requestTimeStamp) : $util.Long.fromBits(message.requestTimeStamp.low >>> 0, message.requestTimeStamp.high >>> 0, false).toBigInt(); - else if (typeof message.requestTimeStamp === "number") + if (typeof message.requestTimeStamp === "number") object.requestTimeStamp = options.longs === String ? String(message.requestTimeStamp) : message.requestTimeStamp; else object.requestTimeStamp = options.longs === String ? $util.Long.prototype.toString.call(message.requestTimeStamp) : options.longs === Number ? new $util.LongBits(message.requestTimeStamp.low >>> 0, message.requestTimeStamp.high >>> 0).toNumber() : message.requestTimeStamp; @@ -160387,9 +149501,7 @@ export const Tokens = $root.Tokens = (() => { if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceId = typeof message.deviceId === "number" ? BigInt(message.deviceId) : $util.Long.fromBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0, false).toBigInt(); - else if (typeof message.deviceId === "number") + if (typeof message.deviceId === "number") object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; @@ -160449,7 +149561,7 @@ export const Tokens = $root.Tokens = (() => { function DeleteUserToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -160514,13 +149626,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteUserToken.encode = function encode(message, writer, q) { + DeleteUserToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userIdForDelete != null && Object.hasOwnProperty.call(message, "userIdForDelete")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userIdForDelete); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -160558,18 +149666,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteUserToken.decode = function decode(reader, length, error, long) { + DeleteUserToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.DeleteUserToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userIdForDelete = reader.int32(); @@ -160592,7 +149694,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -160623,13 +149725,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteUserToken.verify = function verify(message, long) { + DeleteUserToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userIdForDelete != null && message.hasOwnProperty("userIdForDelete")) if (!$util.isInteger(message.userIdForDelete)) return "userIdForDelete: integer expected"; @@ -160682,13 +149780,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.DeleteUserToken} DeleteUserToken */ - DeleteUserToken.fromObject = function fromObject(object, long) { + DeleteUserToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.DeleteUserToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.DeleteUserToken(); if (object.userIdForDelete != null) message.userIdForDelete = object.userIdForDelete | 0; @@ -160698,7 +149792,7 @@ export const Tokens = $root.Tokens = (() => { message.reason = String(object.reason); if (object.requestTimeStamp != null) if ($util.Long) - message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp, false); + (message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp)).unsigned = false; else if (typeof object.requestTimeStamp === "string") message.requestTimeStamp = parseInt(object.requestTimeStamp, 10); else if (typeof object.requestTimeStamp === "number") @@ -160817,13 +149911,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteUserToken.toObject = function toObject(message, options, q) { + DeleteUserToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userIdForDelete = 0; @@ -160831,9 +149921,9 @@ export const Tokens = $root.Tokens = (() => { object.reason = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.requestTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.requestTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.requestTimeStamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.requestTimeStamp = options.longs === String ? "0" : 0; object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; } if (message.userIdForDelete != null && message.hasOwnProperty("userIdForDelete")) @@ -160843,9 +149933,7 @@ export const Tokens = $root.Tokens = (() => { if (message.reason != null && message.hasOwnProperty("reason")) object.reason = message.reason; if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.requestTimeStamp = typeof message.requestTimeStamp === "number" ? BigInt(message.requestTimeStamp) : $util.Long.fromBits(message.requestTimeStamp.low >>> 0, message.requestTimeStamp.high >>> 0, false).toBigInt(); - else if (typeof message.requestTimeStamp === "number") + if (typeof message.requestTimeStamp === "number") object.requestTimeStamp = options.longs === String ? String(message.requestTimeStamp) : message.requestTimeStamp; else object.requestTimeStamp = options.longs === String ? $util.Long.prototype.toString.call(message.requestTimeStamp) : options.longs === Number ? new $util.LongBits(message.requestTimeStamp.low >>> 0, message.requestTimeStamp.high >>> 0).toNumber() : message.requestTimeStamp; @@ -160935,7 +150023,7 @@ export const Tokens = $root.Tokens = (() => { function ProcessToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -161000,13 +150088,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProcessToken.encode = function encode(message, writer, q) { + ProcessToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.processTokenType != null && Object.hasOwnProperty.call(message, "processTokenType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.processTokenType); if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) @@ -161044,18 +150128,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProcessToken.decode = function decode(reader, length, error, long) { + ProcessToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ProcessToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.processTokenType = reader.int32(); @@ -161078,7 +150156,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -161109,13 +150187,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ProcessToken.verify = function verify(message, long) { + ProcessToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.processTokenType != null && message.hasOwnProperty("processTokenType")) switch (message.processTokenType) { default: @@ -161180,13 +150254,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.ProcessToken} ProcessToken */ - ProcessToken.fromObject = function fromObject(object, long) { + ProcessToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.ProcessToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.ProcessToken(); switch (object.processTokenType) { default: @@ -161239,7 +150309,7 @@ export const Tokens = $root.Tokens = (() => { message.payload = object.payload; if (object.creation != null) if ($util.Long) - message.creation = $util.Long.fromValue(object.creation, false); + (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; else if (typeof object.creation === "string") message.creation = parseInt(object.creation, 10); else if (typeof object.creation === "number") @@ -161360,13 +150430,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProcessToken.toObject = function toObject(message, options, q) { + ProcessToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.processTokenType = options.enums === String ? "CHANGE_EMAIL" : 0; @@ -161379,9 +150445,9 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.creation = options.longs === String ? "0" : 0; object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; object.subEnvironment = ""; } @@ -161390,9 +150456,7 @@ export const Tokens = $root.Tokens = (() => { if (message.payload != null && message.hasOwnProperty("payload")) object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload; if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.creation = typeof message.creation === "number" ? BigInt(message.creation) : $util.Long.fromBits(message.creation.low >>> 0, message.creation.high >>> 0, false).toBigInt(); - else if (typeof message.creation === "number") + if (typeof message.creation === "number") object.creation = options.longs === String ? String(message.creation) : message.creation; else object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; @@ -161469,7 +150533,7 @@ export const Tokens = $root.Tokens = (() => { function EnterpriseDataContinuationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -161526,19 +150590,15 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseDataContinuationToken.encode = function encode(message, writer, q) { + EnterpriseDataContinuationToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.startType != null && Object.hasOwnProperty.call(message, "startType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.startType); if (message.processedUpToTransactionId != null && Object.hasOwnProperty.call(message, "processedUpToTransactionId")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.processedUpToTransactionId); if (message.position != null && Object.hasOwnProperty.call(message, "position")) - $root.Tokens.Position.encode(message.position, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Tokens.Position.encode(message.position, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.lastProcessedTime != null && Object.hasOwnProperty.call(message, "lastProcessedTime")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.lastProcessedTime); return writer; @@ -161568,18 +150628,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseDataContinuationToken.decode = function decode(reader, length, error, long) { + EnterpriseDataContinuationToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseDataContinuationToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.startType = reader.int32(); @@ -161590,7 +150644,7 @@ export const Tokens = $root.Tokens = (() => { break; } case 3: { - message.position = $root.Tokens.Position.decode(reader, reader.uint32(), undefined, long + 1); + message.position = $root.Tokens.Position.decode(reader, reader.uint32()); break; } case 4: { @@ -161598,7 +150652,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -161629,13 +150683,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseDataContinuationToken.verify = function verify(message, long) { + EnterpriseDataContinuationToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.startType != null && message.hasOwnProperty("startType")) switch (message.startType) { default: @@ -161648,7 +150698,7 @@ export const Tokens = $root.Tokens = (() => { if (!$util.isInteger(message.processedUpToTransactionId) && !(message.processedUpToTransactionId && $util.isInteger(message.processedUpToTransactionId.low) && $util.isInteger(message.processedUpToTransactionId.high))) return "processedUpToTransactionId: integer|Long expected"; if (message.position != null && message.hasOwnProperty("position")) { - let error = $root.Tokens.Position.verify(message.position, long + 1); + let error = $root.Tokens.Position.verify(message.position); if (error) return "position." + error; } @@ -161666,13 +150716,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.EnterpriseDataContinuationToken} EnterpriseDataContinuationToken */ - EnterpriseDataContinuationToken.fromObject = function fromObject(object, long) { + EnterpriseDataContinuationToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.EnterpriseDataContinuationToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.EnterpriseDataContinuationToken(); switch (object.startType) { default: @@ -161692,7 +150738,7 @@ export const Tokens = $root.Tokens = (() => { } if (object.processedUpToTransactionId != null) if ($util.Long) - message.processedUpToTransactionId = $util.Long.fromValue(object.processedUpToTransactionId, false); + (message.processedUpToTransactionId = $util.Long.fromValue(object.processedUpToTransactionId)).unsigned = false; else if (typeof object.processedUpToTransactionId === "string") message.processedUpToTransactionId = parseInt(object.processedUpToTransactionId, 10); else if (typeof object.processedUpToTransactionId === "number") @@ -161702,7 +150748,7 @@ export const Tokens = $root.Tokens = (() => { if (object.position != null) { if (typeof object.position !== "object") throw TypeError(".Tokens.EnterpriseDataContinuationToken.position: object expected"); - message.position = $root.Tokens.Position.fromObject(object.position, long + 1); + message.position = $root.Tokens.Position.fromObject(object.position); } if (object.lastProcessedTime != null) message.lastProcessedTime = String(object.lastProcessedTime); @@ -161718,35 +150764,29 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseDataContinuationToken.toObject = function toObject(message, options, q) { + EnterpriseDataContinuationToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.startType = options.enums === String ? "FULL" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.processedUpToTransactionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.processedUpToTransactionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.processedUpToTransactionId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.processedUpToTransactionId = options.longs === String ? "0" : 0; object.position = null; object.lastProcessedTime = ""; } if (message.startType != null && message.hasOwnProperty("startType")) object.startType = options.enums === String ? $root.Tokens.PageTokenType[message.startType] === undefined ? message.startType : $root.Tokens.PageTokenType[message.startType] : message.startType; if (message.processedUpToTransactionId != null && message.hasOwnProperty("processedUpToTransactionId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.processedUpToTransactionId = typeof message.processedUpToTransactionId === "number" ? BigInt(message.processedUpToTransactionId) : $util.Long.fromBits(message.processedUpToTransactionId.low >>> 0, message.processedUpToTransactionId.high >>> 0, false).toBigInt(); - else if (typeof message.processedUpToTransactionId === "number") + if (typeof message.processedUpToTransactionId === "number") object.processedUpToTransactionId = options.longs === String ? String(message.processedUpToTransactionId) : message.processedUpToTransactionId; else object.processedUpToTransactionId = options.longs === String ? $util.Long.prototype.toString.call(message.processedUpToTransactionId) : options.longs === Number ? new $util.LongBits(message.processedUpToTransactionId.low >>> 0, message.processedUpToTransactionId.high >>> 0).toNumber() : message.processedUpToTransactionId; if (message.position != null && message.hasOwnProperty("position")) - object.position = $root.Tokens.Position.toObject(message.position, options, q + 1); + object.position = $root.Tokens.Position.toObject(message.position, options); if (message.lastProcessedTime != null && message.hasOwnProperty("lastProcessedTime")) object.lastProcessedTime = message.lastProcessedTime; return object; @@ -161925,7 +150965,7 @@ export const Tokens = $root.Tokens = (() => { function Position(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -161974,13 +151014,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Position.encode = function encode(message, writer, q) { + Position.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.entity); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -162014,18 +151050,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Position.decode = function decode(reader, length, error, long) { + Position.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.Position(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.entity = reader.int32(); @@ -162040,7 +151070,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -162071,13 +151101,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Position.verify = function verify(message, long) { + Position.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.entity != null && message.hasOwnProperty("entity")) switch (message.entity) { default: @@ -162125,13 +151151,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.Position} Position */ - Position.fromObject = function fromObject(object, long) { + Position.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.Position) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.Position(); switch (object.entity) { default: @@ -162239,7 +151261,7 @@ export const Tokens = $root.Tokens = (() => { } if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -162263,21 +151285,17 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Position.toObject = function toObject(message, options, q) { + Position.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.entity = options.enums === String ? "UNKNOWN" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if (options.bytes === String) object.location = ""; else { @@ -162289,9 +151307,7 @@ export const Tokens = $root.Tokens = (() => { if (message.entity != null && message.hasOwnProperty("entity")) object.entity = options.enums === String ? $root.Enterprise.EnterpriseDataEntity[message.entity] === undefined ? message.entity : $root.Enterprise.EnterpriseDataEntity[message.entity] : message.entity; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -162349,7 +151365,7 @@ export const Tokens = $root.Tokens = (() => { function LocationL(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -162382,13 +151398,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationL.encode = function encode(message, writer, q) { + LocationL.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); return writer; @@ -162418,25 +151430,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationL.decode = function decode(reader, length, error, long) { + LocationL.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationL(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -162467,13 +151473,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LocationL.verify = function verify(message, long) { + LocationL.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) return "id: integer|Long expected"; @@ -162488,17 +151490,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.LocationL} LocationL */ - LocationL.fromObject = function fromObject(object, long) { + LocationL.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.LocationL) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.LocationL(); if (object.id != null) if ($util.Long) - message.id = $util.Long.fromValue(object.id, false); + (message.id = $util.Long.fromValue(object.id)).unsigned = false; else if (typeof object.id === "string") message.id = parseInt(object.id, 10); else if (typeof object.id === "number") @@ -162517,24 +151515,18 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LocationL.toObject = function toObject(message, options, q) { + LocationL.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.id = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.id = options.longs === String ? "0" : 0; if (message.id != null && message.hasOwnProperty("id")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.id = typeof message.id === "number" ? BigInt(message.id) : $util.Long.fromBits(message.id.low >>> 0, message.id.high >>> 0, false).toBigInt(); - else if (typeof message.id === "number") + if (typeof message.id === "number") object.id = options.longs === String ? String(message.id) : message.id; else object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; @@ -162591,7 +151583,7 @@ export const Tokens = $root.Tokens = (() => { function LocationLL(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -162632,13 +151624,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationLL.encode = function encode(message, writer, q) { + LocationLL.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id1 != null && Object.hasOwnProperty.call(message, "id1")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id1); if (message.id2 != null && Object.hasOwnProperty.call(message, "id2")) @@ -162670,18 +151658,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationLL.decode = function decode(reader, length, error, long) { + LocationLL.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationLL(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id1 = reader.int64(); @@ -162692,7 +151674,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -162723,13 +151705,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LocationLL.verify = function verify(message, long) { + LocationLL.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id1 != null && message.hasOwnProperty("id1")) if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high))) return "id1: integer|Long expected"; @@ -162747,17 +151725,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.LocationLL} LocationLL */ - LocationLL.fromObject = function fromObject(object, long) { + LocationLL.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.LocationLL) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.LocationLL(); if (object.id1 != null) if ($util.Long) - message.id1 = $util.Long.fromValue(object.id1, false); + (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false; else if (typeof object.id1 === "string") message.id1 = parseInt(object.id1, 10); else if (typeof object.id1 === "number") @@ -162766,7 +151740,7 @@ export const Tokens = $root.Tokens = (() => { message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber(); if (object.id2 != null) if ($util.Long) - message.id2 = $util.Long.fromValue(object.id2, false); + (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false; else if (typeof object.id2 === "string") message.id2 = parseInt(object.id2, 10); else if (typeof object.id2 === "number") @@ -162785,37 +151759,29 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LocationLL.toObject = function toObject(message, options, q) { + LocationLL.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.id1 = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.id1 = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.id2 = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.id2 = options.longs === String ? "0" : 0; } if (message.id1 != null && message.hasOwnProperty("id1")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.id1 = typeof message.id1 === "number" ? BigInt(message.id1) : $util.Long.fromBits(message.id1.low >>> 0, message.id1.high >>> 0, false).toBigInt(); - else if (typeof message.id1 === "number") + if (typeof message.id1 === "number") object.id1 = options.longs === String ? String(message.id1) : message.id1; else object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1; if (message.id2 != null && message.hasOwnProperty("id2")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.id2 = typeof message.id2 === "number" ? BigInt(message.id2) : $util.Long.fromBits(message.id2.low >>> 0, message.id2.high >>> 0, false).toBigInt(); - else if (typeof message.id2 === "number") + if (typeof message.id2 === "number") object.id2 = options.longs === String ? String(message.id2) : message.id2; else object.id2 = options.longs === String ? $util.Long.prototype.toString.call(message.id2) : options.longs === Number ? new $util.LongBits(message.id2.low >>> 0, message.id2.high >>> 0).toNumber() : message.id2; @@ -162872,7 +151838,7 @@ export const Tokens = $root.Tokens = (() => { function LocationLI(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -162913,13 +151879,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationLI.encode = function encode(message, writer, q) { + LocationLI.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id1 != null && Object.hasOwnProperty.call(message, "id1")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id1); if (message.id2 != null && Object.hasOwnProperty.call(message, "id2")) @@ -162951,18 +151913,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationLI.decode = function decode(reader, length, error, long) { + LocationLI.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationLI(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id1 = reader.int64(); @@ -162973,7 +151929,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -163004,13 +151960,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LocationLI.verify = function verify(message, long) { + LocationLI.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id1 != null && message.hasOwnProperty("id1")) if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high))) return "id1: integer|Long expected"; @@ -163028,17 +151980,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.LocationLI} LocationLI */ - LocationLI.fromObject = function fromObject(object, long) { + LocationLI.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.LocationLI) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.LocationLI(); if (object.id1 != null) if ($util.Long) - message.id1 = $util.Long.fromValue(object.id1, false); + (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false; else if (typeof object.id1 === "string") message.id1 = parseInt(object.id1, 10); else if (typeof object.id1 === "number") @@ -163059,26 +152007,20 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LocationLI.toObject = function toObject(message, options, q) { + LocationLI.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.id1 = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.id1 = options.longs === String ? "0" : 0; object.id2 = 0; } if (message.id1 != null && message.hasOwnProperty("id1")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.id1 = typeof message.id1 === "number" ? BigInt(message.id1) : $util.Long.fromBits(message.id1.low >>> 0, message.id1.high >>> 0, false).toBigInt(); - else if (typeof message.id1 === "number") + if (typeof message.id1 === "number") object.id1 = options.longs === String ? String(message.id1) : message.id1; else object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1; @@ -163137,7 +152079,7 @@ export const Tokens = $root.Tokens = (() => { function LocationII(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -163178,13 +152120,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationII.encode = function encode(message, writer, q) { + LocationII.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id1 != null && Object.hasOwnProperty.call(message, "id1")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id1); if (message.id2 != null && Object.hasOwnProperty.call(message, "id2")) @@ -163216,18 +152154,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationII.decode = function decode(reader, length, error, long) { + LocationII.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationII(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id1 = reader.int32(); @@ -163238,7 +152170,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -163269,13 +152201,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LocationII.verify = function verify(message, long) { + LocationII.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id1 != null && message.hasOwnProperty("id1")) if (!$util.isInteger(message.id1)) return "id1: integer expected"; @@ -163293,13 +152221,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.LocationII} LocationII */ - LocationII.fromObject = function fromObject(object, long) { + LocationII.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.LocationII) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.LocationII(); if (object.id1 != null) message.id1 = object.id1 | 0; @@ -163317,13 +152241,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LocationII.toObject = function toObject(message, options, q) { + LocationII.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id1 = 0; @@ -163385,7 +152305,7 @@ export const Tokens = $root.Tokens = (() => { function LocationB(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -163418,13 +152338,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationB.encode = function encode(message, writer, q) { + LocationB.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); return writer; @@ -163454,25 +152370,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationB.decode = function decode(reader, length, error, long) { + LocationB.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationB(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -163503,13 +152413,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LocationB.verify = function verify(message, long) { + LocationB.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -163524,13 +152430,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.LocationB} LocationB */ - LocationB.fromObject = function fromObject(object, long) { + LocationB.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.LocationB) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.LocationB(); if (object.uid != null) if (typeof object.uid === "string") @@ -163549,13 +152451,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LocationB.toObject = function toObject(message, options, q) { + LocationB.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -163620,7 +152518,7 @@ export const Tokens = $root.Tokens = (() => { function LocationLB(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -163661,13 +152559,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationLB.encode = function encode(message, writer, q) { + LocationLB.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) @@ -163699,18 +152593,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationLB.decode = function decode(reader, length, error, long) { + LocationLB.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationLB(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int64(); @@ -163721,7 +152609,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -163752,13 +152640,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LocationLB.verify = function verify(message, long) { + LocationLB.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) return "id: integer|Long expected"; @@ -163776,17 +152660,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.LocationLB} LocationLB */ - LocationLB.fromObject = function fromObject(object, long) { + LocationLB.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.LocationLB) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.LocationLB(); if (object.id != null) if ($util.Long) - message.id = $util.Long.fromValue(object.id, false); + (message.id = $util.Long.fromValue(object.id)).unsigned = false; else if (typeof object.id === "string") message.id = parseInt(object.id, 10); else if (typeof object.id === "number") @@ -163810,20 +152690,16 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LocationLB.toObject = function toObject(message, options, q) { + LocationLB.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.id = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.id = options.longs === String ? "0" : 0; if (options.bytes === String) object.uid = ""; else { @@ -163833,9 +152709,7 @@ export const Tokens = $root.Tokens = (() => { } } if (message.id != null && message.hasOwnProperty("id")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.id = typeof message.id === "number" ? BigInt(message.id) : $util.Long.fromBits(message.id.low >>> 0, message.id.high >>> 0, false).toBigInt(); - else if (typeof message.id === "number") + if (typeof message.id === "number") object.id = options.longs === String ? String(message.id) : message.id; else object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; @@ -163894,7 +152768,7 @@ export const Tokens = $root.Tokens = (() => { function LocationBI(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -163935,13 +152809,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationBI.encode = function encode(message, writer, q) { + LocationBI.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.id != null && Object.hasOwnProperty.call(message, "id")) @@ -163973,18 +152843,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationBI.decode = function decode(reader, length, error, long) { + LocationBI.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationBI(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); @@ -163995,7 +152859,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -164026,13 +152890,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LocationBI.verify = function verify(message, long) { + LocationBI.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -164050,13 +152910,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.LocationBI} LocationBI */ - LocationBI.fromObject = function fromObject(object, long) { + LocationBI.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.LocationBI) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.LocationBI(); if (object.uid != null) if (typeof object.uid === "string") @@ -164077,13 +152933,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LocationBI.toObject = function toObject(message, options, q) { + LocationBI.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -164152,7 +153004,7 @@ export const Tokens = $root.Tokens = (() => { function LocationLS(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -164193,13 +153045,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LocationLS.encode = function encode(message, writer, q) { + LocationLS.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id1 != null && Object.hasOwnProperty.call(message, "id1")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id1); if (message.str != null && Object.hasOwnProperty.call(message, "str")) @@ -164231,18 +153079,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LocationLS.decode = function decode(reader, length, error, long) { + LocationLS.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationLS(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id1 = reader.int64(); @@ -164253,7 +153095,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -164284,13 +153126,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LocationLS.verify = function verify(message, long) { + LocationLS.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id1 != null && message.hasOwnProperty("id1")) if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high))) return "id1: integer|Long expected"; @@ -164308,17 +153146,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.LocationLS} LocationLS */ - LocationLS.fromObject = function fromObject(object, long) { + LocationLS.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.LocationLS) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.LocationLS(); if (object.id1 != null) if ($util.Long) - message.id1 = $util.Long.fromValue(object.id1, false); + (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false; else if (typeof object.id1 === "string") message.id1 = parseInt(object.id1, 10); else if (typeof object.id1 === "number") @@ -164339,26 +153173,20 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LocationLS.toObject = function toObject(message, options, q) { + LocationLS.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.id1 = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.id1 = options.longs === String ? "0" : 0; object.str = ""; } if (message.id1 != null && message.hasOwnProperty("id1")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.id1 = typeof message.id1 === "number" ? BigInt(message.id1) : $util.Long.fromBits(message.id1.low >>> 0, message.id1.high >>> 0, false).toBigInt(); - else if (typeof message.id1 === "number") + if (typeof message.id1 === "number") object.id1 = options.longs === String ? String(message.id1) : message.id1; else object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1; @@ -164418,7 +153246,7 @@ export const Tokens = $root.Tokens = (() => { function EnterpriseDataRoleTeamsPageToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -164467,13 +153295,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseDataRoleTeamsPageToken.encode = function encode(message, writer, q) { + EnterpriseDataRoleTeamsPageToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.lastNodeId != null && Object.hasOwnProperty.call(message, "lastNodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastNodeId); if (message.lastRoleId != null && Object.hasOwnProperty.call(message, "lastRoleId")) @@ -164507,18 +153331,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseDataRoleTeamsPageToken.decode = function decode(reader, length, error, long) { + EnterpriseDataRoleTeamsPageToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseDataRoleTeamsPageToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.lastNodeId = reader.int64(); @@ -164533,7 +153351,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -164564,13 +153382,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseDataRoleTeamsPageToken.verify = function verify(message, long) { + EnterpriseDataRoleTeamsPageToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) if (!$util.isInteger(message.lastNodeId) && !(message.lastNodeId && $util.isInteger(message.lastNodeId.low) && $util.isInteger(message.lastNodeId.high))) return "lastNodeId: integer|Long expected"; @@ -164591,17 +153405,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.EnterpriseDataRoleTeamsPageToken} EnterpriseDataRoleTeamsPageToken */ - EnterpriseDataRoleTeamsPageToken.fromObject = function fromObject(object, long) { + EnterpriseDataRoleTeamsPageToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.EnterpriseDataRoleTeamsPageToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.EnterpriseDataRoleTeamsPageToken(); if (object.lastNodeId != null) if ($util.Long) - message.lastNodeId = $util.Long.fromValue(object.lastNodeId, false); + (message.lastNodeId = $util.Long.fromValue(object.lastNodeId)).unsigned = false; else if (typeof object.lastNodeId === "string") message.lastNodeId = parseInt(object.lastNodeId, 10); else if (typeof object.lastNodeId === "number") @@ -164610,7 +153420,7 @@ export const Tokens = $root.Tokens = (() => { message.lastNodeId = new $util.LongBits(object.lastNodeId.low >>> 0, object.lastNodeId.high >>> 0).toNumber(); if (object.lastRoleId != null) if ($util.Long) - message.lastRoleId = $util.Long.fromValue(object.lastRoleId, false); + (message.lastRoleId = $util.Long.fromValue(object.lastRoleId)).unsigned = false; else if (typeof object.lastRoleId === "string") message.lastRoleId = parseInt(object.lastRoleId, 10); else if (typeof object.lastRoleId === "number") @@ -164634,25 +153444,21 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseDataRoleTeamsPageToken.toObject = function toObject(message, options, q) { + EnterpriseDataRoleTeamsPageToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastNodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastNodeId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastRoleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastRoleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastRoleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastRoleId = options.longs === String ? "0" : 0; if (options.bytes === String) object.lastTeamUid = ""; else { @@ -164662,16 +153468,12 @@ export const Tokens = $root.Tokens = (() => { } } if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastNodeId = typeof message.lastNodeId === "number" ? BigInt(message.lastNodeId) : $util.Long.fromBits(message.lastNodeId.low >>> 0, message.lastNodeId.high >>> 0, false).toBigInt(); - else if (typeof message.lastNodeId === "number") + if (typeof message.lastNodeId === "number") object.lastNodeId = options.longs === String ? String(message.lastNodeId) : message.lastNodeId; else object.lastNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.lastNodeId) : options.longs === Number ? new $util.LongBits(message.lastNodeId.low >>> 0, message.lastNodeId.high >>> 0).toNumber() : message.lastNodeId; if (message.lastRoleId != null && message.hasOwnProperty("lastRoleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastRoleId = typeof message.lastRoleId === "number" ? BigInt(message.lastRoleId) : $util.Long.fromBits(message.lastRoleId.low >>> 0, message.lastRoleId.high >>> 0, false).toBigInt(); - else if (typeof message.lastRoleId === "number") + if (typeof message.lastRoleId === "number") object.lastRoleId = options.longs === String ? String(message.lastRoleId) : message.lastRoleId; else object.lastRoleId = options.longs === String ? $util.Long.prototype.toString.call(message.lastRoleId) : options.longs === Number ? new $util.LongBits(message.lastRoleId.low >>> 0, message.lastRoleId.high >>> 0).toNumber() : message.lastRoleId; @@ -164730,7 +153532,7 @@ export const Tokens = $root.Tokens = (() => { function EnterpriseDataTeamsPageToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -164771,13 +153573,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseDataTeamsPageToken.encode = function encode(message, writer, q) { + EnterpriseDataTeamsPageToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.lastNodeId != null && Object.hasOwnProperty.call(message, "lastNodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastNodeId); if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, "lastTeamUid")) @@ -164809,18 +153607,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseDataTeamsPageToken.decode = function decode(reader, length, error, long) { + EnterpriseDataTeamsPageToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseDataTeamsPageToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.lastNodeId = reader.int64(); @@ -164831,7 +153623,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -164862,13 +153654,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseDataTeamsPageToken.verify = function verify(message, long) { + EnterpriseDataTeamsPageToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) if (!$util.isInteger(message.lastNodeId) && !(message.lastNodeId && $util.isInteger(message.lastNodeId.low) && $util.isInteger(message.lastNodeId.high))) return "lastNodeId: integer|Long expected"; @@ -164886,17 +153674,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.EnterpriseDataTeamsPageToken} EnterpriseDataTeamsPageToken */ - EnterpriseDataTeamsPageToken.fromObject = function fromObject(object, long) { + EnterpriseDataTeamsPageToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.EnterpriseDataTeamsPageToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.EnterpriseDataTeamsPageToken(); if (object.lastNodeId != null) if ($util.Long) - message.lastNodeId = $util.Long.fromValue(object.lastNodeId, false); + (message.lastNodeId = $util.Long.fromValue(object.lastNodeId)).unsigned = false; else if (typeof object.lastNodeId === "string") message.lastNodeId = parseInt(object.lastNodeId, 10); else if (typeof object.lastNodeId === "number") @@ -164920,20 +153704,16 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseDataTeamsPageToken.toObject = function toObject(message, options, q) { + EnterpriseDataTeamsPageToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastNodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastNodeId = options.longs === String ? "0" : 0; if (options.bytes === String) object.lastTeamUid = ""; else { @@ -164943,9 +153723,7 @@ export const Tokens = $root.Tokens = (() => { } } if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastNodeId = typeof message.lastNodeId === "number" ? BigInt(message.lastNodeId) : $util.Long.fromBits(message.lastNodeId.low >>> 0, message.lastNodeId.high >>> 0, false).toBigInt(); - else if (typeof message.lastNodeId === "number") + if (typeof message.lastNodeId === "number") object.lastNodeId = options.longs === String ? String(message.lastNodeId) : message.lastNodeId; else object.lastNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.lastNodeId) : options.longs === Number ? new $util.LongBits(message.lastNodeId.low >>> 0, message.lastNodeId.high >>> 0).toNumber() : message.lastNodeId; @@ -165005,7 +153783,7 @@ export const Tokens = $root.Tokens = (() => { function EnterpriseDataTeamUsersPageToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -165054,13 +153832,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseDataTeamUsersPageToken.encode = function encode(message, writer, q) { + EnterpriseDataTeamUsersPageToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.lastNodeId != null && Object.hasOwnProperty.call(message, "lastNodeId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastNodeId); if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, "lastTeamUid")) @@ -165094,18 +153868,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseDataTeamUsersPageToken.decode = function decode(reader, length, error, long) { + EnterpriseDataTeamUsersPageToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseDataTeamUsersPageToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.lastNodeId = reader.int64(); @@ -165120,7 +153888,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -165151,13 +153919,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseDataTeamUsersPageToken.verify = function verify(message, long) { + EnterpriseDataTeamUsersPageToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) if (!$util.isInteger(message.lastNodeId) && !(message.lastNodeId && $util.isInteger(message.lastNodeId.low) && $util.isInteger(message.lastNodeId.high))) return "lastNodeId: integer|Long expected"; @@ -165178,17 +153942,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.EnterpriseDataTeamUsersPageToken} EnterpriseDataTeamUsersPageToken */ - EnterpriseDataTeamUsersPageToken.fromObject = function fromObject(object, long) { + EnterpriseDataTeamUsersPageToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.EnterpriseDataTeamUsersPageToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.EnterpriseDataTeamUsersPageToken(); if (object.lastNodeId != null) if ($util.Long) - message.lastNodeId = $util.Long.fromValue(object.lastNodeId, false); + (message.lastNodeId = $util.Long.fromValue(object.lastNodeId)).unsigned = false; else if (typeof object.lastNodeId === "string") message.lastNodeId = parseInt(object.lastNodeId, 10); else if (typeof object.lastNodeId === "number") @@ -165214,20 +153974,16 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseDataTeamUsersPageToken.toObject = function toObject(message, options, q) { + EnterpriseDataTeamUsersPageToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastNodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastNodeId = options.longs === String ? "0" : 0; if (options.bytes === String) object.lastTeamUid = ""; else { @@ -165238,9 +153994,7 @@ export const Tokens = $root.Tokens = (() => { object.userId = 0; } if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastNodeId = typeof message.lastNodeId === "number" ? BigInt(message.lastNodeId) : $util.Long.fromBits(message.lastNodeId.low >>> 0, message.lastNodeId.high >>> 0, false).toBigInt(); - else if (typeof message.lastNodeId === "number") + if (typeof message.lastNodeId === "number") object.lastNodeId = options.longs === String ? String(message.lastNodeId) : message.lastNodeId; else object.lastNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.lastNodeId) : options.longs === Number ? new $util.LongBits(message.lastNodeId.low >>> 0, message.lastNodeId.high >>> 0).toNumber() : message.lastNodeId; @@ -165321,7 +154075,7 @@ export const Tokens = $root.Tokens = (() => { function EnterpriseBackupUnlockPair(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -165378,13 +154132,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseBackupUnlockPair.encode = function encode(message, writer, q) { + EnterpriseBackupUnlockPair.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.user1Id != null && Object.hasOwnProperty.call(message, "user1Id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.user1Id); if (message.user2Id != null && Object.hasOwnProperty.call(message, "user2Id")) @@ -165420,18 +154170,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseBackupUnlockPair.decode = function decode(reader, length, error, long) { + EnterpriseBackupUnlockPair.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseBackupUnlockPair(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.user1Id = reader.int32(); @@ -165450,7 +154194,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -165481,13 +154225,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseBackupUnlockPair.verify = function verify(message, long) { + EnterpriseBackupUnlockPair.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.user1Id != null && message.hasOwnProperty("user1Id")) if (!$util.isInteger(message.user1Id)) return "user1Id: integer expected"; @@ -165511,13 +154251,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.EnterpriseBackupUnlockPair} EnterpriseBackupUnlockPair */ - EnterpriseBackupUnlockPair.fromObject = function fromObject(object, long) { + EnterpriseBackupUnlockPair.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.EnterpriseBackupUnlockPair) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.EnterpriseBackupUnlockPair(); if (object.user1Id != null) message.user1Id = object.user1Id | 0; @@ -165545,13 +154281,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseBackupUnlockPair.toObject = function toObject(message, options, q) { + EnterpriseBackupUnlockPair.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.user1Id = 0; @@ -165636,7 +154368,7 @@ export const Tokens = $root.Tokens = (() => { this.unlockPairs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -165701,18 +154433,14 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseBackupContinuationToken.encode = function encode(message, writer, q) { + EnterpriseBackupContinuationToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.backupKey != null && Object.hasOwnProperty.call(message, "backupKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.backupKey); if (message.unlockPairs != null && message.unlockPairs.length) for (let i = 0; i < message.unlockPairs.length; ++i) - $root.Tokens.EnterpriseBackupUnlockPair.encode(message.unlockPairs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Tokens.EnterpriseBackupUnlockPair.encode(message.unlockPairs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.backupStage != null && Object.hasOwnProperty.call(message, "backupStage")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.backupStage); if (message.startUser != null && Object.hasOwnProperty.call(message, "startUser")) @@ -165746,18 +154474,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseBackupContinuationToken.decode = function decode(reader, length, error, long) { + EnterpriseBackupContinuationToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseBackupContinuationToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.backupKey = reader.bytes(); @@ -165766,7 +154488,7 @@ export const Tokens = $root.Tokens = (() => { case 2: { if (!(message.unlockPairs && message.unlockPairs.length)) message.unlockPairs = []; - message.unlockPairs.push($root.Tokens.EnterpriseBackupUnlockPair.decode(reader, reader.uint32(), undefined, long + 1)); + message.unlockPairs.push($root.Tokens.EnterpriseBackupUnlockPair.decode(reader, reader.uint32())); break; } case 3: { @@ -165782,7 +154504,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -165813,13 +154535,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseBackupContinuationToken.verify = function verify(message, long) { + EnterpriseBackupContinuationToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.backupKey != null && message.hasOwnProperty("backupKey")) if (!(message.backupKey && typeof message.backupKey.length === "number" || $util.isString(message.backupKey))) return "backupKey: buffer expected"; @@ -165827,7 +154545,7 @@ export const Tokens = $root.Tokens = (() => { if (!Array.isArray(message.unlockPairs)) return "unlockPairs: array expected"; for (let i = 0; i < message.unlockPairs.length; ++i) { - let error = $root.Tokens.EnterpriseBackupUnlockPair.verify(message.unlockPairs[i], long + 1); + let error = $root.Tokens.EnterpriseBackupUnlockPair.verify(message.unlockPairs[i]); if (error) return "unlockPairs." + error; } @@ -165859,13 +154577,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.EnterpriseBackupContinuationToken} EnterpriseBackupContinuationToken */ - EnterpriseBackupContinuationToken.fromObject = function fromObject(object, long) { + EnterpriseBackupContinuationToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.EnterpriseBackupContinuationToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.EnterpriseBackupContinuationToken(); if (object.backupKey != null) if (typeof object.backupKey === "string") @@ -165879,7 +154593,7 @@ export const Tokens = $root.Tokens = (() => { for (let i = 0; i < object.unlockPairs.length; ++i) { if (typeof object.unlockPairs[i] !== "object") throw TypeError(".Tokens.EnterpriseBackupContinuationToken.unlockPairs: object expected"); - message.unlockPairs[i] = $root.Tokens.EnterpriseBackupUnlockPair.fromObject(object.unlockPairs[i], long + 1); + message.unlockPairs[i] = $root.Tokens.EnterpriseBackupUnlockPair.fromObject(object.unlockPairs[i]); } } switch (object.backupStage) { @@ -165908,7 +154622,7 @@ export const Tokens = $root.Tokens = (() => { } if (object.startUser != null) if ($util.Long) - message.startUser = $util.Long.fromValue(object.startUser, false); + (message.startUser = $util.Long.fromValue(object.startUser)).unsigned = false; else if (typeof object.startUser === "string") message.startUser = parseInt(object.startUser, 10); else if (typeof object.startUser === "number") @@ -165932,13 +154646,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseBackupContinuationToken.toObject = function toObject(message, options, q) { + EnterpriseBackupContinuationToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.unlockPairs = []; @@ -165953,9 +154663,9 @@ export const Tokens = $root.Tokens = (() => { object.backupStage = options.enums === String ? "EBS_USERS" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.startUser = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.startUser = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.startUser = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.startUser = options.longs === String ? "0" : 0; if (options.bytes === String) object.startRecord = ""; else { @@ -165969,14 +154679,12 @@ export const Tokens = $root.Tokens = (() => { if (message.unlockPairs && message.unlockPairs.length) { object.unlockPairs = []; for (let j = 0; j < message.unlockPairs.length; ++j) - object.unlockPairs[j] = $root.Tokens.EnterpriseBackupUnlockPair.toObject(message.unlockPairs[j], options, q + 1); + object.unlockPairs[j] = $root.Tokens.EnterpriseBackupUnlockPair.toObject(message.unlockPairs[j], options); } if (message.backupStage != null && message.hasOwnProperty("backupStage")) object.backupStage = options.enums === String ? $root.Tokens.EnterpriseBackupStage[message.backupStage] === undefined ? message.backupStage : $root.Tokens.EnterpriseBackupStage[message.backupStage] : message.backupStage; if (message.startUser != null && message.hasOwnProperty("startUser")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.startUser = typeof message.startUser === "number" ? BigInt(message.startUser) : $util.Long.fromBits(message.startUser.low >>> 0, message.startUser.high >>> 0, false).toBigInt(); - else if (typeof message.startUser === "number") + if (typeof message.startUser === "number") object.startUser = options.longs === String ? String(message.startUser) : message.startUser; else object.startUser = options.longs === String ? $util.Long.prototype.toString.call(message.startUser) : options.longs === Number ? new $util.LongBits(message.startUser.low >>> 0, message.startUser.high >>> 0).toNumber() : message.startUser; @@ -166037,7 +154745,7 @@ export const Tokens = $root.Tokens = (() => { function VerificationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -166094,13 +154802,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VerificationToken.encode = function encode(message, writer, q) { + VerificationToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -166136,18 +154840,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VerificationToken.decode = function decode(reader, length, error, long) { + VerificationToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.VerificationToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.accountUid = reader.bytes(); @@ -166166,7 +154864,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -166197,13 +154895,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VerificationToken.verify = function verify(message, long) { + VerificationToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.accountUid != null && message.hasOwnProperty("accountUid")) if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) return "accountUid: buffer expected"; @@ -166227,13 +154921,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.VerificationToken} VerificationToken */ - VerificationToken.fromObject = function fromObject(object, long) { + VerificationToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.VerificationToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.VerificationToken(); if (object.accountUid != null) if (typeof object.accountUid === "string") @@ -166246,7 +154936,7 @@ export const Tokens = $root.Tokens = (() => { message.regionId = object.regionId | 0; if (object.creation != null) if ($util.Long) - message.creation = $util.Long.fromValue(object.creation, false); + (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; else if (typeof object.creation === "string") message.creation = parseInt(object.creation, 10); else if (typeof object.creation === "number") @@ -166265,13 +154955,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VerificationToken.toObject = function toObject(message, options, q) { + VerificationToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -166285,9 +154971,9 @@ export const Tokens = $root.Tokens = (() => { object.regionId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.creation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.creation = options.longs === String ? "0" : 0; } if (message.accountUid != null && message.hasOwnProperty("accountUid")) object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; @@ -166296,9 +154982,7 @@ export const Tokens = $root.Tokens = (() => { if (message.regionId != null && message.hasOwnProperty("regionId")) object.regionId = message.regionId; if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.creation = typeof message.creation === "number" ? BigInt(message.creation) : $util.Long.fromBits(message.creation.low >>> 0, message.creation.high >>> 0, false).toBigInt(); - else if (typeof message.creation === "number") + if (typeof message.creation === "number") object.creation = options.longs === String ? String(message.creation) : message.creation; else object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; @@ -166355,7 +155039,7 @@ export const Tokens = $root.Tokens = (() => { function ComplianceDataContinuationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -166396,13 +155080,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ComplianceDataContinuationToken.encode = function encode(message, writer, q) { + ComplianceDataContinuationToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -166434,18 +155114,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ComplianceDataContinuationToken.decode = function decode(reader, length, error, long) { + ComplianceDataContinuationToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ComplianceDataContinuationToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -166456,7 +155130,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -166487,13 +155161,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ComplianceDataContinuationToken.verify = function verify(message, long) { + ComplianceDataContinuationToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -166511,17 +155181,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.ComplianceDataContinuationToken} ComplianceDataContinuationToken */ - ComplianceDataContinuationToken.fromObject = function fromObject(object, long) { + ComplianceDataContinuationToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.ComplianceDataContinuationToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.ComplianceDataContinuationToken(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -166545,20 +155211,16 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ComplianceDataContinuationToken.toObject = function toObject(message, options, q) { + ComplianceDataContinuationToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.recordUid = ""; else { @@ -166568,9 +155230,7 @@ export const Tokens = $root.Tokens = (() => { } } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -166641,7 +155301,7 @@ export const Tokens = $root.Tokens = (() => { function VaultSyncDownContinuationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -166778,13 +155438,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultSyncDownContinuationToken.encode = function encode(message, writer, q) { + VaultSyncDownContinuationToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.tokenVersion != null && Object.hasOwnProperty.call(message, "tokenVersion")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tokenVersion); if (message.syncedToSyncOrder != null && Object.hasOwnProperty.call(message, "syncedToSyncOrder")) @@ -166796,7 +155452,7 @@ export const Tokens = $root.Tokens = (() => { if (message.lastFullSyncCompleted != null && Object.hasOwnProperty.call(message, "lastFullSyncCompleted")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.lastFullSyncCompleted); if (message.locations != null && Object.hasOwnProperty.call(message, "locations")) - $root.Tokens.VaultSyncDownLocations.encode(message.locations, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Tokens.VaultSyncDownLocations.encode(message.locations, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.checkForAuditData != null && Object.hasOwnProperty.call(message, "checkForAuditData")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.checkForAuditData); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) @@ -166840,18 +155496,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VaultSyncDownContinuationToken.decode = function decode(reader, length, error, long) { + VaultSyncDownContinuationToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.VaultSyncDownContinuationToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.tokenVersion = reader.int32(); @@ -166874,7 +155524,7 @@ export const Tokens = $root.Tokens = (() => { break; } case 6: { - message.locations = $root.Tokens.VaultSyncDownLocations.decode(reader, reader.uint32(), undefined, long + 1); + message.locations = $root.Tokens.VaultSyncDownLocations.decode(reader, reader.uint32()); break; } case 7: { @@ -166910,7 +155560,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -166941,13 +155591,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VaultSyncDownContinuationToken.verify = function verify(message, long) { + VaultSyncDownContinuationToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.tokenVersion != null && message.hasOwnProperty("tokenVersion")) if (!$util.isInteger(message.tokenVersion)) return "tokenVersion: integer expected"; @@ -166964,7 +155610,7 @@ export const Tokens = $root.Tokens = (() => { if (!$util.isInteger(message.lastFullSyncCompleted)) return "lastFullSyncCompleted: integer expected"; if (message.locations != null && message.hasOwnProperty("locations")) { - let error = $root.Tokens.VaultSyncDownLocations.verify(message.locations, long + 1); + let error = $root.Tokens.VaultSyncDownLocations.verify(message.locations); if (error) return "locations." + error; } @@ -167003,19 +155649,15 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.VaultSyncDownContinuationToken} VaultSyncDownContinuationToken */ - VaultSyncDownContinuationToken.fromObject = function fromObject(object, long) { + VaultSyncDownContinuationToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.VaultSyncDownContinuationToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.VaultSyncDownContinuationToken(); if (object.tokenVersion != null) message.tokenVersion = object.tokenVersion | 0; if (object.syncedToSyncOrder != null) if ($util.Long) - message.syncedToSyncOrder = $util.Long.fromValue(object.syncedToSyncOrder, false); + (message.syncedToSyncOrder = $util.Long.fromValue(object.syncedToSyncOrder)).unsigned = false; else if (typeof object.syncedToSyncOrder === "string") message.syncedToSyncOrder = parseInt(object.syncedToSyncOrder, 10); else if (typeof object.syncedToSyncOrder === "number") @@ -167024,7 +155666,7 @@ export const Tokens = $root.Tokens = (() => { message.syncedToSyncOrder = new $util.LongBits(object.syncedToSyncOrder.low >>> 0, object.syncedToSyncOrder.high >>> 0).toNumber(); if (object.syncingToSyncOrder != null) if ($util.Long) - message.syncingToSyncOrder = $util.Long.fromValue(object.syncingToSyncOrder, false); + (message.syncingToSyncOrder = $util.Long.fromValue(object.syncingToSyncOrder)).unsigned = false; else if (typeof object.syncingToSyncOrder === "string") message.syncingToSyncOrder = parseInt(object.syncingToSyncOrder, 10); else if (typeof object.syncingToSyncOrder === "number") @@ -167038,7 +155680,7 @@ export const Tokens = $root.Tokens = (() => { if (object.locations != null) { if (typeof object.locations !== "object") throw TypeError(".Tokens.VaultSyncDownContinuationToken.locations: object expected"); - message.locations = $root.Tokens.VaultSyncDownLocations.fromObject(object.locations, long + 1); + message.locations = $root.Tokens.VaultSyncDownLocations.fromObject(object.locations); } if (object.checkForAuditData != null) message.checkForAuditData = Boolean(object.checkForAuditData); @@ -167050,7 +155692,7 @@ export const Tokens = $root.Tokens = (() => { message.noRemovedSharedFoldersWithTeamAccess = Boolean(object.noRemovedSharedFoldersWithTeamAccess); if (object.notificationSyncPoint != null) if ($util.Long) - message.notificationSyncPoint = $util.Long.fromValue(object.notificationSyncPoint, false); + (message.notificationSyncPoint = $util.Long.fromValue(object.notificationSyncPoint)).unsigned = false; else if (typeof object.notificationSyncPoint === "string") message.notificationSyncPoint = parseInt(object.notificationSyncPoint, 10); else if (typeof object.notificationSyncPoint === "number") @@ -167063,7 +155705,7 @@ export const Tokens = $root.Tokens = (() => { message.multiPageIncrementalClientVersion = object.multiPageIncrementalClientVersion | 0; if (object.dagSyncPoint != null) if ($util.Long) - message.dagSyncPoint = $util.Long.fromValue(object.dagSyncPoint, false); + (message.dagSyncPoint = $util.Long.fromValue(object.dagSyncPoint)).unsigned = false; else if (typeof object.dagSyncPoint === "string") message.dagSyncPoint = parseInt(object.dagSyncPoint, 10); else if (typeof object.dagSyncPoint === "number") @@ -167082,26 +155724,22 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VaultSyncDownContinuationToken.toObject = function toObject(message, options, q) { + VaultSyncDownContinuationToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.tokenVersion = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncedToSyncOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.syncedToSyncOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.syncedToSyncOrder = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.syncedToSyncOrder = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncingToSyncOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.syncingToSyncOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.syncingToSyncOrder = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.syncingToSyncOrder = options.longs === String ? "0" : 0; object.tokenGenerated = 0; object.lastFullSyncCompleted = 0; object.locations = null; @@ -167111,30 +155749,26 @@ export const Tokens = $root.Tokens = (() => { object.noRemovedSharedFoldersWithTeamAccess = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.notificationSyncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.notificationSyncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.notificationSyncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.notificationSyncPoint = options.longs === String ? "0" : 0; object.skipUserRevision = false; object.multiPageIncrementalClientVersion = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dagSyncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dagSyncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dagSyncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dagSyncPoint = options.longs === String ? "0" : 0; } if (message.tokenVersion != null && message.hasOwnProperty("tokenVersion")) object.tokenVersion = message.tokenVersion; if (message.syncedToSyncOrder != null && message.hasOwnProperty("syncedToSyncOrder")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.syncedToSyncOrder = typeof message.syncedToSyncOrder === "number" ? BigInt(message.syncedToSyncOrder) : $util.Long.fromBits(message.syncedToSyncOrder.low >>> 0, message.syncedToSyncOrder.high >>> 0, false).toBigInt(); - else if (typeof message.syncedToSyncOrder === "number") + if (typeof message.syncedToSyncOrder === "number") object.syncedToSyncOrder = options.longs === String ? String(message.syncedToSyncOrder) : message.syncedToSyncOrder; else object.syncedToSyncOrder = options.longs === String ? $util.Long.prototype.toString.call(message.syncedToSyncOrder) : options.longs === Number ? new $util.LongBits(message.syncedToSyncOrder.low >>> 0, message.syncedToSyncOrder.high >>> 0).toNumber() : message.syncedToSyncOrder; if (message.syncingToSyncOrder != null && message.hasOwnProperty("syncingToSyncOrder")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.syncingToSyncOrder = typeof message.syncingToSyncOrder === "number" ? BigInt(message.syncingToSyncOrder) : $util.Long.fromBits(message.syncingToSyncOrder.low >>> 0, message.syncingToSyncOrder.high >>> 0, false).toBigInt(); - else if (typeof message.syncingToSyncOrder === "number") + if (typeof message.syncingToSyncOrder === "number") object.syncingToSyncOrder = options.longs === String ? String(message.syncingToSyncOrder) : message.syncingToSyncOrder; else object.syncingToSyncOrder = options.longs === String ? $util.Long.prototype.toString.call(message.syncingToSyncOrder) : options.longs === Number ? new $util.LongBits(message.syncingToSyncOrder.low >>> 0, message.syncingToSyncOrder.high >>> 0).toNumber() : message.syncingToSyncOrder; @@ -167143,7 +155777,7 @@ export const Tokens = $root.Tokens = (() => { if (message.lastFullSyncCompleted != null && message.hasOwnProperty("lastFullSyncCompleted")) object.lastFullSyncCompleted = message.lastFullSyncCompleted; if (message.locations != null && message.hasOwnProperty("locations")) - object.locations = $root.Tokens.VaultSyncDownLocations.toObject(message.locations, options, q + 1); + object.locations = $root.Tokens.VaultSyncDownLocations.toObject(message.locations, options); if (message.checkForAuditData != null && message.hasOwnProperty("checkForAuditData")) object.checkForAuditData = message.checkForAuditData; if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) @@ -167153,9 +155787,7 @@ export const Tokens = $root.Tokens = (() => { if (message.noRemovedSharedFoldersWithTeamAccess != null && message.hasOwnProperty("noRemovedSharedFoldersWithTeamAccess")) object.noRemovedSharedFoldersWithTeamAccess = message.noRemovedSharedFoldersWithTeamAccess; if (message.notificationSyncPoint != null && message.hasOwnProperty("notificationSyncPoint")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.notificationSyncPoint = typeof message.notificationSyncPoint === "number" ? BigInt(message.notificationSyncPoint) : $util.Long.fromBits(message.notificationSyncPoint.low >>> 0, message.notificationSyncPoint.high >>> 0, false).toBigInt(); - else if (typeof message.notificationSyncPoint === "number") + if (typeof message.notificationSyncPoint === "number") object.notificationSyncPoint = options.longs === String ? String(message.notificationSyncPoint) : message.notificationSyncPoint; else object.notificationSyncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.notificationSyncPoint) : options.longs === Number ? new $util.LongBits(message.notificationSyncPoint.low >>> 0, message.notificationSyncPoint.high >>> 0).toNumber() : message.notificationSyncPoint; @@ -167164,9 +155796,7 @@ export const Tokens = $root.Tokens = (() => { if (message.multiPageIncrementalClientVersion != null && message.hasOwnProperty("multiPageIncrementalClientVersion")) object.multiPageIncrementalClientVersion = message.multiPageIncrementalClientVersion; if (message.dagSyncPoint != null && message.hasOwnProperty("dagSyncPoint")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dagSyncPoint = typeof message.dagSyncPoint === "number" ? BigInt(message.dagSyncPoint) : $util.Long.fromBits(message.dagSyncPoint.low >>> 0, message.dagSyncPoint.high >>> 0, false).toBigInt(); - else if (typeof message.dagSyncPoint === "number") + if (typeof message.dagSyncPoint === "number") object.dagSyncPoint = options.longs === String ? String(message.dagSyncPoint) : message.dagSyncPoint; else object.dagSyncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.dagSyncPoint) : options.longs === Number ? new $util.LongBits(message.dagSyncPoint.low >>> 0, message.dagSyncPoint.high >>> 0).toNumber() : message.dagSyncPoint; @@ -167237,7 +155867,7 @@ export const Tokens = $root.Tokens = (() => { function VaultSyncDownLocations(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -167390,45 +156020,41 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultSyncDownLocations.encode = function encode(message, writer, q) { + VaultSyncDownLocations.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.vaultDataEntity != null && Object.hasOwnProperty.call(message, "vaultDataEntity")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.vaultDataEntity); if (message.recordLocation != null && Object.hasOwnProperty.call(message, "recordLocation")) - $root.Tokens.RecordLocation.encode(message.recordLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Tokens.RecordLocation.encode(message.recordLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.recordLinkLocation != null && Object.hasOwnProperty.call(message, "recordLinkLocation")) - $root.Tokens.RecordLinkLocation.encode(message.recordLinkLocation, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Tokens.RecordLinkLocation.encode(message.recordLinkLocation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.folderLocation != null && Object.hasOwnProperty.call(message, "folderLocation")) - $root.Tokens.FolderLocation.encode(message.folderLocation, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Tokens.FolderLocation.encode(message.folderLocation, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.folderRecordLocation != null && Object.hasOwnProperty.call(message, "folderRecordLocation")) - $root.Tokens.FolderRecordLocation.encode(message.folderRecordLocation, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Tokens.FolderRecordLocation.encode(message.folderRecordLocation, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.folderSharedFolderLocation != null && Object.hasOwnProperty.call(message, "folderSharedFolderLocation")) - $root.Tokens.FolderSharedFolderLocation.encode(message.folderSharedFolderLocation, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Tokens.FolderSharedFolderLocation.encode(message.folderSharedFolderLocation, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.sharedFolderLocation != null && Object.hasOwnProperty.call(message, "sharedFolderLocation")) - $root.Tokens.SharedFolderLocation.encode(message.sharedFolderLocation, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Tokens.SharedFolderLocation.encode(message.sharedFolderLocation, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.sharedFolderRecordLocation != null && Object.hasOwnProperty.call(message, "sharedFolderRecordLocation")) - $root.Tokens.SharedFolderRecordLocation.encode(message.sharedFolderRecordLocation, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Tokens.SharedFolderRecordLocation.encode(message.sharedFolderRecordLocation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.sharedFolderTeamLocation != null && Object.hasOwnProperty.call(message, "sharedFolderTeamLocation")) - $root.Tokens.SharedFolderTeamLocation.encode(message.sharedFolderTeamLocation, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.Tokens.SharedFolderTeamLocation.encode(message.sharedFolderTeamLocation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.sharedFolderUserLocation != null && Object.hasOwnProperty.call(message, "sharedFolderUserLocation")) - $root.Tokens.SharedFolderUserLocation.encode(message.sharedFolderUserLocation, writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.Tokens.SharedFolderUserLocation.encode(message.sharedFolderUserLocation, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.shareInvitationLocation != null && Object.hasOwnProperty.call(message, "shareInvitationLocation")) - $root.Tokens.ShareInvitationLocation.encode(message.shareInvitationLocation, writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.Tokens.ShareInvitationLocation.encode(message.shareInvitationLocation, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.teamLocation != null && Object.hasOwnProperty.call(message, "teamLocation")) - $root.Tokens.TeamLocation.encode(message.teamLocation, writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim(); + $root.Tokens.TeamLocation.encode(message.teamLocation, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.userAuthHashLocation != null && Object.hasOwnProperty.call(message, "userAuthHashLocation")) - $root.Tokens.UserAuthHashLocation.encode(message.userAuthHashLocation, writer.uint32(/* id 13, wireType 2 =*/106).fork(), q + 1).ldelim(); + $root.Tokens.UserAuthHashLocation.encode(message.userAuthHashLocation, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.ksmLocation != null && Object.hasOwnProperty.call(message, "ksmLocation")) - $root.Tokens.KsmLocation.encode(message.ksmLocation, writer.uint32(/* id 14, wireType 2 =*/114).fork(), q + 1).ldelim(); + $root.Tokens.KsmLocation.encode(message.ksmLocation, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.sharedFolderFolderRecordLocation != null && Object.hasOwnProperty.call(message, "sharedFolderFolderRecordLocation")) - $root.Tokens.SharedFolderFolderRecordLocation.encode(message.sharedFolderFolderRecordLocation, writer.uint32(/* id 15, wireType 2 =*/122).fork(), q + 1).ldelim(); + $root.Tokens.SharedFolderFolderRecordLocation.encode(message.sharedFolderFolderRecordLocation, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); if (message.userLocation != null && Object.hasOwnProperty.call(message, "userLocation")) - $root.Tokens.UserLocation.encode(message.userLocation, writer.uint32(/* id 16, wireType 2 =*/130).fork(), q + 1).ldelim(); + $root.Tokens.UserLocation.encode(message.userLocation, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); return writer; }; @@ -167456,85 +156082,79 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VaultSyncDownLocations.decode = function decode(reader, length, error, long) { + VaultSyncDownLocations.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.VaultSyncDownLocations(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.vaultDataEntity = reader.int32(); break; } case 2: { - message.recordLocation = $root.Tokens.RecordLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.recordLocation = $root.Tokens.RecordLocation.decode(reader, reader.uint32()); break; } case 3: { - message.recordLinkLocation = $root.Tokens.RecordLinkLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.recordLinkLocation = $root.Tokens.RecordLinkLocation.decode(reader, reader.uint32()); break; } case 4: { - message.folderLocation = $root.Tokens.FolderLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.folderLocation = $root.Tokens.FolderLocation.decode(reader, reader.uint32()); break; } case 5: { - message.folderRecordLocation = $root.Tokens.FolderRecordLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.folderRecordLocation = $root.Tokens.FolderRecordLocation.decode(reader, reader.uint32()); break; } case 6: { - message.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.decode(reader, reader.uint32()); break; } case 7: { - message.sharedFolderLocation = $root.Tokens.SharedFolderLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.sharedFolderLocation = $root.Tokens.SharedFolderLocation.decode(reader, reader.uint32()); break; } case 8: { - message.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.decode(reader, reader.uint32()); break; } case 9: { - message.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.decode(reader, reader.uint32()); break; } case 10: { - message.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.decode(reader, reader.uint32()); break; } case 11: { - message.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.decode(reader, reader.uint32()); break; } case 12: { - message.teamLocation = $root.Tokens.TeamLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.teamLocation = $root.Tokens.TeamLocation.decode(reader, reader.uint32()); break; } case 13: { - message.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.decode(reader, reader.uint32()); break; } case 14: { - message.ksmLocation = $root.Tokens.KsmLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.ksmLocation = $root.Tokens.KsmLocation.decode(reader, reader.uint32()); break; } case 15: { - message.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.decode(reader, reader.uint32()); break; } case 16: { - message.userLocation = $root.Tokens.UserLocation.decode(reader, reader.uint32(), undefined, long + 1); + message.userLocation = $root.Tokens.UserLocation.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -167565,88 +156185,84 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VaultSyncDownLocations.verify = function verify(message, long) { + VaultSyncDownLocations.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.vaultDataEntity != null && message.hasOwnProperty("vaultDataEntity")) if (!$util.isInteger(message.vaultDataEntity)) return "vaultDataEntity: integer expected"; if (message.recordLocation != null && message.hasOwnProperty("recordLocation")) { - let error = $root.Tokens.RecordLocation.verify(message.recordLocation, long + 1); + let error = $root.Tokens.RecordLocation.verify(message.recordLocation); if (error) return "recordLocation." + error; } if (message.recordLinkLocation != null && message.hasOwnProperty("recordLinkLocation")) { - let error = $root.Tokens.RecordLinkLocation.verify(message.recordLinkLocation, long + 1); + let error = $root.Tokens.RecordLinkLocation.verify(message.recordLinkLocation); if (error) return "recordLinkLocation." + error; } if (message.folderLocation != null && message.hasOwnProperty("folderLocation")) { - let error = $root.Tokens.FolderLocation.verify(message.folderLocation, long + 1); + let error = $root.Tokens.FolderLocation.verify(message.folderLocation); if (error) return "folderLocation." + error; } if (message.folderRecordLocation != null && message.hasOwnProperty("folderRecordLocation")) { - let error = $root.Tokens.FolderRecordLocation.verify(message.folderRecordLocation, long + 1); + let error = $root.Tokens.FolderRecordLocation.verify(message.folderRecordLocation); if (error) return "folderRecordLocation." + error; } if (message.folderSharedFolderLocation != null && message.hasOwnProperty("folderSharedFolderLocation")) { - let error = $root.Tokens.FolderSharedFolderLocation.verify(message.folderSharedFolderLocation, long + 1); + let error = $root.Tokens.FolderSharedFolderLocation.verify(message.folderSharedFolderLocation); if (error) return "folderSharedFolderLocation." + error; } if (message.sharedFolderLocation != null && message.hasOwnProperty("sharedFolderLocation")) { - let error = $root.Tokens.SharedFolderLocation.verify(message.sharedFolderLocation, long + 1); + let error = $root.Tokens.SharedFolderLocation.verify(message.sharedFolderLocation); if (error) return "sharedFolderLocation." + error; } if (message.sharedFolderRecordLocation != null && message.hasOwnProperty("sharedFolderRecordLocation")) { - let error = $root.Tokens.SharedFolderRecordLocation.verify(message.sharedFolderRecordLocation, long + 1); + let error = $root.Tokens.SharedFolderRecordLocation.verify(message.sharedFolderRecordLocation); if (error) return "sharedFolderRecordLocation." + error; } if (message.sharedFolderTeamLocation != null && message.hasOwnProperty("sharedFolderTeamLocation")) { - let error = $root.Tokens.SharedFolderTeamLocation.verify(message.sharedFolderTeamLocation, long + 1); + let error = $root.Tokens.SharedFolderTeamLocation.verify(message.sharedFolderTeamLocation); if (error) return "sharedFolderTeamLocation." + error; } if (message.sharedFolderUserLocation != null && message.hasOwnProperty("sharedFolderUserLocation")) { - let error = $root.Tokens.SharedFolderUserLocation.verify(message.sharedFolderUserLocation, long + 1); + let error = $root.Tokens.SharedFolderUserLocation.verify(message.sharedFolderUserLocation); if (error) return "sharedFolderUserLocation." + error; } if (message.shareInvitationLocation != null && message.hasOwnProperty("shareInvitationLocation")) { - let error = $root.Tokens.ShareInvitationLocation.verify(message.shareInvitationLocation, long + 1); + let error = $root.Tokens.ShareInvitationLocation.verify(message.shareInvitationLocation); if (error) return "shareInvitationLocation." + error; } if (message.teamLocation != null && message.hasOwnProperty("teamLocation")) { - let error = $root.Tokens.TeamLocation.verify(message.teamLocation, long + 1); + let error = $root.Tokens.TeamLocation.verify(message.teamLocation); if (error) return "teamLocation." + error; } if (message.userAuthHashLocation != null && message.hasOwnProperty("userAuthHashLocation")) { - let error = $root.Tokens.UserAuthHashLocation.verify(message.userAuthHashLocation, long + 1); + let error = $root.Tokens.UserAuthHashLocation.verify(message.userAuthHashLocation); if (error) return "userAuthHashLocation." + error; } if (message.ksmLocation != null && message.hasOwnProperty("ksmLocation")) { - let error = $root.Tokens.KsmLocation.verify(message.ksmLocation, long + 1); + let error = $root.Tokens.KsmLocation.verify(message.ksmLocation); if (error) return "ksmLocation." + error; } if (message.sharedFolderFolderRecordLocation != null && message.hasOwnProperty("sharedFolderFolderRecordLocation")) { - let error = $root.Tokens.SharedFolderFolderRecordLocation.verify(message.sharedFolderFolderRecordLocation, long + 1); + let error = $root.Tokens.SharedFolderFolderRecordLocation.verify(message.sharedFolderFolderRecordLocation); if (error) return "sharedFolderFolderRecordLocation." + error; } if (message.userLocation != null && message.hasOwnProperty("userLocation")) { - let error = $root.Tokens.UserLocation.verify(message.userLocation, long + 1); + let error = $root.Tokens.UserLocation.verify(message.userLocation); if (error) return "userLocation." + error; } @@ -167661,90 +156277,86 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.VaultSyncDownLocations} VaultSyncDownLocations */ - VaultSyncDownLocations.fromObject = function fromObject(object, long) { + VaultSyncDownLocations.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.VaultSyncDownLocations) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.VaultSyncDownLocations(); if (object.vaultDataEntity != null) message.vaultDataEntity = object.vaultDataEntity | 0; if (object.recordLocation != null) { if (typeof object.recordLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.recordLocation: object expected"); - message.recordLocation = $root.Tokens.RecordLocation.fromObject(object.recordLocation, long + 1); + message.recordLocation = $root.Tokens.RecordLocation.fromObject(object.recordLocation); } if (object.recordLinkLocation != null) { if (typeof object.recordLinkLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.recordLinkLocation: object expected"); - message.recordLinkLocation = $root.Tokens.RecordLinkLocation.fromObject(object.recordLinkLocation, long + 1); + message.recordLinkLocation = $root.Tokens.RecordLinkLocation.fromObject(object.recordLinkLocation); } if (object.folderLocation != null) { if (typeof object.folderLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.folderLocation: object expected"); - message.folderLocation = $root.Tokens.FolderLocation.fromObject(object.folderLocation, long + 1); + message.folderLocation = $root.Tokens.FolderLocation.fromObject(object.folderLocation); } if (object.folderRecordLocation != null) { if (typeof object.folderRecordLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.folderRecordLocation: object expected"); - message.folderRecordLocation = $root.Tokens.FolderRecordLocation.fromObject(object.folderRecordLocation, long + 1); + message.folderRecordLocation = $root.Tokens.FolderRecordLocation.fromObject(object.folderRecordLocation); } if (object.folderSharedFolderLocation != null) { if (typeof object.folderSharedFolderLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.folderSharedFolderLocation: object expected"); - message.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.fromObject(object.folderSharedFolderLocation, long + 1); + message.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.fromObject(object.folderSharedFolderLocation); } if (object.sharedFolderLocation != null) { if (typeof object.sharedFolderLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderLocation: object expected"); - message.sharedFolderLocation = $root.Tokens.SharedFolderLocation.fromObject(object.sharedFolderLocation, long + 1); + message.sharedFolderLocation = $root.Tokens.SharedFolderLocation.fromObject(object.sharedFolderLocation); } if (object.sharedFolderRecordLocation != null) { if (typeof object.sharedFolderRecordLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderRecordLocation: object expected"); - message.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.fromObject(object.sharedFolderRecordLocation, long + 1); + message.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.fromObject(object.sharedFolderRecordLocation); } if (object.sharedFolderTeamLocation != null) { if (typeof object.sharedFolderTeamLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderTeamLocation: object expected"); - message.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.fromObject(object.sharedFolderTeamLocation, long + 1); + message.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.fromObject(object.sharedFolderTeamLocation); } if (object.sharedFolderUserLocation != null) { if (typeof object.sharedFolderUserLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderUserLocation: object expected"); - message.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.fromObject(object.sharedFolderUserLocation, long + 1); + message.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.fromObject(object.sharedFolderUserLocation); } if (object.shareInvitationLocation != null) { if (typeof object.shareInvitationLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.shareInvitationLocation: object expected"); - message.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.fromObject(object.shareInvitationLocation, long + 1); + message.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.fromObject(object.shareInvitationLocation); } if (object.teamLocation != null) { if (typeof object.teamLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.teamLocation: object expected"); - message.teamLocation = $root.Tokens.TeamLocation.fromObject(object.teamLocation, long + 1); + message.teamLocation = $root.Tokens.TeamLocation.fromObject(object.teamLocation); } if (object.userAuthHashLocation != null) { if (typeof object.userAuthHashLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.userAuthHashLocation: object expected"); - message.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.fromObject(object.userAuthHashLocation, long + 1); + message.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.fromObject(object.userAuthHashLocation); } if (object.ksmLocation != null) { if (typeof object.ksmLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.ksmLocation: object expected"); - message.ksmLocation = $root.Tokens.KsmLocation.fromObject(object.ksmLocation, long + 1); + message.ksmLocation = $root.Tokens.KsmLocation.fromObject(object.ksmLocation); } if (object.sharedFolderFolderRecordLocation != null) { if (typeof object.sharedFolderFolderRecordLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderFolderRecordLocation: object expected"); - message.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.fromObject(object.sharedFolderFolderRecordLocation, long + 1); + message.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.fromObject(object.sharedFolderFolderRecordLocation); } if (object.userLocation != null) { if (typeof object.userLocation !== "object") throw TypeError(".Tokens.VaultSyncDownLocations.userLocation: object expected"); - message.userLocation = $root.Tokens.UserLocation.fromObject(object.userLocation, long + 1); + message.userLocation = $root.Tokens.UserLocation.fromObject(object.userLocation); } return message; }; @@ -167758,13 +156370,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VaultSyncDownLocations.toObject = function toObject(message, options, q) { + VaultSyncDownLocations.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.vaultDataEntity = 0; @@ -167787,35 +156395,35 @@ export const Tokens = $root.Tokens = (() => { if (message.vaultDataEntity != null && message.hasOwnProperty("vaultDataEntity")) object.vaultDataEntity = message.vaultDataEntity; if (message.recordLocation != null && message.hasOwnProperty("recordLocation")) - object.recordLocation = $root.Tokens.RecordLocation.toObject(message.recordLocation, options, q + 1); + object.recordLocation = $root.Tokens.RecordLocation.toObject(message.recordLocation, options); if (message.recordLinkLocation != null && message.hasOwnProperty("recordLinkLocation")) - object.recordLinkLocation = $root.Tokens.RecordLinkLocation.toObject(message.recordLinkLocation, options, q + 1); + object.recordLinkLocation = $root.Tokens.RecordLinkLocation.toObject(message.recordLinkLocation, options); if (message.folderLocation != null && message.hasOwnProperty("folderLocation")) - object.folderLocation = $root.Tokens.FolderLocation.toObject(message.folderLocation, options, q + 1); + object.folderLocation = $root.Tokens.FolderLocation.toObject(message.folderLocation, options); if (message.folderRecordLocation != null && message.hasOwnProperty("folderRecordLocation")) - object.folderRecordLocation = $root.Tokens.FolderRecordLocation.toObject(message.folderRecordLocation, options, q + 1); + object.folderRecordLocation = $root.Tokens.FolderRecordLocation.toObject(message.folderRecordLocation, options); if (message.folderSharedFolderLocation != null && message.hasOwnProperty("folderSharedFolderLocation")) - object.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.toObject(message.folderSharedFolderLocation, options, q + 1); + object.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.toObject(message.folderSharedFolderLocation, options); if (message.sharedFolderLocation != null && message.hasOwnProperty("sharedFolderLocation")) - object.sharedFolderLocation = $root.Tokens.SharedFolderLocation.toObject(message.sharedFolderLocation, options, q + 1); + object.sharedFolderLocation = $root.Tokens.SharedFolderLocation.toObject(message.sharedFolderLocation, options); if (message.sharedFolderRecordLocation != null && message.hasOwnProperty("sharedFolderRecordLocation")) - object.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.toObject(message.sharedFolderRecordLocation, options, q + 1); + object.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.toObject(message.sharedFolderRecordLocation, options); if (message.sharedFolderTeamLocation != null && message.hasOwnProperty("sharedFolderTeamLocation")) - object.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.toObject(message.sharedFolderTeamLocation, options, q + 1); + object.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.toObject(message.sharedFolderTeamLocation, options); if (message.sharedFolderUserLocation != null && message.hasOwnProperty("sharedFolderUserLocation")) - object.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.toObject(message.sharedFolderUserLocation, options, q + 1); + object.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.toObject(message.sharedFolderUserLocation, options); if (message.shareInvitationLocation != null && message.hasOwnProperty("shareInvitationLocation")) - object.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.toObject(message.shareInvitationLocation, options, q + 1); + object.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.toObject(message.shareInvitationLocation, options); if (message.teamLocation != null && message.hasOwnProperty("teamLocation")) - object.teamLocation = $root.Tokens.TeamLocation.toObject(message.teamLocation, options, q + 1); + object.teamLocation = $root.Tokens.TeamLocation.toObject(message.teamLocation, options); if (message.userAuthHashLocation != null && message.hasOwnProperty("userAuthHashLocation")) - object.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.toObject(message.userAuthHashLocation, options, q + 1); + object.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.toObject(message.userAuthHashLocation, options); if (message.ksmLocation != null && message.hasOwnProperty("ksmLocation")) - object.ksmLocation = $root.Tokens.KsmLocation.toObject(message.ksmLocation, options, q + 1); + object.ksmLocation = $root.Tokens.KsmLocation.toObject(message.ksmLocation, options); if (message.sharedFolderFolderRecordLocation != null && message.hasOwnProperty("sharedFolderFolderRecordLocation")) - object.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.toObject(message.sharedFolderFolderRecordLocation, options, q + 1); + object.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.toObject(message.sharedFolderFolderRecordLocation, options); if (message.userLocation != null && message.hasOwnProperty("userLocation")) - object.userLocation = $root.Tokens.UserLocation.toObject(message.userLocation, options, q + 1); + object.userLocation = $root.Tokens.UserLocation.toObject(message.userLocation, options); return object; }; @@ -167869,7 +156477,7 @@ export const Tokens = $root.Tokens = (() => { function RecordLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -167910,13 +156518,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLocation.encode = function encode(message, writer, q) { + RecordLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) @@ -167948,18 +156552,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordLocation.decode = function decode(reader, length, error, long) { + RecordLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.RecordLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -167970,7 +156568,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -168001,13 +156599,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordLocation.verify = function verify(message, long) { + RecordLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -168025,13 +156619,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.RecordLocation} RecordLocation */ - RecordLocation.fromObject = function fromObject(object, long) { + RecordLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.RecordLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.RecordLocation(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -168040,7 +156630,7 @@ export const Tokens = $root.Tokens = (() => { message.recordUid = object.recordUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -168059,13 +156649,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordLocation.toObject = function toObject(message, options, q) { + RecordLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -168077,16 +156663,14 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -168143,7 +156727,7 @@ export const Tokens = $root.Tokens = (() => { function FolderLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -168184,13 +156768,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderLocation.encode = function encode(message, writer, q) { + FolderLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) @@ -168222,18 +156802,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderLocation.decode = function decode(reader, length, error, long) { + FolderLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.FolderLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -168244,7 +156818,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -168275,13 +156849,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderLocation.verify = function verify(message, long) { + FolderLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -168299,13 +156869,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.FolderLocation} FolderLocation */ - FolderLocation.fromObject = function fromObject(object, long) { + FolderLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.FolderLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.FolderLocation(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -168314,7 +156880,7 @@ export const Tokens = $root.Tokens = (() => { message.folderUid = object.folderUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -168333,13 +156899,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderLocation.toObject = function toObject(message, options, q) { + FolderLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -168351,16 +156913,14 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.folderUid != null && message.hasOwnProperty("folderUid")) object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -168417,7 +156977,7 @@ export const Tokens = $root.Tokens = (() => { function SharedFolderLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -168458,13 +157018,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderLocation.encode = function encode(message, writer, q) { + SharedFolderLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) @@ -168496,18 +157052,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderLocation.decode = function decode(reader, length, error, long) { + SharedFolderLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SharedFolderLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -168518,7 +157068,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -168549,13 +157099,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderLocation.verify = function verify(message, long) { + SharedFolderLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -168573,13 +157119,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.SharedFolderLocation} SharedFolderLocation */ - SharedFolderLocation.fromObject = function fromObject(object, long) { + SharedFolderLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.SharedFolderLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.SharedFolderLocation(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -168588,7 +157130,7 @@ export const Tokens = $root.Tokens = (() => { message.sharedFolderUid = object.sharedFolderUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -168607,13 +157149,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderLocation.toObject = function toObject(message, options, q) { + SharedFolderLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -168625,16 +157163,14 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -168693,7 +157229,7 @@ export const Tokens = $root.Tokens = (() => { function SharedFolderUserLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -168750,13 +157286,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUserLocation.encode = function encode(message, writer, q) { + SharedFolderUserLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -168792,18 +157324,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUserLocation.decode = function decode(reader, length, error, long) { + SharedFolderUserLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SharedFolderUserLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -168822,7 +157348,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -168853,13 +157379,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUserLocation.verify = function verify(message, long) { + SharedFolderUserLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -168883,13 +157405,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.SharedFolderUserLocation} SharedFolderUserLocation */ - SharedFolderUserLocation.fromObject = function fromObject(object, long) { + SharedFolderUserLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.SharedFolderUserLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.SharedFolderUserLocation(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -168900,7 +157418,7 @@ export const Tokens = $root.Tokens = (() => { message.username = String(object.username); if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -168924,13 +157442,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUserLocation.toObject = function toObject(message, options, q) { + SharedFolderUserLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -168943,9 +157457,9 @@ export const Tokens = $root.Tokens = (() => { object.username = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; if (options.bytes === String) object.accountUid = ""; else { @@ -168959,9 +157473,7 @@ export const Tokens = $root.Tokens = (() => { if (message.username != null && message.hasOwnProperty("username")) object.username = message.username; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -169021,7 +157533,7 @@ export const Tokens = $root.Tokens = (() => { function SharedFolderTeamLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -169070,13 +157582,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderTeamLocation.encode = function encode(message, writer, q) { + SharedFolderTeamLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) @@ -169110,18 +157618,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderTeamLocation.decode = function decode(reader, length, error, long) { + SharedFolderTeamLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SharedFolderTeamLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -169136,7 +157638,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -169167,13 +157669,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderTeamLocation.verify = function verify(message, long) { + SharedFolderTeamLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -169194,13 +157692,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.SharedFolderTeamLocation} SharedFolderTeamLocation */ - SharedFolderTeamLocation.fromObject = function fromObject(object, long) { + SharedFolderTeamLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.SharedFolderTeamLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.SharedFolderTeamLocation(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -169214,7 +157708,7 @@ export const Tokens = $root.Tokens = (() => { message.teamUid = object.teamUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -169233,13 +157727,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderTeamLocation.toObject = function toObject(message, options, q) { + SharedFolderTeamLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -169258,18 +157748,16 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; if (message.teamUid != null && message.hasOwnProperty("teamUid")) object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -169327,7 +157815,7 @@ export const Tokens = $root.Tokens = (() => { function SharedFolderRecordLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -169376,13 +157864,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderRecordLocation.encode = function encode(message, writer, q) { + SharedFolderRecordLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -169416,18 +157900,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderRecordLocation.decode = function decode(reader, length, error, long) { + SharedFolderRecordLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SharedFolderRecordLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -169442,7 +157920,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -169473,13 +157951,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderRecordLocation.verify = function verify(message, long) { + SharedFolderRecordLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -169500,13 +157974,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.SharedFolderRecordLocation} SharedFolderRecordLocation */ - SharedFolderRecordLocation.fromObject = function fromObject(object, long) { + SharedFolderRecordLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.SharedFolderRecordLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.SharedFolderRecordLocation(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -169520,7 +157990,7 @@ export const Tokens = $root.Tokens = (() => { message.recordUid = object.recordUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -169539,13 +158009,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderRecordLocation.toObject = function toObject(message, options, q) { + SharedFolderRecordLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -169564,18 +158030,16 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -169633,7 +158097,7 @@ export const Tokens = $root.Tokens = (() => { function SharedFolderFolderRecordLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -169682,13 +158146,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderFolderRecordLocation.encode = function encode(message, writer, q) { + SharedFolderFolderRecordLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) @@ -169722,18 +158182,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderFolderRecordLocation.decode = function decode(reader, length, error, long) { + SharedFolderFolderRecordLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SharedFolderFolderRecordLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -169748,7 +158202,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -169779,13 +158233,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderFolderRecordLocation.verify = function verify(message, long) { + SharedFolderFolderRecordLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -169806,13 +158256,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.SharedFolderFolderRecordLocation} SharedFolderFolderRecordLocation */ - SharedFolderFolderRecordLocation.fromObject = function fromObject(object, long) { + SharedFolderFolderRecordLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.SharedFolderFolderRecordLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.SharedFolderFolderRecordLocation(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -169841,13 +158287,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderFolderRecordLocation.toObject = function toObject(message, options, q) { + SharedFolderFolderRecordLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -169931,7 +158373,7 @@ export const Tokens = $root.Tokens = (() => { function TeamLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -169972,13 +158414,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TeamLocation.encode = function encode(message, writer, q) { + TeamLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) @@ -170010,18 +158448,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TeamLocation.decode = function decode(reader, length, error, long) { + TeamLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.TeamLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -170032,7 +158464,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -170063,13 +158495,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TeamLocation.verify = function verify(message, long) { + TeamLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -170087,13 +158515,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.TeamLocation} TeamLocation */ - TeamLocation.fromObject = function fromObject(object, long) { + TeamLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.TeamLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.TeamLocation(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -170102,7 +158526,7 @@ export const Tokens = $root.Tokens = (() => { message.teamUid = object.teamUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -170121,13 +158545,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TeamLocation.toObject = function toObject(message, options, q) { + TeamLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -170139,16 +158559,14 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.teamUid != null && message.hasOwnProperty("teamUid")) object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -170205,7 +158623,7 @@ export const Tokens = $root.Tokens = (() => { function UserAuthHashLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -170246,13 +158664,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserAuthHashLocation.encode = function encode(message, writer, q) { + UserAuthHashLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userAuthHashUid != null && Object.hasOwnProperty.call(message, "userAuthHashUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.userAuthHashUid); if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) @@ -170284,18 +158698,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserAuthHashLocation.decode = function decode(reader, length, error, long) { + UserAuthHashLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.UserAuthHashLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userAuthHashUid = reader.bytes(); @@ -170306,7 +158714,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -170337,13 +158745,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserAuthHashLocation.verify = function verify(message, long) { + UserAuthHashLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userAuthHashUid != null && message.hasOwnProperty("userAuthHashUid")) if (!(message.userAuthHashUid && typeof message.userAuthHashUid.length === "number" || $util.isString(message.userAuthHashUid))) return "userAuthHashUid: buffer expected"; @@ -170361,13 +158765,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.UserAuthHashLocation} UserAuthHashLocation */ - UserAuthHashLocation.fromObject = function fromObject(object, long) { + UserAuthHashLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.UserAuthHashLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.UserAuthHashLocation(); if (object.userAuthHashUid != null) if (typeof object.userAuthHashUid === "string") @@ -170376,7 +158776,7 @@ export const Tokens = $root.Tokens = (() => { message.userAuthHashUid = object.userAuthHashUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -170395,13 +158795,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserAuthHashLocation.toObject = function toObject(message, options, q) { + UserAuthHashLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -170413,16 +158809,14 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.userAuthHashUid != null && message.hasOwnProperty("userAuthHashUid")) object.userAuthHashUid = options.bytes === String ? $util.base64.encode(message.userAuthHashUid, 0, message.userAuthHashUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.userAuthHashUid) : message.userAuthHashUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -170480,7 +158874,7 @@ export const Tokens = $root.Tokens = (() => { function FolderRecordLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -170529,13 +158923,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderRecordLocation.encode = function encode(message, writer, q) { + FolderRecordLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -170569,18 +158959,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderRecordLocation.decode = function decode(reader, length, error, long) { + FolderRecordLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.FolderRecordLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -170595,7 +158979,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -170626,13 +159010,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderRecordLocation.verify = function verify(message, long) { + FolderRecordLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -170653,13 +159033,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.FolderRecordLocation} FolderRecordLocation */ - FolderRecordLocation.fromObject = function fromObject(object, long) { + FolderRecordLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.FolderRecordLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.FolderRecordLocation(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -170673,7 +159049,7 @@ export const Tokens = $root.Tokens = (() => { message.recordUid = object.recordUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -170692,13 +159068,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderRecordLocation.toObject = function toObject(message, options, q) { + FolderRecordLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -170717,18 +159089,16 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.folderUid != null && message.hasOwnProperty("folderUid")) object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -170786,7 +159156,7 @@ export const Tokens = $root.Tokens = (() => { function RecordLinkLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -170835,13 +159205,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLinkLocation.encode = function encode(message, writer, q) { + RecordLinkLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.parentRecordUid != null && Object.hasOwnProperty.call(message, "parentRecordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.parentRecordUid); if (message.childRecordUid != null && Object.hasOwnProperty.call(message, "childRecordUid")) @@ -170875,18 +159241,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordLinkLocation.decode = function decode(reader, length, error, long) { + RecordLinkLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.RecordLinkLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.parentRecordUid = reader.bytes(); @@ -170901,7 +159261,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -170932,13 +159292,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordLinkLocation.verify = function verify(message, long) { + RecordLinkLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) if (!(message.parentRecordUid && typeof message.parentRecordUid.length === "number" || $util.isString(message.parentRecordUid))) return "parentRecordUid: buffer expected"; @@ -170959,13 +159315,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.RecordLinkLocation} RecordLinkLocation */ - RecordLinkLocation.fromObject = function fromObject(object, long) { + RecordLinkLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.RecordLinkLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.RecordLinkLocation(); if (object.parentRecordUid != null) if (typeof object.parentRecordUid === "string") @@ -170979,7 +159331,7 @@ export const Tokens = $root.Tokens = (() => { message.childRecordUid = object.childRecordUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -170998,13 +159350,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordLinkLocation.toObject = function toObject(message, options, q) { + RecordLinkLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -171023,18 +159371,16 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) object.parentRecordUid = options.bytes === String ? $util.base64.encode(message.parentRecordUid, 0, message.parentRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentRecordUid) : message.parentRecordUid; if (message.childRecordUid != null && message.hasOwnProperty("childRecordUid")) object.childRecordUid = options.bytes === String ? $util.base64.encode(message.childRecordUid, 0, message.childRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.childRecordUid) : message.childRecordUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -171092,7 +159438,7 @@ export const Tokens = $root.Tokens = (() => { function KsmLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -171141,13 +159487,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KsmLocation.encode = function encode(message, writer, q) { + KsmLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); if (message.detailUid != null && Object.hasOwnProperty.call(message, "detailUid")) @@ -171181,18 +159523,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KsmLocation.decode = function decode(reader, length, error, long) { + KsmLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.KsmLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.appRecordUid = reader.bytes(); @@ -171207,7 +159543,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -171238,13 +159574,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KsmLocation.verify = function verify(message, long) { + KsmLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) return "appRecordUid: buffer expected"; @@ -171265,13 +159597,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.KsmLocation} KsmLocation */ - KsmLocation.fromObject = function fromObject(object, long) { + KsmLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.KsmLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.KsmLocation(); if (object.appRecordUid != null) if (typeof object.appRecordUid === "string") @@ -171285,7 +159613,7 @@ export const Tokens = $root.Tokens = (() => { message.detailUid = object.detailUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -171304,13 +159632,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KsmLocation.toObject = function toObject(message, options, q) { + KsmLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -171329,18 +159653,16 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; if (message.detailUid != null && message.hasOwnProperty("detailUid")) object.detailUid = options.bytes === String ? $util.base64.encode(message.detailUid, 0, message.detailUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.detailUid) : message.detailUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -171398,7 +159720,7 @@ export const Tokens = $root.Tokens = (() => { function FolderSharedFolderLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -171447,13 +159769,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderSharedFolderLocation.encode = function encode(message, writer, q) { + FolderSharedFolderLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) @@ -171487,18 +159805,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderSharedFolderLocation.decode = function decode(reader, length, error, long) { + FolderSharedFolderLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.FolderSharedFolderLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -171513,7 +159825,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -171544,13 +159856,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderSharedFolderLocation.verify = function verify(message, long) { + FolderSharedFolderLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -171571,13 +159879,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.FolderSharedFolderLocation} FolderSharedFolderLocation */ - FolderSharedFolderLocation.fromObject = function fromObject(object, long) { + FolderSharedFolderLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.FolderSharedFolderLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.FolderSharedFolderLocation(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -171591,7 +159895,7 @@ export const Tokens = $root.Tokens = (() => { message.sharedFolderUid = object.sharedFolderUid; if (object.lastSyncRevision != null) if ($util.Long) - message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision, false); + (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; else if (typeof object.lastSyncRevision === "string") message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); else if (typeof object.lastSyncRevision === "number") @@ -171610,13 +159914,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderSharedFolderLocation.toObject = function toObject(message, options, q) { + FolderSharedFolderLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -171635,18 +159935,16 @@ export const Tokens = $root.Tokens = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastSyncRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastSyncRevision = options.longs === String ? "0" : 0; } if (message.folderUid != null && message.hasOwnProperty("folderUid")) object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastSyncRevision = typeof message.lastSyncRevision === "number" ? BigInt(message.lastSyncRevision) : $util.Long.fromBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0, false).toBigInt(); - else if (typeof message.lastSyncRevision === "number") + if (typeof message.lastSyncRevision === "number") object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; @@ -171702,7 +160000,7 @@ export const Tokens = $root.Tokens = (() => { function ShareInvitationLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -171735,13 +160033,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareInvitationLocation.encode = function encode(message, writer, q) { + ShareInvitationLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); return writer; @@ -171771,25 +160065,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShareInvitationLocation.decode = function decode(reader, length, error, long) { + ShareInvitationLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ShareInvitationLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -171820,13 +160108,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShareInvitationLocation.verify = function verify(message, long) { + ShareInvitationLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -171841,13 +160125,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.ShareInvitationLocation} ShareInvitationLocation */ - ShareInvitationLocation.fromObject = function fromObject(object, long) { + ShareInvitationLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.ShareInvitationLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.ShareInvitationLocation(); if (object.username != null) message.username = String(object.username); @@ -171863,13 +160143,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShareInvitationLocation.toObject = function toObject(message, options, q) { + ShareInvitationLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.username = ""; @@ -171927,7 +160203,7 @@ export const Tokens = $root.Tokens = (() => { function UserLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -171960,13 +160236,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserLocation.encode = function encode(message, writer, q) { + UserLocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); return writer; @@ -171996,25 +160268,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserLocation.decode = function decode(reader, length, error, long) { + UserLocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.UserLocation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -172045,13 +160311,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserLocation.verify = function verify(message, long) { + UserLocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -172066,13 +160328,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.UserLocation} UserLocation */ - UserLocation.fromObject = function fromObject(object, long) { + UserLocation.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.UserLocation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.UserLocation(); if (object.userId != null) message.userId = object.userId | 0; @@ -172088,13 +160346,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserLocation.toObject = function toObject(message, options, q) { + UserLocation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.userId = 0; @@ -172154,7 +160408,7 @@ export const Tokens = $root.Tokens = (() => { this.groups = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -172195,13 +160449,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeyCloakToken.encode = function encode(message, writer, q) { + KeyCloakToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); if (message.groups != null && message.groups.length) @@ -172234,18 +160484,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeyCloakToken.decode = function decode(reader, length, error, long) { + KeyCloakToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.KeyCloakToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.email = reader.string(); @@ -172258,7 +160502,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -172289,13 +160533,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeyCloakToken.verify = function verify(message, long) { + KeyCloakToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.email != null && message.hasOwnProperty("email")) if (!$util.isString(message.email)) return "email: string expected"; @@ -172317,13 +160557,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.KeyCloakToken} KeyCloakToken */ - KeyCloakToken.fromObject = function fromObject(object, long) { + KeyCloakToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.KeyCloakToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.KeyCloakToken(); if (object.email != null) message.email = String(object.email); @@ -172346,13 +160582,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeyCloakToken.toObject = function toObject(message, options, q) { + KeyCloakToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.groups = []; @@ -172417,7 +160649,7 @@ export const Tokens = $root.Tokens = (() => { function IPWhiteList(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -172450,13 +160682,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IPWhiteList.encode = function encode(message, writer, q) { + IPWhiteList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ipranges != null && Object.hasOwnProperty.call(message, "ipranges")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.ipranges); return writer; @@ -172486,25 +160714,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IPWhiteList.decode = function decode(reader, length, error, long) { + IPWhiteList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.IPWhiteList(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ipranges = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -172535,13 +160757,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IPWhiteList.verify = function verify(message, long) { + IPWhiteList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ipranges != null && message.hasOwnProperty("ipranges")) if (!$util.isString(message.ipranges)) return "ipranges: string expected"; @@ -172556,13 +160774,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.IPWhiteList} IPWhiteList */ - IPWhiteList.fromObject = function fromObject(object, long) { + IPWhiteList.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.IPWhiteList) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.IPWhiteList(); if (object.ipranges != null) message.ipranges = String(object.ipranges); @@ -172578,13 +160792,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IPWhiteList.toObject = function toObject(message, options, q) { + IPWhiteList.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.ipranges = ""; @@ -172644,7 +160854,7 @@ export const Tokens = $root.Tokens = (() => { function IncrementalSecurityDataContToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -172693,13 +160903,9 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IncrementalSecurityDataContToken.encode = function encode(message, writer, q) { + IncrementalSecurityDataContToken.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserIdUpToSave != null && Object.hasOwnProperty.call(message, "enterpriseUserIdUpToSave")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserIdUpToSave); if (message.revisionUpToSave != null && Object.hasOwnProperty.call(message, "revisionUpToSave")) @@ -172733,18 +160939,12 @@ export const Tokens = $root.Tokens = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IncrementalSecurityDataContToken.decode = function decode(reader, length, error, long) { + IncrementalSecurityDataContToken.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.IncrementalSecurityDataContToken(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserIdUpToSave = reader.int64(); @@ -172759,7 +160959,7 @@ export const Tokens = $root.Tokens = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -172790,13 +160990,9 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IncrementalSecurityDataContToken.verify = function verify(message, long) { + IncrementalSecurityDataContToken.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserIdUpToSave != null && message.hasOwnProperty("enterpriseUserIdUpToSave")) if (!$util.isInteger(message.enterpriseUserIdUpToSave) && !(message.enterpriseUserIdUpToSave && $util.isInteger(message.enterpriseUserIdUpToSave.low) && $util.isInteger(message.enterpriseUserIdUpToSave.high))) return "enterpriseUserIdUpToSave: integer|Long expected"; @@ -172817,17 +161013,13 @@ export const Tokens = $root.Tokens = (() => { * @param {Object.} object Plain object * @returns {Tokens.IncrementalSecurityDataContToken} IncrementalSecurityDataContToken */ - IncrementalSecurityDataContToken.fromObject = function fromObject(object, long) { + IncrementalSecurityDataContToken.fromObject = function fromObject(object) { if (object instanceof $root.Tokens.IncrementalSecurityDataContToken) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Tokens.IncrementalSecurityDataContToken(); if (object.enterpriseUserIdUpToSave != null) if ($util.Long) - message.enterpriseUserIdUpToSave = $util.Long.fromValue(object.enterpriseUserIdUpToSave, false); + (message.enterpriseUserIdUpToSave = $util.Long.fromValue(object.enterpriseUserIdUpToSave)).unsigned = false; else if (typeof object.enterpriseUserIdUpToSave === "string") message.enterpriseUserIdUpToSave = parseInt(object.enterpriseUserIdUpToSave, 10); else if (typeof object.enterpriseUserIdUpToSave === "number") @@ -172836,7 +161028,7 @@ export const Tokens = $root.Tokens = (() => { message.enterpriseUserIdUpToSave = new $util.LongBits(object.enterpriseUserIdUpToSave.low >>> 0, object.enterpriseUserIdUpToSave.high >>> 0).toNumber(); if (object.revisionUpToSave != null) if ($util.Long) - message.revisionUpToSave = $util.Long.fromValue(object.revisionUpToSave, false); + (message.revisionUpToSave = $util.Long.fromValue(object.revisionUpToSave)).unsigned = false; else if (typeof object.revisionUpToSave === "string") message.revisionUpToSave = parseInt(object.revisionUpToSave, 10); else if (typeof object.revisionUpToSave === "number") @@ -172860,25 +161052,21 @@ export const Tokens = $root.Tokens = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IncrementalSecurityDataContToken.toObject = function toObject(message, options, q) { + IncrementalSecurityDataContToken.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserIdUpToSave = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserIdUpToSave = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserIdUpToSave = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserIdUpToSave = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revisionUpToSave = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revisionUpToSave = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revisionUpToSave = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revisionUpToSave = options.longs === String ? "0" : 0; if (options.bytes === String) object.recordUidUpToSave = ""; else { @@ -172888,16 +161076,12 @@ export const Tokens = $root.Tokens = (() => { } } if (message.enterpriseUserIdUpToSave != null && message.hasOwnProperty("enterpriseUserIdUpToSave")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserIdUpToSave = typeof message.enterpriseUserIdUpToSave === "number" ? BigInt(message.enterpriseUserIdUpToSave) : $util.Long.fromBits(message.enterpriseUserIdUpToSave.low >>> 0, message.enterpriseUserIdUpToSave.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserIdUpToSave === "number") + if (typeof message.enterpriseUserIdUpToSave === "number") object.enterpriseUserIdUpToSave = options.longs === String ? String(message.enterpriseUserIdUpToSave) : message.enterpriseUserIdUpToSave; else object.enterpriseUserIdUpToSave = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIdUpToSave) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIdUpToSave.low >>> 0, message.enterpriseUserIdUpToSave.high >>> 0).toNumber() : message.enterpriseUserIdUpToSave; if (message.revisionUpToSave != null && message.hasOwnProperty("revisionUpToSave")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revisionUpToSave = typeof message.revisionUpToSave === "number" ? BigInt(message.revisionUpToSave) : $util.Long.fromBits(message.revisionUpToSave.low >>> 0, message.revisionUpToSave.high >>> 0, false).toBigInt(); - else if (typeof message.revisionUpToSave === "number") + if (typeof message.revisionUpToSave === "number") object.revisionUpToSave = options.longs === String ? String(message.revisionUpToSave) : message.revisionUpToSave; else object.revisionUpToSave = options.longs === String ? $util.Long.prototype.toString.call(message.revisionUpToSave) : options.longs === Number ? new $util.LongBits(message.revisionUpToSave.low >>> 0, message.revisionUpToSave.high >>> 0).toNumber() : message.revisionUpToSave; @@ -172970,7 +161154,7 @@ export const ExternalService = $root.ExternalService = (() => { function SaveSettingsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -173027,13 +161211,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SaveSettingsRequest.encode = function encode(message, writer, q) { + SaveSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); if (message.certificate != null && Object.hasOwnProperty.call(message, "certificate")) @@ -173069,18 +161249,12 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SaveSettingsRequest.decode = function decode(reader, length, error, long) { + SaveSettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExternalService.SaveSettingsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseId = reader.int32(); @@ -173099,7 +161273,7 @@ export const ExternalService = $root.ExternalService = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -173130,13 +161304,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SaveSettingsRequest.verify = function verify(message, long) { + SaveSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) if (!$util.isInteger(message.enterpriseId)) return "enterpriseId: integer expected"; @@ -173160,13 +161330,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {Object.} object Plain object * @returns {ExternalService.SaveSettingsRequest} SaveSettingsRequest */ - SaveSettingsRequest.fromObject = function fromObject(object, long) { + SaveSettingsRequest.fromObject = function fromObject(object) { if (object instanceof $root.ExternalService.SaveSettingsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ExternalService.SaveSettingsRequest(); if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; @@ -173191,13 +161357,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SaveSettingsRequest.toObject = function toObject(message, options, q) { + SaveSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.enterpriseId = 0; @@ -173272,7 +161434,7 @@ export const ExternalService = $root.ExternalService = (() => { function GetUsersRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -173313,13 +161475,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUsersRequest.encode = function encode(message, writer, q) { + GetUsersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.field != null && Object.hasOwnProperty.call(message, "field")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.field); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -173351,18 +161509,12 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUsersRequest.decode = function decode(reader, length, error, long) { + GetUsersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExternalService.GetUsersRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.field = reader.string(); @@ -173373,7 +161525,7 @@ export const ExternalService = $root.ExternalService = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -173404,13 +161556,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetUsersRequest.verify = function verify(message, long) { + GetUsersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.field != null && message.hasOwnProperty("field")) if (!$util.isString(message.field)) return "field: string expected"; @@ -173428,13 +161576,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {Object.} object Plain object * @returns {ExternalService.GetUsersRequest} GetUsersRequest */ - GetUsersRequest.fromObject = function fromObject(object, long) { + GetUsersRequest.fromObject = function fromObject(object) { if (object instanceof $root.ExternalService.GetUsersRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ExternalService.GetUsersRequest(); if (object.field != null) message.field = String(object.field); @@ -173452,13 +161596,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetUsersRequest.toObject = function toObject(message, options, q) { + GetUsersRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.field = ""; @@ -173557,7 +161697,7 @@ export const ExternalService = $root.ExternalService = (() => { function User(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -173614,13 +161754,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - User.encode = function encode(message, writer, q) { + User.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -173656,18 +161792,12 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - User.decode = function decode(reader, length, error, long) { + User.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExternalService.User(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.email = reader.string(); @@ -173686,7 +161816,7 @@ export const ExternalService = $root.ExternalService = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -173717,13 +161847,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - User.verify = function verify(message, long) { + User.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.email != null && message.hasOwnProperty("email")) if (!$util.isString(message.email)) return "email: string expected"; @@ -173760,13 +161886,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {Object.} object Plain object * @returns {ExternalService.User} User */ - User.fromObject = function fromObject(object, long) { + User.fromObject = function fromObject(object) { if (object instanceof $root.ExternalService.User) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ExternalService.User(); if (object.email != null) message.email = String(object.email); @@ -173828,13 +161950,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - User.toObject = function toObject(message, options, q) { + User.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.email = ""; @@ -173903,7 +162021,7 @@ export const ExternalService = $root.ExternalService = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -173936,16 +162054,12 @@ export const ExternalService = $root.ExternalService = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetUsersResponse.encode = function encode(message, writer, q) { + GetUsersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.ExternalService.User.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.ExternalService.User.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -173973,27 +162087,21 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetUsersResponse.decode = function decode(reader, length, error, long) { + GetUsersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExternalService.GetUsersResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.ExternalService.User.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.ExternalService.User.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -174024,18 +162132,14 @@ export const ExternalService = $root.ExternalService = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetUsersResponse.verify = function verify(message, long) { + GetUsersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.users != null && message.hasOwnProperty("users")) { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.ExternalService.User.verify(message.users[i], long + 1); + let error = $root.ExternalService.User.verify(message.users[i]); if (error) return "users." + error; } @@ -174051,13 +162155,9 @@ export const ExternalService = $root.ExternalService = (() => { * @param {Object.} object Plain object * @returns {ExternalService.GetUsersResponse} GetUsersResponse */ - GetUsersResponse.fromObject = function fromObject(object, long) { + GetUsersResponse.fromObject = function fromObject(object) { if (object instanceof $root.ExternalService.GetUsersResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ExternalService.GetUsersResponse(); if (object.users) { if (!Array.isArray(object.users)) @@ -174066,7 +162166,7 @@ export const ExternalService = $root.ExternalService = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".ExternalService.GetUsersResponse.users: object expected"); - message.users[i] = $root.ExternalService.User.fromObject(object.users[i], long + 1); + message.users[i] = $root.ExternalService.User.fromObject(object.users[i]); } } return message; @@ -174081,20 +162181,16 @@ export const ExternalService = $root.ExternalService = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetUsersResponse.toObject = function toObject(message, options, q) { + GetUsersResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.users = []; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.ExternalService.User.toObject(message.users[j], options, q + 1); + object.users[j] = $root.ExternalService.User.toObject(message.users[j], options); } return object; }; @@ -174211,7 +162307,7 @@ export const Folder = $root.Folder = (() => { function EncryptedDataKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -174252,13 +162348,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EncryptedDataKey.encode = function encode(message, writer, q) { + EncryptedDataKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedKey != null && Object.hasOwnProperty.call(message, "encryptedKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedKey); if (message.encryptedKeyType != null && Object.hasOwnProperty.call(message, "encryptedKeyType")) @@ -174290,18 +162382,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EncryptedDataKey.decode = function decode(reader, length, error, long) { + EncryptedDataKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.EncryptedDataKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedKey = reader.bytes(); @@ -174312,7 +162398,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -174343,13 +162429,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EncryptedDataKey.verify = function verify(message, long) { + EncryptedDataKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedKey != null && message.hasOwnProperty("encryptedKey")) if (!(message.encryptedKey && typeof message.encryptedKey.length === "number" || $util.isString(message.encryptedKey))) return "encryptedKey: buffer expected"; @@ -174375,13 +162457,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.EncryptedDataKey} EncryptedDataKey */ - EncryptedDataKey.fromObject = function fromObject(object, long) { + EncryptedDataKey.fromObject = function fromObject(object) { if (object instanceof $root.Folder.EncryptedDataKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.EncryptedDataKey(); if (object.encryptedKey != null) if (typeof object.encryptedKey === "string") @@ -174428,13 +162506,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EncryptedDataKey.toObject = function toObject(message, options, q) { + EncryptedDataKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -174506,7 +162580,7 @@ export const Folder = $root.Folder = (() => { this.encryptedDataKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -174563,13 +162637,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderRecordData.encode = function encode(message, writer, q) { + SharedFolderRecordData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -174578,7 +162648,7 @@ export const Folder = $root.Folder = (() => { writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userId); if (message.encryptedDataKey != null && message.encryptedDataKey.length) for (let i = 0; i < message.encryptedDataKey.length; ++i) - $root.Folder.EncryptedDataKey.encode(message.encryptedDataKey[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Folder.EncryptedDataKey.encode(message.encryptedDataKey[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -174606,18 +162676,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderRecordData.decode = function decode(reader, length, error, long) { + SharedFolderRecordData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderRecordData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -174634,11 +162698,11 @@ export const Folder = $root.Folder = (() => { case 4: { if (!(message.encryptedDataKey && message.encryptedDataKey.length)) message.encryptedDataKey = []; - message.encryptedDataKey.push($root.Folder.EncryptedDataKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.encryptedDataKey.push($root.Folder.EncryptedDataKey.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -174669,13 +162733,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderRecordData.verify = function verify(message, long) { + SharedFolderRecordData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -174689,7 +162749,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.encryptedDataKey)) return "encryptedDataKey: array expected"; for (let i = 0; i < message.encryptedDataKey.length; ++i) { - let error = $root.Folder.EncryptedDataKey.verify(message.encryptedDataKey[i], long + 1); + let error = $root.Folder.EncryptedDataKey.verify(message.encryptedDataKey[i]); if (error) return "encryptedDataKey." + error; } @@ -174705,13 +162765,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderRecordData} SharedFolderRecordData */ - SharedFolderRecordData.fromObject = function fromObject(object, long) { + SharedFolderRecordData.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderRecordData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderRecordData(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -174732,7 +162788,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.encryptedDataKey.length; ++i) { if (typeof object.encryptedDataKey[i] !== "object") throw TypeError(".Folder.SharedFolderRecordData.encryptedDataKey: object expected"); - message.encryptedDataKey[i] = $root.Folder.EncryptedDataKey.fromObject(object.encryptedDataKey[i], long + 1); + message.encryptedDataKey[i] = $root.Folder.EncryptedDataKey.fromObject(object.encryptedDataKey[i]); } } return message; @@ -174747,13 +162803,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderRecordData.toObject = function toObject(message, options, q) { + SharedFolderRecordData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.encryptedDataKey = []; @@ -174783,7 +162835,7 @@ export const Folder = $root.Folder = (() => { if (message.encryptedDataKey && message.encryptedDataKey.length) { object.encryptedDataKey = []; for (let j = 0; j < message.encryptedDataKey.length; ++j) - object.encryptedDataKey[j] = $root.Folder.EncryptedDataKey.toObject(message.encryptedDataKey[j], options, q + 1); + object.encryptedDataKey[j] = $root.Folder.EncryptedDataKey.toObject(message.encryptedDataKey[j], options); } return object; }; @@ -174838,7 +162890,7 @@ export const Folder = $root.Folder = (() => { this.sharedFolderRecordData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -174871,16 +162923,12 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderRecordDataList.encode = function encode(message, writer, q) { + SharedFolderRecordDataList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderRecordData != null && message.sharedFolderRecordData.length) for (let i = 0; i < message.sharedFolderRecordData.length; ++i) - $root.Folder.SharedFolderRecordData.encode(message.sharedFolderRecordData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderRecordData.encode(message.sharedFolderRecordData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -174908,27 +162956,21 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderRecordDataList.decode = function decode(reader, length, error, long) { + SharedFolderRecordDataList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderRecordDataList(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.sharedFolderRecordData && message.sharedFolderRecordData.length)) message.sharedFolderRecordData = []; - message.sharedFolderRecordData.push($root.Folder.SharedFolderRecordData.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderRecordData.push($root.Folder.SharedFolderRecordData.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -174959,18 +163001,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderRecordDataList.verify = function verify(message, long) { + SharedFolderRecordDataList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderRecordData != null && message.hasOwnProperty("sharedFolderRecordData")) { if (!Array.isArray(message.sharedFolderRecordData)) return "sharedFolderRecordData: array expected"; for (let i = 0; i < message.sharedFolderRecordData.length; ++i) { - let error = $root.Folder.SharedFolderRecordData.verify(message.sharedFolderRecordData[i], long + 1); + let error = $root.Folder.SharedFolderRecordData.verify(message.sharedFolderRecordData[i]); if (error) return "sharedFolderRecordData." + error; } @@ -174986,13 +163024,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderRecordDataList} SharedFolderRecordDataList */ - SharedFolderRecordDataList.fromObject = function fromObject(object, long) { + SharedFolderRecordDataList.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderRecordDataList) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderRecordDataList(); if (object.sharedFolderRecordData) { if (!Array.isArray(object.sharedFolderRecordData)) @@ -175001,7 +163035,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderRecordData.length; ++i) { if (typeof object.sharedFolderRecordData[i] !== "object") throw TypeError(".Folder.SharedFolderRecordDataList.sharedFolderRecordData: object expected"); - message.sharedFolderRecordData[i] = $root.Folder.SharedFolderRecordData.fromObject(object.sharedFolderRecordData[i], long + 1); + message.sharedFolderRecordData[i] = $root.Folder.SharedFolderRecordData.fromObject(object.sharedFolderRecordData[i]); } } return message; @@ -175016,20 +163050,16 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderRecordDataList.toObject = function toObject(message, options, q) { + SharedFolderRecordDataList.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.sharedFolderRecordData = []; if (message.sharedFolderRecordData && message.sharedFolderRecordData.length) { object.sharedFolderRecordData = []; for (let j = 0; j < message.sharedFolderRecordData.length; ++j) - object.sharedFolderRecordData[j] = $root.Folder.SharedFolderRecordData.toObject(message.sharedFolderRecordData[j], options, q + 1); + object.sharedFolderRecordData[j] = $root.Folder.SharedFolderRecordData.toObject(message.sharedFolderRecordData[j], options); } return object; }; @@ -175085,7 +163115,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderRecordFix(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -175134,13 +163164,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderRecordFix.encode = function encode(message, writer, q) { + SharedFolderRecordFix.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -175174,18 +163200,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderRecordFix.decode = function decode(reader, length, error, long) { + SharedFolderRecordFix.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderRecordFix(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -175200,7 +163220,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -175231,13 +163251,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderRecordFix.verify = function verify(message, long) { + SharedFolderRecordFix.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -175258,13 +163274,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderRecordFix} SharedFolderRecordFix */ - SharedFolderRecordFix.fromObject = function fromObject(object, long) { + SharedFolderRecordFix.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderRecordFix) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderRecordFix(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -175293,13 +163305,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderRecordFix.toObject = function toObject(message, options, q) { + SharedFolderRecordFix.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -175383,7 +163391,7 @@ export const Folder = $root.Folder = (() => { this.sharedFolderRecordFix = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -175416,16 +163424,12 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderRecordFixList.encode = function encode(message, writer, q) { + SharedFolderRecordFixList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderRecordFix != null && message.sharedFolderRecordFix.length) for (let i = 0; i < message.sharedFolderRecordFix.length; ++i) - $root.Folder.SharedFolderRecordFix.encode(message.sharedFolderRecordFix[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderRecordFix.encode(message.sharedFolderRecordFix[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -175453,27 +163457,21 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderRecordFixList.decode = function decode(reader, length, error, long) { + SharedFolderRecordFixList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderRecordFixList(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.sharedFolderRecordFix && message.sharedFolderRecordFix.length)) message.sharedFolderRecordFix = []; - message.sharedFolderRecordFix.push($root.Folder.SharedFolderRecordFix.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderRecordFix.push($root.Folder.SharedFolderRecordFix.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -175504,18 +163502,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderRecordFixList.verify = function verify(message, long) { + SharedFolderRecordFixList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderRecordFix != null && message.hasOwnProperty("sharedFolderRecordFix")) { if (!Array.isArray(message.sharedFolderRecordFix)) return "sharedFolderRecordFix: array expected"; for (let i = 0; i < message.sharedFolderRecordFix.length; ++i) { - let error = $root.Folder.SharedFolderRecordFix.verify(message.sharedFolderRecordFix[i], long + 1); + let error = $root.Folder.SharedFolderRecordFix.verify(message.sharedFolderRecordFix[i]); if (error) return "sharedFolderRecordFix." + error; } @@ -175531,13 +163525,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderRecordFixList} SharedFolderRecordFixList */ - SharedFolderRecordFixList.fromObject = function fromObject(object, long) { + SharedFolderRecordFixList.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderRecordFixList) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderRecordFixList(); if (object.sharedFolderRecordFix) { if (!Array.isArray(object.sharedFolderRecordFix)) @@ -175546,7 +163536,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderRecordFix.length; ++i) { if (typeof object.sharedFolderRecordFix[i] !== "object") throw TypeError(".Folder.SharedFolderRecordFixList.sharedFolderRecordFix: object expected"); - message.sharedFolderRecordFix[i] = $root.Folder.SharedFolderRecordFix.fromObject(object.sharedFolderRecordFix[i], long + 1); + message.sharedFolderRecordFix[i] = $root.Folder.SharedFolderRecordFix.fromObject(object.sharedFolderRecordFix[i]); } } return message; @@ -175561,20 +163551,16 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderRecordFixList.toObject = function toObject(message, options, q) { + SharedFolderRecordFixList.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.sharedFolderRecordFix = []; if (message.sharedFolderRecordFix && message.sharedFolderRecordFix.length) { object.sharedFolderRecordFix = []; for (let j = 0; j < message.sharedFolderRecordFix.length; ++j) - object.sharedFolderRecordFix[j] = $root.Folder.SharedFolderRecordFix.toObject(message.sharedFolderRecordFix[j], options, q + 1); + object.sharedFolderRecordFix[j] = $root.Folder.SharedFolderRecordFix.toObject(message.sharedFolderRecordFix[j], options); } return object; }; @@ -175639,7 +163625,7 @@ export const Folder = $root.Folder = (() => { this.fileIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -175752,13 +163738,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordRequest.encode = function encode(message, writer, q) { + RecordRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.recordType != null && Object.hasOwnProperty.call(message, "recordType")) @@ -175812,18 +163794,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordRequest.decode = function decode(reader, length, error, long) { + RecordRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -175877,7 +163853,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -175908,13 +163884,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordRequest.verify = function verify(message, long) { + RecordRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -175974,13 +163946,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.RecordRequest} RecordRequest */ - RecordRequest.fromObject = function fromObject(object, long) { + RecordRequest.fromObject = function fromObject(object) { if (object instanceof $root.Folder.RecordRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.RecordRequest(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -176035,7 +164003,7 @@ export const Folder = $root.Folder = (() => { } if (object.howLongAgo != null) if ($util.Long) - message.howLongAgo = $util.Long.fromValue(object.howLongAgo, false); + (message.howLongAgo = $util.Long.fromValue(object.howLongAgo)).unsigned = false; else if (typeof object.howLongAgo === "string") message.howLongAgo = parseInt(object.howLongAgo, 10); else if (typeof object.howLongAgo === "number") @@ -176068,7 +164036,7 @@ export const Folder = $root.Folder = (() => { message.fileIds = []; for (let i = 0; i < object.fileIds.length; ++i) if ($util.Long) - message.fileIds[i] = $util.Long.fromValue(object.fileIds[i], false); + (message.fileIds[i] = $util.Long.fromValue(object.fileIds[i])).unsigned = false; else if (typeof object.fileIds[i] === "string") message.fileIds[i] = parseInt(object.fileIds[i], 10); else if (typeof object.fileIds[i] === "number") @@ -176088,13 +164056,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordRequest.toObject = function toObject(message, options, q) { + RecordRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.fileIds = []; @@ -176124,9 +164088,9 @@ export const Folder = $root.Folder = (() => { object.folderType = options.enums === String ? "default_folder" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.howLongAgo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.howLongAgo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.howLongAgo = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.howLongAgo = options.longs === String ? "0" : 0; if (options.bytes === String) object.folderUid = ""; else { @@ -176167,9 +164131,7 @@ export const Folder = $root.Folder = (() => { if (message.folderType != null && message.hasOwnProperty("folderType")) object.folderType = options.enums === String ? $root.Folder.FolderType[message.folderType] === undefined ? message.folderType : $root.Folder.FolderType[message.folderType] : message.folderType; if (message.howLongAgo != null && message.hasOwnProperty("howLongAgo")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.howLongAgo = typeof message.howLongAgo === "number" ? BigInt(message.howLongAgo) : $util.Long.fromBits(message.howLongAgo.low >>> 0, message.howLongAgo.high >>> 0, false).toBigInt(); - else if (typeof message.howLongAgo === "number") + if (typeof message.howLongAgo === "number") object.howLongAgo = options.longs === String ? String(message.howLongAgo) : message.howLongAgo; else object.howLongAgo = options.longs === String ? $util.Long.prototype.toString.call(message.howLongAgo) : options.longs === Number ? new $util.LongBits(message.howLongAgo.low >>> 0, message.howLongAgo.high >>> 0).toNumber() : message.howLongAgo; @@ -176184,9 +164146,7 @@ export const Folder = $root.Folder = (() => { if (message.fileIds && message.fileIds.length) { object.fileIds = []; for (let j = 0; j < message.fileIds.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.fileIds[j] = typeof message.fileIds[j] === "number" ? BigInt(message.fileIds[j]) : $util.Long.fromBits(message.fileIds[j].low >>> 0, message.fileIds[j].high >>> 0, false).toBigInt(); - else if (typeof message.fileIds[j] === "number") + if (typeof message.fileIds[j] === "number") object.fileIds[j] = options.longs === String ? String(message.fileIds[j]) : message.fileIds[j]; else object.fileIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.fileIds[j]) : options.longs === Number ? new $util.LongBits(message.fileIds[j].low >>> 0, message.fileIds[j].high >>> 0).toNumber() : message.fileIds[j]; @@ -176245,7 +164205,7 @@ export const Folder = $root.Folder = (() => { function RecordResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -176294,13 +164254,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordResponse.encode = function encode(message, writer, q) { + RecordResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -176334,18 +164290,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordResponse.decode = function decode(reader, length, error, long) { + RecordResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -176360,7 +164310,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -176391,13 +164341,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordResponse.verify = function verify(message, long) { + RecordResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -176418,13 +164364,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.RecordResponse} RecordResponse */ - RecordResponse.fromObject = function fromObject(object, long) { + RecordResponse.fromObject = function fromObject(object) { if (object instanceof $root.Folder.RecordResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.RecordResponse(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -176433,7 +164375,7 @@ export const Folder = $root.Folder = (() => { message.recordUid = object.recordUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -176454,13 +164396,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordResponse.toObject = function toObject(message, options, q) { + RecordResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -176472,17 +164410,15 @@ export const Folder = $root.Folder = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; object.status = ""; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -176544,7 +164480,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderFields(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -176609,13 +164545,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderFields.encode = function encode(message, writer, q) { + SharedFolderFields.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedFolderName != null && Object.hasOwnProperty.call(message, "encryptedFolderName")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedFolderName); if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) @@ -176653,18 +164585,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderFields.decode = function decode(reader, length, error, long) { + SharedFolderFields.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderFields(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedFolderName = reader.bytes(); @@ -176687,7 +164613,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -176718,13 +164644,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderFields.verify = function verify(message, long) { + SharedFolderFields.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedFolderName != null && message.hasOwnProperty("encryptedFolderName")) if (!(message.encryptedFolderName && typeof message.encryptedFolderName.length === "number" || $util.isString(message.encryptedFolderName))) return "encryptedFolderName: buffer expected"; @@ -176751,13 +164673,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderFields} SharedFolderFields */ - SharedFolderFields.fromObject = function fromObject(object, long) { + SharedFolderFields.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderFields) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderFields(); if (object.encryptedFolderName != null) if (typeof object.encryptedFolderName === "string") @@ -176784,13 +164702,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderFields.toObject = function toObject(message, options, q) { + SharedFolderFields.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -176867,7 +164781,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderFolderFields(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -176900,13 +164814,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderFolderFields.encode = function encode(message, writer, q) { + SharedFolderFolderFields.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); return writer; @@ -176936,25 +164846,19 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderFolderFields.decode = function decode(reader, length, error, long) { + SharedFolderFolderFields.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderFolderFields(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -176985,13 +164889,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderFolderFields.verify = function verify(message, long) { + SharedFolderFolderFields.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -177006,13 +164906,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderFolderFields} SharedFolderFolderFields */ - SharedFolderFolderFields.fromObject = function fromObject(object, long) { + SharedFolderFolderFields.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderFolderFields) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderFolderFields(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -177031,13 +164927,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderFolderFields.toObject = function toObject(message, options, q) { + SharedFolderFolderFields.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -177107,7 +164999,7 @@ export const Folder = $root.Folder = (() => { function FolderRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -177188,13 +165080,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderRequest.encode = function encode(message, writer, q) { + FolderRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.folderType != null && Object.hasOwnProperty.call(message, "folderType")) @@ -177206,9 +165094,9 @@ export const Folder = $root.Folder = (() => { if (message.encryptedFolderKey != null && Object.hasOwnProperty.call(message, "encryptedFolderKey")) writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedFolderKey); if (message.sharedFolderFields != null && Object.hasOwnProperty.call(message, "sharedFolderFields")) - $root.Folder.SharedFolderFields.encode(message.sharedFolderFields, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderFields.encode(message.sharedFolderFields, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.sharedFolderFolderFields != null && Object.hasOwnProperty.call(message, "sharedFolderFolderFields")) - $root.Folder.SharedFolderFolderFields.encode(message.sharedFolderFolderFields, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderFolderFields.encode(message.sharedFolderFolderFields, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -177236,18 +165124,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderRequest.decode = function decode(reader, length, error, long) { + FolderRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -177270,15 +165152,15 @@ export const Folder = $root.Folder = (() => { break; } case 6: { - message.sharedFolderFields = $root.Folder.SharedFolderFields.decode(reader, reader.uint32(), undefined, long + 1); + message.sharedFolderFields = $root.Folder.SharedFolderFields.decode(reader, reader.uint32()); break; } case 7: { - message.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.decode(reader, reader.uint32(), undefined, long + 1); + message.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -177309,13 +165191,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderRequest.verify = function verify(message, long) { + FolderRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -177339,12 +165217,12 @@ export const Folder = $root.Folder = (() => { if (!(message.encryptedFolderKey && typeof message.encryptedFolderKey.length === "number" || $util.isString(message.encryptedFolderKey))) return "encryptedFolderKey: buffer expected"; if (message.sharedFolderFields != null && message.hasOwnProperty("sharedFolderFields")) { - let error = $root.Folder.SharedFolderFields.verify(message.sharedFolderFields, long + 1); + let error = $root.Folder.SharedFolderFields.verify(message.sharedFolderFields); if (error) return "sharedFolderFields." + error; } if (message.sharedFolderFolderFields != null && message.hasOwnProperty("sharedFolderFolderFields")) { - let error = $root.Folder.SharedFolderFolderFields.verify(message.sharedFolderFolderFields, long + 1); + let error = $root.Folder.SharedFolderFolderFields.verify(message.sharedFolderFolderFields); if (error) return "sharedFolderFolderFields." + error; } @@ -177359,13 +165237,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderRequest} FolderRequest */ - FolderRequest.fromObject = function fromObject(object, long) { + FolderRequest.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderRequest(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -177414,12 +165288,12 @@ export const Folder = $root.Folder = (() => { if (object.sharedFolderFields != null) { if (typeof object.sharedFolderFields !== "object") throw TypeError(".Folder.FolderRequest.sharedFolderFields: object expected"); - message.sharedFolderFields = $root.Folder.SharedFolderFields.fromObject(object.sharedFolderFields, long + 1); + message.sharedFolderFields = $root.Folder.SharedFolderFields.fromObject(object.sharedFolderFields); } if (object.sharedFolderFolderFields != null) { if (typeof object.sharedFolderFolderFields !== "object") throw TypeError(".Folder.FolderRequest.sharedFolderFolderFields: object expected"); - message.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.fromObject(object.sharedFolderFolderFields, long + 1); + message.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.fromObject(object.sharedFolderFolderFields); } return message; }; @@ -177433,13 +165307,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderRequest.toObject = function toObject(message, options, q) { + FolderRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -177485,9 +165355,9 @@ export const Folder = $root.Folder = (() => { if (message.encryptedFolderKey != null && message.hasOwnProperty("encryptedFolderKey")) object.encryptedFolderKey = options.bytes === String ? $util.base64.encode(message.encryptedFolderKey, 0, message.encryptedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedFolderKey) : message.encryptedFolderKey; if (message.sharedFolderFields != null && message.hasOwnProperty("sharedFolderFields")) - object.sharedFolderFields = $root.Folder.SharedFolderFields.toObject(message.sharedFolderFields, options, q + 1); + object.sharedFolderFields = $root.Folder.SharedFolderFields.toObject(message.sharedFolderFields, options); if (message.sharedFolderFolderFields != null && message.hasOwnProperty("sharedFolderFolderFields")) - object.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.toObject(message.sharedFolderFolderFields, options, q + 1); + object.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.toObject(message.sharedFolderFolderFields, options); return object; }; @@ -177542,7 +165412,7 @@ export const Folder = $root.Folder = (() => { function FolderResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -177591,13 +165461,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderResponse.encode = function encode(message, writer, q) { + FolderResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -177631,18 +165497,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderResponse.decode = function decode(reader, length, error, long) { + FolderResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -177657,7 +165517,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -177688,13 +165548,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderResponse.verify = function verify(message, long) { + FolderResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -177715,13 +165571,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderResponse} FolderResponse */ - FolderResponse.fromObject = function fromObject(object, long) { + FolderResponse.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderResponse(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -177730,7 +165582,7 @@ export const Folder = $root.Folder = (() => { message.folderUid = object.folderUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -177751,13 +165603,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderResponse.toObject = function toObject(message, options, q) { + FolderResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -177769,17 +165617,15 @@ export const Folder = $root.Folder = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; object.status = ""; } if (message.folderUid != null && message.hasOwnProperty("folderUid")) object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -177840,7 +165686,7 @@ export const Folder = $root.Folder = (() => { this.recordRequest = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -177881,19 +165727,15 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFolderRecordRequest.encode = function encode(message, writer, q) { + ImportFolderRecordRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderRequest != null && message.folderRequest.length) for (let i = 0; i < message.folderRequest.length; ++i) - $root.Folder.FolderRequest.encode(message.folderRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.FolderRequest.encode(message.folderRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.recordRequest != null && message.recordRequest.length) for (let i = 0; i < message.recordRequest.length; ++i) - $root.Folder.RecordRequest.encode(message.recordRequest[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Folder.RecordRequest.encode(message.recordRequest[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -177921,33 +165763,27 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFolderRecordRequest.decode = function decode(reader, length, error, long) { + ImportFolderRecordRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.ImportFolderRecordRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.folderRequest && message.folderRequest.length)) message.folderRequest = []; - message.folderRequest.push($root.Folder.FolderRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderRequest.push($root.Folder.FolderRequest.decode(reader, reader.uint32())); break; } case 2: { if (!(message.recordRequest && message.recordRequest.length)) message.recordRequest = []; - message.recordRequest.push($root.Folder.RecordRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordRequest.push($root.Folder.RecordRequest.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -177978,18 +165814,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFolderRecordRequest.verify = function verify(message, long) { + ImportFolderRecordRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderRequest != null && message.hasOwnProperty("folderRequest")) { if (!Array.isArray(message.folderRequest)) return "folderRequest: array expected"; for (let i = 0; i < message.folderRequest.length; ++i) { - let error = $root.Folder.FolderRequest.verify(message.folderRequest[i], long + 1); + let error = $root.Folder.FolderRequest.verify(message.folderRequest[i]); if (error) return "folderRequest." + error; } @@ -177998,7 +165830,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.recordRequest)) return "recordRequest: array expected"; for (let i = 0; i < message.recordRequest.length; ++i) { - let error = $root.Folder.RecordRequest.verify(message.recordRequest[i], long + 1); + let error = $root.Folder.RecordRequest.verify(message.recordRequest[i]); if (error) return "recordRequest." + error; } @@ -178014,13 +165846,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.ImportFolderRecordRequest} ImportFolderRecordRequest */ - ImportFolderRecordRequest.fromObject = function fromObject(object, long) { + ImportFolderRecordRequest.fromObject = function fromObject(object) { if (object instanceof $root.Folder.ImportFolderRecordRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.ImportFolderRecordRequest(); if (object.folderRequest) { if (!Array.isArray(object.folderRequest)) @@ -178029,7 +165857,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderRequest.length; ++i) { if (typeof object.folderRequest[i] !== "object") throw TypeError(".Folder.ImportFolderRecordRequest.folderRequest: object expected"); - message.folderRequest[i] = $root.Folder.FolderRequest.fromObject(object.folderRequest[i], long + 1); + message.folderRequest[i] = $root.Folder.FolderRequest.fromObject(object.folderRequest[i]); } } if (object.recordRequest) { @@ -178039,7 +165867,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.recordRequest.length; ++i) { if (typeof object.recordRequest[i] !== "object") throw TypeError(".Folder.ImportFolderRecordRequest.recordRequest: object expected"); - message.recordRequest[i] = $root.Folder.RecordRequest.fromObject(object.recordRequest[i], long + 1); + message.recordRequest[i] = $root.Folder.RecordRequest.fromObject(object.recordRequest[i]); } } return message; @@ -178054,13 +165882,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFolderRecordRequest.toObject = function toObject(message, options, q) { + ImportFolderRecordRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.folderRequest = []; @@ -178069,12 +165893,12 @@ export const Folder = $root.Folder = (() => { if (message.folderRequest && message.folderRequest.length) { object.folderRequest = []; for (let j = 0; j < message.folderRequest.length; ++j) - object.folderRequest[j] = $root.Folder.FolderRequest.toObject(message.folderRequest[j], options, q + 1); + object.folderRequest[j] = $root.Folder.FolderRequest.toObject(message.folderRequest[j], options); } if (message.recordRequest && message.recordRequest.length) { object.recordRequest = []; for (let j = 0; j < message.recordRequest.length; ++j) - object.recordRequest[j] = $root.Folder.RecordRequest.toObject(message.recordRequest[j], options, q + 1); + object.recordRequest[j] = $root.Folder.RecordRequest.toObject(message.recordRequest[j], options); } return object; }; @@ -178131,7 +165955,7 @@ export const Folder = $root.Folder = (() => { this.recordResponse = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -178172,19 +165996,15 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFolderRecordResponse.encode = function encode(message, writer, q) { + ImportFolderRecordResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderResponse != null && message.folderResponse.length) for (let i = 0; i < message.folderResponse.length; ++i) - $root.Folder.FolderResponse.encode(message.folderResponse[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.FolderResponse.encode(message.folderResponse[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.recordResponse != null && message.recordResponse.length) for (let i = 0; i < message.recordResponse.length; ++i) - $root.Folder.RecordResponse.encode(message.recordResponse[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Folder.RecordResponse.encode(message.recordResponse[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -178212,33 +166032,27 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFolderRecordResponse.decode = function decode(reader, length, error, long) { + ImportFolderRecordResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.ImportFolderRecordResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.folderResponse && message.folderResponse.length)) message.folderResponse = []; - message.folderResponse.push($root.Folder.FolderResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderResponse.push($root.Folder.FolderResponse.decode(reader, reader.uint32())); break; } case 2: { if (!(message.recordResponse && message.recordResponse.length)) message.recordResponse = []; - message.recordResponse.push($root.Folder.RecordResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordResponse.push($root.Folder.RecordResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -178269,18 +166083,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFolderRecordResponse.verify = function verify(message, long) { + ImportFolderRecordResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderResponse != null && message.hasOwnProperty("folderResponse")) { if (!Array.isArray(message.folderResponse)) return "folderResponse: array expected"; for (let i = 0; i < message.folderResponse.length; ++i) { - let error = $root.Folder.FolderResponse.verify(message.folderResponse[i], long + 1); + let error = $root.Folder.FolderResponse.verify(message.folderResponse[i]); if (error) return "folderResponse." + error; } @@ -178289,7 +166099,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.recordResponse)) return "recordResponse: array expected"; for (let i = 0; i < message.recordResponse.length; ++i) { - let error = $root.Folder.RecordResponse.verify(message.recordResponse[i], long + 1); + let error = $root.Folder.RecordResponse.verify(message.recordResponse[i]); if (error) return "recordResponse." + error; } @@ -178305,13 +166115,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.ImportFolderRecordResponse} ImportFolderRecordResponse */ - ImportFolderRecordResponse.fromObject = function fromObject(object, long) { + ImportFolderRecordResponse.fromObject = function fromObject(object) { if (object instanceof $root.Folder.ImportFolderRecordResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.ImportFolderRecordResponse(); if (object.folderResponse) { if (!Array.isArray(object.folderResponse)) @@ -178320,7 +166126,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderResponse.length; ++i) { if (typeof object.folderResponse[i] !== "object") throw TypeError(".Folder.ImportFolderRecordResponse.folderResponse: object expected"); - message.folderResponse[i] = $root.Folder.FolderResponse.fromObject(object.folderResponse[i], long + 1); + message.folderResponse[i] = $root.Folder.FolderResponse.fromObject(object.folderResponse[i]); } } if (object.recordResponse) { @@ -178330,7 +166136,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.recordResponse.length; ++i) { if (typeof object.recordResponse[i] !== "object") throw TypeError(".Folder.ImportFolderRecordResponse.recordResponse: object expected"); - message.recordResponse[i] = $root.Folder.RecordResponse.fromObject(object.recordResponse[i], long + 1); + message.recordResponse[i] = $root.Folder.RecordResponse.fromObject(object.recordResponse[i]); } } return message; @@ -178345,13 +166151,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFolderRecordResponse.toObject = function toObject(message, options, q) { + ImportFolderRecordResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.folderResponse = []; @@ -178360,12 +166162,12 @@ export const Folder = $root.Folder = (() => { if (message.folderResponse && message.folderResponse.length) { object.folderResponse = []; for (let j = 0; j < message.folderResponse.length; ++j) - object.folderResponse[j] = $root.Folder.FolderResponse.toObject(message.folderResponse[j], options, q + 1); + object.folderResponse[j] = $root.Folder.FolderResponse.toObject(message.folderResponse[j], options); } if (message.recordResponse && message.recordResponse.length) { object.recordResponse = []; for (let j = 0; j < message.recordResponse.length; ++j) - object.recordResponse[j] = $root.Folder.RecordResponse.toObject(message.recordResponse[j], options, q + 1); + object.recordResponse[j] = $root.Folder.RecordResponse.toObject(message.recordResponse[j], options); } return object; }; @@ -178444,7 +166246,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -178549,13 +166351,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUpdateRecord.encode = function encode(message, writer, q) { + SharedFolderUpdateRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) @@ -178603,18 +166401,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUpdateRecord.decode = function decode(reader, length, error, long) { + SharedFolderUpdateRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -178657,7 +166449,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -178688,13 +166480,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUpdateRecord.verify = function verify(message, long) { + SharedFolderUpdateRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -178754,13 +166542,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderUpdateRecord} SharedFolderUpdateRecord */ - SharedFolderUpdateRecord.fromObject = function fromObject(object, long) { + SharedFolderUpdateRecord.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderUpdateRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderUpdateRecord(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -178826,7 +166610,7 @@ export const Folder = $root.Folder = (() => { message.revision = object.revision | 0; if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -178867,13 +166651,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUpdateRecord.toObject = function toObject(message, options, q) { + SharedFolderUpdateRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -178909,9 +166689,9 @@ export const Folder = $root.Folder = (() => { object.revision = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } @@ -178930,9 +166710,7 @@ export const Folder = $root.Folder = (() => { if (message.revision != null && message.hasOwnProperty("revision")) object.revision = message.revision; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -178999,7 +166777,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -179088,13 +166866,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUpdateUser.encode = function encode(message, writer, q) { + SharedFolderUpdateUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) @@ -179108,7 +166882,7 @@ export const Folder = $root.Folder = (() => { if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timerNotificationType); if (message.typedSharedFolderKey != null && Object.hasOwnProperty.call(message, "typedSharedFolderKey")) - $root.Folder.EncryptedDataKey.encode(message.typedSharedFolderKey, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Folder.EncryptedDataKey.encode(message.typedSharedFolderKey, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rotateOnExpiration); return writer; @@ -179138,18 +166912,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUpdateUser.decode = function decode(reader, length, error, long) { + SharedFolderUpdateUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -179176,7 +166944,7 @@ export const Folder = $root.Folder = (() => { break; } case 7: { - message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.decode(reader, reader.uint32(), undefined, long + 1); + message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.decode(reader, reader.uint32()); break; } case 8: { @@ -179184,7 +166952,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -179215,13 +166983,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUpdateUser.verify = function verify(message, long) { + SharedFolderUpdateUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -179259,7 +167023,7 @@ export const Folder = $root.Folder = (() => { break; } if (message.typedSharedFolderKey != null && message.hasOwnProperty("typedSharedFolderKey")) { - let error = $root.Folder.EncryptedDataKey.verify(message.typedSharedFolderKey, long + 1); + let error = $root.Folder.EncryptedDataKey.verify(message.typedSharedFolderKey); if (error) return "typedSharedFolderKey." + error; } @@ -179277,13 +167041,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderUpdateUser} SharedFolderUpdateUser */ - SharedFolderUpdateUser.fromObject = function fromObject(object, long) { + SharedFolderUpdateUser.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderUpdateUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderUpdateUser(); if (object.username != null) message.username = String(object.username); @@ -179334,7 +167094,7 @@ export const Folder = $root.Folder = (() => { message.sharedFolderKey = object.sharedFolderKey; if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -179364,7 +167124,7 @@ export const Folder = $root.Folder = (() => { if (object.typedSharedFolderKey != null) { if (typeof object.typedSharedFolderKey !== "object") throw TypeError(".Folder.SharedFolderUpdateUser.typedSharedFolderKey: object expected"); - message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.fromObject(object.typedSharedFolderKey, long + 1); + message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.fromObject(object.typedSharedFolderKey); } if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); @@ -179380,13 +167140,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUpdateUser.toObject = function toObject(message, options, q) { + SharedFolderUpdateUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -179401,9 +167157,9 @@ export const Folder = $root.Folder = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.typedSharedFolderKey = null; object.rotateOnExpiration = false; @@ -179417,16 +167173,14 @@ export const Folder = $root.Folder = (() => { if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) object.sharedFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderKey) : message.sharedFolderKey; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; if (message.typedSharedFolderKey != null && message.hasOwnProperty("typedSharedFolderKey")) - object.typedSharedFolderKey = $root.Folder.EncryptedDataKey.toObject(message.typedSharedFolderKey, options, q + 1); + object.typedSharedFolderKey = $root.Folder.EncryptedDataKey.toObject(message.typedSharedFolderKey, options); if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; @@ -179488,7 +167242,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -179577,13 +167331,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUpdateTeam.encode = function encode(message, writer, q) { + SharedFolderUpdateTeam.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) @@ -179597,7 +167347,7 @@ export const Folder = $root.Folder = (() => { if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timerNotificationType); if (message.typedSharedFolderKey != null && Object.hasOwnProperty.call(message, "typedSharedFolderKey")) - $root.Folder.EncryptedDataKey.encode(message.typedSharedFolderKey, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Folder.EncryptedDataKey.encode(message.typedSharedFolderKey, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rotateOnExpiration); return writer; @@ -179627,18 +167377,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUpdateTeam.decode = function decode(reader, length, error, long) { + SharedFolderUpdateTeam.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateTeam(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -179665,7 +167409,7 @@ export const Folder = $root.Folder = (() => { break; } case 7: { - message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.decode(reader, reader.uint32(), undefined, long + 1); + message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.decode(reader, reader.uint32()); break; } case 8: { @@ -179673,7 +167417,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -179704,13 +167448,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUpdateTeam.verify = function verify(message, long) { + SharedFolderUpdateTeam.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -179736,7 +167476,7 @@ export const Folder = $root.Folder = (() => { break; } if (message.typedSharedFolderKey != null && message.hasOwnProperty("typedSharedFolderKey")) { - let error = $root.Folder.EncryptedDataKey.verify(message.typedSharedFolderKey, long + 1); + let error = $root.Folder.EncryptedDataKey.verify(message.typedSharedFolderKey); if (error) return "typedSharedFolderKey." + error; } @@ -179754,13 +167494,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderUpdateTeam} SharedFolderUpdateTeam */ - SharedFolderUpdateTeam.fromObject = function fromObject(object, long) { + SharedFolderUpdateTeam.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderUpdateTeam) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderUpdateTeam(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -179778,7 +167514,7 @@ export const Folder = $root.Folder = (() => { message.sharedFolderKey = object.sharedFolderKey; if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -179808,7 +167544,7 @@ export const Folder = $root.Folder = (() => { if (object.typedSharedFolderKey != null) { if (typeof object.typedSharedFolderKey !== "object") throw TypeError(".Folder.SharedFolderUpdateTeam.typedSharedFolderKey: object expected"); - message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.fromObject(object.typedSharedFolderKey, long + 1); + message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.fromObject(object.typedSharedFolderKey); } if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); @@ -179824,13 +167560,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUpdateTeam.toObject = function toObject(message, options, q) { + SharedFolderUpdateTeam.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -179851,9 +167583,9 @@ export const Folder = $root.Folder = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.typedSharedFolderKey = null; object.rotateOnExpiration = false; @@ -179867,16 +167599,14 @@ export const Folder = $root.Folder = (() => { if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) object.sharedFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderKey) : message.sharedFolderKey; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; if (message.typedSharedFolderKey != null && message.hasOwnProperty("typedSharedFolderKey")) - object.typedSharedFolderKey = $root.Folder.EncryptedDataKey.toObject(message.typedSharedFolderKey, options, q + 1); + object.typedSharedFolderKey = $root.Folder.EncryptedDataKey.toObject(message.typedSharedFolderKey, options); if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) object.rotateOnExpiration = message.rotateOnExpiration; return object; @@ -179959,7 +167689,7 @@ export const Folder = $root.Folder = (() => { this.sharedFolderRemoveTeam = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -180144,13 +167874,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUpdateV3Request.encode = function encode(message, writer, q) { + SharedFolderUpdateV3Request.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUpdateOperationDontUse != null && Object.hasOwnProperty.call(message, "sharedFolderUpdateOperationDontUse")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sharedFolderUpdateOperationDontUse); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) @@ -180173,22 +167899,22 @@ export const Folder = $root.Folder = (() => { writer.uint32(/* id 10, wireType 0 =*/80).int32(message.defaultCanShare); if (message.sharedFolderAddRecord != null && message.sharedFolderAddRecord.length) for (let i = 0; i < message.sharedFolderAddRecord.length; ++i) - $root.Folder.SharedFolderUpdateRecord.encode(message.sharedFolderAddRecord[i], writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateRecord.encode(message.sharedFolderAddRecord[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.sharedFolderAddUser != null && message.sharedFolderAddUser.length) for (let i = 0; i < message.sharedFolderAddUser.length; ++i) - $root.Folder.SharedFolderUpdateUser.encode(message.sharedFolderAddUser[i], writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateUser.encode(message.sharedFolderAddUser[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.sharedFolderAddTeam != null && message.sharedFolderAddTeam.length) for (let i = 0; i < message.sharedFolderAddTeam.length; ++i) - $root.Folder.SharedFolderUpdateTeam.encode(message.sharedFolderAddTeam[i], writer.uint32(/* id 13, wireType 2 =*/106).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateTeam.encode(message.sharedFolderAddTeam[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.sharedFolderUpdateRecord != null && message.sharedFolderUpdateRecord.length) for (let i = 0; i < message.sharedFolderUpdateRecord.length; ++i) - $root.Folder.SharedFolderUpdateRecord.encode(message.sharedFolderUpdateRecord[i], writer.uint32(/* id 14, wireType 2 =*/114).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateRecord.encode(message.sharedFolderUpdateRecord[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.sharedFolderUpdateUser != null && message.sharedFolderUpdateUser.length) for (let i = 0; i < message.sharedFolderUpdateUser.length; ++i) - $root.Folder.SharedFolderUpdateUser.encode(message.sharedFolderUpdateUser[i], writer.uint32(/* id 15, wireType 2 =*/122).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateUser.encode(message.sharedFolderUpdateUser[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); if (message.sharedFolderUpdateTeam != null && message.sharedFolderUpdateTeam.length) for (let i = 0; i < message.sharedFolderUpdateTeam.length; ++i) - $root.Folder.SharedFolderUpdateTeam.encode(message.sharedFolderUpdateTeam[i], writer.uint32(/* id 16, wireType 2 =*/130).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateTeam.encode(message.sharedFolderUpdateTeam[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); if (message.sharedFolderRemoveRecord != null && message.sharedFolderRemoveRecord.length) for (let i = 0; i < message.sharedFolderRemoveRecord.length; ++i) writer.uint32(/* id 17, wireType 2 =*/138).bytes(message.sharedFolderRemoveRecord[i]); @@ -180227,18 +167953,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUpdateV3Request.decode = function decode(reader, length, error, long) { + SharedFolderUpdateV3Request.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateV3Request(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUpdateOperationDontUse = reader.int32(); @@ -180283,37 +168003,37 @@ export const Folder = $root.Folder = (() => { case 11: { if (!(message.sharedFolderAddRecord && message.sharedFolderAddRecord.length)) message.sharedFolderAddRecord = []; - message.sharedFolderAddRecord.push($root.Folder.SharedFolderUpdateRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderAddRecord.push($root.Folder.SharedFolderUpdateRecord.decode(reader, reader.uint32())); break; } case 12: { if (!(message.sharedFolderAddUser && message.sharedFolderAddUser.length)) message.sharedFolderAddUser = []; - message.sharedFolderAddUser.push($root.Folder.SharedFolderUpdateUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderAddUser.push($root.Folder.SharedFolderUpdateUser.decode(reader, reader.uint32())); break; } case 13: { if (!(message.sharedFolderAddTeam && message.sharedFolderAddTeam.length)) message.sharedFolderAddTeam = []; - message.sharedFolderAddTeam.push($root.Folder.SharedFolderUpdateTeam.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderAddTeam.push($root.Folder.SharedFolderUpdateTeam.decode(reader, reader.uint32())); break; } case 14: { if (!(message.sharedFolderUpdateRecord && message.sharedFolderUpdateRecord.length)) message.sharedFolderUpdateRecord = []; - message.sharedFolderUpdateRecord.push($root.Folder.SharedFolderUpdateRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderUpdateRecord.push($root.Folder.SharedFolderUpdateRecord.decode(reader, reader.uint32())); break; } case 15: { if (!(message.sharedFolderUpdateUser && message.sharedFolderUpdateUser.length)) message.sharedFolderUpdateUser = []; - message.sharedFolderUpdateUser.push($root.Folder.SharedFolderUpdateUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderUpdateUser.push($root.Folder.SharedFolderUpdateUser.decode(reader, reader.uint32())); break; } case 16: { if (!(message.sharedFolderUpdateTeam && message.sharedFolderUpdateTeam.length)) message.sharedFolderUpdateTeam = []; - message.sharedFolderUpdateTeam.push($root.Folder.SharedFolderUpdateTeam.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderUpdateTeam.push($root.Folder.SharedFolderUpdateTeam.decode(reader, reader.uint32())); break; } case 17: { @@ -180339,7 +168059,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -180370,13 +168090,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUpdateV3Request.verify = function verify(message, long) { + SharedFolderUpdateV3Request.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUpdateOperationDontUse != null && message.hasOwnProperty("sharedFolderUpdateOperationDontUse")) if (!$util.isInteger(message.sharedFolderUpdateOperationDontUse)) return "sharedFolderUpdateOperationDontUse: integer expected"; @@ -180435,7 +168151,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderAddRecord)) return "sharedFolderAddRecord: array expected"; for (let i = 0; i < message.sharedFolderAddRecord.length; ++i) { - let error = $root.Folder.SharedFolderUpdateRecord.verify(message.sharedFolderAddRecord[i], long + 1); + let error = $root.Folder.SharedFolderUpdateRecord.verify(message.sharedFolderAddRecord[i]); if (error) return "sharedFolderAddRecord." + error; } @@ -180444,7 +168160,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderAddUser)) return "sharedFolderAddUser: array expected"; for (let i = 0; i < message.sharedFolderAddUser.length; ++i) { - let error = $root.Folder.SharedFolderUpdateUser.verify(message.sharedFolderAddUser[i], long + 1); + let error = $root.Folder.SharedFolderUpdateUser.verify(message.sharedFolderAddUser[i]); if (error) return "sharedFolderAddUser." + error; } @@ -180453,7 +168169,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderAddTeam)) return "sharedFolderAddTeam: array expected"; for (let i = 0; i < message.sharedFolderAddTeam.length; ++i) { - let error = $root.Folder.SharedFolderUpdateTeam.verify(message.sharedFolderAddTeam[i], long + 1); + let error = $root.Folder.SharedFolderUpdateTeam.verify(message.sharedFolderAddTeam[i]); if (error) return "sharedFolderAddTeam." + error; } @@ -180462,7 +168178,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderUpdateRecord)) return "sharedFolderUpdateRecord: array expected"; for (let i = 0; i < message.sharedFolderUpdateRecord.length; ++i) { - let error = $root.Folder.SharedFolderUpdateRecord.verify(message.sharedFolderUpdateRecord[i], long + 1); + let error = $root.Folder.SharedFolderUpdateRecord.verify(message.sharedFolderUpdateRecord[i]); if (error) return "sharedFolderUpdateRecord." + error; } @@ -180471,7 +168187,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderUpdateUser)) return "sharedFolderUpdateUser: array expected"; for (let i = 0; i < message.sharedFolderUpdateUser.length; ++i) { - let error = $root.Folder.SharedFolderUpdateUser.verify(message.sharedFolderUpdateUser[i], long + 1); + let error = $root.Folder.SharedFolderUpdateUser.verify(message.sharedFolderUpdateUser[i]); if (error) return "sharedFolderUpdateUser." + error; } @@ -180480,7 +168196,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderUpdateTeam)) return "sharedFolderUpdateTeam: array expected"; for (let i = 0; i < message.sharedFolderUpdateTeam.length; ++i) { - let error = $root.Folder.SharedFolderUpdateTeam.verify(message.sharedFolderUpdateTeam[i], long + 1); + let error = $root.Folder.SharedFolderUpdateTeam.verify(message.sharedFolderUpdateTeam[i]); if (error) return "sharedFolderUpdateTeam." + error; } @@ -180520,13 +168236,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderUpdateV3Request} SharedFolderUpdateV3Request */ - SharedFolderUpdateV3Request.fromObject = function fromObject(object, long) { + SharedFolderUpdateV3Request.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderUpdateV3Request) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderUpdateV3Request(); if (object.sharedFolderUpdateOperationDontUse != null) message.sharedFolderUpdateOperationDontUse = object.sharedFolderUpdateOperationDontUse | 0; @@ -180542,7 +168254,7 @@ export const Folder = $root.Folder = (() => { message.encryptedSharedFolderName = object.encryptedSharedFolderName; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -180643,7 +168355,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderAddRecord.length; ++i) { if (typeof object.sharedFolderAddRecord[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddRecord: object expected"); - message.sharedFolderAddRecord[i] = $root.Folder.SharedFolderUpdateRecord.fromObject(object.sharedFolderAddRecord[i], long + 1); + message.sharedFolderAddRecord[i] = $root.Folder.SharedFolderUpdateRecord.fromObject(object.sharedFolderAddRecord[i]); } } if (object.sharedFolderAddUser) { @@ -180653,7 +168365,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderAddUser.length; ++i) { if (typeof object.sharedFolderAddUser[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddUser: object expected"); - message.sharedFolderAddUser[i] = $root.Folder.SharedFolderUpdateUser.fromObject(object.sharedFolderAddUser[i], long + 1); + message.sharedFolderAddUser[i] = $root.Folder.SharedFolderUpdateUser.fromObject(object.sharedFolderAddUser[i]); } } if (object.sharedFolderAddTeam) { @@ -180663,7 +168375,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderAddTeam.length; ++i) { if (typeof object.sharedFolderAddTeam[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddTeam: object expected"); - message.sharedFolderAddTeam[i] = $root.Folder.SharedFolderUpdateTeam.fromObject(object.sharedFolderAddTeam[i], long + 1); + message.sharedFolderAddTeam[i] = $root.Folder.SharedFolderUpdateTeam.fromObject(object.sharedFolderAddTeam[i]); } } if (object.sharedFolderUpdateRecord) { @@ -180673,7 +168385,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderUpdateRecord.length; ++i) { if (typeof object.sharedFolderUpdateRecord[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateRecord: object expected"); - message.sharedFolderUpdateRecord[i] = $root.Folder.SharedFolderUpdateRecord.fromObject(object.sharedFolderUpdateRecord[i], long + 1); + message.sharedFolderUpdateRecord[i] = $root.Folder.SharedFolderUpdateRecord.fromObject(object.sharedFolderUpdateRecord[i]); } } if (object.sharedFolderUpdateUser) { @@ -180683,7 +168395,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderUpdateUser.length; ++i) { if (typeof object.sharedFolderUpdateUser[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateUser: object expected"); - message.sharedFolderUpdateUser[i] = $root.Folder.SharedFolderUpdateUser.fromObject(object.sharedFolderUpdateUser[i], long + 1); + message.sharedFolderUpdateUser[i] = $root.Folder.SharedFolderUpdateUser.fromObject(object.sharedFolderUpdateUser[i]); } } if (object.sharedFolderUpdateTeam) { @@ -180693,7 +168405,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderUpdateTeam.length; ++i) { if (typeof object.sharedFolderUpdateTeam[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateTeam: object expected"); - message.sharedFolderUpdateTeam[i] = $root.Folder.SharedFolderUpdateTeam.fromObject(object.sharedFolderUpdateTeam[i], long + 1); + message.sharedFolderUpdateTeam[i] = $root.Folder.SharedFolderUpdateTeam.fromObject(object.sharedFolderUpdateTeam[i]); } } if (object.sharedFolderRemoveRecord) { @@ -180737,13 +168449,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUpdateV3Request.toObject = function toObject(message, options, q) { + SharedFolderUpdateV3Request.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.sharedFolderAddRecord = []; @@ -180774,9 +168482,9 @@ export const Folder = $root.Folder = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; object.forceUpdate = false; if (options.bytes === String) object.fromTeamUid = ""; @@ -180798,9 +168506,7 @@ export const Folder = $root.Folder = (() => { if (message.encryptedSharedFolderName != null && message.hasOwnProperty("encryptedSharedFolderName")) object.encryptedSharedFolderName = options.bytes === String ? $util.base64.encode(message.encryptedSharedFolderName, 0, message.encryptedSharedFolderName.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSharedFolderName) : message.encryptedSharedFolderName; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -180819,32 +168525,32 @@ export const Folder = $root.Folder = (() => { if (message.sharedFolderAddRecord && message.sharedFolderAddRecord.length) { object.sharedFolderAddRecord = []; for (let j = 0; j < message.sharedFolderAddRecord.length; ++j) - object.sharedFolderAddRecord[j] = $root.Folder.SharedFolderUpdateRecord.toObject(message.sharedFolderAddRecord[j], options, q + 1); + object.sharedFolderAddRecord[j] = $root.Folder.SharedFolderUpdateRecord.toObject(message.sharedFolderAddRecord[j], options); } if (message.sharedFolderAddUser && message.sharedFolderAddUser.length) { object.sharedFolderAddUser = []; for (let j = 0; j < message.sharedFolderAddUser.length; ++j) - object.sharedFolderAddUser[j] = $root.Folder.SharedFolderUpdateUser.toObject(message.sharedFolderAddUser[j], options, q + 1); + object.sharedFolderAddUser[j] = $root.Folder.SharedFolderUpdateUser.toObject(message.sharedFolderAddUser[j], options); } if (message.sharedFolderAddTeam && message.sharedFolderAddTeam.length) { object.sharedFolderAddTeam = []; for (let j = 0; j < message.sharedFolderAddTeam.length; ++j) - object.sharedFolderAddTeam[j] = $root.Folder.SharedFolderUpdateTeam.toObject(message.sharedFolderAddTeam[j], options, q + 1); + object.sharedFolderAddTeam[j] = $root.Folder.SharedFolderUpdateTeam.toObject(message.sharedFolderAddTeam[j], options); } if (message.sharedFolderUpdateRecord && message.sharedFolderUpdateRecord.length) { object.sharedFolderUpdateRecord = []; for (let j = 0; j < message.sharedFolderUpdateRecord.length; ++j) - object.sharedFolderUpdateRecord[j] = $root.Folder.SharedFolderUpdateRecord.toObject(message.sharedFolderUpdateRecord[j], options, q + 1); + object.sharedFolderUpdateRecord[j] = $root.Folder.SharedFolderUpdateRecord.toObject(message.sharedFolderUpdateRecord[j], options); } if (message.sharedFolderUpdateUser && message.sharedFolderUpdateUser.length) { object.sharedFolderUpdateUser = []; for (let j = 0; j < message.sharedFolderUpdateUser.length; ++j) - object.sharedFolderUpdateUser[j] = $root.Folder.SharedFolderUpdateUser.toObject(message.sharedFolderUpdateUser[j], options, q + 1); + object.sharedFolderUpdateUser[j] = $root.Folder.SharedFolderUpdateUser.toObject(message.sharedFolderUpdateUser[j], options); } if (message.sharedFolderUpdateTeam && message.sharedFolderUpdateTeam.length) { object.sharedFolderUpdateTeam = []; for (let j = 0; j < message.sharedFolderUpdateTeam.length; ++j) - object.sharedFolderUpdateTeam[j] = $root.Folder.SharedFolderUpdateTeam.toObject(message.sharedFolderUpdateTeam[j], options, q + 1); + object.sharedFolderUpdateTeam[j] = $root.Folder.SharedFolderUpdateTeam.toObject(message.sharedFolderUpdateTeam[j], options); } if (message.sharedFolderRemoveRecord && message.sharedFolderRemoveRecord.length) { object.sharedFolderRemoveRecord = []; @@ -180916,7 +168622,7 @@ export const Folder = $root.Folder = (() => { this.sharedFoldersUpdateV3 = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -180949,16 +168655,12 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUpdateV3RequestV2.encode = function encode(message, writer, q) { + SharedFolderUpdateV3RequestV2.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFoldersUpdateV3 != null && message.sharedFoldersUpdateV3.length) for (let i = 0; i < message.sharedFoldersUpdateV3.length; ++i) - $root.Folder.SharedFolderUpdateV3Request.encode(message.sharedFoldersUpdateV3[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateV3Request.encode(message.sharedFoldersUpdateV3[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -180986,27 +168688,21 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUpdateV3RequestV2.decode = function decode(reader, length, error, long) { + SharedFolderUpdateV3RequestV2.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateV3RequestV2(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.sharedFoldersUpdateV3 && message.sharedFoldersUpdateV3.length)) message.sharedFoldersUpdateV3 = []; - message.sharedFoldersUpdateV3.push($root.Folder.SharedFolderUpdateV3Request.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFoldersUpdateV3.push($root.Folder.SharedFolderUpdateV3Request.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -181037,18 +168733,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUpdateV3RequestV2.verify = function verify(message, long) { + SharedFolderUpdateV3RequestV2.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFoldersUpdateV3 != null && message.hasOwnProperty("sharedFoldersUpdateV3")) { if (!Array.isArray(message.sharedFoldersUpdateV3)) return "sharedFoldersUpdateV3: array expected"; for (let i = 0; i < message.sharedFoldersUpdateV3.length; ++i) { - let error = $root.Folder.SharedFolderUpdateV3Request.verify(message.sharedFoldersUpdateV3[i], long + 1); + let error = $root.Folder.SharedFolderUpdateV3Request.verify(message.sharedFoldersUpdateV3[i]); if (error) return "sharedFoldersUpdateV3." + error; } @@ -181064,13 +168756,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderUpdateV3RequestV2} SharedFolderUpdateV3RequestV2 */ - SharedFolderUpdateV3RequestV2.fromObject = function fromObject(object, long) { + SharedFolderUpdateV3RequestV2.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderUpdateV3RequestV2) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderUpdateV3RequestV2(); if (object.sharedFoldersUpdateV3) { if (!Array.isArray(object.sharedFoldersUpdateV3)) @@ -181079,7 +168767,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFoldersUpdateV3.length; ++i) { if (typeof object.sharedFoldersUpdateV3[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3RequestV2.sharedFoldersUpdateV3: object expected"); - message.sharedFoldersUpdateV3[i] = $root.Folder.SharedFolderUpdateV3Request.fromObject(object.sharedFoldersUpdateV3[i], long + 1); + message.sharedFoldersUpdateV3[i] = $root.Folder.SharedFolderUpdateV3Request.fromObject(object.sharedFoldersUpdateV3[i]); } } return message; @@ -181094,20 +168782,16 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUpdateV3RequestV2.toObject = function toObject(message, options, q) { + SharedFolderUpdateV3RequestV2.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.sharedFoldersUpdateV3 = []; if (message.sharedFoldersUpdateV3 && message.sharedFoldersUpdateV3.length) { object.sharedFoldersUpdateV3 = []; for (let j = 0; j < message.sharedFoldersUpdateV3.length; ++j) - object.sharedFoldersUpdateV3[j] = $root.Folder.SharedFolderUpdateV3Request.toObject(message.sharedFoldersUpdateV3[j], options, q + 1); + object.sharedFoldersUpdateV3[j] = $root.Folder.SharedFolderUpdateV3Request.toObject(message.sharedFoldersUpdateV3[j], options); } return object; }; @@ -181162,7 +168846,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateRecordStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -181203,13 +168887,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUpdateRecordStatus.encode = function encode(message, writer, q) { + SharedFolderUpdateRecordStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -181241,18 +168921,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUpdateRecordStatus.decode = function decode(reader, length, error, long) { + SharedFolderUpdateRecordStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateRecordStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -181263,7 +168937,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -181294,13 +168968,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUpdateRecordStatus.verify = function verify(message, long) { + SharedFolderUpdateRecordStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -181318,13 +168988,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderUpdateRecordStatus} SharedFolderUpdateRecordStatus */ - SharedFolderUpdateRecordStatus.fromObject = function fromObject(object, long) { + SharedFolderUpdateRecordStatus.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderUpdateRecordStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderUpdateRecordStatus(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -181345,13 +169011,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUpdateRecordStatus.toObject = function toObject(message, options, q) { + SharedFolderUpdateRecordStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -181420,7 +169082,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateUserStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -181461,13 +169123,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUpdateUserStatus.encode = function encode(message, writer, q) { + SharedFolderUpdateUserStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -181499,18 +169157,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUpdateUserStatus.decode = function decode(reader, length, error, long) { + SharedFolderUpdateUserStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateUserStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -181521,7 +169173,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -181552,13 +169204,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUpdateUserStatus.verify = function verify(message, long) { + SharedFolderUpdateUserStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -181576,13 +169224,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderUpdateUserStatus} SharedFolderUpdateUserStatus */ - SharedFolderUpdateUserStatus.fromObject = function fromObject(object, long) { + SharedFolderUpdateUserStatus.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderUpdateUserStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderUpdateUserStatus(); if (object.username != null) message.username = String(object.username); @@ -181600,13 +169244,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUpdateUserStatus.toObject = function toObject(message, options, q) { + SharedFolderUpdateUserStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -181669,7 +169309,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateTeamStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -181710,13 +169350,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUpdateTeamStatus.encode = function encode(message, writer, q) { + SharedFolderUpdateTeamStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -181748,18 +169384,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUpdateTeamStatus.decode = function decode(reader, length, error, long) { + SharedFolderUpdateTeamStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateTeamStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -181770,7 +169400,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -181801,13 +169431,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUpdateTeamStatus.verify = function verify(message, long) { + SharedFolderUpdateTeamStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -181825,13 +169451,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderUpdateTeamStatus} SharedFolderUpdateTeamStatus */ - SharedFolderUpdateTeamStatus.fromObject = function fromObject(object, long) { + SharedFolderUpdateTeamStatus.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderUpdateTeamStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderUpdateTeamStatus(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -181852,13 +169474,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUpdateTeamStatus.toObject = function toObject(message, options, q) { + SharedFolderUpdateTeamStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -181946,7 +169564,7 @@ export const Folder = $root.Folder = (() => { this.sharedFolderRemoveTeamStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -182067,42 +169685,38 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUpdateV3Response.encode = function encode(message, writer, q) { + SharedFolderUpdateV3Response.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); if (message.sharedFolderAddRecordStatus != null && message.sharedFolderAddRecordStatus.length) for (let i = 0; i < message.sharedFolderAddRecordStatus.length; ++i) - $root.Folder.SharedFolderUpdateRecordStatus.encode(message.sharedFolderAddRecordStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateRecordStatus.encode(message.sharedFolderAddRecordStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.sharedFolderAddUserStatus != null && message.sharedFolderAddUserStatus.length) for (let i = 0; i < message.sharedFolderAddUserStatus.length; ++i) - $root.Folder.SharedFolderUpdateUserStatus.encode(message.sharedFolderAddUserStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateUserStatus.encode(message.sharedFolderAddUserStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.sharedFolderAddTeamStatus != null && message.sharedFolderAddTeamStatus.length) for (let i = 0; i < message.sharedFolderAddTeamStatus.length; ++i) - $root.Folder.SharedFolderUpdateTeamStatus.encode(message.sharedFolderAddTeamStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateTeamStatus.encode(message.sharedFolderAddTeamStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.sharedFolderUpdateRecordStatus != null && message.sharedFolderUpdateRecordStatus.length) for (let i = 0; i < message.sharedFolderUpdateRecordStatus.length; ++i) - $root.Folder.SharedFolderUpdateRecordStatus.encode(message.sharedFolderUpdateRecordStatus[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateRecordStatus.encode(message.sharedFolderUpdateRecordStatus[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.sharedFolderUpdateUserStatus != null && message.sharedFolderUpdateUserStatus.length) for (let i = 0; i < message.sharedFolderUpdateUserStatus.length; ++i) - $root.Folder.SharedFolderUpdateUserStatus.encode(message.sharedFolderUpdateUserStatus[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateUserStatus.encode(message.sharedFolderUpdateUserStatus[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.sharedFolderUpdateTeamStatus != null && message.sharedFolderUpdateTeamStatus.length) for (let i = 0; i < message.sharedFolderUpdateTeamStatus.length; ++i) - $root.Folder.SharedFolderUpdateTeamStatus.encode(message.sharedFolderUpdateTeamStatus[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateTeamStatus.encode(message.sharedFolderUpdateTeamStatus[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.sharedFolderRemoveRecordStatus != null && message.sharedFolderRemoveRecordStatus.length) for (let i = 0; i < message.sharedFolderRemoveRecordStatus.length; ++i) - $root.Folder.SharedFolderUpdateRecordStatus.encode(message.sharedFolderRemoveRecordStatus[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateRecordStatus.encode(message.sharedFolderRemoveRecordStatus[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.sharedFolderRemoveUserStatus != null && message.sharedFolderRemoveUserStatus.length) for (let i = 0; i < message.sharedFolderRemoveUserStatus.length; ++i) - $root.Folder.SharedFolderUpdateUserStatus.encode(message.sharedFolderRemoveUserStatus[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateUserStatus.encode(message.sharedFolderRemoveUserStatus[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.sharedFolderRemoveTeamStatus != null && message.sharedFolderRemoveTeamStatus.length) for (let i = 0; i < message.sharedFolderRemoveTeamStatus.length; ++i) - $root.Folder.SharedFolderUpdateTeamStatus.encode(message.sharedFolderRemoveTeamStatus[i], writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateTeamStatus.encode(message.sharedFolderRemoveTeamStatus[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.sharedFolderUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -182134,18 +169748,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUpdateV3Response.decode = function decode(reader, length, error, long) { + SharedFolderUpdateV3Response.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateV3Response(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.revision = reader.int64(); @@ -182154,55 +169762,55 @@ export const Folder = $root.Folder = (() => { case 2: { if (!(message.sharedFolderAddRecordStatus && message.sharedFolderAddRecordStatus.length)) message.sharedFolderAddRecordStatus = []; - message.sharedFolderAddRecordStatus.push($root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderAddRecordStatus.push($root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32())); break; } case 3: { if (!(message.sharedFolderAddUserStatus && message.sharedFolderAddUserStatus.length)) message.sharedFolderAddUserStatus = []; - message.sharedFolderAddUserStatus.push($root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderAddUserStatus.push($root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32())); break; } case 4: { if (!(message.sharedFolderAddTeamStatus && message.sharedFolderAddTeamStatus.length)) message.sharedFolderAddTeamStatus = []; - message.sharedFolderAddTeamStatus.push($root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderAddTeamStatus.push($root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32())); break; } case 5: { if (!(message.sharedFolderUpdateRecordStatus && message.sharedFolderUpdateRecordStatus.length)) message.sharedFolderUpdateRecordStatus = []; - message.sharedFolderUpdateRecordStatus.push($root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderUpdateRecordStatus.push($root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32())); break; } case 6: { if (!(message.sharedFolderUpdateUserStatus && message.sharedFolderUpdateUserStatus.length)) message.sharedFolderUpdateUserStatus = []; - message.sharedFolderUpdateUserStatus.push($root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderUpdateUserStatus.push($root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32())); break; } case 7: { if (!(message.sharedFolderUpdateTeamStatus && message.sharedFolderUpdateTeamStatus.length)) message.sharedFolderUpdateTeamStatus = []; - message.sharedFolderUpdateTeamStatus.push($root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderUpdateTeamStatus.push($root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32())); break; } case 8: { if (!(message.sharedFolderRemoveRecordStatus && message.sharedFolderRemoveRecordStatus.length)) message.sharedFolderRemoveRecordStatus = []; - message.sharedFolderRemoveRecordStatus.push($root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderRemoveRecordStatus.push($root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32())); break; } case 9: { if (!(message.sharedFolderRemoveUserStatus && message.sharedFolderRemoveUserStatus.length)) message.sharedFolderRemoveUserStatus = []; - message.sharedFolderRemoveUserStatus.push($root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderRemoveUserStatus.push($root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32())); break; } case 10: { if (!(message.sharedFolderRemoveTeamStatus && message.sharedFolderRemoveTeamStatus.length)) message.sharedFolderRemoveTeamStatus = []; - message.sharedFolderRemoveTeamStatus.push($root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderRemoveTeamStatus.push($root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32())); break; } case 12: { @@ -182214,7 +169822,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -182245,13 +169853,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUpdateV3Response.verify = function verify(message, long) { + SharedFolderUpdateV3Response.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.revision != null && message.hasOwnProperty("revision")) if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) return "revision: integer|Long expected"; @@ -182259,7 +169863,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderAddRecordStatus)) return "sharedFolderAddRecordStatus: array expected"; for (let i = 0; i < message.sharedFolderAddRecordStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateRecordStatus.verify(message.sharedFolderAddRecordStatus[i], long + 1); + let error = $root.Folder.SharedFolderUpdateRecordStatus.verify(message.sharedFolderAddRecordStatus[i]); if (error) return "sharedFolderAddRecordStatus." + error; } @@ -182268,7 +169872,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderAddUserStatus)) return "sharedFolderAddUserStatus: array expected"; for (let i = 0; i < message.sharedFolderAddUserStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateUserStatus.verify(message.sharedFolderAddUserStatus[i], long + 1); + let error = $root.Folder.SharedFolderUpdateUserStatus.verify(message.sharedFolderAddUserStatus[i]); if (error) return "sharedFolderAddUserStatus." + error; } @@ -182277,7 +169881,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderAddTeamStatus)) return "sharedFolderAddTeamStatus: array expected"; for (let i = 0; i < message.sharedFolderAddTeamStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateTeamStatus.verify(message.sharedFolderAddTeamStatus[i], long + 1); + let error = $root.Folder.SharedFolderUpdateTeamStatus.verify(message.sharedFolderAddTeamStatus[i]); if (error) return "sharedFolderAddTeamStatus." + error; } @@ -182286,7 +169890,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderUpdateRecordStatus)) return "sharedFolderUpdateRecordStatus: array expected"; for (let i = 0; i < message.sharedFolderUpdateRecordStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateRecordStatus.verify(message.sharedFolderUpdateRecordStatus[i], long + 1); + let error = $root.Folder.SharedFolderUpdateRecordStatus.verify(message.sharedFolderUpdateRecordStatus[i]); if (error) return "sharedFolderUpdateRecordStatus." + error; } @@ -182295,7 +169899,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderUpdateUserStatus)) return "sharedFolderUpdateUserStatus: array expected"; for (let i = 0; i < message.sharedFolderUpdateUserStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateUserStatus.verify(message.sharedFolderUpdateUserStatus[i], long + 1); + let error = $root.Folder.SharedFolderUpdateUserStatus.verify(message.sharedFolderUpdateUserStatus[i]); if (error) return "sharedFolderUpdateUserStatus." + error; } @@ -182304,7 +169908,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderUpdateTeamStatus)) return "sharedFolderUpdateTeamStatus: array expected"; for (let i = 0; i < message.sharedFolderUpdateTeamStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateTeamStatus.verify(message.sharedFolderUpdateTeamStatus[i], long + 1); + let error = $root.Folder.SharedFolderUpdateTeamStatus.verify(message.sharedFolderUpdateTeamStatus[i]); if (error) return "sharedFolderUpdateTeamStatus." + error; } @@ -182313,7 +169917,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderRemoveRecordStatus)) return "sharedFolderRemoveRecordStatus: array expected"; for (let i = 0; i < message.sharedFolderRemoveRecordStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateRecordStatus.verify(message.sharedFolderRemoveRecordStatus[i], long + 1); + let error = $root.Folder.SharedFolderUpdateRecordStatus.verify(message.sharedFolderRemoveRecordStatus[i]); if (error) return "sharedFolderRemoveRecordStatus." + error; } @@ -182322,7 +169926,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderRemoveUserStatus)) return "sharedFolderRemoveUserStatus: array expected"; for (let i = 0; i < message.sharedFolderRemoveUserStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateUserStatus.verify(message.sharedFolderRemoveUserStatus[i], long + 1); + let error = $root.Folder.SharedFolderUpdateUserStatus.verify(message.sharedFolderRemoveUserStatus[i]); if (error) return "sharedFolderRemoveUserStatus." + error; } @@ -182331,7 +169935,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderRemoveTeamStatus)) return "sharedFolderRemoveTeamStatus: array expected"; for (let i = 0; i < message.sharedFolderRemoveTeamStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateTeamStatus.verify(message.sharedFolderRemoveTeamStatus[i], long + 1); + let error = $root.Folder.SharedFolderUpdateTeamStatus.verify(message.sharedFolderRemoveTeamStatus[i]); if (error) return "sharedFolderRemoveTeamStatus." + error; } @@ -182353,17 +169957,13 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderUpdateV3Response} SharedFolderUpdateV3Response */ - SharedFolderUpdateV3Response.fromObject = function fromObject(object, long) { + SharedFolderUpdateV3Response.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderUpdateV3Response) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderUpdateV3Response(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -182377,7 +169977,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderAddRecordStatus.length; ++i) { if (typeof object.sharedFolderAddRecordStatus[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddRecordStatus: object expected"); - message.sharedFolderAddRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderAddRecordStatus[i], long + 1); + message.sharedFolderAddRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderAddRecordStatus[i]); } } if (object.sharedFolderAddUserStatus) { @@ -182387,7 +169987,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderAddUserStatus.length; ++i) { if (typeof object.sharedFolderAddUserStatus[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddUserStatus: object expected"); - message.sharedFolderAddUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderAddUserStatus[i], long + 1); + message.sharedFolderAddUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderAddUserStatus[i]); } } if (object.sharedFolderAddTeamStatus) { @@ -182397,7 +169997,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderAddTeamStatus.length; ++i) { if (typeof object.sharedFolderAddTeamStatus[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddTeamStatus: object expected"); - message.sharedFolderAddTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderAddTeamStatus[i], long + 1); + message.sharedFolderAddTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderAddTeamStatus[i]); } } if (object.sharedFolderUpdateRecordStatus) { @@ -182407,7 +170007,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderUpdateRecordStatus.length; ++i) { if (typeof object.sharedFolderUpdateRecordStatus[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateRecordStatus: object expected"); - message.sharedFolderUpdateRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderUpdateRecordStatus[i], long + 1); + message.sharedFolderUpdateRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderUpdateRecordStatus[i]); } } if (object.sharedFolderUpdateUserStatus) { @@ -182417,7 +170017,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderUpdateUserStatus.length; ++i) { if (typeof object.sharedFolderUpdateUserStatus[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateUserStatus: object expected"); - message.sharedFolderUpdateUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderUpdateUserStatus[i], long + 1); + message.sharedFolderUpdateUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderUpdateUserStatus[i]); } } if (object.sharedFolderUpdateTeamStatus) { @@ -182427,7 +170027,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderUpdateTeamStatus.length; ++i) { if (typeof object.sharedFolderUpdateTeamStatus[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateTeamStatus: object expected"); - message.sharedFolderUpdateTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderUpdateTeamStatus[i], long + 1); + message.sharedFolderUpdateTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderUpdateTeamStatus[i]); } } if (object.sharedFolderRemoveRecordStatus) { @@ -182437,7 +170037,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderRemoveRecordStatus.length; ++i) { if (typeof object.sharedFolderRemoveRecordStatus[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveRecordStatus: object expected"); - message.sharedFolderRemoveRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderRemoveRecordStatus[i], long + 1); + message.sharedFolderRemoveRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderRemoveRecordStatus[i]); } } if (object.sharedFolderRemoveUserStatus) { @@ -182447,7 +170047,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderRemoveUserStatus.length; ++i) { if (typeof object.sharedFolderRemoveUserStatus[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveUserStatus: object expected"); - message.sharedFolderRemoveUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderRemoveUserStatus[i], long + 1); + message.sharedFolderRemoveUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderRemoveUserStatus[i]); } } if (object.sharedFolderRemoveTeamStatus) { @@ -182457,7 +170057,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderRemoveTeamStatus.length; ++i) { if (typeof object.sharedFolderRemoveTeamStatus[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveTeamStatus: object expected"); - message.sharedFolderRemoveTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderRemoveTeamStatus[i], long + 1); + message.sharedFolderRemoveTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderRemoveTeamStatus[i]); } } if (object.sharedFolderUid != null) @@ -182479,13 +170079,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUpdateV3Response.toObject = function toObject(message, options, q) { + SharedFolderUpdateV3Response.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.sharedFolderAddRecordStatus = []; @@ -182501,9 +170097,9 @@ export const Folder = $root.Folder = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) object.sharedFolderUid = ""; else { @@ -182514,56 +170110,54 @@ export const Folder = $root.Folder = (() => { object.status = ""; } if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; if (message.sharedFolderAddRecordStatus && message.sharedFolderAddRecordStatus.length) { object.sharedFolderAddRecordStatus = []; for (let j = 0; j < message.sharedFolderAddRecordStatus.length; ++j) - object.sharedFolderAddRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject(message.sharedFolderAddRecordStatus[j], options, q + 1); + object.sharedFolderAddRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject(message.sharedFolderAddRecordStatus[j], options); } if (message.sharedFolderAddUserStatus && message.sharedFolderAddUserStatus.length) { object.sharedFolderAddUserStatus = []; for (let j = 0; j < message.sharedFolderAddUserStatus.length; ++j) - object.sharedFolderAddUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject(message.sharedFolderAddUserStatus[j], options, q + 1); + object.sharedFolderAddUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject(message.sharedFolderAddUserStatus[j], options); } if (message.sharedFolderAddTeamStatus && message.sharedFolderAddTeamStatus.length) { object.sharedFolderAddTeamStatus = []; for (let j = 0; j < message.sharedFolderAddTeamStatus.length; ++j) - object.sharedFolderAddTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject(message.sharedFolderAddTeamStatus[j], options, q + 1); + object.sharedFolderAddTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject(message.sharedFolderAddTeamStatus[j], options); } if (message.sharedFolderUpdateRecordStatus && message.sharedFolderUpdateRecordStatus.length) { object.sharedFolderUpdateRecordStatus = []; for (let j = 0; j < message.sharedFolderUpdateRecordStatus.length; ++j) - object.sharedFolderUpdateRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject(message.sharedFolderUpdateRecordStatus[j], options, q + 1); + object.sharedFolderUpdateRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject(message.sharedFolderUpdateRecordStatus[j], options); } if (message.sharedFolderUpdateUserStatus && message.sharedFolderUpdateUserStatus.length) { object.sharedFolderUpdateUserStatus = []; for (let j = 0; j < message.sharedFolderUpdateUserStatus.length; ++j) - object.sharedFolderUpdateUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject(message.sharedFolderUpdateUserStatus[j], options, q + 1); + object.sharedFolderUpdateUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject(message.sharedFolderUpdateUserStatus[j], options); } if (message.sharedFolderUpdateTeamStatus && message.sharedFolderUpdateTeamStatus.length) { object.sharedFolderUpdateTeamStatus = []; for (let j = 0; j < message.sharedFolderUpdateTeamStatus.length; ++j) - object.sharedFolderUpdateTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject(message.sharedFolderUpdateTeamStatus[j], options, q + 1); + object.sharedFolderUpdateTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject(message.sharedFolderUpdateTeamStatus[j], options); } if (message.sharedFolderRemoveRecordStatus && message.sharedFolderRemoveRecordStatus.length) { object.sharedFolderRemoveRecordStatus = []; for (let j = 0; j < message.sharedFolderRemoveRecordStatus.length; ++j) - object.sharedFolderRemoveRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject(message.sharedFolderRemoveRecordStatus[j], options, q + 1); + object.sharedFolderRemoveRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject(message.sharedFolderRemoveRecordStatus[j], options); } if (message.sharedFolderRemoveUserStatus && message.sharedFolderRemoveUserStatus.length) { object.sharedFolderRemoveUserStatus = []; for (let j = 0; j < message.sharedFolderRemoveUserStatus.length; ++j) - object.sharedFolderRemoveUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject(message.sharedFolderRemoveUserStatus[j], options, q + 1); + object.sharedFolderRemoveUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject(message.sharedFolderRemoveUserStatus[j], options); } if (message.sharedFolderRemoveTeamStatus && message.sharedFolderRemoveTeamStatus.length) { object.sharedFolderRemoveTeamStatus = []; for (let j = 0; j < message.sharedFolderRemoveTeamStatus.length; ++j) - object.sharedFolderRemoveTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject(message.sharedFolderRemoveTeamStatus[j], options, q + 1); + object.sharedFolderRemoveTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject(message.sharedFolderRemoveTeamStatus[j], options); } if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; @@ -182622,7 +170216,7 @@ export const Folder = $root.Folder = (() => { this.sharedFoldersUpdateV3Response = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -182655,16 +170249,12 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUpdateV3ResponseV2.encode = function encode(message, writer, q) { + SharedFolderUpdateV3ResponseV2.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFoldersUpdateV3Response != null && message.sharedFoldersUpdateV3Response.length) for (let i = 0; i < message.sharedFoldersUpdateV3Response.length; ++i) - $root.Folder.SharedFolderUpdateV3Response.encode(message.sharedFoldersUpdateV3Response[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.SharedFolderUpdateV3Response.encode(message.sharedFoldersUpdateV3Response[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -182692,27 +170282,21 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUpdateV3ResponseV2.decode = function decode(reader, length, error, long) { + SharedFolderUpdateV3ResponseV2.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateV3ResponseV2(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.sharedFoldersUpdateV3Response && message.sharedFoldersUpdateV3Response.length)) message.sharedFoldersUpdateV3Response = []; - message.sharedFoldersUpdateV3Response.push($root.Folder.SharedFolderUpdateV3Response.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFoldersUpdateV3Response.push($root.Folder.SharedFolderUpdateV3Response.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -182743,18 +170327,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUpdateV3ResponseV2.verify = function verify(message, long) { + SharedFolderUpdateV3ResponseV2.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFoldersUpdateV3Response != null && message.hasOwnProperty("sharedFoldersUpdateV3Response")) { if (!Array.isArray(message.sharedFoldersUpdateV3Response)) return "sharedFoldersUpdateV3Response: array expected"; for (let i = 0; i < message.sharedFoldersUpdateV3Response.length; ++i) { - let error = $root.Folder.SharedFolderUpdateV3Response.verify(message.sharedFoldersUpdateV3Response[i], long + 1); + let error = $root.Folder.SharedFolderUpdateV3Response.verify(message.sharedFoldersUpdateV3Response[i]); if (error) return "sharedFoldersUpdateV3Response." + error; } @@ -182770,13 +170350,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.SharedFolderUpdateV3ResponseV2} SharedFolderUpdateV3ResponseV2 */ - SharedFolderUpdateV3ResponseV2.fromObject = function fromObject(object, long) { + SharedFolderUpdateV3ResponseV2.fromObject = function fromObject(object) { if (object instanceof $root.Folder.SharedFolderUpdateV3ResponseV2) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.SharedFolderUpdateV3ResponseV2(); if (object.sharedFoldersUpdateV3Response) { if (!Array.isArray(object.sharedFoldersUpdateV3Response)) @@ -182785,7 +170361,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFoldersUpdateV3Response.length; ++i) { if (typeof object.sharedFoldersUpdateV3Response[i] !== "object") throw TypeError(".Folder.SharedFolderUpdateV3ResponseV2.sharedFoldersUpdateV3Response: object expected"); - message.sharedFoldersUpdateV3Response[i] = $root.Folder.SharedFolderUpdateV3Response.fromObject(object.sharedFoldersUpdateV3Response[i], long + 1); + message.sharedFoldersUpdateV3Response[i] = $root.Folder.SharedFolderUpdateV3Response.fromObject(object.sharedFoldersUpdateV3Response[i]); } } return message; @@ -182800,20 +170376,16 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUpdateV3ResponseV2.toObject = function toObject(message, options, q) { + SharedFolderUpdateV3ResponseV2.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.sharedFoldersUpdateV3Response = []; if (message.sharedFoldersUpdateV3Response && message.sharedFoldersUpdateV3Response.length) { object.sharedFoldersUpdateV3Response = []; for (let j = 0; j < message.sharedFoldersUpdateV3Response.length; ++j) - object.sharedFoldersUpdateV3Response[j] = $root.Folder.SharedFolderUpdateV3Response.toObject(message.sharedFoldersUpdateV3Response[j], options, q + 1); + object.sharedFoldersUpdateV3Response[j] = $root.Folder.SharedFolderUpdateV3Response.toObject(message.sharedFoldersUpdateV3Response[j], options); } return object; }; @@ -182874,7 +170446,7 @@ export const Folder = $root.Folder = (() => { this.usernames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -182931,25 +170503,21 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDeletedSharedFoldersAndRecordsResponse.encode = function encode(message, writer, q) { + GetDeletedSharedFoldersAndRecordsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolders != null && message.sharedFolders.length) for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Folder.DeletedSharedFolder.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.DeletedSharedFolder.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.sharedFolderRecords != null && message.sharedFolderRecords.length) for (let i = 0; i < message.sharedFolderRecords.length; ++i) - $root.Folder.DeletedSharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Folder.DeletedSharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.deletedRecordData != null && message.deletedRecordData.length) for (let i = 0; i < message.deletedRecordData.length; ++i) - $root.Folder.DeletedRecordData.encode(message.deletedRecordData[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Folder.DeletedRecordData.encode(message.deletedRecordData[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.usernames != null && message.usernames.length) for (let i = 0; i < message.usernames.length; ++i) - $root.Folder.Username.encode(message.usernames[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Folder.Username.encode(message.usernames[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -182977,45 +170545,39 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDeletedSharedFoldersAndRecordsResponse.decode = function decode(reader, length, error, long) { + GetDeletedSharedFoldersAndRecordsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.GetDeletedSharedFoldersAndRecordsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.sharedFolders && message.sharedFolders.length)) message.sharedFolders = []; - message.sharedFolders.push($root.Folder.DeletedSharedFolder.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolders.push($root.Folder.DeletedSharedFolder.decode(reader, reader.uint32())); break; } case 2: { if (!(message.sharedFolderRecords && message.sharedFolderRecords.length)) message.sharedFolderRecords = []; - message.sharedFolderRecords.push($root.Folder.DeletedSharedFolderRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderRecords.push($root.Folder.DeletedSharedFolderRecord.decode(reader, reader.uint32())); break; } case 3: { if (!(message.deletedRecordData && message.deletedRecordData.length)) message.deletedRecordData = []; - message.deletedRecordData.push($root.Folder.DeletedRecordData.decode(reader, reader.uint32(), undefined, long + 1)); + message.deletedRecordData.push($root.Folder.DeletedRecordData.decode(reader, reader.uint32())); break; } case 4: { if (!(message.usernames && message.usernames.length)) message.usernames = []; - message.usernames.push($root.Folder.Username.decode(reader, reader.uint32(), undefined, long + 1)); + message.usernames.push($root.Folder.Username.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -183046,18 +170608,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDeletedSharedFoldersAndRecordsResponse.verify = function verify(message, long) { + GetDeletedSharedFoldersAndRecordsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolders != null && message.hasOwnProperty("sharedFolders")) { if (!Array.isArray(message.sharedFolders)) return "sharedFolders: array expected"; for (let i = 0; i < message.sharedFolders.length; ++i) { - let error = $root.Folder.DeletedSharedFolder.verify(message.sharedFolders[i], long + 1); + let error = $root.Folder.DeletedSharedFolder.verify(message.sharedFolders[i]); if (error) return "sharedFolders." + error; } @@ -183066,7 +170624,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.sharedFolderRecords)) return "sharedFolderRecords: array expected"; for (let i = 0; i < message.sharedFolderRecords.length; ++i) { - let error = $root.Folder.DeletedSharedFolderRecord.verify(message.sharedFolderRecords[i], long + 1); + let error = $root.Folder.DeletedSharedFolderRecord.verify(message.sharedFolderRecords[i]); if (error) return "sharedFolderRecords." + error; } @@ -183075,7 +170633,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.deletedRecordData)) return "deletedRecordData: array expected"; for (let i = 0; i < message.deletedRecordData.length; ++i) { - let error = $root.Folder.DeletedRecordData.verify(message.deletedRecordData[i], long + 1); + let error = $root.Folder.DeletedRecordData.verify(message.deletedRecordData[i]); if (error) return "deletedRecordData." + error; } @@ -183084,7 +170642,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.usernames)) return "usernames: array expected"; for (let i = 0; i < message.usernames.length; ++i) { - let error = $root.Folder.Username.verify(message.usernames[i], long + 1); + let error = $root.Folder.Username.verify(message.usernames[i]); if (error) return "usernames." + error; } @@ -183100,13 +170658,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.GetDeletedSharedFoldersAndRecordsResponse} GetDeletedSharedFoldersAndRecordsResponse */ - GetDeletedSharedFoldersAndRecordsResponse.fromObject = function fromObject(object, long) { + GetDeletedSharedFoldersAndRecordsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Folder.GetDeletedSharedFoldersAndRecordsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.GetDeletedSharedFoldersAndRecordsResponse(); if (object.sharedFolders) { if (!Array.isArray(object.sharedFolders)) @@ -183115,7 +170669,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolders.length; ++i) { if (typeof object.sharedFolders[i] !== "object") throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolders: object expected"); - message.sharedFolders[i] = $root.Folder.DeletedSharedFolder.fromObject(object.sharedFolders[i], long + 1); + message.sharedFolders[i] = $root.Folder.DeletedSharedFolder.fromObject(object.sharedFolders[i]); } } if (object.sharedFolderRecords) { @@ -183125,7 +170679,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.sharedFolderRecords.length; ++i) { if (typeof object.sharedFolderRecords[i] !== "object") throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolderRecords: object expected"); - message.sharedFolderRecords[i] = $root.Folder.DeletedSharedFolderRecord.fromObject(object.sharedFolderRecords[i], long + 1); + message.sharedFolderRecords[i] = $root.Folder.DeletedSharedFolderRecord.fromObject(object.sharedFolderRecords[i]); } } if (object.deletedRecordData) { @@ -183135,7 +170689,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.deletedRecordData.length; ++i) { if (typeof object.deletedRecordData[i] !== "object") throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.deletedRecordData: object expected"); - message.deletedRecordData[i] = $root.Folder.DeletedRecordData.fromObject(object.deletedRecordData[i], long + 1); + message.deletedRecordData[i] = $root.Folder.DeletedRecordData.fromObject(object.deletedRecordData[i]); } } if (object.usernames) { @@ -183145,7 +170699,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.usernames.length; ++i) { if (typeof object.usernames[i] !== "object") throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.usernames: object expected"); - message.usernames[i] = $root.Folder.Username.fromObject(object.usernames[i], long + 1); + message.usernames[i] = $root.Folder.Username.fromObject(object.usernames[i]); } } return message; @@ -183160,13 +170714,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDeletedSharedFoldersAndRecordsResponse.toObject = function toObject(message, options, q) { + GetDeletedSharedFoldersAndRecordsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.sharedFolders = []; @@ -183177,22 +170727,22 @@ export const Folder = $root.Folder = (() => { if (message.sharedFolders && message.sharedFolders.length) { object.sharedFolders = []; for (let j = 0; j < message.sharedFolders.length; ++j) - object.sharedFolders[j] = $root.Folder.DeletedSharedFolder.toObject(message.sharedFolders[j], options, q + 1); + object.sharedFolders[j] = $root.Folder.DeletedSharedFolder.toObject(message.sharedFolders[j], options); } if (message.sharedFolderRecords && message.sharedFolderRecords.length) { object.sharedFolderRecords = []; for (let j = 0; j < message.sharedFolderRecords.length; ++j) - object.sharedFolderRecords[j] = $root.Folder.DeletedSharedFolderRecord.toObject(message.sharedFolderRecords[j], options, q + 1); + object.sharedFolderRecords[j] = $root.Folder.DeletedSharedFolderRecord.toObject(message.sharedFolderRecords[j], options); } if (message.deletedRecordData && message.deletedRecordData.length) { object.deletedRecordData = []; for (let j = 0; j < message.deletedRecordData.length; ++j) - object.deletedRecordData[j] = $root.Folder.DeletedRecordData.toObject(message.deletedRecordData[j], options, q + 1); + object.deletedRecordData[j] = $root.Folder.DeletedRecordData.toObject(message.deletedRecordData[j], options); } if (message.usernames && message.usernames.length) { object.usernames = []; for (let j = 0; j < message.usernames.length; ++j) - object.usernames[j] = $root.Folder.Username.toObject(message.usernames[j], options, q + 1); + object.usernames[j] = $root.Folder.Username.toObject(message.usernames[j], options); } return object; }; @@ -183253,7 +170803,7 @@ export const Folder = $root.Folder = (() => { function DeletedSharedFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -183342,13 +170892,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletedSharedFolder.encode = function encode(message, writer, q) { + DeletedSharedFolder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) @@ -183392,18 +170938,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletedSharedFolder.decode = function decode(reader, length, error, long) { + DeletedSharedFolder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.DeletedSharedFolder(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -183438,7 +170978,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -183469,13 +171009,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletedSharedFolder.verify = function verify(message, long) { + DeletedSharedFolder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -183521,13 +171057,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.DeletedSharedFolder} DeletedSharedFolder */ - DeletedSharedFolder.fromObject = function fromObject(object, long) { + DeletedSharedFolder.fromObject = function fromObject(object) { if (object instanceof $root.Folder.DeletedSharedFolder) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.DeletedSharedFolder(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -183592,7 +171124,7 @@ export const Folder = $root.Folder = (() => { message.data = object.data; if (object.dateDeleted != null) if ($util.Long) - message.dateDeleted = $util.Long.fromValue(object.dateDeleted, false); + (message.dateDeleted = $util.Long.fromValue(object.dateDeleted)).unsigned = false; else if (typeof object.dateDeleted === "string") message.dateDeleted = parseInt(object.dateDeleted, 10); else if (typeof object.dateDeleted === "number") @@ -183601,7 +171133,7 @@ export const Folder = $root.Folder = (() => { message.dateDeleted = new $util.LongBits(object.dateDeleted.low >>> 0, object.dateDeleted.high >>> 0).toNumber(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -183620,13 +171152,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletedSharedFolder.toObject = function toObject(message, options, q) { + DeletedSharedFolder.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -183667,14 +171195,14 @@ export const Folder = $root.Folder = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateDeleted = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dateDeleted = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dateDeleted = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dateDeleted = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; @@ -183689,16 +171217,12 @@ export const Folder = $root.Folder = (() => { if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.dateDeleted != null && message.hasOwnProperty("dateDeleted")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dateDeleted = typeof message.dateDeleted === "number" ? BigInt(message.dateDeleted) : $util.Long.fromBits(message.dateDeleted.low >>> 0, message.dateDeleted.high >>> 0, false).toBigInt(); - else if (typeof message.dateDeleted === "number") + if (typeof message.dateDeleted === "number") object.dateDeleted = options.longs === String ? String(message.dateDeleted) : message.dateDeleted; else object.dateDeleted = options.longs === String ? $util.Long.prototype.toString.call(message.dateDeleted) : options.longs === Number ? new $util.LongBits(message.dateDeleted.low >>> 0, message.dateDeleted.high >>> 0).toNumber() : message.dateDeleted; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -183758,7 +171282,7 @@ export const Folder = $root.Folder = (() => { function DeletedSharedFolderRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -183823,13 +171347,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletedSharedFolderRecord.encode = function encode(message, writer, q) { + DeletedSharedFolderRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -183867,18 +171387,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletedSharedFolderRecord.decode = function decode(reader, length, error, long) { + DeletedSharedFolderRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.DeletedSharedFolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -183901,7 +171415,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -183932,13 +171446,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletedSharedFolderRecord.verify = function verify(message, long) { + DeletedSharedFolderRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -183965,13 +171475,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.DeletedSharedFolderRecord} DeletedSharedFolderRecord */ - DeletedSharedFolderRecord.fromObject = function fromObject(object, long) { + DeletedSharedFolderRecord.fromObject = function fromObject(object) { if (object instanceof $root.Folder.DeletedSharedFolderRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.DeletedSharedFolderRecord(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -183990,7 +171496,7 @@ export const Folder = $root.Folder = (() => { message.sharedRecordKey = object.sharedRecordKey; if (object.dateDeleted != null) if ($util.Long) - message.dateDeleted = $util.Long.fromValue(object.dateDeleted, false); + (message.dateDeleted = $util.Long.fromValue(object.dateDeleted)).unsigned = false; else if (typeof object.dateDeleted === "string") message.dateDeleted = parseInt(object.dateDeleted, 10); else if (typeof object.dateDeleted === "number") @@ -183999,7 +171505,7 @@ export const Folder = $root.Folder = (() => { message.dateDeleted = new $util.LongBits(object.dateDeleted.low >>> 0, object.dateDeleted.high >>> 0).toNumber(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -184018,13 +171524,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletedSharedFolderRecord.toObject = function toObject(message, options, q) { + DeletedSharedFolderRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -184050,14 +171552,14 @@ export const Folder = $root.Folder = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateDeleted = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dateDeleted = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dateDeleted = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dateDeleted = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.folderUid != null && message.hasOwnProperty("folderUid")) object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; @@ -184066,16 +171568,12 @@ export const Folder = $root.Folder = (() => { if (message.sharedRecordKey != null && message.hasOwnProperty("sharedRecordKey")) object.sharedRecordKey = options.bytes === String ? $util.base64.encode(message.sharedRecordKey, 0, message.sharedRecordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedRecordKey) : message.sharedRecordKey; if (message.dateDeleted != null && message.hasOwnProperty("dateDeleted")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dateDeleted = typeof message.dateDeleted === "number" ? BigInt(message.dateDeleted) : $util.Long.fromBits(message.dateDeleted.low >>> 0, message.dateDeleted.high >>> 0, false).toBigInt(); - else if (typeof message.dateDeleted === "number") + if (typeof message.dateDeleted === "number") object.dateDeleted = options.longs === String ? String(message.dateDeleted) : message.dateDeleted; else object.dateDeleted = options.longs === String ? $util.Long.prototype.toString.call(message.dateDeleted) : options.longs === Number ? new $util.LongBits(message.dateDeleted.low >>> 0, message.dateDeleted.high >>> 0).toNumber() : message.dateDeleted; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -184136,7 +171634,7 @@ export const Folder = $root.Folder = (() => { function DeletedRecordData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -184209,13 +171707,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletedRecordData.encode = function encode(message, writer, q) { + DeletedRecordData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.ownerUid != null && Object.hasOwnProperty.call(message, "ownerUid")) @@ -184255,18 +171749,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletedRecordData.decode = function decode(reader, length, error, long) { + DeletedRecordData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.DeletedRecordData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -184293,7 +171781,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -184324,13 +171812,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletedRecordData.verify = function verify(message, long) { + DeletedRecordData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -184360,13 +171844,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.DeletedRecordData} DeletedRecordData */ - DeletedRecordData.fromObject = function fromObject(object, long) { + DeletedRecordData.fromObject = function fromObject(object) { if (object instanceof $root.Folder.DeletedRecordData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.DeletedRecordData(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -184380,7 +171860,7 @@ export const Folder = $root.Folder = (() => { message.ownerUid = object.ownerUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -184389,7 +171869,7 @@ export const Folder = $root.Folder = (() => { message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); if (object.clientModifiedTime != null) if ($util.Long) - message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime, false); + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; else if (typeof object.clientModifiedTime === "string") message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); else if (typeof object.clientModifiedTime === "number") @@ -184415,13 +171895,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletedRecordData.toObject = function toObject(message, options, q) { + DeletedRecordData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -184440,14 +171916,14 @@ export const Folder = $root.Folder = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientModifiedTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientModifiedTime = options.longs === String ? "0" : 0; if (options.bytes === String) object.data = ""; else { @@ -184462,16 +171938,12 @@ export const Folder = $root.Folder = (() => { if (message.ownerUid != null && message.hasOwnProperty("ownerUid")) object.ownerUid = options.bytes === String ? $util.base64.encode(message.ownerUid, 0, message.ownerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerUid) : message.ownerUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientModifiedTime = typeof message.clientModifiedTime === "number" ? BigInt(message.clientModifiedTime) : $util.Long.fromBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientModifiedTime === "number") + if (typeof message.clientModifiedTime === "number") object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; @@ -184532,7 +172004,7 @@ export const Folder = $root.Folder = (() => { function Username(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -184573,13 +172045,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Username.encode = function encode(message, writer, q) { + Username.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -184611,18 +172079,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Username.decode = function decode(reader, length, error, long) { + Username.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.Username(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.accountUid = reader.bytes(); @@ -184633,7 +172095,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -184664,13 +172126,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Username.verify = function verify(message, long) { + Username.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.accountUid != null && message.hasOwnProperty("accountUid")) if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) return "accountUid: buffer expected"; @@ -184688,13 +172146,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.Username} Username */ - Username.fromObject = function fromObject(object, long) { + Username.fromObject = function fromObject(object) { if (object instanceof $root.Folder.Username) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.Username(); if (object.accountUid != null) if (typeof object.accountUid === "string") @@ -184715,13 +172169,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Username.toObject = function toObject(message, options, q) { + Username.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -184792,7 +172242,7 @@ export const Folder = $root.Folder = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -184833,19 +172283,15 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreDeletedSharedFoldersAndRecordsRequest.encode = function encode(message, writer, q) { + RestoreDeletedSharedFoldersAndRecordsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folders != null && message.folders.length) for (let i = 0; i < message.folders.length; ++i) - $root.Folder.RestoreSharedObject.encode(message.folders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.RestoreSharedObject.encode(message.folders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Folder.RestoreSharedObject.encode(message.records[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Folder.RestoreSharedObject.encode(message.records[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -184873,33 +172319,27 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreDeletedSharedFoldersAndRecordsRequest.decode = function decode(reader, length, error, long) { + RestoreDeletedSharedFoldersAndRecordsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RestoreDeletedSharedFoldersAndRecordsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.folders && message.folders.length)) message.folders = []; - message.folders.push($root.Folder.RestoreSharedObject.decode(reader, reader.uint32(), undefined, long + 1)); + message.folders.push($root.Folder.RestoreSharedObject.decode(reader, reader.uint32())); break; } case 2: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Folder.RestoreSharedObject.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Folder.RestoreSharedObject.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -184930,18 +172370,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RestoreDeletedSharedFoldersAndRecordsRequest.verify = function verify(message, long) { + RestoreDeletedSharedFoldersAndRecordsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folders != null && message.hasOwnProperty("folders")) { if (!Array.isArray(message.folders)) return "folders: array expected"; for (let i = 0; i < message.folders.length; ++i) { - let error = $root.Folder.RestoreSharedObject.verify(message.folders[i], long + 1); + let error = $root.Folder.RestoreSharedObject.verify(message.folders[i]); if (error) return "folders." + error; } @@ -184950,7 +172386,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Folder.RestoreSharedObject.verify(message.records[i], long + 1); + let error = $root.Folder.RestoreSharedObject.verify(message.records[i]); if (error) return "records." + error; } @@ -184966,13 +172402,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.RestoreDeletedSharedFoldersAndRecordsRequest} RestoreDeletedSharedFoldersAndRecordsRequest */ - RestoreDeletedSharedFoldersAndRecordsRequest.fromObject = function fromObject(object, long) { + RestoreDeletedSharedFoldersAndRecordsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Folder.RestoreDeletedSharedFoldersAndRecordsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.RestoreDeletedSharedFoldersAndRecordsRequest(); if (object.folders) { if (!Array.isArray(object.folders)) @@ -184981,7 +172413,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folders.length; ++i) { if (typeof object.folders[i] !== "object") throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest.folders: object expected"); - message.folders[i] = $root.Folder.RestoreSharedObject.fromObject(object.folders[i], long + 1); + message.folders[i] = $root.Folder.RestoreSharedObject.fromObject(object.folders[i]); } } if (object.records) { @@ -184991,7 +172423,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest.records: object expected"); - message.records[i] = $root.Folder.RestoreSharedObject.fromObject(object.records[i], long + 1); + message.records[i] = $root.Folder.RestoreSharedObject.fromObject(object.records[i]); } } return message; @@ -185006,13 +172438,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RestoreDeletedSharedFoldersAndRecordsRequest.toObject = function toObject(message, options, q) { + RestoreDeletedSharedFoldersAndRecordsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.folders = []; @@ -185021,12 +172449,12 @@ export const Folder = $root.Folder = (() => { if (message.folders && message.folders.length) { object.folders = []; for (let j = 0; j < message.folders.length; ++j) - object.folders[j] = $root.Folder.RestoreSharedObject.toObject(message.folders[j], options, q + 1); + object.folders[j] = $root.Folder.RestoreSharedObject.toObject(message.folders[j], options); } if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Folder.RestoreSharedObject.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Folder.RestoreSharedObject.toObject(message.records[j], options); } return object; }; @@ -185082,7 +172510,7 @@ export const Folder = $root.Folder = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -185123,13 +172551,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreSharedObject.encode = function encode(message, writer, q) { + RestoreSharedObject.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.recordUids != null && message.recordUids.length) @@ -185162,18 +172586,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreSharedObject.decode = function decode(reader, length, error, long) { + RestoreSharedObject.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RestoreSharedObject(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -185186,7 +172604,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -185217,13 +172635,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RestoreSharedObject.verify = function verify(message, long) { + RestoreSharedObject.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -185245,13 +172659,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.RestoreSharedObject} RestoreSharedObject */ - RestoreSharedObject.fromObject = function fromObject(object, long) { + RestoreSharedObject.fromObject = function fromObject(object) { if (object instanceof $root.Folder.RestoreSharedObject) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.RestoreSharedObject(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -185280,13 +172690,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RestoreSharedObject.toObject = function toObject(message, options, q) { + RestoreSharedObject.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordUids = []; @@ -185384,7 +172790,7 @@ export const Folder = $root.Folder = (() => { function FolderData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -185481,13 +172887,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderData.encode = function encode(message, writer, q) { + FolderData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) @@ -185501,7 +172903,7 @@ export const Folder = $root.Folder = (() => { if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.folderKey); if (message.ownerInfo != null && Object.hasOwnProperty.call(message, "ownerInfo")) - $root.Folder.UserInfo.encode(message.ownerInfo, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Folder.UserInfo.encode(message.ownerInfo, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) writer.uint32(/* id 8, wireType 0 =*/64).int64(message.dateCreated); if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) @@ -185533,18 +172935,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderData.decode = function decode(reader, length, error, long) { + FolderData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -185571,7 +172967,7 @@ export const Folder = $root.Folder = (() => { break; } case 7: { - message.ownerInfo = $root.Folder.UserInfo.decode(reader, reader.uint32(), undefined, long + 1); + message.ownerInfo = $root.Folder.UserInfo.decode(reader, reader.uint32()); break; } case 8: { @@ -185583,7 +172979,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -185614,13 +173010,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderData.verify = function verify(message, long) { + FolderData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -185653,7 +173045,7 @@ export const Folder = $root.Folder = (() => { if (!(message.folderKey && typeof message.folderKey.length === "number" || $util.isString(message.folderKey))) return "folderKey: buffer expected"; if (message.ownerInfo != null && message.hasOwnProperty("ownerInfo")) { - let error = $root.Folder.UserInfo.verify(message.ownerInfo, long + 1); + let error = $root.Folder.UserInfo.verify(message.ownerInfo); if (error) return "ownerInfo." + error; } @@ -185674,13 +173066,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderData} FolderData */ - FolderData.fromObject = function fromObject(object, long) { + FolderData.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderData(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -185749,11 +173137,11 @@ export const Folder = $root.Folder = (() => { if (object.ownerInfo != null) { if (typeof object.ownerInfo !== "object") throw TypeError(".Folder.FolderData.ownerInfo: object expected"); - message.ownerInfo = $root.Folder.UserInfo.fromObject(object.ownerInfo, long + 1); + message.ownerInfo = $root.Folder.UserInfo.fromObject(object.ownerInfo); } if (object.dateCreated != null) if ($util.Long) - message.dateCreated = $util.Long.fromValue(object.dateCreated, false); + (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; else if (typeof object.dateCreated === "string") message.dateCreated = parseInt(object.dateCreated, 10); else if (typeof object.dateCreated === "number") @@ -185762,7 +173150,7 @@ export const Folder = $root.Folder = (() => { message.dateCreated = new $util.LongBits(object.dateCreated.low >>> 0, object.dateCreated.high >>> 0).toNumber(); if (object.lastModified != null) if ($util.Long) - message.lastModified = $util.Long.fromValue(object.lastModified, false); + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; else if (typeof object.lastModified === "string") message.lastModified = parseInt(object.lastModified, 10); else if (typeof object.lastModified === "number") @@ -185781,13 +173169,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderData.toObject = function toObject(message, options, q) { + FolderData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -185823,14 +173207,14 @@ export const Folder = $root.Folder = (() => { object.ownerInfo = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dateCreated = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dateCreated = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastModified = options.longs === String ? "0" : 0; } if (message.folderUid != null && message.hasOwnProperty("folderUid")) object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; @@ -185845,18 +173229,14 @@ export const Folder = $root.Folder = (() => { if (message.folderKey != null && message.hasOwnProperty("folderKey")) object.folderKey = options.bytes === String ? $util.base64.encode(message.folderKey, 0, message.folderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderKey) : message.folderKey; if (message.ownerInfo != null && message.hasOwnProperty("ownerInfo")) - object.ownerInfo = $root.Folder.UserInfo.toObject(message.ownerInfo, options, q + 1); + object.ownerInfo = $root.Folder.UserInfo.toObject(message.ownerInfo, options); if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dateCreated = typeof message.dateCreated === "number" ? BigInt(message.dateCreated) : $util.Long.fromBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0, false).toBigInt(); - else if (typeof message.dateCreated === "number") + if (typeof message.dateCreated === "number") object.dateCreated = options.longs === String ? String(message.dateCreated) : message.dateCreated; else object.dateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.dateCreated) : options.longs === Number ? new $util.LongBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0).toNumber() : message.dateCreated; if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastModified = typeof message.lastModified === "number" ? BigInt(message.lastModified) : $util.Long.fromBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0, false).toBigInt(); - else if (typeof message.lastModified === "number") + if (typeof message.lastModified === "number") object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; else object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; @@ -185915,7 +173295,7 @@ export const Folder = $root.Folder = (() => { function FolderKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -185972,13 +173352,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderKey.encode = function encode(message, writer, q) { + FolderKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) @@ -186014,18 +173390,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderKey.decode = function decode(reader, length, error, long) { + FolderKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -186044,7 +173414,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -186075,13 +173445,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderKey.verify = function verify(message, long) { + FolderKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -186111,13 +173477,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderKey} FolderKey */ - FolderKey.fromObject = function fromObject(object, long) { + FolderKey.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderKey(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -186166,13 +173528,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderKey.toObject = function toObject(message, options, q) { + FolderKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -186275,7 +173633,7 @@ export const Folder = $root.Folder = (() => { this.folderData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -186308,16 +173666,12 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderAddRequest.encode = function encode(message, writer, q) { + FolderAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderData != null && message.folderData.length) for (let i = 0; i < message.folderData.length; ++i) - $root.Folder.FolderData.encode(message.folderData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.FolderData.encode(message.folderData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -186345,27 +173699,21 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderAddRequest.decode = function decode(reader, length, error, long) { + FolderAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.folderData && message.folderData.length)) message.folderData = []; - message.folderData.push($root.Folder.FolderData.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderData.push($root.Folder.FolderData.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -186396,18 +173744,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderAddRequest.verify = function verify(message, long) { + FolderAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderData != null && message.hasOwnProperty("folderData")) { if (!Array.isArray(message.folderData)) return "folderData: array expected"; for (let i = 0; i < message.folderData.length; ++i) { - let error = $root.Folder.FolderData.verify(message.folderData[i], long + 1); + let error = $root.Folder.FolderData.verify(message.folderData[i]); if (error) return "folderData." + error; } @@ -186423,13 +173767,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderAddRequest} FolderAddRequest */ - FolderAddRequest.fromObject = function fromObject(object, long) { + FolderAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderAddRequest(); if (object.folderData) { if (!Array.isArray(object.folderData)) @@ -186438,7 +173778,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderData.length; ++i) { if (typeof object.folderData[i] !== "object") throw TypeError(".Folder.FolderAddRequest.folderData: object expected"); - message.folderData[i] = $root.Folder.FolderData.fromObject(object.folderData[i], long + 1); + message.folderData[i] = $root.Folder.FolderData.fromObject(object.folderData[i]); } } return message; @@ -186453,20 +173793,16 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderAddRequest.toObject = function toObject(message, options, q) { + FolderAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.folderData = []; if (message.folderData && message.folderData.length) { object.folderData = []; for (let j = 0; j < message.folderData.length; ++j) - object.folderData[j] = $root.Folder.FolderData.toObject(message.folderData[j], options, q + 1); + object.folderData[j] = $root.Folder.FolderData.toObject(message.folderData[j], options); } return object; }; @@ -186540,7 +173876,7 @@ export const Folder = $root.Folder = (() => { function FolderModifyResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -186589,13 +173925,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderModifyResult.encode = function encode(message, writer, q) { + FolderModifyResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -186629,18 +173961,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderModifyResult.decode = function decode(reader, length, error, long) { + FolderModifyResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderModifyResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -186655,7 +173981,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -186686,13 +174012,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderModifyResult.verify = function verify(message, long) { + FolderModifyResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -186720,13 +174042,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderModifyResult} FolderModifyResult */ - FolderModifyResult.fromObject = function fromObject(object, long) { + FolderModifyResult.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderModifyResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderModifyResult(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -186771,13 +174089,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderModifyResult.toObject = function toObject(message, options, q) { + FolderModifyResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -186849,7 +174163,7 @@ export const Folder = $root.Folder = (() => { this.folderAddResults = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -186882,16 +174196,12 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderAddResponse.encode = function encode(message, writer, q) { + FolderAddResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderAddResults != null && message.folderAddResults.length) for (let i = 0; i < message.folderAddResults.length; ++i) - $root.Folder.FolderModifyResult.encode(message.folderAddResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.FolderModifyResult.encode(message.folderAddResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -186919,27 +174229,21 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderAddResponse.decode = function decode(reader, length, error, long) { + FolderAddResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.folderAddResults && message.folderAddResults.length)) message.folderAddResults = []; - message.folderAddResults.push($root.Folder.FolderModifyResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderAddResults.push($root.Folder.FolderModifyResult.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -186970,18 +174274,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderAddResponse.verify = function verify(message, long) { + FolderAddResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderAddResults != null && message.hasOwnProperty("folderAddResults")) { if (!Array.isArray(message.folderAddResults)) return "folderAddResults: array expected"; for (let i = 0; i < message.folderAddResults.length; ++i) { - let error = $root.Folder.FolderModifyResult.verify(message.folderAddResults[i], long + 1); + let error = $root.Folder.FolderModifyResult.verify(message.folderAddResults[i]); if (error) return "folderAddResults." + error; } @@ -186997,13 +174297,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderAddResponse} FolderAddResponse */ - FolderAddResponse.fromObject = function fromObject(object, long) { + FolderAddResponse.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderAddResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderAddResponse(); if (object.folderAddResults) { if (!Array.isArray(object.folderAddResults)) @@ -187012,7 +174308,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderAddResults.length; ++i) { if (typeof object.folderAddResults[i] !== "object") throw TypeError(".Folder.FolderAddResponse.folderAddResults: object expected"); - message.folderAddResults[i] = $root.Folder.FolderModifyResult.fromObject(object.folderAddResults[i], long + 1); + message.folderAddResults[i] = $root.Folder.FolderModifyResult.fromObject(object.folderAddResults[i]); } } return message; @@ -187027,20 +174323,16 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderAddResponse.toObject = function toObject(message, options, q) { + FolderAddResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.folderAddResults = []; if (message.folderAddResults && message.folderAddResults.length) { object.folderAddResults = []; for (let j = 0; j < message.folderAddResults.length; ++j) - object.folderAddResults[j] = $root.Folder.FolderModifyResult.toObject(message.folderAddResults[j], options, q + 1); + object.folderAddResults[j] = $root.Folder.FolderModifyResult.toObject(message.folderAddResults[j], options); } return object; }; @@ -187095,7 +174387,7 @@ export const Folder = $root.Folder = (() => { this.folderData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -187128,16 +174420,12 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderUpdateRequest.encode = function encode(message, writer, q) { + FolderUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderData != null && message.folderData.length) for (let i = 0; i < message.folderData.length; ++i) - $root.Folder.FolderData.encode(message.folderData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.FolderData.encode(message.folderData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -187165,27 +174453,21 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderUpdateRequest.decode = function decode(reader, length, error, long) { + FolderUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.folderData && message.folderData.length)) message.folderData = []; - message.folderData.push($root.Folder.FolderData.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderData.push($root.Folder.FolderData.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -187216,18 +174498,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderUpdateRequest.verify = function verify(message, long) { + FolderUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderData != null && message.hasOwnProperty("folderData")) { if (!Array.isArray(message.folderData)) return "folderData: array expected"; for (let i = 0; i < message.folderData.length; ++i) { - let error = $root.Folder.FolderData.verify(message.folderData[i], long + 1); + let error = $root.Folder.FolderData.verify(message.folderData[i]); if (error) return "folderData." + error; } @@ -187243,13 +174521,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderUpdateRequest} FolderUpdateRequest */ - FolderUpdateRequest.fromObject = function fromObject(object, long) { + FolderUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderUpdateRequest(); if (object.folderData) { if (!Array.isArray(object.folderData)) @@ -187258,7 +174532,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderData.length; ++i) { if (typeof object.folderData[i] !== "object") throw TypeError(".Folder.FolderUpdateRequest.folderData: object expected"); - message.folderData[i] = $root.Folder.FolderData.fromObject(object.folderData[i], long + 1); + message.folderData[i] = $root.Folder.FolderData.fromObject(object.folderData[i]); } } return message; @@ -187273,20 +174547,16 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderUpdateRequest.toObject = function toObject(message, options, q) { + FolderUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.folderData = []; if (message.folderData && message.folderData.length) { object.folderData = []; for (let j = 0; j < message.folderData.length; ++j) - object.folderData[j] = $root.Folder.FolderData.toObject(message.folderData[j], options, q + 1); + object.folderData[j] = $root.Folder.FolderData.toObject(message.folderData[j], options); } return object; }; @@ -187341,7 +174611,7 @@ export const Folder = $root.Folder = (() => { this.folderUpdateResults = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -187374,16 +174644,12 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderUpdateResponse.encode = function encode(message, writer, q) { + FolderUpdateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUpdateResults != null && message.folderUpdateResults.length) for (let i = 0; i < message.folderUpdateResults.length; ++i) - $root.Folder.FolderModifyResult.encode(message.folderUpdateResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.FolderModifyResult.encode(message.folderUpdateResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -187411,27 +174677,21 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderUpdateResponse.decode = function decode(reader, length, error, long) { + FolderUpdateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.folderUpdateResults && message.folderUpdateResults.length)) message.folderUpdateResults = []; - message.folderUpdateResults.push($root.Folder.FolderModifyResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderUpdateResults.push($root.Folder.FolderModifyResult.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -187462,18 +174722,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderUpdateResponse.verify = function verify(message, long) { + FolderUpdateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUpdateResults != null && message.hasOwnProperty("folderUpdateResults")) { if (!Array.isArray(message.folderUpdateResults)) return "folderUpdateResults: array expected"; for (let i = 0; i < message.folderUpdateResults.length; ++i) { - let error = $root.Folder.FolderModifyResult.verify(message.folderUpdateResults[i], long + 1); + let error = $root.Folder.FolderModifyResult.verify(message.folderUpdateResults[i]); if (error) return "folderUpdateResults." + error; } @@ -187489,13 +174745,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderUpdateResponse} FolderUpdateResponse */ - FolderUpdateResponse.fromObject = function fromObject(object, long) { + FolderUpdateResponse.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderUpdateResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderUpdateResponse(); if (object.folderUpdateResults) { if (!Array.isArray(object.folderUpdateResults)) @@ -187504,7 +174756,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderUpdateResults.length; ++i) { if (typeof object.folderUpdateResults[i] !== "object") throw TypeError(".Folder.FolderUpdateResponse.folderUpdateResults: object expected"); - message.folderUpdateResults[i] = $root.Folder.FolderModifyResult.fromObject(object.folderUpdateResults[i], long + 1); + message.folderUpdateResults[i] = $root.Folder.FolderModifyResult.fromObject(object.folderUpdateResults[i]); } } return message; @@ -187519,20 +174771,16 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderUpdateResponse.toObject = function toObject(message, options, q) { + FolderUpdateResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.folderUpdateResults = []; if (message.folderUpdateResults && message.folderUpdateResults.length) { object.folderUpdateResults = []; for (let j = 0; j < message.folderUpdateResults.length; ++j) - object.folderUpdateResults[j] = $root.Folder.FolderModifyResult.toObject(message.folderUpdateResults[j], options, q + 1); + object.folderUpdateResults[j] = $root.Folder.FolderModifyResult.toObject(message.folderUpdateResults[j], options); } return object; }; @@ -187636,7 +174884,7 @@ export const Folder = $root.Folder = (() => { function FolderPermissions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -187765,13 +175013,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderPermissions.encode = function encode(message, writer, q) { + FolderPermissions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.canAdd != null && Object.hasOwnProperty.call(message, "canAdd")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.canAdd); if (message.canRemove != null && Object.hasOwnProperty.call(message, "canRemove")) @@ -187825,18 +175069,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderPermissions.decode = function decode(reader, length, error, long) { + FolderPermissions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderPermissions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.canAdd = reader.bool(); @@ -187891,7 +175129,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -187922,13 +175160,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderPermissions.verify = function verify(message, long) { + FolderPermissions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.canAdd != null && message.hasOwnProperty("canAdd")) if (typeof message.canAdd !== "boolean") return "canAdd: boolean expected"; @@ -187979,13 +175213,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderPermissions} FolderPermissions */ - FolderPermissions.fromObject = function fromObject(object, long) { + FolderPermissions.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderPermissions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderPermissions(); if (object.canAdd != null) message.canAdd = Boolean(object.canAdd); @@ -188025,13 +175255,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderPermissions.toObject = function toObject(message, options, q) { + FolderPermissions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.canAdd = false; @@ -188138,7 +175364,7 @@ export const Folder = $root.Folder = (() => { function Capabilities(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -188267,13 +175493,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Capabilities.encode = function encode(message, writer, q) { + Capabilities.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.canAdd != null && Object.hasOwnProperty.call(message, "canAdd")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.canAdd); if (message.canRemove != null && Object.hasOwnProperty.call(message, "canRemove")) @@ -188327,18 +175549,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Capabilities.decode = function decode(reader, length, error, long) { + Capabilities.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.Capabilities(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.canAdd = reader.int32(); @@ -188393,7 +175609,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -188424,13 +175640,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Capabilities.verify = function verify(message, long) { + Capabilities.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.canAdd != null && message.hasOwnProperty("canAdd")) switch (message.canAdd) { default: @@ -188559,13 +175771,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.Capabilities} Capabilities */ - Capabilities.fromObject = function fromObject(object, long) { + Capabilities.fromObject = function fromObject(object) { if (object instanceof $root.Folder.Capabilities) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.Capabilities(); switch (object.canAdd) { default: @@ -188839,13 +176047,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Capabilities.toObject = function toObject(message, options, q) { + Capabilities.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.canAdd = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; @@ -188946,7 +176150,7 @@ export const Folder = $root.Folder = (() => { this.removeRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -189003,24 +176207,20 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderRecordUpdateRequest.encode = function encode(message, writer, q) { + FolderRecordUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.addRecords != null && message.addRecords.length) for (let i = 0; i < message.addRecords.length; ++i) - $root.Folder.RecordMetadata.encode(message.addRecords[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Folder.RecordMetadata.encode(message.addRecords[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.updateRecords != null && message.updateRecords.length) for (let i = 0; i < message.updateRecords.length; ++i) - $root.Folder.RecordMetadata.encode(message.updateRecords[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Folder.RecordMetadata.encode(message.updateRecords[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.removeRecords != null && message.removeRecords.length) for (let i = 0; i < message.removeRecords.length; ++i) - $root.Folder.RecordMetadata.encode(message.removeRecords[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Folder.RecordMetadata.encode(message.removeRecords[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -189048,18 +176248,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderRecordUpdateRequest.decode = function decode(reader, length, error, long) { + FolderRecordUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRecordUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -189068,23 +176262,23 @@ export const Folder = $root.Folder = (() => { case 2: { if (!(message.addRecords && message.addRecords.length)) message.addRecords = []; - message.addRecords.push($root.Folder.RecordMetadata.decode(reader, reader.uint32(), undefined, long + 1)); + message.addRecords.push($root.Folder.RecordMetadata.decode(reader, reader.uint32())); break; } case 3: { if (!(message.updateRecords && message.updateRecords.length)) message.updateRecords = []; - message.updateRecords.push($root.Folder.RecordMetadata.decode(reader, reader.uint32(), undefined, long + 1)); + message.updateRecords.push($root.Folder.RecordMetadata.decode(reader, reader.uint32())); break; } case 4: { if (!(message.removeRecords && message.removeRecords.length)) message.removeRecords = []; - message.removeRecords.push($root.Folder.RecordMetadata.decode(reader, reader.uint32(), undefined, long + 1)); + message.removeRecords.push($root.Folder.RecordMetadata.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -189115,13 +176309,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderRecordUpdateRequest.verify = function verify(message, long) { + FolderRecordUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -189129,7 +176319,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.addRecords)) return "addRecords: array expected"; for (let i = 0; i < message.addRecords.length; ++i) { - let error = $root.Folder.RecordMetadata.verify(message.addRecords[i], long + 1); + let error = $root.Folder.RecordMetadata.verify(message.addRecords[i]); if (error) return "addRecords." + error; } @@ -189138,7 +176328,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.updateRecords)) return "updateRecords: array expected"; for (let i = 0; i < message.updateRecords.length; ++i) { - let error = $root.Folder.RecordMetadata.verify(message.updateRecords[i], long + 1); + let error = $root.Folder.RecordMetadata.verify(message.updateRecords[i]); if (error) return "updateRecords." + error; } @@ -189147,7 +176337,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.removeRecords)) return "removeRecords: array expected"; for (let i = 0; i < message.removeRecords.length; ++i) { - let error = $root.Folder.RecordMetadata.verify(message.removeRecords[i], long + 1); + let error = $root.Folder.RecordMetadata.verify(message.removeRecords[i]); if (error) return "removeRecords." + error; } @@ -189163,13 +176353,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderRecordUpdateRequest} FolderRecordUpdateRequest */ - FolderRecordUpdateRequest.fromObject = function fromObject(object, long) { + FolderRecordUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderRecordUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderRecordUpdateRequest(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -189183,7 +176369,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.addRecords.length; ++i) { if (typeof object.addRecords[i] !== "object") throw TypeError(".Folder.FolderRecordUpdateRequest.addRecords: object expected"); - message.addRecords[i] = $root.Folder.RecordMetadata.fromObject(object.addRecords[i], long + 1); + message.addRecords[i] = $root.Folder.RecordMetadata.fromObject(object.addRecords[i]); } } if (object.updateRecords) { @@ -189193,7 +176379,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.updateRecords.length; ++i) { if (typeof object.updateRecords[i] !== "object") throw TypeError(".Folder.FolderRecordUpdateRequest.updateRecords: object expected"); - message.updateRecords[i] = $root.Folder.RecordMetadata.fromObject(object.updateRecords[i], long + 1); + message.updateRecords[i] = $root.Folder.RecordMetadata.fromObject(object.updateRecords[i]); } } if (object.removeRecords) { @@ -189203,7 +176389,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.removeRecords.length; ++i) { if (typeof object.removeRecords[i] !== "object") throw TypeError(".Folder.FolderRecordUpdateRequest.removeRecords: object expected"); - message.removeRecords[i] = $root.Folder.RecordMetadata.fromObject(object.removeRecords[i], long + 1); + message.removeRecords[i] = $root.Folder.RecordMetadata.fromObject(object.removeRecords[i]); } } return message; @@ -189218,13 +176404,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderRecordUpdateRequest.toObject = function toObject(message, options, q) { + FolderRecordUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.addRecords = []; @@ -189244,17 +176426,17 @@ export const Folder = $root.Folder = (() => { if (message.addRecords && message.addRecords.length) { object.addRecords = []; for (let j = 0; j < message.addRecords.length; ++j) - object.addRecords[j] = $root.Folder.RecordMetadata.toObject(message.addRecords[j], options, q + 1); + object.addRecords[j] = $root.Folder.RecordMetadata.toObject(message.addRecords[j], options); } if (message.updateRecords && message.updateRecords.length) { object.updateRecords = []; for (let j = 0; j < message.updateRecords.length; ++j) - object.updateRecords[j] = $root.Folder.RecordMetadata.toObject(message.updateRecords[j], options, q + 1); + object.updateRecords[j] = $root.Folder.RecordMetadata.toObject(message.updateRecords[j], options); } if (message.removeRecords && message.removeRecords.length) { object.removeRecords = []; for (let j = 0; j < message.removeRecords.length; ++j) - object.removeRecords[j] = $root.Folder.RecordMetadata.toObject(message.removeRecords[j], options, q + 1); + object.removeRecords[j] = $root.Folder.RecordMetadata.toObject(message.removeRecords[j], options); } return object; }; @@ -189311,7 +176493,7 @@ export const Folder = $root.Folder = (() => { function RecordMetadata(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -189368,13 +176550,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordMetadata.encode = function encode(message, writer, q) { + RecordMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) @@ -189382,7 +176560,7 @@ export const Folder = $root.Folder = (() => { if (message.encryptedRecordKeyType != null && Object.hasOwnProperty.call(message, "encryptedRecordKeyType")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.encryptedRecordKeyType); if (message.tlaProperties != null && Object.hasOwnProperty.call(message, "tlaProperties")) - $root.common.tla.TLAProperties.encode(message.tlaProperties, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.common.tla.TLAProperties.encode(message.tlaProperties, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -189410,18 +176588,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordMetadata.decode = function decode(reader, length, error, long) { + RecordMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordMetadata(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -189436,11 +176608,11 @@ export const Folder = $root.Folder = (() => { break; } case 5: { - message.tlaProperties = $root.common.tla.TLAProperties.decode(reader, reader.uint32(), undefined, long + 1); + message.tlaProperties = $root.common.tla.TLAProperties.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -189471,13 +176643,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordMetadata.verify = function verify(message, long) { + RecordMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -189496,7 +176664,7 @@ export const Folder = $root.Folder = (() => { break; } if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) { - let error = $root.common.tla.TLAProperties.verify(message.tlaProperties, long + 1); + let error = $root.common.tla.TLAProperties.verify(message.tlaProperties); if (error) return "tlaProperties." + error; } @@ -189511,13 +176679,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.RecordMetadata} RecordMetadata */ - RecordMetadata.fromObject = function fromObject(object, long) { + RecordMetadata.fromObject = function fromObject(object) { if (object instanceof $root.Folder.RecordMetadata) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.RecordMetadata(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -189560,7 +176724,7 @@ export const Folder = $root.Folder = (() => { if (object.tlaProperties != null) { if (typeof object.tlaProperties !== "object") throw TypeError(".Folder.RecordMetadata.tlaProperties: object expected"); - message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties, long + 1); + message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties); } return message; }; @@ -189574,13 +176738,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordMetadata.toObject = function toObject(message, options, q) { + RecordMetadata.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -189607,7 +176767,7 @@ export const Folder = $root.Folder = (() => { if (message.encryptedRecordKeyType != null && message.hasOwnProperty("encryptedRecordKeyType")) object.encryptedRecordKeyType = options.enums === String ? $root.Folder.EncryptedKeyType[message.encryptedRecordKeyType] === undefined ? message.encryptedRecordKeyType : $root.Folder.EncryptedKeyType[message.encryptedRecordKeyType] : message.encryptedRecordKeyType; if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) - object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options, q + 1); + object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options); return object; }; @@ -189662,7 +176822,7 @@ export const Folder = $root.Folder = (() => { function FolderRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -189711,17 +176871,13 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderRecord.encode = function encode(message, writer, q) { + FolderRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.recordMetadata != null && Object.hasOwnProperty.call(message, "recordMetadata")) - $root.Folder.RecordMetadata.encode(message.recordMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Folder.RecordMetadata.encode(message.recordMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.folderKeyEncryptionType != null && Object.hasOwnProperty.call(message, "folderKeyEncryptionType")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.folderKeyEncryptionType); return writer; @@ -189751,25 +176907,19 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderRecord.decode = function decode(reader, length, error, long) { + FolderRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); break; } case 2: { - message.recordMetadata = $root.Folder.RecordMetadata.decode(reader, reader.uint32(), undefined, long + 1); + message.recordMetadata = $root.Folder.RecordMetadata.decode(reader, reader.uint32()); break; } case 3: { @@ -189777,7 +176927,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -189808,18 +176958,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderRecord.verify = function verify(message, long) { + FolderRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; if (message.recordMetadata != null && message.hasOwnProperty("recordMetadata")) { - let error = $root.Folder.RecordMetadata.verify(message.recordMetadata, long + 1); + let error = $root.Folder.RecordMetadata.verify(message.recordMetadata); if (error) return "recordMetadata." + error; } @@ -189843,13 +176989,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderRecord} FolderRecord */ - FolderRecord.fromObject = function fromObject(object, long) { + FolderRecord.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderRecord(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -189859,7 +177001,7 @@ export const Folder = $root.Folder = (() => { if (object.recordMetadata != null) { if (typeof object.recordMetadata !== "object") throw TypeError(".Folder.FolderRecord.recordMetadata: object expected"); - message.recordMetadata = $root.Folder.RecordMetadata.fromObject(object.recordMetadata, long + 1); + message.recordMetadata = $root.Folder.RecordMetadata.fromObject(object.recordMetadata); } switch (object.folderKeyEncryptionType) { default: @@ -189893,13 +177035,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderRecord.toObject = function toObject(message, options, q) { + FolderRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -189915,7 +177053,7 @@ export const Folder = $root.Folder = (() => { if (message.folderUid != null && message.hasOwnProperty("folderUid")) object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; if (message.recordMetadata != null && message.hasOwnProperty("recordMetadata")) - object.recordMetadata = $root.Folder.RecordMetadata.toObject(message.recordMetadata, options, q + 1); + object.recordMetadata = $root.Folder.RecordMetadata.toObject(message.recordMetadata, options); if (message.folderKeyEncryptionType != null && message.hasOwnProperty("folderKeyEncryptionType")) object.folderKeyEncryptionType = options.enums === String ? $root.Folder.FolderKeyEncryptionType[message.folderKeyEncryptionType] === undefined ? message.folderKeyEncryptionType : $root.Folder.FolderKeyEncryptionType[message.folderKeyEncryptionType] : message.folderKeyEncryptionType; return object; @@ -189972,7 +177110,7 @@ export const Folder = $root.Folder = (() => { this.folderRecordUpdateResult = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -190013,18 +177151,14 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderRecordUpdateResponse.encode = function encode(message, writer, q) { + FolderRecordUpdateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.folderRecordUpdateResult != null && message.folderRecordUpdateResult.length) for (let i = 0; i < message.folderRecordUpdateResult.length; ++i) - $root.Folder.FolderRecordUpdateResult.encode(message.folderRecordUpdateResult[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Folder.FolderRecordUpdateResult.encode(message.folderRecordUpdateResult[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -190052,18 +177186,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderRecordUpdateResponse.decode = function decode(reader, length, error, long) { + FolderRecordUpdateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRecordUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -190072,11 +177200,11 @@ export const Folder = $root.Folder = (() => { case 4: { if (!(message.folderRecordUpdateResult && message.folderRecordUpdateResult.length)) message.folderRecordUpdateResult = []; - message.folderRecordUpdateResult.push($root.Folder.FolderRecordUpdateResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderRecordUpdateResult.push($root.Folder.FolderRecordUpdateResult.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -190107,13 +177235,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderRecordUpdateResponse.verify = function verify(message, long) { + FolderRecordUpdateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -190121,7 +177245,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.folderRecordUpdateResult)) return "folderRecordUpdateResult: array expected"; for (let i = 0; i < message.folderRecordUpdateResult.length; ++i) { - let error = $root.Folder.FolderRecordUpdateResult.verify(message.folderRecordUpdateResult[i], long + 1); + let error = $root.Folder.FolderRecordUpdateResult.verify(message.folderRecordUpdateResult[i]); if (error) return "folderRecordUpdateResult." + error; } @@ -190137,13 +177261,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderRecordUpdateResponse} FolderRecordUpdateResponse */ - FolderRecordUpdateResponse.fromObject = function fromObject(object, long) { + FolderRecordUpdateResponse.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderRecordUpdateResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderRecordUpdateResponse(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -190157,7 +177277,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderRecordUpdateResult.length; ++i) { if (typeof object.folderRecordUpdateResult[i] !== "object") throw TypeError(".Folder.FolderRecordUpdateResponse.folderRecordUpdateResult: object expected"); - message.folderRecordUpdateResult[i] = $root.Folder.FolderRecordUpdateResult.fromObject(object.folderRecordUpdateResult[i], long + 1); + message.folderRecordUpdateResult[i] = $root.Folder.FolderRecordUpdateResult.fromObject(object.folderRecordUpdateResult[i]); } } return message; @@ -190172,13 +177292,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderRecordUpdateResponse.toObject = function toObject(message, options, q) { + FolderRecordUpdateResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.folderRecordUpdateResult = []; @@ -190195,7 +177311,7 @@ export const Folder = $root.Folder = (() => { if (message.folderRecordUpdateResult && message.folderRecordUpdateResult.length) { object.folderRecordUpdateResult = []; for (let j = 0; j < message.folderRecordUpdateResult.length; ++j) - object.folderRecordUpdateResult[j] = $root.Folder.FolderRecordUpdateResult.toObject(message.folderRecordUpdateResult[j], options, q + 1); + object.folderRecordUpdateResult[j] = $root.Folder.FolderRecordUpdateResult.toObject(message.folderRecordUpdateResult[j], options); } return object; }; @@ -190251,7 +177367,7 @@ export const Folder = $root.Folder = (() => { function FolderRecordUpdateResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -190300,13 +177416,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderRecordUpdateResult.encode = function encode(message, writer, q) { + FolderRecordUpdateResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -190340,18 +177452,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderRecordUpdateResult.decode = function decode(reader, length, error, long) { + FolderRecordUpdateResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRecordUpdateResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -190366,7 +177472,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -190397,13 +177503,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderRecordUpdateResult.verify = function verify(message, long) { + FolderRecordUpdateResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -190431,13 +177533,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderRecordUpdateResult} FolderRecordUpdateResult */ - FolderRecordUpdateResult.fromObject = function fromObject(object, long) { + FolderRecordUpdateResult.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderRecordUpdateResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderRecordUpdateResult(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -190482,13 +177580,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderRecordUpdateResult.toObject = function toObject(message, options, q) { + FolderRecordUpdateResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -190596,7 +177690,7 @@ export const Folder = $root.Folder = (() => { function FolderAccessData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -190717,13 +177811,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderAccessData.encode = function encode(message, writer, q) { + FolderAccessData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.accessTypeUid != null && Object.hasOwnProperty.call(message, "accessTypeUid")) @@ -190733,15 +177823,15 @@ export const Folder = $root.Folder = (() => { if (message.accessRoleType != null && Object.hasOwnProperty.call(message, "accessRoleType")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.accessRoleType); if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) - $root.Folder.EncryptedDataKey.encode(message.folderKey, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Folder.EncryptedDataKey.encode(message.folderKey, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.inherited != null && Object.hasOwnProperty.call(message, "inherited")) writer.uint32(/* id 6, wireType 0 =*/48).bool(message.inherited); if (message.hidden != null && Object.hasOwnProperty.call(message, "hidden")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.hidden); if (message.permissions != null && Object.hasOwnProperty.call(message, "permissions")) - $root.Folder.FolderPermissions.encode(message.permissions, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Folder.FolderPermissions.encode(message.permissions, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.tlaProperties != null && Object.hasOwnProperty.call(message, "tlaProperties")) - $root.common.tla.TLAProperties.encode(message.tlaProperties, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.common.tla.TLAProperties.encode(message.tlaProperties, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) writer.uint32(/* id 10, wireType 0 =*/80).int64(message.dateCreated); if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) @@ -190775,18 +177865,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderAccessData.decode = function decode(reader, length, error, long) { + FolderAccessData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAccessData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -190805,7 +177889,7 @@ export const Folder = $root.Folder = (() => { break; } case 5: { - message.folderKey = $root.Folder.EncryptedDataKey.decode(reader, reader.uint32(), undefined, long + 1); + message.folderKey = $root.Folder.EncryptedDataKey.decode(reader, reader.uint32()); break; } case 6: { @@ -190817,11 +177901,11 @@ export const Folder = $root.Folder = (() => { break; } case 8: { - message.permissions = $root.Folder.FolderPermissions.decode(reader, reader.uint32(), undefined, long + 1); + message.permissions = $root.Folder.FolderPermissions.decode(reader, reader.uint32()); break; } case 9: { - message.tlaProperties = $root.common.tla.TLAProperties.decode(reader, reader.uint32(), undefined, long + 1); + message.tlaProperties = $root.common.tla.TLAProperties.decode(reader, reader.uint32()); break; } case 10: { @@ -190837,7 +177921,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -190868,13 +177952,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderAccessData.verify = function verify(message, long) { + FolderAccessData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -190909,7 +177989,7 @@ export const Folder = $root.Folder = (() => { break; } if (message.folderKey != null && message.hasOwnProperty("folderKey")) { - let error = $root.Folder.EncryptedDataKey.verify(message.folderKey, long + 1); + let error = $root.Folder.EncryptedDataKey.verify(message.folderKey); if (error) return "folderKey." + error; } @@ -190920,12 +178000,12 @@ export const Folder = $root.Folder = (() => { if (typeof message.hidden !== "boolean") return "hidden: boolean expected"; if (message.permissions != null && message.hasOwnProperty("permissions")) { - let error = $root.Folder.FolderPermissions.verify(message.permissions, long + 1); + let error = $root.Folder.FolderPermissions.verify(message.permissions); if (error) return "permissions." + error; } if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) { - let error = $root.common.tla.TLAProperties.verify(message.tlaProperties, long + 1); + let error = $root.common.tla.TLAProperties.verify(message.tlaProperties); if (error) return "tlaProperties." + error; } @@ -190949,13 +178029,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderAccessData} FolderAccessData */ - FolderAccessData.fromObject = function fromObject(object, long) { + FolderAccessData.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderAccessData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderAccessData(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -191046,7 +178122,7 @@ export const Folder = $root.Folder = (() => { if (object.folderKey != null) { if (typeof object.folderKey !== "object") throw TypeError(".Folder.FolderAccessData.folderKey: object expected"); - message.folderKey = $root.Folder.EncryptedDataKey.fromObject(object.folderKey, long + 1); + message.folderKey = $root.Folder.EncryptedDataKey.fromObject(object.folderKey); } if (object.inherited != null) message.inherited = Boolean(object.inherited); @@ -191055,16 +178131,16 @@ export const Folder = $root.Folder = (() => { if (object.permissions != null) { if (typeof object.permissions !== "object") throw TypeError(".Folder.FolderAccessData.permissions: object expected"); - message.permissions = $root.Folder.FolderPermissions.fromObject(object.permissions, long + 1); + message.permissions = $root.Folder.FolderPermissions.fromObject(object.permissions); } if (object.tlaProperties != null) { if (typeof object.tlaProperties !== "object") throw TypeError(".Folder.FolderAccessData.tlaProperties: object expected"); - message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties, long + 1); + message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties); } if (object.dateCreated != null) if ($util.Long) - message.dateCreated = $util.Long.fromValue(object.dateCreated, false); + (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; else if (typeof object.dateCreated === "string") message.dateCreated = parseInt(object.dateCreated, 10); else if (typeof object.dateCreated === "number") @@ -191073,7 +178149,7 @@ export const Folder = $root.Folder = (() => { message.dateCreated = new $util.LongBits(object.dateCreated.low >>> 0, object.dateCreated.high >>> 0).toNumber(); if (object.lastModified != null) if ($util.Long) - message.lastModified = $util.Long.fromValue(object.lastModified, false); + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; else if (typeof object.lastModified === "string") message.lastModified = parseInt(object.lastModified, 10); else if (typeof object.lastModified === "number") @@ -191094,13 +178170,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderAccessData.toObject = function toObject(message, options, q) { + FolderAccessData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -191126,14 +178198,14 @@ export const Folder = $root.Folder = (() => { object.tlaProperties = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dateCreated = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dateCreated = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastModified = options.longs === String ? "0" : 0; object.deniedAccess = false; } if (message.folderUid != null && message.hasOwnProperty("folderUid")) @@ -191145,26 +178217,22 @@ export const Folder = $root.Folder = (() => { if (message.accessRoleType != null && message.hasOwnProperty("accessRoleType")) object.accessRoleType = options.enums === String ? $root.Folder.AccessRoleType[message.accessRoleType] === undefined ? message.accessRoleType : $root.Folder.AccessRoleType[message.accessRoleType] : message.accessRoleType; if (message.folderKey != null && message.hasOwnProperty("folderKey")) - object.folderKey = $root.Folder.EncryptedDataKey.toObject(message.folderKey, options, q + 1); + object.folderKey = $root.Folder.EncryptedDataKey.toObject(message.folderKey, options); if (message.inherited != null && message.hasOwnProperty("inherited")) object.inherited = message.inherited; if (message.hidden != null && message.hasOwnProperty("hidden")) object.hidden = message.hidden; if (message.permissions != null && message.hasOwnProperty("permissions")) - object.permissions = $root.Folder.FolderPermissions.toObject(message.permissions, options, q + 1); + object.permissions = $root.Folder.FolderPermissions.toObject(message.permissions, options); if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) - object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options, q + 1); + object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options); if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dateCreated = typeof message.dateCreated === "number" ? BigInt(message.dateCreated) : $util.Long.fromBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0, false).toBigInt(); - else if (typeof message.dateCreated === "number") + if (typeof message.dateCreated === "number") object.dateCreated = options.longs === String ? String(message.dateCreated) : message.dateCreated; else object.dateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.dateCreated) : options.longs === Number ? new $util.LongBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0).toNumber() : message.dateCreated; if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastModified = typeof message.lastModified === "number" ? BigInt(message.lastModified) : $util.Long.fromBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0, false).toBigInt(); - else if (typeof message.lastModified === "number") + if (typeof message.lastModified === "number") object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; else object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; @@ -191224,7 +178292,7 @@ export const Folder = $root.Folder = (() => { function RevokedAccess(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -191273,13 +178341,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RevokedAccess.encode = function encode(message, writer, q) { + RevokedAccess.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.actorUid != null && Object.hasOwnProperty.call(message, "actorUid")) @@ -191313,18 +178377,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RevokedAccess.decode = function decode(reader, length, error, long) { + RevokedAccess.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RevokedAccess(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -191339,7 +178397,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -191370,13 +178428,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RevokedAccess.verify = function verify(message, long) { + RevokedAccess.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -191407,13 +178461,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.RevokedAccess} RevokedAccess */ - RevokedAccess.fromObject = function fromObject(object, long) { + RevokedAccess.fromObject = function fromObject(object) { if (object instanceof $root.Folder.RevokedAccess) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.RevokedAccess(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -191473,13 +178523,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RevokedAccess.toObject = function toObject(message, options, q) { + RevokedAccess.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -191556,7 +178602,7 @@ export const Folder = $root.Folder = (() => { function FolderRemoved(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -191589,13 +178635,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderRemoved.encode = function encode(message, writer, q) { + FolderRemoved.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); return writer; @@ -191625,25 +178667,19 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderRemoved.decode = function decode(reader, length, error, long) { + FolderRemoved.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRemoved(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -191674,13 +178710,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderRemoved.verify = function verify(message, long) { + FolderRemoved.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -191695,13 +178727,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderRemoved} FolderRemoved */ - FolderRemoved.fromObject = function fromObject(object, long) { + FolderRemoved.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderRemoved) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderRemoved(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -191720,13 +178748,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderRemoved.toObject = function toObject(message, options, q) { + FolderRemoved.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -191809,7 +178833,7 @@ export const Folder = $root.Folder = (() => { function RecordAccessData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -191994,13 +179018,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordAccessData.encode = function encode(message, writer, q) { + RecordAccessData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.accessTypeUid != null && Object.hasOwnProperty.call(message, "accessTypeUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accessTypeUid); if (message.accessType != null && Object.hasOwnProperty.call(message, "accessType")) @@ -192040,7 +179060,7 @@ export const Folder = $root.Folder = (() => { if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) writer.uint32(/* id 19, wireType 0 =*/152).int64(message.lastModified); if (message.tlaProperties != null && Object.hasOwnProperty.call(message, "tlaProperties")) - $root.common.tla.TLAProperties.encode(message.tlaProperties, writer.uint32(/* id 20, wireType 2 =*/162).fork(), q + 1).ldelim(); + $root.common.tla.TLAProperties.encode(message.tlaProperties, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); return writer; }; @@ -192068,18 +179088,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordAccessData.decode = function decode(reader, length, error, long) { + RecordAccessData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordAccessData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.accessTypeUid = reader.bytes(); @@ -192158,11 +179172,11 @@ export const Folder = $root.Folder = (() => { break; } case 20: { - message.tlaProperties = $root.common.tla.TLAProperties.decode(reader, reader.uint32(), undefined, long + 1); + message.tlaProperties = $root.common.tla.TLAProperties.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -192193,13 +179207,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordAccessData.verify = function verify(message, long) { + RecordAccessData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.accessTypeUid != null && message.hasOwnProperty("accessTypeUid")) if (!(message.accessTypeUid && typeof message.accessTypeUid.length === "number" || $util.isString(message.accessTypeUid))) return "accessTypeUid: buffer expected"; @@ -192279,7 +179289,7 @@ export const Folder = $root.Folder = (() => { if (!$util.isInteger(message.lastModified) && !(message.lastModified && $util.isInteger(message.lastModified.low) && $util.isInteger(message.lastModified.high))) return "lastModified: integer|Long expected"; if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) { - let error = $root.common.tla.TLAProperties.verify(message.tlaProperties, long + 1); + let error = $root.common.tla.TLAProperties.verify(message.tlaProperties); if (error) return "tlaProperties." + error; } @@ -192294,13 +179304,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.RecordAccessData} RecordAccessData */ - RecordAccessData.fromObject = function fromObject(object, long) { + RecordAccessData.fromObject = function fromObject(object) { if (object instanceof $root.Folder.RecordAccessData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.RecordAccessData(); if (object.accessTypeUid != null) if (typeof object.accessTypeUid === "string") @@ -192416,7 +179422,7 @@ export const Folder = $root.Folder = (() => { message.canApproveAccess = Boolean(object.canApproveAccess); if (object.dateCreated != null) if ($util.Long) - message.dateCreated = $util.Long.fromValue(object.dateCreated, false); + (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; else if (typeof object.dateCreated === "string") message.dateCreated = parseInt(object.dateCreated, 10); else if (typeof object.dateCreated === "number") @@ -192425,7 +179431,7 @@ export const Folder = $root.Folder = (() => { message.dateCreated = new $util.LongBits(object.dateCreated.low >>> 0, object.dateCreated.high >>> 0).toNumber(); if (object.lastModified != null) if ($util.Long) - message.lastModified = $util.Long.fromValue(object.lastModified, false); + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; else if (typeof object.lastModified === "string") message.lastModified = parseInt(object.lastModified, 10); else if (typeof object.lastModified === "number") @@ -192435,7 +179441,7 @@ export const Folder = $root.Folder = (() => { if (object.tlaProperties != null) { if (typeof object.tlaProperties !== "object") throw TypeError(".Folder.RecordAccessData.tlaProperties: object expected"); - message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties, long + 1); + message.tlaProperties = $root.common.tla.TLAProperties.fromObject(object.tlaProperties); } return message; }; @@ -192449,13 +179455,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordAccessData.toObject = function toObject(message, options, q) { + RecordAccessData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -192489,14 +179491,14 @@ export const Folder = $root.Folder = (() => { object.canApproveAccess = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dateCreated = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dateCreated = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastModified = options.longs === String ? "0" : 0; object.tlaProperties = null; } if (message.accessTypeUid != null && message.hasOwnProperty("accessTypeUid")) @@ -192534,21 +179536,17 @@ export const Folder = $root.Folder = (() => { if (message.canApproveAccess != null && message.hasOwnProperty("canApproveAccess")) object.canApproveAccess = message.canApproveAccess; if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dateCreated = typeof message.dateCreated === "number" ? BigInt(message.dateCreated) : $util.Long.fromBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0, false).toBigInt(); - else if (typeof message.dateCreated === "number") + if (typeof message.dateCreated === "number") object.dateCreated = options.longs === String ? String(message.dateCreated) : message.dateCreated; else object.dateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.dateCreated) : options.longs === Number ? new $util.LongBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0).toNumber() : message.dateCreated; if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastModified = typeof message.lastModified === "number" ? BigInt(message.lastModified) : $util.Long.fromBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0, false).toBigInt(); - else if (typeof message.lastModified === "number") + if (typeof message.lastModified === "number") object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; else object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; if (message.tlaProperties != null && message.hasOwnProperty("tlaProperties")) - object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options, q + 1); + object.tlaProperties = $root.common.tla.TLAProperties.toObject(message.tlaProperties, options); return object; }; @@ -192606,7 +179604,7 @@ export const Folder = $root.Folder = (() => { function AccessData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -192679,13 +179677,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AccessData.encode = function encode(message, writer, q) { + AccessData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.accessTypeUid != null && Object.hasOwnProperty.call(message, "accessTypeUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accessTypeUid); if (message.accessRoleType != null && Object.hasOwnProperty.call(message, "accessRoleType")) @@ -192697,7 +179691,7 @@ export const Folder = $root.Folder = (() => { if (message.hidden != null && Object.hasOwnProperty.call(message, "hidden")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.hidden); if (message.capabilities != null && Object.hasOwnProperty.call(message, "capabilities")) - $root.Folder.Capabilities.encode(message.capabilities, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Folder.Capabilities.encode(message.capabilities, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -192725,18 +179719,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AccessData.decode = function decode(reader, length, error, long) { + AccessData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.AccessData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.accessTypeUid = reader.bytes(); @@ -192759,11 +179747,11 @@ export const Folder = $root.Folder = (() => { break; } case 6: { - message.capabilities = $root.Folder.Capabilities.decode(reader, reader.uint32(), undefined, long + 1); + message.capabilities = $root.Folder.Capabilities.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -192794,13 +179782,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AccessData.verify = function verify(message, long) { + AccessData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.accessTypeUid != null && message.hasOwnProperty("accessTypeUid")) if (!(message.accessTypeUid && typeof message.accessTypeUid.length === "number" || $util.isString(message.accessTypeUid))) return "accessTypeUid: buffer expected"; @@ -192828,7 +179812,7 @@ export const Folder = $root.Folder = (() => { if (typeof message.hidden !== "boolean") return "hidden: boolean expected"; if (message.capabilities != null && message.hasOwnProperty("capabilities")) { - let error = $root.Folder.Capabilities.verify(message.capabilities, long + 1); + let error = $root.Folder.Capabilities.verify(message.capabilities); if (error) return "capabilities." + error; } @@ -192843,13 +179827,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.AccessData} AccessData */ - AccessData.fromObject = function fromObject(object, long) { + AccessData.fromObject = function fromObject(object) { if (object instanceof $root.Folder.AccessData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.AccessData(); if (object.accessTypeUid != null) if (typeof object.accessTypeUid === "string") @@ -192905,7 +179885,7 @@ export const Folder = $root.Folder = (() => { if (object.capabilities != null) { if (typeof object.capabilities !== "object") throw TypeError(".Folder.AccessData.capabilities: object expected"); - message.capabilities = $root.Folder.Capabilities.fromObject(object.capabilities, long + 1); + message.capabilities = $root.Folder.Capabilities.fromObject(object.capabilities); } return message; }; @@ -192919,13 +179899,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AccessData.toObject = function toObject(message, options, q) { + AccessData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -192952,7 +179928,7 @@ export const Folder = $root.Folder = (() => { if (message.hidden != null && message.hasOwnProperty("hidden")) object.hidden = message.hidden; if (message.capabilities != null && message.hasOwnProperty("capabilities")) - object.capabilities = $root.Folder.Capabilities.toObject(message.capabilities, options, q + 1); + object.capabilities = $root.Folder.Capabilities.toObject(message.capabilities, options); return object; }; @@ -193010,7 +179986,7 @@ export const Folder = $root.Folder = (() => { this.folderAccessRemoves = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -193059,22 +180035,18 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderAccessRequest.encode = function encode(message, writer, q) { + FolderAccessRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderAccessAdds != null && message.folderAccessAdds.length) for (let i = 0; i < message.folderAccessAdds.length; ++i) - $root.Folder.FolderAccessData.encode(message.folderAccessAdds[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.FolderAccessData.encode(message.folderAccessAdds[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.folderAccessUpdates != null && message.folderAccessUpdates.length) for (let i = 0; i < message.folderAccessUpdates.length; ++i) - $root.Folder.FolderAccessData.encode(message.folderAccessUpdates[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Folder.FolderAccessData.encode(message.folderAccessUpdates[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.folderAccessRemoves != null && message.folderAccessRemoves.length) for (let i = 0; i < message.folderAccessRemoves.length; ++i) - $root.Folder.FolderAccessData.encode(message.folderAccessRemoves[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Folder.FolderAccessData.encode(message.folderAccessRemoves[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -193102,39 +180074,33 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderAccessRequest.decode = function decode(reader, length, error, long) { + FolderAccessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAccessRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.folderAccessAdds && message.folderAccessAdds.length)) message.folderAccessAdds = []; - message.folderAccessAdds.push($root.Folder.FolderAccessData.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderAccessAdds.push($root.Folder.FolderAccessData.decode(reader, reader.uint32())); break; } case 2: { if (!(message.folderAccessUpdates && message.folderAccessUpdates.length)) message.folderAccessUpdates = []; - message.folderAccessUpdates.push($root.Folder.FolderAccessData.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderAccessUpdates.push($root.Folder.FolderAccessData.decode(reader, reader.uint32())); break; } case 3: { if (!(message.folderAccessRemoves && message.folderAccessRemoves.length)) message.folderAccessRemoves = []; - message.folderAccessRemoves.push($root.Folder.FolderAccessData.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderAccessRemoves.push($root.Folder.FolderAccessData.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -193165,18 +180131,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderAccessRequest.verify = function verify(message, long) { + FolderAccessRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderAccessAdds != null && message.hasOwnProperty("folderAccessAdds")) { if (!Array.isArray(message.folderAccessAdds)) return "folderAccessAdds: array expected"; for (let i = 0; i < message.folderAccessAdds.length; ++i) { - let error = $root.Folder.FolderAccessData.verify(message.folderAccessAdds[i], long + 1); + let error = $root.Folder.FolderAccessData.verify(message.folderAccessAdds[i]); if (error) return "folderAccessAdds." + error; } @@ -193185,7 +180147,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.folderAccessUpdates)) return "folderAccessUpdates: array expected"; for (let i = 0; i < message.folderAccessUpdates.length; ++i) { - let error = $root.Folder.FolderAccessData.verify(message.folderAccessUpdates[i], long + 1); + let error = $root.Folder.FolderAccessData.verify(message.folderAccessUpdates[i]); if (error) return "folderAccessUpdates." + error; } @@ -193194,7 +180156,7 @@ export const Folder = $root.Folder = (() => { if (!Array.isArray(message.folderAccessRemoves)) return "folderAccessRemoves: array expected"; for (let i = 0; i < message.folderAccessRemoves.length; ++i) { - let error = $root.Folder.FolderAccessData.verify(message.folderAccessRemoves[i], long + 1); + let error = $root.Folder.FolderAccessData.verify(message.folderAccessRemoves[i]); if (error) return "folderAccessRemoves." + error; } @@ -193210,13 +180172,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderAccessRequest} FolderAccessRequest */ - FolderAccessRequest.fromObject = function fromObject(object, long) { + FolderAccessRequest.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderAccessRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderAccessRequest(); if (object.folderAccessAdds) { if (!Array.isArray(object.folderAccessAdds)) @@ -193225,7 +180183,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderAccessAdds.length; ++i) { if (typeof object.folderAccessAdds[i] !== "object") throw TypeError(".Folder.FolderAccessRequest.folderAccessAdds: object expected"); - message.folderAccessAdds[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessAdds[i], long + 1); + message.folderAccessAdds[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessAdds[i]); } } if (object.folderAccessUpdates) { @@ -193235,7 +180193,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderAccessUpdates.length; ++i) { if (typeof object.folderAccessUpdates[i] !== "object") throw TypeError(".Folder.FolderAccessRequest.folderAccessUpdates: object expected"); - message.folderAccessUpdates[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessUpdates[i], long + 1); + message.folderAccessUpdates[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessUpdates[i]); } } if (object.folderAccessRemoves) { @@ -193245,7 +180203,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderAccessRemoves.length; ++i) { if (typeof object.folderAccessRemoves[i] !== "object") throw TypeError(".Folder.FolderAccessRequest.folderAccessRemoves: object expected"); - message.folderAccessRemoves[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessRemoves[i], long + 1); + message.folderAccessRemoves[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessRemoves[i]); } } return message; @@ -193260,13 +180218,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderAccessRequest.toObject = function toObject(message, options, q) { + FolderAccessRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.folderAccessAdds = []; @@ -193276,17 +180230,17 @@ export const Folder = $root.Folder = (() => { if (message.folderAccessAdds && message.folderAccessAdds.length) { object.folderAccessAdds = []; for (let j = 0; j < message.folderAccessAdds.length; ++j) - object.folderAccessAdds[j] = $root.Folder.FolderAccessData.toObject(message.folderAccessAdds[j], options, q + 1); + object.folderAccessAdds[j] = $root.Folder.FolderAccessData.toObject(message.folderAccessAdds[j], options); } if (message.folderAccessUpdates && message.folderAccessUpdates.length) { object.folderAccessUpdates = []; for (let j = 0; j < message.folderAccessUpdates.length; ++j) - object.folderAccessUpdates[j] = $root.Folder.FolderAccessData.toObject(message.folderAccessUpdates[j], options, q + 1); + object.folderAccessUpdates[j] = $root.Folder.FolderAccessData.toObject(message.folderAccessUpdates[j], options); } if (message.folderAccessRemoves && message.folderAccessRemoves.length) { object.folderAccessRemoves = []; for (let j = 0; j < message.folderAccessRemoves.length; ++j) - object.folderAccessRemoves[j] = $root.Folder.FolderAccessData.toObject(message.folderAccessRemoves[j], options, q + 1); + object.folderAccessRemoves[j] = $root.Folder.FolderAccessData.toObject(message.folderAccessRemoves[j], options); } return object; }; @@ -193344,7 +180298,7 @@ export const Folder = $root.Folder = (() => { function FolderAccessResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -193409,13 +180363,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderAccessResult.encode = function encode(message, writer, q) { + FolderAccessResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.accessUid != null && Object.hasOwnProperty.call(message, "accessUid")) @@ -193453,18 +180403,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderAccessResult.decode = function decode(reader, length, error, long) { + FolderAccessResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAccessResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -193487,7 +180431,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -193518,13 +180462,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderAccessResult.verify = function verify(message, long) { + FolderAccessResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -193568,13 +180508,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderAccessResult} FolderAccessResult */ - FolderAccessResult.fromObject = function fromObject(object, long) { + FolderAccessResult.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderAccessResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderAccessResult(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -193660,13 +180596,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderAccessResult.toObject = function toObject(message, options, q) { + FolderAccessResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -193750,7 +180682,7 @@ export const Folder = $root.Folder = (() => { this.folderAccessResults = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -193783,16 +180715,12 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderAccessResponse.encode = function encode(message, writer, q) { + FolderAccessResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderAccessResults != null && message.folderAccessResults.length) for (let i = 0; i < message.folderAccessResults.length; ++i) - $root.Folder.FolderAccessResult.encode(message.folderAccessResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.FolderAccessResult.encode(message.folderAccessResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -193820,27 +180748,21 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderAccessResponse.decode = function decode(reader, length, error, long) { + FolderAccessResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderAccessResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.folderAccessResults && message.folderAccessResults.length)) message.folderAccessResults = []; - message.folderAccessResults.push($root.Folder.FolderAccessResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderAccessResults.push($root.Folder.FolderAccessResult.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -193871,18 +180793,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderAccessResponse.verify = function verify(message, long) { + FolderAccessResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderAccessResults != null && message.hasOwnProperty("folderAccessResults")) { if (!Array.isArray(message.folderAccessResults)) return "folderAccessResults: array expected"; for (let i = 0; i < message.folderAccessResults.length; ++i) { - let error = $root.Folder.FolderAccessResult.verify(message.folderAccessResults[i], long + 1); + let error = $root.Folder.FolderAccessResult.verify(message.folderAccessResults[i]); if (error) return "folderAccessResults." + error; } @@ -193898,13 +180816,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.FolderAccessResponse} FolderAccessResponse */ - FolderAccessResponse.fromObject = function fromObject(object, long) { + FolderAccessResponse.fromObject = function fromObject(object) { if (object instanceof $root.Folder.FolderAccessResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.FolderAccessResponse(); if (object.folderAccessResults) { if (!Array.isArray(object.folderAccessResults)) @@ -193913,7 +180827,7 @@ export const Folder = $root.Folder = (() => { for (let i = 0; i < object.folderAccessResults.length; ++i) { if (typeof object.folderAccessResults[i] !== "object") throw TypeError(".Folder.FolderAccessResponse.folderAccessResults: object expected"); - message.folderAccessResults[i] = $root.Folder.FolderAccessResult.fromObject(object.folderAccessResults[i], long + 1); + message.folderAccessResults[i] = $root.Folder.FolderAccessResult.fromObject(object.folderAccessResults[i]); } } return message; @@ -193928,20 +180842,16 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderAccessResponse.toObject = function toObject(message, options, q) { + FolderAccessResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.folderAccessResults = []; if (message.folderAccessResults && message.folderAccessResults.length) { object.folderAccessResults = []; for (let j = 0; j < message.folderAccessResults.length; ++j) - object.folderAccessResults[j] = $root.Folder.FolderAccessResult.toObject(message.folderAccessResults[j], options, q + 1); + object.folderAccessResults[j] = $root.Folder.FolderAccessResult.toObject(message.folderAccessResults[j], options); } return object; }; @@ -194036,7 +180946,7 @@ export const Folder = $root.Folder = (() => { function UserInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -194077,13 +180987,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserInfo.encode = function encode(message, writer, q) { + UserInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -194115,18 +181021,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserInfo.decode = function decode(reader, length, error, long) { + UserInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.UserInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.accountUid = reader.bytes(); @@ -194137,7 +181037,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -194168,13 +181068,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserInfo.verify = function verify(message, long) { + UserInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.accountUid != null && message.hasOwnProperty("accountUid")) if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) return "accountUid: buffer expected"; @@ -194192,13 +181088,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.UserInfo} UserInfo */ - UserInfo.fromObject = function fromObject(object, long) { + UserInfo.fromObject = function fromObject(object) { if (object instanceof $root.Folder.UserInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.UserInfo(); if (object.accountUid != null) if (typeof object.accountUid === "string") @@ -194219,13 +181111,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserInfo.toObject = function toObject(message, options, q) { + UserInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -194295,7 +181183,7 @@ export const Folder = $root.Folder = (() => { function RecordData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -194344,15 +181232,11 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordData.encode = function encode(message, writer, q) { + RecordData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.user != null && Object.hasOwnProperty.call(message, "user")) - $root.Folder.UserInfo.encode(message.user, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Folder.UserInfo.encode(message.user, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.data != null && Object.hasOwnProperty.call(message, "data")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -194384,21 +181268,15 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordData.decode = function decode(reader, length, error, long) { + RecordData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.user = $root.Folder.UserInfo.decode(reader, reader.uint32(), undefined, long + 1); + message.user = $root.Folder.UserInfo.decode(reader, reader.uint32()); break; } case 2: { @@ -194410,7 +181288,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -194441,15 +181319,11 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordData.verify = function verify(message, long) { + RecordData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.user != null && message.hasOwnProperty("user")) { - let error = $root.Folder.UserInfo.verify(message.user, long + 1); + let error = $root.Folder.UserInfo.verify(message.user); if (error) return "user." + error; } @@ -194470,18 +181344,14 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.RecordData} RecordData */ - RecordData.fromObject = function fromObject(object, long) { + RecordData.fromObject = function fromObject(object) { if (object instanceof $root.Folder.RecordData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.RecordData(); if (object.user != null) { if (typeof object.user !== "object") throw TypeError(".Folder.RecordData.user: object expected"); - message.user = $root.Folder.UserInfo.fromObject(object.user, long + 1); + message.user = $root.Folder.UserInfo.fromObject(object.user); } if (object.data != null) if (typeof object.data === "string") @@ -194505,13 +181375,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordData.toObject = function toObject(message, options, q) { + RecordData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.user = null; @@ -194531,7 +181397,7 @@ export const Folder = $root.Folder = (() => { } } if (message.user != null && message.hasOwnProperty("user")) - object.user = $root.Folder.UserInfo.toObject(message.user, options, q + 1); + object.user = $root.Folder.UserInfo.toObject(message.user, options); if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.recordUid != null && message.hasOwnProperty("recordUid")) @@ -194592,7 +181458,7 @@ export const Folder = $root.Folder = (() => { function RecordKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -194649,13 +181515,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordKey.encode = function encode(message, writer, q) { + RecordKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userUid != null && Object.hasOwnProperty.call(message, "userUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.userUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -194691,18 +181553,12 @@ export const Folder = $root.Folder = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordKey.decode = function decode(reader, length, error, long) { + RecordKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userUid = reader.bytes(); @@ -194721,7 +181577,7 @@ export const Folder = $root.Folder = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -194752,13 +181608,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordKey.verify = function verify(message, long) { + RecordKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userUid != null && message.hasOwnProperty("userUid")) if (!(message.userUid && typeof message.userUid.length === "number" || $util.isString(message.userUid))) return "userUid: buffer expected"; @@ -194790,13 +181642,9 @@ export const Folder = $root.Folder = (() => { * @param {Object.} object Plain object * @returns {Folder.RecordKey} RecordKey */ - RecordKey.fromObject = function fromObject(object, long) { + RecordKey.fromObject = function fromObject(object) { if (object instanceof $root.Folder.RecordKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Folder.RecordKey(); if (object.userUid != null) if (typeof object.userUid === "string") @@ -194853,13 +181701,9 @@ export const Folder = $root.Folder = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordKey.toObject = function toObject(message, options, q) { + RecordKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -194979,7 +181823,7 @@ export const Records = $root.Records = (() => { function RecordType(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -195028,13 +181872,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordType.encode = function encode(message, writer, q) { + RecordType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordTypeId != null && Object.hasOwnProperty.call(message, "recordTypeId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.recordTypeId); if (message.content != null && Object.hasOwnProperty.call(message, "content")) @@ -195068,18 +181908,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordType.decode = function decode(reader, length, error, long) { + RecordType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordType(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordTypeId = reader.int32(); @@ -195094,7 +181928,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -195125,13 +181959,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordType.verify = function verify(message, long) { + RecordType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) if (!$util.isInteger(message.recordTypeId)) return "recordTypeId: integer expected"; @@ -195160,13 +181990,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordType} RecordType */ - RecordType.fromObject = function fromObject(object, long) { + RecordType.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordType) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordType(); if (object.recordTypeId != null) message.recordTypeId = object.recordTypeId | 0; @@ -195212,13 +182038,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordType.toObject = function toObject(message, options, q) { + RecordType.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.recordTypeId = 0; @@ -195286,7 +182108,7 @@ export const Records = $root.Records = (() => { function RecordTypesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -195343,13 +182165,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordTypesRequest.encode = function encode(message, writer, q) { + RecordTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.standard != null && Object.hasOwnProperty.call(message, "standard")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.standard); if (message.user != null && Object.hasOwnProperty.call(message, "user")) @@ -195385,18 +182203,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordTypesRequest.decode = function decode(reader, length, error, long) { + RecordTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypesRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.standard = reader.bool(); @@ -195415,7 +182227,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -195446,13 +182258,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordTypesRequest.verify = function verify(message, long) { + RecordTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.standard != null && message.hasOwnProperty("standard")) if (typeof message.standard !== "boolean") return "standard: boolean expected"; @@ -195476,13 +182284,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordTypesRequest} RecordTypesRequest */ - RecordTypesRequest.fromObject = function fromObject(object, long) { + RecordTypesRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordTypesRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordTypesRequest(); if (object.standard != null) message.standard = Boolean(object.standard); @@ -195504,13 +182308,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordTypesRequest.toObject = function toObject(message, options, q) { + RecordTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.standard = false; @@ -195583,7 +182383,7 @@ export const Records = $root.Records = (() => { this.recordTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -195648,16 +182448,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordTypesResponse.encode = function encode(message, writer, q) { + RecordTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordTypes != null && message.recordTypes.length) for (let i = 0; i < message.recordTypes.length; ++i) - $root.Records.RecordType.encode(message.recordTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordType.encode(message.recordTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.standardCounter != null && Object.hasOwnProperty.call(message, "standardCounter")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.standardCounter); if (message.userCounter != null && Object.hasOwnProperty.call(message, "userCounter")) @@ -195693,23 +182489,17 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordTypesResponse.decode = function decode(reader, length, error, long) { + RecordTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypesResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordTypes && message.recordTypes.length)) message.recordTypes = []; - message.recordTypes.push($root.Records.RecordType.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordTypes.push($root.Records.RecordType.decode(reader, reader.uint32())); break; } case 2: { @@ -195729,7 +182519,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -195760,18 +182550,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordTypesResponse.verify = function verify(message, long) { + RecordTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordTypes != null && message.hasOwnProperty("recordTypes")) { if (!Array.isArray(message.recordTypes)) return "recordTypes: array expected"; for (let i = 0; i < message.recordTypes.length; ++i) { - let error = $root.Records.RecordType.verify(message.recordTypes[i], long + 1); + let error = $root.Records.RecordType.verify(message.recordTypes[i]); if (error) return "recordTypes." + error; } @@ -195799,13 +182585,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordTypesResponse} RecordTypesResponse */ - RecordTypesResponse.fromObject = function fromObject(object, long) { + RecordTypesResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordTypesResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordTypesResponse(); if (object.recordTypes) { if (!Array.isArray(object.recordTypes)) @@ -195814,7 +182596,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.recordTypes.length; ++i) { if (typeof object.recordTypes[i] !== "object") throw TypeError(".Records.RecordTypesResponse.recordTypes: object expected"); - message.recordTypes[i] = $root.Records.RecordType.fromObject(object.recordTypes[i], long + 1); + message.recordTypes[i] = $root.Records.RecordType.fromObject(object.recordTypes[i]); } } if (object.standardCounter != null) @@ -195837,13 +182619,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordTypesResponse.toObject = function toObject(message, options, q) { + RecordTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordTypes = []; @@ -195856,7 +182634,7 @@ export const Records = $root.Records = (() => { if (message.recordTypes && message.recordTypes.length) { object.recordTypes = []; for (let j = 0; j < message.recordTypes.length; ++j) - object.recordTypes[j] = $root.Records.RecordType.toObject(message.recordTypes[j], options, q + 1); + object.recordTypes[j] = $root.Records.RecordType.toObject(message.recordTypes[j], options); } if (message.standardCounter != null && message.hasOwnProperty("standardCounter")) object.standardCounter = message.standardCounter; @@ -195919,7 +182697,7 @@ export const Records = $root.Records = (() => { function RecordTypeModifyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -195960,13 +182738,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordTypeModifyResponse.encode = function encode(message, writer, q) { + RecordTypeModifyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordTypeId != null && Object.hasOwnProperty.call(message, "recordTypeId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.recordTypeId); if (message.counter != null && Object.hasOwnProperty.call(message, "counter")) @@ -195998,18 +182772,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordTypeModifyResponse.decode = function decode(reader, length, error, long) { + RecordTypeModifyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypeModifyResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordTypeId = reader.int32(); @@ -196020,7 +182788,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -196051,13 +182819,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordTypeModifyResponse.verify = function verify(message, long) { + RecordTypeModifyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) if (!$util.isInteger(message.recordTypeId)) return "recordTypeId: integer expected"; @@ -196075,13 +182839,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordTypeModifyResponse} RecordTypeModifyResponse */ - RecordTypeModifyResponse.fromObject = function fromObject(object, long) { + RecordTypeModifyResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordTypeModifyResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordTypeModifyResponse(); if (object.recordTypeId != null) message.recordTypeId = object.recordTypeId | 0; @@ -196099,13 +182859,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordTypeModifyResponse.toObject = function toObject(message, options, q) { + RecordTypeModifyResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.recordTypeId = 0; @@ -196169,7 +182925,7 @@ export const Records = $root.Records = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -196210,13 +182966,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsGetRequest.encode = function encode(message, writer, q) { + RecordsGetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); @@ -196249,18 +183001,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsGetRequest.decode = function decode(reader, length, error, long) { + RecordsGetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsGetRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordUids && message.recordUids.length)) @@ -196273,7 +183019,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -196304,13 +183050,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsGetRequest.verify = function verify(message, long) { + RecordsGetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUids != null && message.hasOwnProperty("recordUids")) { if (!Array.isArray(message.recordUids)) return "recordUids: array expected"; @@ -196332,13 +183074,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsGetRequest} RecordsGetRequest */ - RecordsGetRequest.fromObject = function fromObject(object, long) { + RecordsGetRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsGetRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsGetRequest(); if (object.recordUids) { if (!Array.isArray(object.recordUids)) @@ -196352,7 +183090,7 @@ export const Records = $root.Records = (() => { } if (object.clientTime != null) if ($util.Long) - message.clientTime = $util.Long.fromValue(object.clientTime, false); + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; else if (typeof object.clientTime === "string") message.clientTime = parseInt(object.clientTime, 10); else if (typeof object.clientTime === "number") @@ -196371,31 +183109,25 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsGetRequest.toObject = function toObject(message, options, q) { + RecordsGetRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordUids = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientTime = options.longs === String ? "0" : 0; if (message.recordUids && message.recordUids.length) { object.recordUids = []; for (let j = 0; j < message.recordUids.length; ++j) object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; } if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientTime = typeof message.clientTime === "number" ? BigInt(message.clientTime) : $util.Long.fromBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientTime === "number") + if (typeof message.clientTime === "number") object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; else object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; @@ -196460,7 +183192,7 @@ export const Records = $root.Records = (() => { this.fileIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -196557,13 +183289,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Record.encode = function encode(message, writer, q) { + Record.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) @@ -196610,18 +183338,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Record.decode = function decode(reader, length, error, long) { + Record.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Record(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -196662,7 +183384,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -196693,13 +183415,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Record.verify = function verify(message, long) { + Record.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -196752,13 +183470,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.Record} Record */ - Record.fromObject = function fromObject(object, long) { + Record.fromObject = function fromObject(object) { if (object instanceof $root.Records.Record) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.Record(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -196820,7 +183534,7 @@ export const Records = $root.Records = (() => { message.version = object.version | 0; if (object.clientModifiedTime != null) if ($util.Long) - message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime, false); + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; else if (typeof object.clientModifiedTime === "string") message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); else if (typeof object.clientModifiedTime === "number") @@ -196829,7 +183543,7 @@ export const Records = $root.Records = (() => { message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -196858,13 +183572,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Record.toObject = function toObject(message, options, q) { + Record.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.fileIds = []; @@ -196901,14 +183611,14 @@ export const Records = $root.Records = (() => { object.version = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientModifiedTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientModifiedTime = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; @@ -196923,16 +183633,12 @@ export const Records = $root.Records = (() => { if (message.version != null && message.hasOwnProperty("version")) object.version = message.version; if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientModifiedTime = typeof message.clientModifiedTime === "number" ? BigInt(message.clientModifiedTime) : $util.Long.fromBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientModifiedTime === "number") + if (typeof message.clientModifiedTime === "number") object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -197019,7 +183725,7 @@ export const Records = $root.Records = (() => { function FolderRecordKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -197068,13 +183774,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderRecordKey.encode = function encode(message, writer, q) { + FolderRecordKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -197108,18 +183810,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderRecordKey.decode = function decode(reader, length, error, long) { + FolderRecordKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FolderRecordKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -197134,7 +183830,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -197165,13 +183861,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderRecordKey.verify = function verify(message, long) { + FolderRecordKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -197192,13 +183884,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.FolderRecordKey} FolderRecordKey */ - FolderRecordKey.fromObject = function fromObject(object, long) { + FolderRecordKey.fromObject = function fromObject(object) { if (object instanceof $root.Records.FolderRecordKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.FolderRecordKey(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -197227,13 +183915,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderRecordKey.toObject = function toObject(message, options, q) { + FolderRecordKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -197318,7 +184002,7 @@ export const Records = $root.Records = (() => { function Folder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -197367,13 +184051,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Folder.encode = function encode(message, writer, q) { + Folder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) @@ -197407,18 +184087,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Folder.decode = function decode(reader, length, error, long) { + Folder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Folder(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -197433,7 +184107,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -197464,13 +184138,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Folder.verify = function verify(message, long) { + Folder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -197501,13 +184171,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.Folder} Folder */ - Folder.fromObject = function fromObject(object, long) { + Folder.fromObject = function fromObject(object) { if (object instanceof $root.Records.Folder) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.Folder(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -197567,13 +184233,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Folder.toObject = function toObject(message, options, q) { + Folder.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -197655,7 +184317,7 @@ export const Records = $root.Records = (() => { this.folders = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -197720,13 +184382,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Team.encode = function encode(message, writer, q) { + Team.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) @@ -197737,7 +184395,7 @@ export const Records = $root.Records = (() => { writer.uint32(/* id 4, wireType 0 =*/32).int32(message.teamKeyType); if (message.folders != null && message.folders.length) for (let i = 0; i < message.folders.length; ++i) - $root.Records.Folder.encode(message.folders[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Records.Folder.encode(message.folders[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -197765,18 +184423,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Team.decode = function decode(reader, length, error, long) { + Team.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Team(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -197797,11 +184449,11 @@ export const Records = $root.Records = (() => { case 5: { if (!(message.folders && message.folders.length)) message.folders = []; - message.folders.push($root.Records.Folder.decode(reader, reader.uint32(), undefined, long + 1)); + message.folders.push($root.Records.Folder.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -197832,13 +184484,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Team.verify = function verify(message, long) { + Team.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -197865,7 +184513,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.folders)) return "folders: array expected"; for (let i = 0; i < message.folders.length; ++i) { - let error = $root.Records.Folder.verify(message.folders[i], long + 1); + let error = $root.Records.Folder.verify(message.folders[i]); if (error) return "folders." + error; } @@ -197881,13 +184529,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.Team} Team */ - Team.fromObject = function fromObject(object, long) { + Team.fromObject = function fromObject(object) { if (object instanceof $root.Records.Team) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.Team(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -197947,7 +184591,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.folders.length; ++i) { if (typeof object.folders[i] !== "object") throw TypeError(".Records.Team.folders: object expected"); - message.folders[i] = $root.Records.Folder.fromObject(object.folders[i], long + 1); + message.folders[i] = $root.Records.Folder.fromObject(object.folders[i]); } } return message; @@ -197962,13 +184606,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Team.toObject = function toObject(message, options, q) { + Team.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.folders = []; @@ -198007,7 +184647,7 @@ export const Records = $root.Records = (() => { if (message.folders && message.folders.length) { object.folders = []; for (let j = 0; j < message.folders.length; ++j) - object.folders[j] = $root.Records.Folder.toObject(message.folders[j], options, q + 1); + object.folders[j] = $root.Records.Folder.toObject(message.folders[j], options); } return object; }; @@ -198068,7 +184708,7 @@ export const Records = $root.Records = (() => { this.teams = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -198125,25 +184765,21 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsGetResponse.encode = function encode(message, writer, q) { + RecordsGetResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.Record.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.Record.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.folderRecordKeys != null && message.folderRecordKeys.length) for (let i = 0; i < message.folderRecordKeys.length; ++i) - $root.Records.FolderRecordKey.encode(message.folderRecordKeys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Records.FolderRecordKey.encode(message.folderRecordKeys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.folders != null && message.folders.length) for (let i = 0; i < message.folders.length; ++i) - $root.Records.Folder.encode(message.folders[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Records.Folder.encode(message.folders[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.teams != null && message.teams.length) for (let i = 0; i < message.teams.length; ++i) - $root.Records.Team.encode(message.teams[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Records.Team.encode(message.teams[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -198171,45 +184807,39 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsGetResponse.decode = function decode(reader, length, error, long) { + RecordsGetResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsGetResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Records.Record.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Records.Record.decode(reader, reader.uint32())); break; } case 2: { if (!(message.folderRecordKeys && message.folderRecordKeys.length)) message.folderRecordKeys = []; - message.folderRecordKeys.push($root.Records.FolderRecordKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderRecordKeys.push($root.Records.FolderRecordKey.decode(reader, reader.uint32())); break; } case 3: { if (!(message.folders && message.folders.length)) message.folders = []; - message.folders.push($root.Records.Folder.decode(reader, reader.uint32(), undefined, long + 1)); + message.folders.push($root.Records.Folder.decode(reader, reader.uint32())); break; } case 4: { if (!(message.teams && message.teams.length)) message.teams = []; - message.teams.push($root.Records.Team.decode(reader, reader.uint32(), undefined, long + 1)); + message.teams.push($root.Records.Team.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -198240,18 +184870,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsGetResponse.verify = function verify(message, long) { + RecordsGetResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.records != null && message.hasOwnProperty("records")) { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.Record.verify(message.records[i], long + 1); + let error = $root.Records.Record.verify(message.records[i]); if (error) return "records." + error; } @@ -198260,7 +184886,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.folderRecordKeys)) return "folderRecordKeys: array expected"; for (let i = 0; i < message.folderRecordKeys.length; ++i) { - let error = $root.Records.FolderRecordKey.verify(message.folderRecordKeys[i], long + 1); + let error = $root.Records.FolderRecordKey.verify(message.folderRecordKeys[i]); if (error) return "folderRecordKeys." + error; } @@ -198269,7 +184895,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.folders)) return "folders: array expected"; for (let i = 0; i < message.folders.length; ++i) { - let error = $root.Records.Folder.verify(message.folders[i], long + 1); + let error = $root.Records.Folder.verify(message.folders[i]); if (error) return "folders." + error; } @@ -198278,7 +184904,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.teams)) return "teams: array expected"; for (let i = 0; i < message.teams.length; ++i) { - let error = $root.Records.Team.verify(message.teams[i], long + 1); + let error = $root.Records.Team.verify(message.teams[i]); if (error) return "teams." + error; } @@ -198294,13 +184920,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsGetResponse} RecordsGetResponse */ - RecordsGetResponse.fromObject = function fromObject(object, long) { + RecordsGetResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsGetResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsGetResponse(); if (object.records) { if (!Array.isArray(object.records)) @@ -198309,7 +184931,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Records.RecordsGetResponse.records: object expected"); - message.records[i] = $root.Records.Record.fromObject(object.records[i], long + 1); + message.records[i] = $root.Records.Record.fromObject(object.records[i]); } } if (object.folderRecordKeys) { @@ -198319,7 +184941,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.folderRecordKeys.length; ++i) { if (typeof object.folderRecordKeys[i] !== "object") throw TypeError(".Records.RecordsGetResponse.folderRecordKeys: object expected"); - message.folderRecordKeys[i] = $root.Records.FolderRecordKey.fromObject(object.folderRecordKeys[i], long + 1); + message.folderRecordKeys[i] = $root.Records.FolderRecordKey.fromObject(object.folderRecordKeys[i]); } } if (object.folders) { @@ -198329,7 +184951,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.folders.length; ++i) { if (typeof object.folders[i] !== "object") throw TypeError(".Records.RecordsGetResponse.folders: object expected"); - message.folders[i] = $root.Records.Folder.fromObject(object.folders[i], long + 1); + message.folders[i] = $root.Records.Folder.fromObject(object.folders[i]); } } if (object.teams) { @@ -198339,7 +184961,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.teams.length; ++i) { if (typeof object.teams[i] !== "object") throw TypeError(".Records.RecordsGetResponse.teams: object expected"); - message.teams[i] = $root.Records.Team.fromObject(object.teams[i], long + 1); + message.teams[i] = $root.Records.Team.fromObject(object.teams[i]); } } return message; @@ -198354,13 +184976,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsGetResponse.toObject = function toObject(message, options, q) { + RecordsGetResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.records = []; @@ -198371,22 +184989,22 @@ export const Records = $root.Records = (() => { if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.Record.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Records.Record.toObject(message.records[j], options); } if (message.folderRecordKeys && message.folderRecordKeys.length) { object.folderRecordKeys = []; for (let j = 0; j < message.folderRecordKeys.length; ++j) - object.folderRecordKeys[j] = $root.Records.FolderRecordKey.toObject(message.folderRecordKeys[j], options, q + 1); + object.folderRecordKeys[j] = $root.Records.FolderRecordKey.toObject(message.folderRecordKeys[j], options); } if (message.folders && message.folders.length) { object.folders = []; for (let j = 0; j < message.folders.length; ++j) - object.folders[j] = $root.Records.Folder.toObject(message.folders[j], options, q + 1); + object.folders[j] = $root.Records.Folder.toObject(message.folders[j], options); } if (message.teams && message.teams.length) { object.teams = []; for (let j = 0; j < message.teams.length; ++j) - object.teams[j] = $root.Records.Team.toObject(message.teams[j], options, q + 1); + object.teams[j] = $root.Records.Team.toObject(message.teams[j], options); } return object; }; @@ -198457,7 +185075,7 @@ export const Records = $root.Records = (() => { function RecordLink(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -198498,13 +185116,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLink.encode = function encode(message, writer, q) { + RecordLink.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) @@ -198536,18 +185150,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordLink.decode = function decode(reader, length, error, long) { + RecordLink.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordLink(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -198558,7 +185166,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -198589,13 +185197,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordLink.verify = function verify(message, long) { + RecordLink.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -198613,13 +185217,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordLink} RecordLink */ - RecordLink.fromObject = function fromObject(object, long) { + RecordLink.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordLink) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordLink(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -198643,13 +185243,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordLink.toObject = function toObject(message, options, q) { + RecordLink.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -198724,7 +185320,7 @@ export const Records = $root.Records = (() => { function RecordAudit(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -198765,13 +185361,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordAudit.encode = function encode(message, writer, q) { + RecordAudit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.version != null && Object.hasOwnProperty.call(message, "version")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -198803,18 +185395,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordAudit.decode = function decode(reader, length, error, long) { + RecordAudit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAudit(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.version = reader.int32(); @@ -198825,7 +185411,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -198856,13 +185442,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordAudit.verify = function verify(message, long) { + RecordAudit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.version != null && message.hasOwnProperty("version")) if (!$util.isInteger(message.version)) return "version: integer expected"; @@ -198880,13 +185462,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordAudit} RecordAudit */ - RecordAudit.fromObject = function fromObject(object, long) { + RecordAudit.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordAudit) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordAudit(); if (object.version != null) message.version = object.version | 0; @@ -198907,13 +185485,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordAudit.toObject = function toObject(message, options, q) { + RecordAudit.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.version = 0; @@ -198981,7 +185555,7 @@ export const Records = $root.Records = (() => { function SecurityData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -199014,13 +185588,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityData.encode = function encode(message, writer, q) { + SecurityData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.data != null && Object.hasOwnProperty.call(message, "data")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); return writer; @@ -199050,25 +185620,19 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityData.decode = function decode(reader, length, error, long) { + SecurityData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SecurityData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.data = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -199099,13 +185663,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityData.verify = function verify(message, long) { + SecurityData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.data != null && message.hasOwnProperty("data")) if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) return "data: buffer expected"; @@ -199120,13 +185680,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.SecurityData} SecurityData */ - SecurityData.fromObject = function fromObject(object, long) { + SecurityData.fromObject = function fromObject(object) { if (object instanceof $root.Records.SecurityData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.SecurityData(); if (object.data != null) if (typeof object.data === "string") @@ -199145,13 +185701,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityData.toObject = function toObject(message, options, q) { + SecurityData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -199215,7 +185767,7 @@ export const Records = $root.Records = (() => { function SecurityScoreData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -199248,13 +185800,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityScoreData.encode = function encode(message, writer, q) { + SecurityScoreData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.data != null && Object.hasOwnProperty.call(message, "data")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); return writer; @@ -199284,25 +185832,19 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityScoreData.decode = function decode(reader, length, error, long) { + SecurityScoreData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SecurityScoreData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.data = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -199333,13 +185875,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityScoreData.verify = function verify(message, long) { + SecurityScoreData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.data != null && message.hasOwnProperty("data")) if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) return "data: buffer expected"; @@ -199354,13 +185892,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.SecurityScoreData} SecurityScoreData */ - SecurityScoreData.fromObject = function fromObject(object, long) { + SecurityScoreData.fromObject = function fromObject(object) { if (object instanceof $root.Records.SecurityScoreData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.SecurityScoreData(); if (object.data != null) if (typeof object.data === "string") @@ -199379,13 +185913,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityScoreData.toObject = function toObject(message, options, q) { + SecurityScoreData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -199461,7 +185991,7 @@ export const Records = $root.Records = (() => { this.recordLinks = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -199582,13 +186112,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordAdd.encode = function encode(message, writer, q) { + RecordAdd.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) @@ -199607,13 +186133,13 @@ export const Records = $root.Records = (() => { writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.folderKey); if (message.recordLinks != null && message.recordLinks.length) for (let i = 0; i < message.recordLinks.length; ++i) - $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) - $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) - $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim(); + $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; @@ -199641,18 +186167,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordAdd.decode = function decode(reader, length, error, long) { + RecordAdd.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAdd(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -199689,23 +186209,23 @@ export const Records = $root.Records = (() => { case 9: { if (!(message.recordLinks && message.recordLinks.length)) message.recordLinks = []; - message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32())); break; } case 10: { - message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32(), undefined, long + 1); + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } case 11: { - message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32(), undefined, long + 1); + message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32()); break; } case 12: { - message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32(), undefined, long + 1); + message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -199736,13 +186256,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordAdd.verify = function verify(message, long) { + RecordAdd.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -199777,23 +186293,23 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.recordLinks)) return "recordLinks: array expected"; for (let i = 0; i < message.recordLinks.length; ++i) { - let error = $root.Records.RecordLink.verify(message.recordLinks[i], long + 1); + let error = $root.Records.RecordLink.verify(message.recordLinks[i]); if (error) return "recordLinks." + error; } } if (message.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); + let error = $root.Records.RecordAudit.verify(message.audit); if (error) return "audit." + error; } if (message.securityData != null && message.hasOwnProperty("securityData")) { - let error = $root.Records.SecurityData.verify(message.securityData, long + 1); + let error = $root.Records.SecurityData.verify(message.securityData); if (error) return "securityData." + error; } if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { - let error = $root.Records.SecurityScoreData.verify(message.securityScoreData, long + 1); + let error = $root.Records.SecurityScoreData.verify(message.securityScoreData); if (error) return "securityScoreData." + error; } @@ -199808,13 +186324,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordAdd} RecordAdd */ - RecordAdd.fromObject = function fromObject(object, long) { + RecordAdd.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordAdd) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordAdd(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -199828,7 +186340,7 @@ export const Records = $root.Records = (() => { message.recordKey = object.recordKey; if (object.clientModifiedTime != null) if ($util.Long) - message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime, false); + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; else if (typeof object.clientModifiedTime === "string") message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); else if (typeof object.clientModifiedTime === "number") @@ -199882,23 +186394,23 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.recordLinks.length; ++i) { if (typeof object.recordLinks[i] !== "object") throw TypeError(".Records.RecordAdd.recordLinks: object expected"); - message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i], long + 1); + message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i]); } } if (object.audit != null) { if (typeof object.audit !== "object") throw TypeError(".Records.RecordAdd.audit: object expected"); - message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); } if (object.securityData != null) { if (typeof object.securityData !== "object") throw TypeError(".Records.RecordAdd.securityData: object expected"); - message.securityData = $root.Records.SecurityData.fromObject(object.securityData, long + 1); + message.securityData = $root.Records.SecurityData.fromObject(object.securityData); } if (object.securityScoreData != null) { if (typeof object.securityScoreData !== "object") throw TypeError(".Records.RecordAdd.securityScoreData: object expected"); - message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData, long + 1); + message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData); } return message; }; @@ -199912,13 +186424,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordAdd.toObject = function toObject(message, options, q) { + RecordAdd.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordLinks = []; @@ -199939,9 +186447,9 @@ export const Records = $root.Records = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientModifiedTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientModifiedTime = options.longs === String ? "0" : 0; if (options.bytes === String) object.data = ""; else { @@ -199980,9 +186488,7 @@ export const Records = $root.Records = (() => { if (message.recordKey != null && message.hasOwnProperty("recordKey")) object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientModifiedTime = typeof message.clientModifiedTime === "number" ? BigInt(message.clientModifiedTime) : $util.Long.fromBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientModifiedTime === "number") + if (typeof message.clientModifiedTime === "number") object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; @@ -199999,14 +186505,14 @@ export const Records = $root.Records = (() => { if (message.recordLinks && message.recordLinks.length) { object.recordLinks = []; for (let j = 0; j < message.recordLinks.length; ++j) - object.recordLinks[j] = $root.Records.RecordLink.toObject(message.recordLinks[j], options, q + 1); + object.recordLinks[j] = $root.Records.RecordLink.toObject(message.recordLinks[j], options); } if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); if (message.securityData != null && message.hasOwnProperty("securityData")) - object.securityData = $root.Records.SecurityData.toObject(message.securityData, options, q + 1); + object.securityData = $root.Records.SecurityData.toObject(message.securityData, options); if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) - object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options, q + 1); + object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options); return object; }; @@ -200062,7 +186568,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -200111,16 +186617,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsAddRequest.encode = function encode(message, writer, q) { + RecordsAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordAdd.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordAdd.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) @@ -200152,23 +186654,17 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsAddRequest.decode = function decode(reader, length, error, long) { + RecordsAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Records.RecordAdd.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Records.RecordAdd.decode(reader, reader.uint32())); break; } case 2: { @@ -200180,7 +186676,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -200211,18 +186707,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsAddRequest.verify = function verify(message, long) { + RecordsAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.records != null && message.hasOwnProperty("records")) { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordAdd.verify(message.records[i], long + 1); + let error = $root.Records.RecordAdd.verify(message.records[i]); if (error) return "records." + error; } @@ -200254,13 +186746,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsAddRequest} RecordsAddRequest */ - RecordsAddRequest.fromObject = function fromObject(object, long) { + RecordsAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsAddRequest(); if (object.records) { if (!Array.isArray(object.records)) @@ -200269,12 +186757,12 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Records.RecordsAddRequest.records: object expected"); - message.records[i] = $root.Records.RecordAdd.fromObject(object.records[i], long + 1); + message.records[i] = $root.Records.RecordAdd.fromObject(object.records[i]); } } if (object.clientTime != null) if ($util.Long) - message.clientTime = $util.Long.fromValue(object.clientTime, false); + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; else if (typeof object.clientTime === "string") message.clientTime = parseInt(object.clientTime, 10); else if (typeof object.clientTime === "number") @@ -200329,33 +186817,27 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsAddRequest.toObject = function toObject(message, options, q) { + RecordsAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.records = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientTime = options.longs === String ? "0" : 0; object.securityDataKeyType = options.enums === String ? "NO_KEY" : 0; } if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordAdd.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Records.RecordAdd.toObject(message.records[j], options); } if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientTime = typeof message.clientTime === "number" ? BigInt(message.clientTime) : $util.Long.fromBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientTime === "number") + if (typeof message.clientTime === "number") object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; else object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; @@ -200424,7 +186906,7 @@ export const Records = $root.Records = (() => { this.recordLinksRemove = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -200529,13 +187011,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordUpdate.encode = function encode(message, writer, q) { + RecordUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) @@ -200548,16 +187026,16 @@ export const Records = $root.Records = (() => { writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); if (message.recordLinksAdd != null && message.recordLinksAdd.length) for (let i = 0; i < message.recordLinksAdd.length; ++i) - $root.Records.RecordLink.encode(message.recordLinksAdd[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Records.RecordLink.encode(message.recordLinksAdd[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.recordLinksRemove != null && message.recordLinksRemove.length) for (let i = 0; i < message.recordLinksRemove.length; ++i) writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.recordLinksRemove[i]); if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) - $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) - $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; @@ -200585,18 +187063,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordUpdate.decode = function decode(reader, length, error, long) { + RecordUpdate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordUpdate(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -200621,7 +187093,7 @@ export const Records = $root.Records = (() => { case 6: { if (!(message.recordLinksAdd && message.recordLinksAdd.length)) message.recordLinksAdd = []; - message.recordLinksAdd.push($root.Records.RecordLink.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordLinksAdd.push($root.Records.RecordLink.decode(reader, reader.uint32())); break; } case 7: { @@ -200631,19 +187103,19 @@ export const Records = $root.Records = (() => { break; } case 8: { - message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32(), undefined, long + 1); + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } case 9: { - message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32(), undefined, long + 1); + message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32()); break; } case 10: { - message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32(), undefined, long + 1); + message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -200674,13 +187146,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordUpdate.verify = function verify(message, long) { + RecordUpdate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -200700,7 +187168,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.recordLinksAdd)) return "recordLinksAdd: array expected"; for (let i = 0; i < message.recordLinksAdd.length; ++i) { - let error = $root.Records.RecordLink.verify(message.recordLinksAdd[i], long + 1); + let error = $root.Records.RecordLink.verify(message.recordLinksAdd[i]); if (error) return "recordLinksAdd." + error; } @@ -200713,17 +187181,17 @@ export const Records = $root.Records = (() => { return "recordLinksRemove: buffer[] expected"; } if (message.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); + let error = $root.Records.RecordAudit.verify(message.audit); if (error) return "audit." + error; } if (message.securityData != null && message.hasOwnProperty("securityData")) { - let error = $root.Records.SecurityData.verify(message.securityData, long + 1); + let error = $root.Records.SecurityData.verify(message.securityData); if (error) return "securityData." + error; } if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { - let error = $root.Records.SecurityScoreData.verify(message.securityScoreData, long + 1); + let error = $root.Records.SecurityScoreData.verify(message.securityScoreData); if (error) return "securityScoreData." + error; } @@ -200738,13 +187206,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordUpdate} RecordUpdate */ - RecordUpdate.fromObject = function fromObject(object, long) { + RecordUpdate.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordUpdate) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordUpdate(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -200753,7 +187217,7 @@ export const Records = $root.Records = (() => { message.recordUid = object.recordUid; if (object.clientModifiedTime != null) if ($util.Long) - message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime, false); + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; else if (typeof object.clientModifiedTime === "string") message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); else if (typeof object.clientModifiedTime === "number") @@ -200762,7 +187226,7 @@ export const Records = $root.Records = (() => { message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -200786,7 +187250,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.recordLinksAdd.length; ++i) { if (typeof object.recordLinksAdd[i] !== "object") throw TypeError(".Records.RecordUpdate.recordLinksAdd: object expected"); - message.recordLinksAdd[i] = $root.Records.RecordLink.fromObject(object.recordLinksAdd[i], long + 1); + message.recordLinksAdd[i] = $root.Records.RecordLink.fromObject(object.recordLinksAdd[i]); } } if (object.recordLinksRemove) { @@ -200802,17 +187266,17 @@ export const Records = $root.Records = (() => { if (object.audit != null) { if (typeof object.audit !== "object") throw TypeError(".Records.RecordUpdate.audit: object expected"); - message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); } if (object.securityData != null) { if (typeof object.securityData !== "object") throw TypeError(".Records.RecordUpdate.securityData: object expected"); - message.securityData = $root.Records.SecurityData.fromObject(object.securityData, long + 1); + message.securityData = $root.Records.SecurityData.fromObject(object.securityData); } if (object.securityScoreData != null) { if (typeof object.securityScoreData !== "object") throw TypeError(".Records.RecordUpdate.securityScoreData: object expected"); - message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData, long + 1); + message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData); } return message; }; @@ -200826,13 +187290,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordUpdate.toObject = function toObject(message, options, q) { + RecordUpdate.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.recordLinksAdd = []; @@ -200848,14 +187308,14 @@ export const Records = $root.Records = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientModifiedTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientModifiedTime = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) object.data = ""; else { @@ -200877,16 +187337,12 @@ export const Records = $root.Records = (() => { if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientModifiedTime = typeof message.clientModifiedTime === "number" ? BigInt(message.clientModifiedTime) : $util.Long.fromBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientModifiedTime === "number") + if (typeof message.clientModifiedTime === "number") object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -200897,7 +187353,7 @@ export const Records = $root.Records = (() => { if (message.recordLinksAdd && message.recordLinksAdd.length) { object.recordLinksAdd = []; for (let j = 0; j < message.recordLinksAdd.length; ++j) - object.recordLinksAdd[j] = $root.Records.RecordLink.toObject(message.recordLinksAdd[j], options, q + 1); + object.recordLinksAdd[j] = $root.Records.RecordLink.toObject(message.recordLinksAdd[j], options); } if (message.recordLinksRemove && message.recordLinksRemove.length) { object.recordLinksRemove = []; @@ -200905,11 +187361,11 @@ export const Records = $root.Records = (() => { object.recordLinksRemove[j] = options.bytes === String ? $util.base64.encode(message.recordLinksRemove[j], 0, message.recordLinksRemove[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordLinksRemove[j]) : message.recordLinksRemove[j]; } if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); if (message.securityData != null && message.hasOwnProperty("securityData")) - object.securityData = $root.Records.SecurityData.toObject(message.securityData, options, q + 1); + object.securityData = $root.Records.SecurityData.toObject(message.securityData, options); if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) - object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options, q + 1); + object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options); return object; }; @@ -200965,7 +187421,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -201014,16 +187470,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUpdateRequest.encode = function encode(message, writer, q) { + RecordsUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordUpdate.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordUpdate.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) @@ -201055,23 +187507,17 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsUpdateRequest.decode = function decode(reader, length, error, long) { + RecordsUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Records.RecordUpdate.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Records.RecordUpdate.decode(reader, reader.uint32())); break; } case 2: { @@ -201083,7 +187529,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -201114,18 +187560,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsUpdateRequest.verify = function verify(message, long) { + RecordsUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.records != null && message.hasOwnProperty("records")) { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordUpdate.verify(message.records[i], long + 1); + let error = $root.Records.RecordUpdate.verify(message.records[i]); if (error) return "records." + error; } @@ -201157,13 +187599,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsUpdateRequest} RecordsUpdateRequest */ - RecordsUpdateRequest.fromObject = function fromObject(object, long) { + RecordsUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsUpdateRequest(); if (object.records) { if (!Array.isArray(object.records)) @@ -201172,12 +187610,12 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Records.RecordsUpdateRequest.records: object expected"); - message.records[i] = $root.Records.RecordUpdate.fromObject(object.records[i], long + 1); + message.records[i] = $root.Records.RecordUpdate.fromObject(object.records[i]); } } if (object.clientTime != null) if ($util.Long) - message.clientTime = $util.Long.fromValue(object.clientTime, false); + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; else if (typeof object.clientTime === "string") message.clientTime = parseInt(object.clientTime, 10); else if (typeof object.clientTime === "number") @@ -201232,33 +187670,27 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUpdateRequest.toObject = function toObject(message, options, q) { + RecordsUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.records = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientTime = options.longs === String ? "0" : 0; object.securityDataKeyType = options.enums === String ? "NO_KEY" : 0; } if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordUpdate.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Records.RecordUpdate.toObject(message.records[j], options); } if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientTime = typeof message.clientTime === "number" ? BigInt(message.clientTime) : $util.Long.fromBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientTime === "number") + if (typeof message.clientTime === "number") object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; else object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; @@ -201321,7 +187753,7 @@ export const Records = $root.Records = (() => { function RecordFileForConversion(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -201394,13 +187826,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordFileForConversion.encode = function encode(message, writer, q) { + RecordFileForConversion.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.fileFileId != null && Object.hasOwnProperty.call(message, "fileFileId")) @@ -201440,18 +187868,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordFileForConversion.decode = function decode(reader, length, error, long) { + RecordFileForConversion.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordFileForConversion(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -201478,7 +187900,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -201509,13 +187931,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordFileForConversion.verify = function verify(message, long) { + RecordFileForConversion.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -201545,13 +187963,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordFileForConversion} RecordFileForConversion */ - RecordFileForConversion.fromObject = function fromObject(object, long) { + RecordFileForConversion.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordFileForConversion) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordFileForConversion(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -201589,13 +188003,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordFileForConversion.toObject = function toObject(message, options, q) { + RecordFileForConversion.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -201694,7 +188104,7 @@ export const Records = $root.Records = (() => { function RecordFolderForConversion(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -201735,13 +188145,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordFolderForConversion.encode = function encode(message, writer, q) { + RecordFolderForConversion.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.recordFolderKey != null && Object.hasOwnProperty.call(message, "recordFolderKey")) @@ -201773,18 +188179,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordFolderForConversion.decode = function decode(reader, length, error, long) { + RecordFolderForConversion.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordFolderForConversion(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -201795,7 +188195,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -201826,13 +188226,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordFolderForConversion.verify = function verify(message, long) { + RecordFolderForConversion.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -201850,13 +188246,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordFolderForConversion} RecordFolderForConversion */ - RecordFolderForConversion.fromObject = function fromObject(object, long) { + RecordFolderForConversion.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordFolderForConversion) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordFolderForConversion(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -201880,13 +188272,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordFolderForConversion.toObject = function toObject(message, options, q) { + RecordFolderForConversion.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -201969,7 +188357,7 @@ export const Records = $root.Records = (() => { this.folderKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -202058,13 +188446,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordConvertToV3.encode = function encode(message, writer, q) { + RecordConvertToV3.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) @@ -202076,13 +188460,13 @@ export const Records = $root.Records = (() => { if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.recordFile != null && message.recordFile.length) for (let i = 0; i < message.recordFile.length; ++i) - $root.Records.RecordFileForConversion.encode(message.recordFile[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Records.RecordFileForConversion.encode(message.recordFile[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.folderKey != null && message.folderKey.length) for (let i = 0; i < message.folderKey.length; ++i) - $root.Records.RecordFolderForConversion.encode(message.folderKey[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Records.RecordFolderForConversion.encode(message.folderKey[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; @@ -202110,18 +188494,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordConvertToV3.decode = function decode(reader, length, error, long) { + RecordConvertToV3.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordConvertToV3(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -202144,23 +188522,23 @@ export const Records = $root.Records = (() => { break; } case 6: { - message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32(), undefined, long + 1); + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } case 7: { if (!(message.recordFile && message.recordFile.length)) message.recordFile = []; - message.recordFile.push($root.Records.RecordFileForConversion.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordFile.push($root.Records.RecordFileForConversion.decode(reader, reader.uint32())); break; } case 8: { if (!(message.folderKey && message.folderKey.length)) message.folderKey = []; - message.folderKey.push($root.Records.RecordFolderForConversion.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderKey.push($root.Records.RecordFolderForConversion.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -202191,13 +188569,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordConvertToV3.verify = function verify(message, long) { + RecordConvertToV3.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -202214,7 +188588,7 @@ export const Records = $root.Records = (() => { if (!(message.nonSharedData && typeof message.nonSharedData.length === "number" || $util.isString(message.nonSharedData))) return "nonSharedData: buffer expected"; if (message.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); + let error = $root.Records.RecordAudit.verify(message.audit); if (error) return "audit." + error; } @@ -202222,7 +188596,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.recordFile)) return "recordFile: array expected"; for (let i = 0; i < message.recordFile.length; ++i) { - let error = $root.Records.RecordFileForConversion.verify(message.recordFile[i], long + 1); + let error = $root.Records.RecordFileForConversion.verify(message.recordFile[i]); if (error) return "recordFile." + error; } @@ -202231,7 +188605,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.folderKey)) return "folderKey: array expected"; for (let i = 0; i < message.folderKey.length; ++i) { - let error = $root.Records.RecordFolderForConversion.verify(message.folderKey[i], long + 1); + let error = $root.Records.RecordFolderForConversion.verify(message.folderKey[i]); if (error) return "folderKey." + error; } @@ -202247,13 +188621,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordConvertToV3} RecordConvertToV3 */ - RecordConvertToV3.fromObject = function fromObject(object, long) { + RecordConvertToV3.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordConvertToV3) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordConvertToV3(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -202262,7 +188632,7 @@ export const Records = $root.Records = (() => { message.recordUid = object.recordUid; if (object.clientModifiedTime != null) if ($util.Long) - message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime, false); + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; else if (typeof object.clientModifiedTime === "string") message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); else if (typeof object.clientModifiedTime === "number") @@ -202271,7 +188641,7 @@ export const Records = $root.Records = (() => { message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -202291,7 +188661,7 @@ export const Records = $root.Records = (() => { if (object.audit != null) { if (typeof object.audit !== "object") throw TypeError(".Records.RecordConvertToV3.audit: object expected"); - message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); } if (object.recordFile) { if (!Array.isArray(object.recordFile)) @@ -202300,7 +188670,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.recordFile.length; ++i) { if (typeof object.recordFile[i] !== "object") throw TypeError(".Records.RecordConvertToV3.recordFile: object expected"); - message.recordFile[i] = $root.Records.RecordFileForConversion.fromObject(object.recordFile[i], long + 1); + message.recordFile[i] = $root.Records.RecordFileForConversion.fromObject(object.recordFile[i]); } } if (object.folderKey) { @@ -202310,7 +188680,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.folderKey.length; ++i) { if (typeof object.folderKey[i] !== "object") throw TypeError(".Records.RecordConvertToV3.folderKey: object expected"); - message.folderKey[i] = $root.Records.RecordFolderForConversion.fromObject(object.folderKey[i], long + 1); + message.folderKey[i] = $root.Records.RecordFolderForConversion.fromObject(object.folderKey[i]); } } return message; @@ -202325,13 +188695,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordConvertToV3.toObject = function toObject(message, options, q) { + RecordConvertToV3.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.recordFile = []; @@ -202347,14 +188713,14 @@ export const Records = $root.Records = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientModifiedTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientModifiedTime = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) object.data = ""; else { @@ -202374,16 +188740,12 @@ export const Records = $root.Records = (() => { if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientModifiedTime = typeof message.clientModifiedTime === "number" ? BigInt(message.clientModifiedTime) : $util.Long.fromBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientModifiedTime === "number") + if (typeof message.clientModifiedTime === "number") object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -202392,16 +188754,16 @@ export const Records = $root.Records = (() => { if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); if (message.recordFile && message.recordFile.length) { object.recordFile = []; for (let j = 0; j < message.recordFile.length; ++j) - object.recordFile[j] = $root.Records.RecordFileForConversion.toObject(message.recordFile[j], options, q + 1); + object.recordFile[j] = $root.Records.RecordFileForConversion.toObject(message.recordFile[j], options); } if (message.folderKey && message.folderKey.length) { object.folderKey = []; for (let j = 0; j < message.folderKey.length; ++j) - object.folderKey[j] = $root.Records.RecordFolderForConversion.toObject(message.folderKey[j], options, q + 1); + object.folderKey[j] = $root.Records.RecordFolderForConversion.toObject(message.folderKey[j], options); } return object; }; @@ -202457,7 +188819,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -202498,16 +188860,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsConvertToV3Request.encode = function encode(message, writer, q) { + RecordsConvertToV3Request.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordConvertToV3.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordConvertToV3.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); return writer; @@ -202537,23 +188895,17 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsConvertToV3Request.decode = function decode(reader, length, error, long) { + RecordsConvertToV3Request.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsConvertToV3Request(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Records.RecordConvertToV3.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Records.RecordConvertToV3.decode(reader, reader.uint32())); break; } case 2: { @@ -202561,7 +188913,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -202592,18 +188944,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsConvertToV3Request.verify = function verify(message, long) { + RecordsConvertToV3Request.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.records != null && message.hasOwnProperty("records")) { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordConvertToV3.verify(message.records[i], long + 1); + let error = $root.Records.RecordConvertToV3.verify(message.records[i]); if (error) return "records." + error; } @@ -202622,13 +188970,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsConvertToV3Request} RecordsConvertToV3Request */ - RecordsConvertToV3Request.fromObject = function fromObject(object, long) { + RecordsConvertToV3Request.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsConvertToV3Request) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsConvertToV3Request(); if (object.records) { if (!Array.isArray(object.records)) @@ -202637,12 +188981,12 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Records.RecordsConvertToV3Request.records: object expected"); - message.records[i] = $root.Records.RecordConvertToV3.fromObject(object.records[i], long + 1); + message.records[i] = $root.Records.RecordConvertToV3.fromObject(object.records[i]); } } if (object.clientTime != null) if ($util.Long) - message.clientTime = $util.Long.fromValue(object.clientTime, false); + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; else if (typeof object.clientTime === "string") message.clientTime = parseInt(object.clientTime, 10); else if (typeof object.clientTime === "number") @@ -202661,31 +189005,25 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsConvertToV3Request.toObject = function toObject(message, options, q) { + RecordsConvertToV3Request.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.records = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientTime = options.longs === String ? "0" : 0; if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordConvertToV3.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Records.RecordConvertToV3.toObject(message.records[j], options); } if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientTime = typeof message.clientTime === "number" ? BigInt(message.clientTime) : $util.Long.fromBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientTime === "number") + if (typeof message.clientTime === "number") object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; else object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; @@ -202742,7 +189080,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -202775,13 +189113,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsRemoveRequest.encode = function encode(message, writer, q) { + RecordsRemoveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.records[i]); @@ -202812,18 +189146,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsRemoveRequest.decode = function decode(reader, length, error, long) { + RecordsRemoveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsRemoveRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.records && message.records.length)) @@ -202832,7 +189160,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -202863,13 +189191,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsRemoveRequest.verify = function verify(message, long) { + RecordsRemoveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.records != null && message.hasOwnProperty("records")) { if (!Array.isArray(message.records)) return "records: array expected"; @@ -202888,13 +189212,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsRemoveRequest} RecordsRemoveRequest */ - RecordsRemoveRequest.fromObject = function fromObject(object, long) { + RecordsRemoveRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsRemoveRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsRemoveRequest(); if (object.records) { if (!Array.isArray(object.records)) @@ -202918,13 +189238,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsRemoveRequest.toObject = function toObject(message, options, q) { + RecordsRemoveRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.records = []; @@ -202986,7 +189302,7 @@ export const Records = $root.Records = (() => { function RecordRevert(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -203027,13 +189343,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordRevert.encode = function encode(message, writer, q) { + RecordRevert.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.revertToRevision != null && Object.hasOwnProperty.call(message, "revertToRevision")) @@ -203065,18 +189377,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordRevert.decode = function decode(reader, length, error, long) { + RecordRevert.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordRevert(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -203087,7 +189393,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -203118,13 +189424,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordRevert.verify = function verify(message, long) { + RecordRevert.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -203142,13 +189444,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordRevert} RecordRevert */ - RecordRevert.fromObject = function fromObject(object, long) { + RecordRevert.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordRevert) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordRevert(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -203157,7 +189455,7 @@ export const Records = $root.Records = (() => { message.recordUid = object.recordUid; if (object.revertToRevision != null) if ($util.Long) - message.revertToRevision = $util.Long.fromValue(object.revertToRevision, false); + (message.revertToRevision = $util.Long.fromValue(object.revertToRevision)).unsigned = false; else if (typeof object.revertToRevision === "string") message.revertToRevision = parseInt(object.revertToRevision, 10); else if (typeof object.revertToRevision === "number") @@ -203176,13 +189474,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordRevert.toObject = function toObject(message, options, q) { + RecordRevert.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -203194,16 +189488,14 @@ export const Records = $root.Records = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revertToRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revertToRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revertToRevision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revertToRevision = options.longs === String ? "0" : 0; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.revertToRevision != null && message.hasOwnProperty("revertToRevision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revertToRevision = typeof message.revertToRevision === "number" ? BigInt(message.revertToRevision) : $util.Long.fromBits(message.revertToRevision.low >>> 0, message.revertToRevision.high >>> 0, false).toBigInt(); - else if (typeof message.revertToRevision === "number") + if (typeof message.revertToRevision === "number") object.revertToRevision = options.longs === String ? String(message.revertToRevision) : message.revertToRevision; else object.revertToRevision = options.longs === String ? $util.Long.prototype.toString.call(message.revertToRevision) : options.longs === Number ? new $util.LongBits(message.revertToRevision.low >>> 0, message.revertToRevision.high >>> 0).toNumber() : message.revertToRevision; @@ -203260,7 +189552,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -203293,16 +189585,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsRevertRequest.encode = function encode(message, writer, q) { + RecordsRevertRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordRevert.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordRevert.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -203330,27 +189618,21 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsRevertRequest.decode = function decode(reader, length, error, long) { + RecordsRevertRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsRevertRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Records.RecordRevert.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Records.RecordRevert.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -203381,18 +189663,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsRevertRequest.verify = function verify(message, long) { + RecordsRevertRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.records != null && message.hasOwnProperty("records")) { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordRevert.verify(message.records[i], long + 1); + let error = $root.Records.RecordRevert.verify(message.records[i]); if (error) return "records." + error; } @@ -203408,13 +189686,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsRevertRequest} RecordsRevertRequest */ - RecordsRevertRequest.fromObject = function fromObject(object, long) { + RecordsRevertRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsRevertRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsRevertRequest(); if (object.records) { if (!Array.isArray(object.records)) @@ -203423,7 +189697,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Records.RecordsRevertRequest.records: object expected"); - message.records[i] = $root.Records.RecordRevert.fromObject(object.records[i], long + 1); + message.records[i] = $root.Records.RecordRevert.fromObject(object.records[i]); } } return message; @@ -203438,20 +189712,16 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsRevertRequest.toObject = function toObject(message, options, q) { + RecordsRevertRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.records = []; if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordRevert.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Records.RecordRevert.toObject(message.records[j], options); } return object; }; @@ -203543,7 +189813,7 @@ export const Records = $root.Records = (() => { function RecordLinkError(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -203592,13 +189862,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLinkError.encode = function encode(message, writer, q) { + RecordLinkError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -203632,18 +189898,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordLinkError.decode = function decode(reader, length, error, long) { + RecordLinkError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordLinkError(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -203658,7 +189918,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -203689,13 +189949,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordLinkError.verify = function verify(message, long) { + RecordLinkError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -203732,13 +189988,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordLinkError} RecordLinkError */ - RecordLinkError.fromObject = function fromObject(object, long) { + RecordLinkError.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordLinkError) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordLinkError(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -203819,13 +190071,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordLinkError.toObject = function toObject(message, options, q) { + RecordLinkError.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -203900,7 +190148,7 @@ export const Records = $root.Records = (() => { this.linkErrors = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -203957,13 +190205,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordModifyStatus.encode = function encode(message, writer, q) { + RecordModifyStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -203972,7 +190216,7 @@ export const Records = $root.Records = (() => { writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); if (message.linkErrors != null && message.linkErrors.length) for (let i = 0; i < message.linkErrors.length; ++i) - $root.Records.RecordLinkError.encode(message.linkErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Records.RecordLinkError.encode(message.linkErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -204000,18 +190244,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordModifyStatus.decode = function decode(reader, length, error, long) { + RecordModifyStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordModifyStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -204028,11 +190266,11 @@ export const Records = $root.Records = (() => { case 4: { if (!(message.linkErrors && message.linkErrors.length)) message.linkErrors = []; - message.linkErrors.push($root.Records.RecordLinkError.decode(reader, reader.uint32(), undefined, long + 1)); + message.linkErrors.push($root.Records.RecordLinkError.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -204063,13 +190301,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordModifyStatus.verify = function verify(message, long) { + RecordModifyStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -204099,7 +190333,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.linkErrors)) return "linkErrors: array expected"; for (let i = 0; i < message.linkErrors.length; ++i) { - let error = $root.Records.RecordLinkError.verify(message.linkErrors[i], long + 1); + let error = $root.Records.RecordLinkError.verify(message.linkErrors[i]); if (error) return "linkErrors." + error; } @@ -204115,13 +190349,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordModifyStatus} RecordModifyStatus */ - RecordModifyStatus.fromObject = function fromObject(object, long) { + RecordModifyStatus.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordModifyStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordModifyStatus(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -204197,7 +190427,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.linkErrors.length; ++i) { if (typeof object.linkErrors[i] !== "object") throw TypeError(".Records.RecordModifyStatus.linkErrors: object expected"); - message.linkErrors[i] = $root.Records.RecordLinkError.fromObject(object.linkErrors[i], long + 1); + message.linkErrors[i] = $root.Records.RecordLinkError.fromObject(object.linkErrors[i]); } } return message; @@ -204212,13 +190442,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordModifyStatus.toObject = function toObject(message, options, q) { + RecordModifyStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.linkErrors = []; @@ -204242,7 +190468,7 @@ export const Records = $root.Records = (() => { if (message.linkErrors && message.linkErrors.length) { object.linkErrors = []; for (let j = 0; j < message.linkErrors.length; ++j) - object.linkErrors[j] = $root.Records.RecordLinkError.toObject(message.linkErrors[j], options, q + 1); + object.linkErrors[j] = $root.Records.RecordLinkError.toObject(message.linkErrors[j], options); } return object; }; @@ -204298,7 +190524,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -204339,16 +190565,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsModifyResponse.encode = function encode(message, writer, q) { + RecordsModifyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordModifyStatus.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordModifyStatus.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); return writer; @@ -204378,23 +190600,17 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsModifyResponse.decode = function decode(reader, length, error, long) { + RecordsModifyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsModifyResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Records.RecordModifyStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Records.RecordModifyStatus.decode(reader, reader.uint32())); break; } case 2: { @@ -204402,7 +190618,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -204433,18 +190649,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsModifyResponse.verify = function verify(message, long) { + RecordsModifyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.records != null && message.hasOwnProperty("records")) { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordModifyStatus.verify(message.records[i], long + 1); + let error = $root.Records.RecordModifyStatus.verify(message.records[i]); if (error) return "records." + error; } @@ -204463,13 +190675,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsModifyResponse} RecordsModifyResponse */ - RecordsModifyResponse.fromObject = function fromObject(object, long) { + RecordsModifyResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsModifyResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsModifyResponse(); if (object.records) { if (!Array.isArray(object.records)) @@ -204478,12 +190686,12 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Records.RecordsModifyResponse.records: object expected"); - message.records[i] = $root.Records.RecordModifyStatus.fromObject(object.records[i], long + 1); + message.records[i] = $root.Records.RecordModifyStatus.fromObject(object.records[i]); } } if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -204502,31 +190710,25 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsModifyResponse.toObject = function toObject(message, options, q) { + RecordsModifyResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.records = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordModifyStatus.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Records.RecordModifyStatus.toObject(message.records[j], options); } if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -204585,7 +190787,7 @@ export const Records = $root.Records = (() => { function RecordAddAuditData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -204642,13 +190844,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordAddAuditData.encode = function encode(message, writer, q) { + RecordAddAuditData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -204684,18 +190882,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordAddAuditData.decode = function decode(reader, length, error, long) { + RecordAddAuditData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAddAuditData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -204714,7 +190906,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -204745,13 +190937,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordAddAuditData.verify = function verify(message, long) { + RecordAddAuditData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -204775,13 +190963,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordAddAuditData} RecordAddAuditData */ - RecordAddAuditData.fromObject = function fromObject(object, long) { + RecordAddAuditData.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordAddAuditData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordAddAuditData(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -204790,7 +190974,7 @@ export const Records = $root.Records = (() => { message.recordUid = object.recordUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -204816,13 +191000,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordAddAuditData.toObject = function toObject(message, options, q) { + RecordAddAuditData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -204834,9 +191014,9 @@ export const Records = $root.Records = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) object.data = ""; else { @@ -204849,9 +191029,7 @@ export const Records = $root.Records = (() => { if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -204912,7 +191090,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -204945,16 +191123,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddAuditDataRequest.encode = function encode(message, writer, q) { + AddAuditDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordAddAuditData.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordAddAuditData.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -204982,27 +191156,21 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddAuditDataRequest.decode = function decode(reader, length, error, long) { + AddAuditDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.AddAuditDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Records.RecordAddAuditData.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Records.RecordAddAuditData.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -205033,18 +191201,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddAuditDataRequest.verify = function verify(message, long) { + AddAuditDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.records != null && message.hasOwnProperty("records")) { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Records.RecordAddAuditData.verify(message.records[i], long + 1); + let error = $root.Records.RecordAddAuditData.verify(message.records[i]); if (error) return "records." + error; } @@ -205060,13 +191224,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.AddAuditDataRequest} AddAuditDataRequest */ - AddAuditDataRequest.fromObject = function fromObject(object, long) { + AddAuditDataRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.AddAuditDataRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.AddAuditDataRequest(); if (object.records) { if (!Array.isArray(object.records)) @@ -205075,7 +191235,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Records.AddAuditDataRequest.records: object expected"); - message.records[i] = $root.Records.RecordAddAuditData.fromObject(object.records[i], long + 1); + message.records[i] = $root.Records.RecordAddAuditData.fromObject(object.records[i]); } } return message; @@ -205090,20 +191250,16 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddAuditDataRequest.toObject = function toObject(message, options, q) { + AddAuditDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.records = []; if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Records.RecordAddAuditData.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Records.RecordAddAuditData.toObject(message.records[j], options); } return object; }; @@ -205162,7 +191318,7 @@ export const Records = $root.Records = (() => { function File(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -205235,13 +191391,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - File.encode = function encode(message, writer, q) { + File.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) @@ -205281,18 +191433,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - File.decode = function decode(reader, length, error, long) { + File.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.File(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -205319,7 +191465,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -205350,13 +191496,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - File.verify = function verify(message, long) { + File.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -205386,13 +191528,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.File} File */ - File.fromObject = function fromObject(object, long) { + File.fromObject = function fromObject(object) { if (object instanceof $root.Records.File) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.File(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -205411,7 +191549,7 @@ export const Records = $root.Records = (() => { message.data = object.data; if (object.fileSize != null) if ($util.Long) - message.fileSize = $util.Long.fromValue(object.fileSize, false); + (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; else if (typeof object.fileSize === "string") message.fileSize = parseInt(object.fileSize, 10); else if (typeof object.fileSize === "number") @@ -205434,13 +191572,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - File.toObject = function toObject(message, options, q) { + File.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -205466,9 +191600,9 @@ export const Records = $root.Records = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.fileSize = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.fileSize = options.longs === String ? "0" : 0; object.thumbSize = 0; object.isScript = false; } @@ -205479,9 +191613,7 @@ export const Records = $root.Records = (() => { if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.fileSize = typeof message.fileSize === "number" ? BigInt(message.fileSize) : $util.Long.fromBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0, false).toBigInt(); - else if (typeof message.fileSize === "number") + if (typeof message.fileSize === "number") object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; else object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; @@ -205543,7 +191675,7 @@ export const Records = $root.Records = (() => { this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -205584,16 +191716,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesAddRequest.encode = function encode(message, writer, q) { + FilesAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.files != null && message.files.length) for (let i = 0; i < message.files.length; ++i) - $root.Records.File.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.File.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); return writer; @@ -205623,23 +191751,17 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilesAddRequest.decode = function decode(reader, length, error, long) { + FilesAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.files && message.files.length)) message.files = []; - message.files.push($root.Records.File.decode(reader, reader.uint32(), undefined, long + 1)); + message.files.push($root.Records.File.decode(reader, reader.uint32())); break; } case 2: { @@ -205647,7 +191769,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -205678,18 +191800,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FilesAddRequest.verify = function verify(message, long) { + FilesAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.files != null && message.hasOwnProperty("files")) { if (!Array.isArray(message.files)) return "files: array expected"; for (let i = 0; i < message.files.length; ++i) { - let error = $root.Records.File.verify(message.files[i], long + 1); + let error = $root.Records.File.verify(message.files[i]); if (error) return "files." + error; } @@ -205708,13 +191826,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.FilesAddRequest} FilesAddRequest */ - FilesAddRequest.fromObject = function fromObject(object, long) { + FilesAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.FilesAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.FilesAddRequest(); if (object.files) { if (!Array.isArray(object.files)) @@ -205723,12 +191837,12 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.files.length; ++i) { if (typeof object.files[i] !== "object") throw TypeError(".Records.FilesAddRequest.files: object expected"); - message.files[i] = $root.Records.File.fromObject(object.files[i], long + 1); + message.files[i] = $root.Records.File.fromObject(object.files[i]); } } if (object.clientTime != null) if ($util.Long) - message.clientTime = $util.Long.fromValue(object.clientTime, false); + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; else if (typeof object.clientTime === "string") message.clientTime = parseInt(object.clientTime, 10); else if (typeof object.clientTime === "number") @@ -205747,31 +191861,25 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilesAddRequest.toObject = function toObject(message, options, q) { + FilesAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.files = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientTime = options.longs === String ? "0" : 0; if (message.files && message.files.length) { object.files = []; for (let j = 0; j < message.files.length; ++j) - object.files[j] = $root.Records.File.toObject(message.files[j], options, q + 1); + object.files[j] = $root.Records.File.toObject(message.files[j], options); } if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientTime = typeof message.clientTime === "number" ? BigInt(message.clientTime) : $util.Long.fromBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientTime === "number") + if (typeof message.clientTime === "number") object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; else object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; @@ -205846,7 +191954,7 @@ export const Records = $root.Records = (() => { function FileAddStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -205919,13 +192027,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileAddStatus.encode = function encode(message, writer, q) { + FileAddStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -205965,18 +192069,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileAddStatus.decode = function decode(reader, length, error, long) { + FileAddStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FileAddStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -206003,7 +192101,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -206034,13 +192132,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileAddStatus.verify = function verify(message, long) { + FileAddStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -206075,13 +192169,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.FileAddStatus} FileAddStatus */ - FileAddStatus.fromObject = function fromObject(object, long) { + FileAddStatus.fromObject = function fromObject(object) { if (object instanceof $root.Records.FileAddStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.FileAddStatus(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -206124,13 +192214,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileAddStatus.toObject = function toObject(message, options, q) { + FileAddStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -206212,7 +192298,7 @@ export const Records = $root.Records = (() => { this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -206253,16 +192339,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesAddResponse.encode = function encode(message, writer, q) { + FilesAddResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.files != null && message.files.length) for (let i = 0; i < message.files.length; ++i) - $root.Records.FileAddStatus.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.FileAddStatus.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); return writer; @@ -206292,23 +192374,17 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilesAddResponse.decode = function decode(reader, length, error, long) { + FilesAddResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.files && message.files.length)) message.files = []; - message.files.push($root.Records.FileAddStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.files.push($root.Records.FileAddStatus.decode(reader, reader.uint32())); break; } case 2: { @@ -206316,7 +192392,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -206347,18 +192423,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FilesAddResponse.verify = function verify(message, long) { + FilesAddResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.files != null && message.hasOwnProperty("files")) { if (!Array.isArray(message.files)) return "files: array expected"; for (let i = 0; i < message.files.length; ++i) { - let error = $root.Records.FileAddStatus.verify(message.files[i], long + 1); + let error = $root.Records.FileAddStatus.verify(message.files[i]); if (error) return "files." + error; } @@ -206377,13 +192449,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.FilesAddResponse} FilesAddResponse */ - FilesAddResponse.fromObject = function fromObject(object, long) { + FilesAddResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.FilesAddResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.FilesAddResponse(); if (object.files) { if (!Array.isArray(object.files)) @@ -206392,12 +192460,12 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.files.length; ++i) { if (typeof object.files[i] !== "object") throw TypeError(".Records.FilesAddResponse.files: object expected"); - message.files[i] = $root.Records.FileAddStatus.fromObject(object.files[i], long + 1); + message.files[i] = $root.Records.FileAddStatus.fromObject(object.files[i]); } } if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -206416,31 +192484,25 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilesAddResponse.toObject = function toObject(message, options, q) { + FilesAddResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.files = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (message.files && message.files.length) { object.files = []; for (let j = 0; j < message.files.length; ++j) - object.files[j] = $root.Records.FileAddStatus.toObject(message.files[j], options, q + 1); + object.files[j] = $root.Records.FileAddStatus.toObject(message.files[j], options); } if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -206499,7 +192561,7 @@ export const Records = $root.Records = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -206548,13 +192610,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesGetRequest.encode = function encode(message, writer, q) { + FilesGetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); @@ -206589,18 +192647,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilesGetRequest.decode = function decode(reader, length, error, long) { + FilesGetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesGetRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordUids && message.recordUids.length)) @@ -206617,7 +192669,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -206648,13 +192700,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FilesGetRequest.verify = function verify(message, long) { + FilesGetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUids != null && message.hasOwnProperty("recordUids")) { if (!Array.isArray(message.recordUids)) return "recordUids: array expected"; @@ -206679,13 +192727,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.FilesGetRequest} FilesGetRequest */ - FilesGetRequest.fromObject = function fromObject(object, long) { + FilesGetRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.FilesGetRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.FilesGetRequest(); if (object.recordUids) { if (!Array.isArray(object.recordUids)) @@ -206713,13 +192757,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilesGetRequest.toObject = function toObject(message, options, q) { + FilesGetRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordUids = []; @@ -206808,7 +192848,7 @@ export const Records = $root.Records = (() => { function FileGetStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -206873,13 +192913,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileGetStatus.encode = function encode(message, writer, q) { + FileGetStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -206917,18 +192953,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileGetStatus.decode = function decode(reader, length, error, long) { + FileGetStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FileGetStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -206951,7 +192981,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -206982,13 +193012,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileGetStatus.verify = function verify(message, long) { + FileGetStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -207031,13 +193057,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.FileGetStatus} FileGetStatus */ - FileGetStatus.fromObject = function fromObject(object, long) { + FileGetStatus.fromObject = function fromObject(object) { if (object instanceof $root.Records.FileGetStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.FileGetStatus(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -207116,13 +193138,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileGetStatus.toObject = function toObject(message, options, q) { + FileGetStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -207200,7 +193218,7 @@ export const Records = $root.Records = (() => { this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -207233,16 +193251,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilesGetResponse.encode = function encode(message, writer, q) { + FilesGetResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.files != null && message.files.length) for (let i = 0; i < message.files.length; ++i) - $root.Records.FileGetStatus.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.FileGetStatus.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -207270,27 +193284,21 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilesGetResponse.decode = function decode(reader, length, error, long) { + FilesGetResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesGetResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.files && message.files.length)) message.files = []; - message.files.push($root.Records.FileGetStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.files.push($root.Records.FileGetStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -207321,18 +193329,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FilesGetResponse.verify = function verify(message, long) { + FilesGetResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.files != null && message.hasOwnProperty("files")) { if (!Array.isArray(message.files)) return "files: array expected"; for (let i = 0; i < message.files.length; ++i) { - let error = $root.Records.FileGetStatus.verify(message.files[i], long + 1); + let error = $root.Records.FileGetStatus.verify(message.files[i]); if (error) return "files." + error; } @@ -207348,13 +193352,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.FilesGetResponse} FilesGetResponse */ - FilesGetResponse.fromObject = function fromObject(object, long) { + FilesGetResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.FilesGetResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.FilesGetResponse(); if (object.files) { if (!Array.isArray(object.files)) @@ -207363,7 +193363,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.files.length; ++i) { if (typeof object.files[i] !== "object") throw TypeError(".Records.FilesGetResponse.files: object expected"); - message.files[i] = $root.Records.FileGetStatus.fromObject(object.files[i], long + 1); + message.files[i] = $root.Records.FileGetStatus.fromObject(object.files[i]); } } return message; @@ -207378,20 +193378,16 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilesGetResponse.toObject = function toObject(message, options, q) { + FilesGetResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.files = []; if (message.files && message.files.length) { object.files = []; for (let j = 0; j < message.files.length; ++j) - object.files[j] = $root.Records.FileGetStatus.toObject(message.files[j], options, q + 1); + object.files[j] = $root.Records.FileGetStatus.toObject(message.files[j], options); } return object; }; @@ -207449,7 +193445,7 @@ export const Records = $root.Records = (() => { function ApplicationAddRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -207514,13 +193510,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApplicationAddRequest.encode = function encode(message, writer, q) { + ApplicationAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appUid != null && Object.hasOwnProperty.call(message, "appUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appUid); if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) @@ -207530,7 +193522,7 @@ export const Records = $root.Records = (() => { if (message.data != null && Object.hasOwnProperty.call(message, "data")) writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -207558,18 +193550,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApplicationAddRequest.decode = function decode(reader, length, error, long) { + ApplicationAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ApplicationAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.appUid = reader.bytes(); @@ -207588,11 +193574,11 @@ export const Records = $root.Records = (() => { break; } case 5: { - message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32(), undefined, long + 1); + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -207623,13 +193609,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApplicationAddRequest.verify = function verify(message, long) { + ApplicationAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appUid != null && message.hasOwnProperty("appUid")) if (!(message.appUid && typeof message.appUid.length === "number" || $util.isString(message.appUid))) return "appUid: buffer expected"; @@ -207643,7 +193625,7 @@ export const Records = $root.Records = (() => { if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) return "data: buffer expected"; if (message.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); + let error = $root.Records.RecordAudit.verify(message.audit); if (error) return "audit." + error; } @@ -207658,13 +193640,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.ApplicationAddRequest} ApplicationAddRequest */ - ApplicationAddRequest.fromObject = function fromObject(object, long) { + ApplicationAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.ApplicationAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.ApplicationAddRequest(); if (object.appUid != null) if (typeof object.appUid === "string") @@ -207678,7 +193656,7 @@ export const Records = $root.Records = (() => { message.recordKey = object.recordKey; if (object.clientModifiedTime != null) if ($util.Long) - message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime, false); + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; else if (typeof object.clientModifiedTime === "string") message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); else if (typeof object.clientModifiedTime === "number") @@ -207693,7 +193671,7 @@ export const Records = $root.Records = (() => { if (object.audit != null) { if (typeof object.audit !== "object") throw TypeError(".Records.ApplicationAddRequest.audit: object expected"); - message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); } return message; }; @@ -207707,13 +193685,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApplicationAddRequest.toObject = function toObject(message, options, q) { + ApplicationAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -207732,9 +193706,9 @@ export const Records = $root.Records = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientModifiedTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientModifiedTime = options.longs === String ? "0" : 0; if (options.bytes === String) object.data = ""; else { @@ -207749,16 +193723,14 @@ export const Records = $root.Records = (() => { if (message.recordKey != null && message.hasOwnProperty("recordKey")) object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientModifiedTime = typeof message.clientModifiedTime === "number" ? BigInt(message.clientModifiedTime) : $util.Long.fromBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientModifiedTime === "number") + if (typeof message.clientModifiedTime === "number") object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); return object; }; @@ -207830,7 +193802,7 @@ export const Records = $root.Records = (() => { this.recordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -207879,13 +193851,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordDataWithAccessInfoRequest.encode = function encode(message, writer, q) { + GetRecordDataWithAccessInfoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.clientTime); if (message.recordUid != null && message.recordUid.length) @@ -207920,18 +193888,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRecordDataWithAccessInfoRequest.decode = function decode(reader, length, error, long) { + GetRecordDataWithAccessInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordDataWithAccessInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.clientTime = reader.int64(); @@ -207948,7 +193910,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -207979,13 +193941,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetRecordDataWithAccessInfoRequest.verify = function verify(message, long) { + GetRecordDataWithAccessInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.clientTime != null && message.hasOwnProperty("clientTime")) if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) return "clientTime: integer|Long expected"; @@ -208016,17 +193974,13 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.GetRecordDataWithAccessInfoRequest} GetRecordDataWithAccessInfoRequest */ - GetRecordDataWithAccessInfoRequest.fromObject = function fromObject(object, long) { + GetRecordDataWithAccessInfoRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.GetRecordDataWithAccessInfoRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.GetRecordDataWithAccessInfoRequest(); if (object.clientTime != null) if ($util.Long) - message.clientTime = $util.Long.fromValue(object.clientTime, false); + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; else if (typeof object.clientTime === "string") message.clientTime = parseInt(object.clientTime, 10); else if (typeof object.clientTime === "number") @@ -208075,28 +194029,22 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRecordDataWithAccessInfoRequest.toObject = function toObject(message, options, q) { + GetRecordDataWithAccessInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordUid = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientTime = options.longs === String ? "0" : 0; object.recordDetailsInclude = options.enums === String ? "DATA_PLUS_SHARE" : 0; } if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientTime = typeof message.clientTime === "number" ? BigInt(message.clientTime) : $util.Long.fromBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientTime === "number") + if (typeof message.clientTime === "number") object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; else object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; @@ -208168,7 +194116,7 @@ export const Records = $root.Records = (() => { function UserPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -208273,13 +194221,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserPermission.encode = function encode(message, writer, q) { + UserPermission.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) @@ -208327,18 +194271,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserPermission.decode = function decode(reader, length, error, long) { + UserPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.UserPermission(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -208381,7 +194319,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -208412,13 +194350,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserPermission.verify = function verify(message, long) { + UserPermission.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -208466,13 +194400,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.UserPermission} UserPermission */ - UserPermission.fromObject = function fromObject(object, long) { + UserPermission.fromObject = function fromObject(object) { if (object instanceof $root.Records.UserPermission) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.UserPermission(); if (object.username != null) message.username = String(object.username); @@ -208488,7 +194418,7 @@ export const Records = $root.Records = (() => { message.awaitingApproval = Boolean(object.awaitingApproval); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -208534,13 +194464,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserPermission.toObject = function toObject(message, options, q) { + UserPermission.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -208551,9 +194477,9 @@ export const Records = $root.Records = (() => { object.awaitingApproval = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; if (options.bytes === String) object.accountUid = ""; else { @@ -208577,9 +194503,7 @@ export const Records = $root.Records = (() => { if (message.awaitingApproval != null && message.hasOwnProperty("awaitingApproval")) object.awaitingApproval = message.awaitingApproval; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -208647,7 +194571,7 @@ export const Records = $root.Records = (() => { function SharedFolderPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -208728,13 +194652,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderPermission.encode = function encode(message, writer, q) { + SharedFolderPermission.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.resharable != null && Object.hasOwnProperty.call(message, "resharable")) @@ -208776,18 +194696,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderPermission.decode = function decode(reader, length, error, long) { + SharedFolderPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedFolderPermission(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -208818,7 +194732,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -208849,13 +194763,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderPermission.verify = function verify(message, long) { + SharedFolderPermission.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -208894,13 +194804,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.SharedFolderPermission} SharedFolderPermission */ - SharedFolderPermission.fromObject = function fromObject(object, long) { + SharedFolderPermission.fromObject = function fromObject(object) { if (object instanceof $root.Records.SharedFolderPermission) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.SharedFolderPermission(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -208913,7 +194819,7 @@ export const Records = $root.Records = (() => { message.editable = Boolean(object.editable); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -208922,7 +194828,7 @@ export const Records = $root.Records = (() => { message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -208963,13 +194869,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderPermission.toObject = function toObject(message, options, q) { + SharedFolderPermission.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -208983,14 +194885,14 @@ export const Records = $root.Records = (() => { object.editable = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } @@ -209001,16 +194903,12 @@ export const Records = $root.Records = (() => { if (message.editable != null && message.hasOwnProperty("editable")) object.editable = message.editable; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -209085,7 +194983,7 @@ export const Records = $root.Records = (() => { this.fileId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -209222,13 +195120,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordData.encode = function encode(message, writer, q) { + RecordData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); if (message.version != null && Object.hasOwnProperty.call(message, "version")) @@ -209245,7 +195139,7 @@ export const Records = $root.Records = (() => { writer.uint32(/* id 7, wireType 2 =*/58).string(message.nonSharedData); if (message.linkedRecordData != null && message.linkedRecordData.length) for (let i = 0; i < message.linkedRecordData.length; ++i) - $root.Records.RecordData.encode(message.linkedRecordData[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Records.RecordData.encode(message.linkedRecordData[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.fileId != null && message.fileId.length) for (let i = 0; i < message.fileId.length; ++i) writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.fileId[i]); @@ -209286,18 +195180,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordData.decode = function decode(reader, length, error, long) { + RecordData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.revision = reader.int64(); @@ -209330,7 +195218,7 @@ export const Records = $root.Records = (() => { case 8: { if (!(message.linkedRecordData && message.linkedRecordData.length)) message.linkedRecordData = []; - message.linkedRecordData.push($root.Records.RecordData.decode(reader, reader.uint32(), undefined, long + 1)); + message.linkedRecordData.push($root.Records.RecordData.decode(reader, reader.uint32())); break; } case 9: { @@ -209360,7 +195248,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -209391,13 +195279,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordData.verify = function verify(message, long) { + RecordData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.revision != null && message.hasOwnProperty("revision")) if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) return "revision: integer|Long expected"; @@ -209423,7 +195307,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.linkedRecordData)) return "linkedRecordData: array expected"; for (let i = 0; i < message.linkedRecordData.length; ++i) { - let error = $root.Records.RecordData.verify(message.linkedRecordData[i], long + 1); + let error = $root.Records.RecordData.verify(message.linkedRecordData[i]); if (error) return "linkedRecordData." + error; } @@ -209471,17 +195355,13 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordData} RecordData */ - RecordData.fromObject = function fromObject(object, long) { + RecordData.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordData(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -209498,7 +195378,7 @@ export const Records = $root.Records = (() => { message.encryptedExtraData = String(object.encryptedExtraData); if (object.clientModifiedTime != null) if ($util.Long) - message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime, false); + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; else if (typeof object.clientModifiedTime === "string") message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); else if (typeof object.clientModifiedTime === "number") @@ -209514,7 +195394,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.linkedRecordData.length; ++i) { if (typeof object.linkedRecordData[i] !== "object") throw TypeError(".Records.RecordData.linkedRecordData: object expected"); - message.linkedRecordData[i] = $root.Records.RecordData.fromObject(object.linkedRecordData[i], long + 1); + message.linkedRecordData[i] = $root.Records.RecordData.fromObject(object.linkedRecordData[i]); } } if (object.fileId) { @@ -209529,7 +195409,7 @@ export const Records = $root.Records = (() => { } if (object.fileSize != null) if ($util.Long) - message.fileSize = $util.Long.fromValue(object.fileSize, false); + (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; else if (typeof object.fileSize === "string") message.fileSize = parseInt(object.fileSize, 10); else if (typeof object.fileSize === "number") @@ -209538,7 +195418,7 @@ export const Records = $root.Records = (() => { message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); if (object.thumbnailSize != null) if ($util.Long) - message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize, false); + (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; else if (typeof object.thumbnailSize === "string") message.thumbnailSize = parseInt(object.thumbnailSize, 10); else if (typeof object.thumbnailSize === "number") @@ -209603,13 +195483,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordData.toObject = function toObject(message, options, q) { + RecordData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.linkedRecordData = []; @@ -209618,29 +195494,29 @@ export const Records = $root.Records = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; object.version = 0; object.shared = false; object.encryptedRecordData = ""; object.encryptedExtraData = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientModifiedTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientModifiedTime = options.longs === String ? "0" : 0; object.nonSharedData = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.fileSize = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.fileSize = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.thumbnailSize = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.thumbnailSize = options.longs === String ? "0" : 0; object.recordKeyType = options.enums === String ? "NO_KEY" : 0; if (options.bytes === String) object.recordKey = ""; @@ -209658,9 +195534,7 @@ export const Records = $root.Records = (() => { } } if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -209673,9 +195547,7 @@ export const Records = $root.Records = (() => { if (message.encryptedExtraData != null && message.hasOwnProperty("encryptedExtraData")) object.encryptedExtraData = message.encryptedExtraData; if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientModifiedTime = typeof message.clientModifiedTime === "number" ? BigInt(message.clientModifiedTime) : $util.Long.fromBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientModifiedTime === "number") + if (typeof message.clientModifiedTime === "number") object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; @@ -209684,7 +195556,7 @@ export const Records = $root.Records = (() => { if (message.linkedRecordData && message.linkedRecordData.length) { object.linkedRecordData = []; for (let j = 0; j < message.linkedRecordData.length; ++j) - object.linkedRecordData[j] = $root.Records.RecordData.toObject(message.linkedRecordData[j], options, q + 1); + object.linkedRecordData[j] = $root.Records.RecordData.toObject(message.linkedRecordData[j], options); } if (message.fileId && message.fileId.length) { object.fileId = []; @@ -209692,16 +195564,12 @@ export const Records = $root.Records = (() => { object.fileId[j] = options.bytes === String ? $util.base64.encode(message.fileId[j], 0, message.fileId[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.fileId[j]) : message.fileId[j]; } if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.fileSize = typeof message.fileSize === "number" ? BigInt(message.fileSize) : $util.Long.fromBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0, false).toBigInt(); - else if (typeof message.fileSize === "number") + if (typeof message.fileSize === "number") object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; else object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.thumbnailSize = typeof message.thumbnailSize === "number" ? BigInt(message.thumbnailSize) : $util.Long.fromBits(message.thumbnailSize.low >>> 0, message.thumbnailSize.high >>> 0, false).toBigInt(); - else if (typeof message.thumbnailSize === "number") + if (typeof message.thumbnailSize === "number") object.thumbnailSize = options.longs === String ? String(message.thumbnailSize) : message.thumbnailSize; else object.thumbnailSize = options.longs === String ? $util.Long.prototype.toString.call(message.thumbnailSize) : options.longs === Number ? new $util.LongBits(message.thumbnailSize.low >>> 0, message.thumbnailSize.high >>> 0).toNumber() : message.thumbnailSize; @@ -209768,7 +195636,7 @@ export const Records = $root.Records = (() => { this.sharedFolderPermission = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -209825,23 +195693,19 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordDataWithAccessInfo.encode = function encode(message, writer, q) { + RecordDataWithAccessInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.recordData != null && Object.hasOwnProperty.call(message, "recordData")) - $root.Records.RecordData.encode(message.recordData, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Records.RecordData.encode(message.recordData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.userPermission != null && message.userPermission.length) for (let i = 0; i < message.userPermission.length; ++i) - $root.Records.UserPermission.encode(message.userPermission[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Records.UserPermission.encode(message.userPermission[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.sharedFolderPermission != null && message.sharedFolderPermission.length) for (let i = 0; i < message.sharedFolderPermission.length; ++i) - $root.Records.SharedFolderPermission.encode(message.sharedFolderPermission[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Records.SharedFolderPermission.encode(message.sharedFolderPermission[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -209869,41 +195733,35 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordDataWithAccessInfo.decode = function decode(reader, length, error, long) { + RecordDataWithAccessInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordDataWithAccessInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); break; } case 2: { - message.recordData = $root.Records.RecordData.decode(reader, reader.uint32(), undefined, long + 1); + message.recordData = $root.Records.RecordData.decode(reader, reader.uint32()); break; } case 3: { if (!(message.userPermission && message.userPermission.length)) message.userPermission = []; - message.userPermission.push($root.Records.UserPermission.decode(reader, reader.uint32(), undefined, long + 1)); + message.userPermission.push($root.Records.UserPermission.decode(reader, reader.uint32())); break; } case 4: { if (!(message.sharedFolderPermission && message.sharedFolderPermission.length)) message.sharedFolderPermission = []; - message.sharedFolderPermission.push($root.Records.SharedFolderPermission.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderPermission.push($root.Records.SharedFolderPermission.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -209934,18 +195792,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordDataWithAccessInfo.verify = function verify(message, long) { + RecordDataWithAccessInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; if (message.recordData != null && message.hasOwnProperty("recordData")) { - let error = $root.Records.RecordData.verify(message.recordData, long + 1); + let error = $root.Records.RecordData.verify(message.recordData); if (error) return "recordData." + error; } @@ -209953,7 +195807,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.userPermission)) return "userPermission: array expected"; for (let i = 0; i < message.userPermission.length; ++i) { - let error = $root.Records.UserPermission.verify(message.userPermission[i], long + 1); + let error = $root.Records.UserPermission.verify(message.userPermission[i]); if (error) return "userPermission." + error; } @@ -209962,7 +195816,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.sharedFolderPermission)) return "sharedFolderPermission: array expected"; for (let i = 0; i < message.sharedFolderPermission.length; ++i) { - let error = $root.Records.SharedFolderPermission.verify(message.sharedFolderPermission[i], long + 1); + let error = $root.Records.SharedFolderPermission.verify(message.sharedFolderPermission[i]); if (error) return "sharedFolderPermission." + error; } @@ -209978,13 +195832,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordDataWithAccessInfo} RecordDataWithAccessInfo */ - RecordDataWithAccessInfo.fromObject = function fromObject(object, long) { + RecordDataWithAccessInfo.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordDataWithAccessInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordDataWithAccessInfo(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -209994,7 +195844,7 @@ export const Records = $root.Records = (() => { if (object.recordData != null) { if (typeof object.recordData !== "object") throw TypeError(".Records.RecordDataWithAccessInfo.recordData: object expected"); - message.recordData = $root.Records.RecordData.fromObject(object.recordData, long + 1); + message.recordData = $root.Records.RecordData.fromObject(object.recordData); } if (object.userPermission) { if (!Array.isArray(object.userPermission)) @@ -210003,7 +195853,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.userPermission.length; ++i) { if (typeof object.userPermission[i] !== "object") throw TypeError(".Records.RecordDataWithAccessInfo.userPermission: object expected"); - message.userPermission[i] = $root.Records.UserPermission.fromObject(object.userPermission[i], long + 1); + message.userPermission[i] = $root.Records.UserPermission.fromObject(object.userPermission[i]); } } if (object.sharedFolderPermission) { @@ -210013,7 +195863,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.sharedFolderPermission.length; ++i) { if (typeof object.sharedFolderPermission[i] !== "object") throw TypeError(".Records.RecordDataWithAccessInfo.sharedFolderPermission: object expected"); - message.sharedFolderPermission[i] = $root.Records.SharedFolderPermission.fromObject(object.sharedFolderPermission[i], long + 1); + message.sharedFolderPermission[i] = $root.Records.SharedFolderPermission.fromObject(object.sharedFolderPermission[i]); } } return message; @@ -210028,13 +195878,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordDataWithAccessInfo.toObject = function toObject(message, options, q) { + RecordDataWithAccessInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.userPermission = []; @@ -210053,16 +195899,16 @@ export const Records = $root.Records = (() => { if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.recordData != null && message.hasOwnProperty("recordData")) - object.recordData = $root.Records.RecordData.toObject(message.recordData, options, q + 1); + object.recordData = $root.Records.RecordData.toObject(message.recordData, options); if (message.userPermission && message.userPermission.length) { object.userPermission = []; for (let j = 0; j < message.userPermission.length; ++j) - object.userPermission[j] = $root.Records.UserPermission.toObject(message.userPermission[j], options, q + 1); + object.userPermission[j] = $root.Records.UserPermission.toObject(message.userPermission[j], options); } if (message.sharedFolderPermission && message.sharedFolderPermission.length) { object.sharedFolderPermission = []; for (let j = 0; j < message.sharedFolderPermission.length; ++j) - object.sharedFolderPermission[j] = $root.Records.SharedFolderPermission.toObject(message.sharedFolderPermission[j], options, q + 1); + object.sharedFolderPermission[j] = $root.Records.SharedFolderPermission.toObject(message.sharedFolderPermission[j], options); } return object; }; @@ -210119,7 +195965,7 @@ export const Records = $root.Records = (() => { this.noPermissionRecordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -210160,16 +196006,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordDataWithAccessInfoResponse.encode = function encode(message, writer, q) { + GetRecordDataWithAccessInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordDataWithAccessInfo != null && message.recordDataWithAccessInfo.length) for (let i = 0; i < message.recordDataWithAccessInfo.length; ++i) - $root.Records.RecordDataWithAccessInfo.encode(message.recordDataWithAccessInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordDataWithAccessInfo.encode(message.recordDataWithAccessInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.noPermissionRecordUid != null && message.noPermissionRecordUid.length) for (let i = 0; i < message.noPermissionRecordUid.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.noPermissionRecordUid[i]); @@ -210200,23 +196042,17 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRecordDataWithAccessInfoResponse.decode = function decode(reader, length, error, long) { + GetRecordDataWithAccessInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordDataWithAccessInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordDataWithAccessInfo && message.recordDataWithAccessInfo.length)) message.recordDataWithAccessInfo = []; - message.recordDataWithAccessInfo.push($root.Records.RecordDataWithAccessInfo.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordDataWithAccessInfo.push($root.Records.RecordDataWithAccessInfo.decode(reader, reader.uint32())); break; } case 2: { @@ -210226,7 +196062,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -210257,18 +196093,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetRecordDataWithAccessInfoResponse.verify = function verify(message, long) { + GetRecordDataWithAccessInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordDataWithAccessInfo != null && message.hasOwnProperty("recordDataWithAccessInfo")) { if (!Array.isArray(message.recordDataWithAccessInfo)) return "recordDataWithAccessInfo: array expected"; for (let i = 0; i < message.recordDataWithAccessInfo.length; ++i) { - let error = $root.Records.RecordDataWithAccessInfo.verify(message.recordDataWithAccessInfo[i], long + 1); + let error = $root.Records.RecordDataWithAccessInfo.verify(message.recordDataWithAccessInfo[i]); if (error) return "recordDataWithAccessInfo." + error; } @@ -210291,13 +196123,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.GetRecordDataWithAccessInfoResponse} GetRecordDataWithAccessInfoResponse */ - GetRecordDataWithAccessInfoResponse.fromObject = function fromObject(object, long) { + GetRecordDataWithAccessInfoResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.GetRecordDataWithAccessInfoResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.GetRecordDataWithAccessInfoResponse(); if (object.recordDataWithAccessInfo) { if (!Array.isArray(object.recordDataWithAccessInfo)) @@ -210306,7 +196134,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.recordDataWithAccessInfo.length; ++i) { if (typeof object.recordDataWithAccessInfo[i] !== "object") throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: object expected"); - message.recordDataWithAccessInfo[i] = $root.Records.RecordDataWithAccessInfo.fromObject(object.recordDataWithAccessInfo[i], long + 1); + message.recordDataWithAccessInfo[i] = $root.Records.RecordDataWithAccessInfo.fromObject(object.recordDataWithAccessInfo[i]); } } if (object.noPermissionRecordUid) { @@ -210331,13 +196159,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRecordDataWithAccessInfoResponse.toObject = function toObject(message, options, q) { + GetRecordDataWithAccessInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.recordDataWithAccessInfo = []; @@ -210346,7 +196170,7 @@ export const Records = $root.Records = (() => { if (message.recordDataWithAccessInfo && message.recordDataWithAccessInfo.length) { object.recordDataWithAccessInfo = []; for (let j = 0; j < message.recordDataWithAccessInfo.length; ++j) - object.recordDataWithAccessInfo[j] = $root.Records.RecordDataWithAccessInfo.toObject(message.recordDataWithAccessInfo[j], options, q + 1); + object.recordDataWithAccessInfo[j] = $root.Records.RecordDataWithAccessInfo.toObject(message.recordDataWithAccessInfo[j], options); } if (message.noPermissionRecordUid && message.noPermissionRecordUid.length) { object.noPermissionRecordUid = []; @@ -210423,7 +196247,7 @@ export const Records = $root.Records = (() => { function IsObjectShareAdmin(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -210472,13 +196296,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IsObjectShareAdmin.encode = function encode(message, writer, q) { + IsObjectShareAdmin.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.isAdmin != null && Object.hasOwnProperty.call(message, "isAdmin")) @@ -210512,18 +196332,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IsObjectShareAdmin.decode = function decode(reader, length, error, long) { + IsObjectShareAdmin.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.IsObjectShareAdmin(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); @@ -210538,7 +196352,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -210569,13 +196383,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IsObjectShareAdmin.verify = function verify(message, long) { + IsObjectShareAdmin.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -210602,13 +196412,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.IsObjectShareAdmin} IsObjectShareAdmin */ - IsObjectShareAdmin.fromObject = function fromObject(object, long) { + IsObjectShareAdmin.fromObject = function fromObject(object) { if (object instanceof $root.Records.IsObjectShareAdmin) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.IsObjectShareAdmin(); if (object.uid != null) if (typeof object.uid === "string") @@ -210649,13 +196455,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IsObjectShareAdmin.toObject = function toObject(message, options, q) { + IsObjectShareAdmin.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -210727,7 +196529,7 @@ export const Records = $root.Records = (() => { this.isObjectShareAdmin = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -210760,16 +196562,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AmIShareAdmin.encode = function encode(message, writer, q) { + AmIShareAdmin.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.isObjectShareAdmin != null && message.isObjectShareAdmin.length) for (let i = 0; i < message.isObjectShareAdmin.length; ++i) - $root.Records.IsObjectShareAdmin.encode(message.isObjectShareAdmin[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.IsObjectShareAdmin.encode(message.isObjectShareAdmin[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -210797,27 +196595,21 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AmIShareAdmin.decode = function decode(reader, length, error, long) { + AmIShareAdmin.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.AmIShareAdmin(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.isObjectShareAdmin && message.isObjectShareAdmin.length)) message.isObjectShareAdmin = []; - message.isObjectShareAdmin.push($root.Records.IsObjectShareAdmin.decode(reader, reader.uint32(), undefined, long + 1)); + message.isObjectShareAdmin.push($root.Records.IsObjectShareAdmin.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -210848,18 +196640,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AmIShareAdmin.verify = function verify(message, long) { + AmIShareAdmin.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.isObjectShareAdmin != null && message.hasOwnProperty("isObjectShareAdmin")) { if (!Array.isArray(message.isObjectShareAdmin)) return "isObjectShareAdmin: array expected"; for (let i = 0; i < message.isObjectShareAdmin.length; ++i) { - let error = $root.Records.IsObjectShareAdmin.verify(message.isObjectShareAdmin[i], long + 1); + let error = $root.Records.IsObjectShareAdmin.verify(message.isObjectShareAdmin[i]); if (error) return "isObjectShareAdmin." + error; } @@ -210875,13 +196663,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.AmIShareAdmin} AmIShareAdmin */ - AmIShareAdmin.fromObject = function fromObject(object, long) { + AmIShareAdmin.fromObject = function fromObject(object) { if (object instanceof $root.Records.AmIShareAdmin) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.AmIShareAdmin(); if (object.isObjectShareAdmin) { if (!Array.isArray(object.isObjectShareAdmin)) @@ -210890,7 +196674,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.isObjectShareAdmin.length; ++i) { if (typeof object.isObjectShareAdmin[i] !== "object") throw TypeError(".Records.AmIShareAdmin.isObjectShareAdmin: object expected"); - message.isObjectShareAdmin[i] = $root.Records.IsObjectShareAdmin.fromObject(object.isObjectShareAdmin[i], long + 1); + message.isObjectShareAdmin[i] = $root.Records.IsObjectShareAdmin.fromObject(object.isObjectShareAdmin[i]); } } return message; @@ -210905,20 +196689,16 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AmIShareAdmin.toObject = function toObject(message, options, q) { + AmIShareAdmin.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.isObjectShareAdmin = []; if (message.isObjectShareAdmin && message.isObjectShareAdmin.length) { object.isObjectShareAdmin = []; for (let j = 0; j < message.isObjectShareAdmin.length; ++j) - object.isObjectShareAdmin[j] = $root.Records.IsObjectShareAdmin.toObject(message.isObjectShareAdmin[j], options, q + 1); + object.isObjectShareAdmin[j] = $root.Records.IsObjectShareAdmin.toObject(message.isObjectShareAdmin[j], options); } return object; }; @@ -210978,7 +196758,7 @@ export const Records = $root.Records = (() => { this.removeSharedRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -211035,22 +196815,18 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordShareUpdateRequest.encode = function encode(message, writer, q) { + RecordShareUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.addSharedRecord != null && message.addSharedRecord.length) for (let i = 0; i < message.addSharedRecord.length; ++i) - $root.Records.SharedRecord.encode(message.addSharedRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.SharedRecord.encode(message.addSharedRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateSharedRecord != null && message.updateSharedRecord.length) for (let i = 0; i < message.updateSharedRecord.length; ++i) - $root.Records.SharedRecord.encode(message.updateSharedRecord[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Records.SharedRecord.encode(message.updateSharedRecord[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.removeSharedRecord != null && message.removeSharedRecord.length) for (let i = 0; i < message.removeSharedRecord.length; ++i) - $root.Records.SharedRecord.encode(message.removeSharedRecord[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Records.SharedRecord.encode(message.removeSharedRecord[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.pt != null && Object.hasOwnProperty.call(message, "pt")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.pt); return writer; @@ -211080,35 +196856,29 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordShareUpdateRequest.decode = function decode(reader, length, error, long) { + RecordShareUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordShareUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.addSharedRecord && message.addSharedRecord.length)) message.addSharedRecord = []; - message.addSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.addSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); break; } case 2: { if (!(message.updateSharedRecord && message.updateSharedRecord.length)) message.updateSharedRecord = []; - message.updateSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.updateSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); break; } case 3: { if (!(message.removeSharedRecord && message.removeSharedRecord.length)) message.removeSharedRecord = []; - message.removeSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.removeSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); break; } case 4: { @@ -211116,7 +196886,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -211147,18 +196917,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordShareUpdateRequest.verify = function verify(message, long) { + RecordShareUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.addSharedRecord != null && message.hasOwnProperty("addSharedRecord")) { if (!Array.isArray(message.addSharedRecord)) return "addSharedRecord: array expected"; for (let i = 0; i < message.addSharedRecord.length; ++i) { - let error = $root.Records.SharedRecord.verify(message.addSharedRecord[i], long + 1); + let error = $root.Records.SharedRecord.verify(message.addSharedRecord[i]); if (error) return "addSharedRecord." + error; } @@ -211167,7 +196933,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.updateSharedRecord)) return "updateSharedRecord: array expected"; for (let i = 0; i < message.updateSharedRecord.length; ++i) { - let error = $root.Records.SharedRecord.verify(message.updateSharedRecord[i], long + 1); + let error = $root.Records.SharedRecord.verify(message.updateSharedRecord[i]); if (error) return "updateSharedRecord." + error; } @@ -211176,7 +196942,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.removeSharedRecord)) return "removeSharedRecord: array expected"; for (let i = 0; i < message.removeSharedRecord.length; ++i) { - let error = $root.Records.SharedRecord.verify(message.removeSharedRecord[i], long + 1); + let error = $root.Records.SharedRecord.verify(message.removeSharedRecord[i]); if (error) return "removeSharedRecord." + error; } @@ -211195,13 +196961,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordShareUpdateRequest} RecordShareUpdateRequest */ - RecordShareUpdateRequest.fromObject = function fromObject(object, long) { + RecordShareUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordShareUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordShareUpdateRequest(); if (object.addSharedRecord) { if (!Array.isArray(object.addSharedRecord)) @@ -211210,7 +196972,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.addSharedRecord.length; ++i) { if (typeof object.addSharedRecord[i] !== "object") throw TypeError(".Records.RecordShareUpdateRequest.addSharedRecord: object expected"); - message.addSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.addSharedRecord[i], long + 1); + message.addSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.addSharedRecord[i]); } } if (object.updateSharedRecord) { @@ -211220,7 +196982,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.updateSharedRecord.length; ++i) { if (typeof object.updateSharedRecord[i] !== "object") throw TypeError(".Records.RecordShareUpdateRequest.updateSharedRecord: object expected"); - message.updateSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.updateSharedRecord[i], long + 1); + message.updateSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.updateSharedRecord[i]); } } if (object.removeSharedRecord) { @@ -211230,7 +196992,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.removeSharedRecord.length; ++i) { if (typeof object.removeSharedRecord[i] !== "object") throw TypeError(".Records.RecordShareUpdateRequest.removeSharedRecord: object expected"); - message.removeSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.removeSharedRecord[i], long + 1); + message.removeSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.removeSharedRecord[i]); } } if (object.pt != null) @@ -211247,13 +197009,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordShareUpdateRequest.toObject = function toObject(message, options, q) { + RecordShareUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.addSharedRecord = []; @@ -211265,17 +197023,17 @@ export const Records = $root.Records = (() => { if (message.addSharedRecord && message.addSharedRecord.length) { object.addSharedRecord = []; for (let j = 0; j < message.addSharedRecord.length; ++j) - object.addSharedRecord[j] = $root.Records.SharedRecord.toObject(message.addSharedRecord[j], options, q + 1); + object.addSharedRecord[j] = $root.Records.SharedRecord.toObject(message.addSharedRecord[j], options); } if (message.updateSharedRecord && message.updateSharedRecord.length) { object.updateSharedRecord = []; for (let j = 0; j < message.updateSharedRecord.length; ++j) - object.updateSharedRecord[j] = $root.Records.SharedRecord.toObject(message.updateSharedRecord[j], options, q + 1); + object.updateSharedRecord[j] = $root.Records.SharedRecord.toObject(message.updateSharedRecord[j], options); } if (message.removeSharedRecord && message.removeSharedRecord.length) { object.removeSharedRecord = []; for (let j = 0; j < message.removeSharedRecord.length; ++j) - object.removeSharedRecord[j] = $root.Records.SharedRecord.toObject(message.removeSharedRecord[j], options, q + 1); + object.removeSharedRecord[j] = $root.Records.SharedRecord.toObject(message.removeSharedRecord[j], options); } if (message.pt != null && message.hasOwnProperty("pt")) object.pt = message.pt; @@ -211343,7 +197101,7 @@ export const Records = $root.Records = (() => { function SharedRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -211472,13 +197230,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedRecord.encode = function encode(message, writer, q) { + SharedRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.toUsername != null && Object.hasOwnProperty.call(message, "toUsername")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.toUsername); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -211532,18 +197286,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedRecord.decode = function decode(reader, length, error, long) { + SharedRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.toUsername = reader.string(); @@ -211598,7 +197346,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -211629,13 +197377,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedRecord.verify = function verify(message, long) { + SharedRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.toUsername != null && message.hasOwnProperty("toUsername")) if (!$util.isString(message.toUsername)) return "toUsername: string expected"; @@ -211692,13 +197436,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.SharedRecord} SharedRecord */ - SharedRecord.fromObject = function fromObject(object, long) { + SharedRecord.fromObject = function fromObject(object) { if (object instanceof $root.Records.SharedRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.SharedRecord(); if (object.toUsername != null) message.toUsername = String(object.toUsername); @@ -211734,7 +197474,7 @@ export const Records = $root.Records = (() => { message.removeVaultData = Boolean(object.removeVaultData); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -211775,13 +197515,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedRecord.toObject = function toObject(message, options, q) { + SharedRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.toUsername = ""; @@ -211820,9 +197556,9 @@ export const Records = $root.Records = (() => { object.removeVaultData = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } @@ -211847,9 +197583,7 @@ export const Records = $root.Records = (() => { if (message.removeVaultData != null && message.hasOwnProperty("removeVaultData")) object.removeVaultData = message.removeVaultData; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -211914,7 +197648,7 @@ export const Records = $root.Records = (() => { this.removeSharedRecordStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -211963,22 +197697,18 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordShareUpdateResponse.encode = function encode(message, writer, q) { + RecordShareUpdateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.addSharedRecordStatus != null && message.addSharedRecordStatus.length) for (let i = 0; i < message.addSharedRecordStatus.length; ++i) - $root.Records.SharedRecordStatus.encode(message.addSharedRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.SharedRecordStatus.encode(message.addSharedRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateSharedRecordStatus != null && message.updateSharedRecordStatus.length) for (let i = 0; i < message.updateSharedRecordStatus.length; ++i) - $root.Records.SharedRecordStatus.encode(message.updateSharedRecordStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Records.SharedRecordStatus.encode(message.updateSharedRecordStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.removeSharedRecordStatus != null && message.removeSharedRecordStatus.length) for (let i = 0; i < message.removeSharedRecordStatus.length; ++i) - $root.Records.SharedRecordStatus.encode(message.removeSharedRecordStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Records.SharedRecordStatus.encode(message.removeSharedRecordStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -212006,39 +197736,33 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordShareUpdateResponse.decode = function decode(reader, length, error, long) { + RecordShareUpdateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordShareUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.addSharedRecordStatus && message.addSharedRecordStatus.length)) message.addSharedRecordStatus = []; - message.addSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.addSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); break; } case 2: { if (!(message.updateSharedRecordStatus && message.updateSharedRecordStatus.length)) message.updateSharedRecordStatus = []; - message.updateSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.updateSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); break; } case 3: { if (!(message.removeSharedRecordStatus && message.removeSharedRecordStatus.length)) message.removeSharedRecordStatus = []; - message.removeSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.removeSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -212069,18 +197793,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordShareUpdateResponse.verify = function verify(message, long) { + RecordShareUpdateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.addSharedRecordStatus != null && message.hasOwnProperty("addSharedRecordStatus")) { if (!Array.isArray(message.addSharedRecordStatus)) return "addSharedRecordStatus: array expected"; for (let i = 0; i < message.addSharedRecordStatus.length; ++i) { - let error = $root.Records.SharedRecordStatus.verify(message.addSharedRecordStatus[i], long + 1); + let error = $root.Records.SharedRecordStatus.verify(message.addSharedRecordStatus[i]); if (error) return "addSharedRecordStatus." + error; } @@ -212089,7 +197809,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.updateSharedRecordStatus)) return "updateSharedRecordStatus: array expected"; for (let i = 0; i < message.updateSharedRecordStatus.length; ++i) { - let error = $root.Records.SharedRecordStatus.verify(message.updateSharedRecordStatus[i], long + 1); + let error = $root.Records.SharedRecordStatus.verify(message.updateSharedRecordStatus[i]); if (error) return "updateSharedRecordStatus." + error; } @@ -212098,7 +197818,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.removeSharedRecordStatus)) return "removeSharedRecordStatus: array expected"; for (let i = 0; i < message.removeSharedRecordStatus.length; ++i) { - let error = $root.Records.SharedRecordStatus.verify(message.removeSharedRecordStatus[i], long + 1); + let error = $root.Records.SharedRecordStatus.verify(message.removeSharedRecordStatus[i]); if (error) return "removeSharedRecordStatus." + error; } @@ -212114,13 +197834,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordShareUpdateResponse} RecordShareUpdateResponse */ - RecordShareUpdateResponse.fromObject = function fromObject(object, long) { + RecordShareUpdateResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordShareUpdateResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordShareUpdateResponse(); if (object.addSharedRecordStatus) { if (!Array.isArray(object.addSharedRecordStatus)) @@ -212129,7 +197845,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.addSharedRecordStatus.length; ++i) { if (typeof object.addSharedRecordStatus[i] !== "object") throw TypeError(".Records.RecordShareUpdateResponse.addSharedRecordStatus: object expected"); - message.addSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.addSharedRecordStatus[i], long + 1); + message.addSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.addSharedRecordStatus[i]); } } if (object.updateSharedRecordStatus) { @@ -212139,7 +197855,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.updateSharedRecordStatus.length; ++i) { if (typeof object.updateSharedRecordStatus[i] !== "object") throw TypeError(".Records.RecordShareUpdateResponse.updateSharedRecordStatus: object expected"); - message.updateSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.updateSharedRecordStatus[i], long + 1); + message.updateSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.updateSharedRecordStatus[i]); } } if (object.removeSharedRecordStatus) { @@ -212149,7 +197865,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.removeSharedRecordStatus.length; ++i) { if (typeof object.removeSharedRecordStatus[i] !== "object") throw TypeError(".Records.RecordShareUpdateResponse.removeSharedRecordStatus: object expected"); - message.removeSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.removeSharedRecordStatus[i], long + 1); + message.removeSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.removeSharedRecordStatus[i]); } } return message; @@ -212164,13 +197880,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordShareUpdateResponse.toObject = function toObject(message, options, q) { + RecordShareUpdateResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.addSharedRecordStatus = []; @@ -212180,17 +197892,17 @@ export const Records = $root.Records = (() => { if (message.addSharedRecordStatus && message.addSharedRecordStatus.length) { object.addSharedRecordStatus = []; for (let j = 0; j < message.addSharedRecordStatus.length; ++j) - object.addSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.addSharedRecordStatus[j], options, q + 1); + object.addSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.addSharedRecordStatus[j], options); } if (message.updateSharedRecordStatus && message.updateSharedRecordStatus.length) { object.updateSharedRecordStatus = []; for (let j = 0; j < message.updateSharedRecordStatus.length; ++j) - object.updateSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.updateSharedRecordStatus[j], options, q + 1); + object.updateSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.updateSharedRecordStatus[j], options); } if (message.removeSharedRecordStatus && message.removeSharedRecordStatus.length) { object.removeSharedRecordStatus = []; for (let j = 0; j < message.removeSharedRecordStatus.length; ++j) - object.removeSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.removeSharedRecordStatus[j], options, q + 1); + object.removeSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.removeSharedRecordStatus[j], options); } return object; }; @@ -212247,7 +197959,7 @@ export const Records = $root.Records = (() => { function SharedRecordStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -212304,13 +198016,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedRecordStatus.encode = function encode(message, writer, q) { + SharedRecordStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -212346,18 +198054,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedRecordStatus.decode = function decode(reader, length, error, long) { + SharedRecordStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedRecordStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -212376,7 +198078,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -212407,13 +198109,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedRecordStatus.verify = function verify(message, long) { + SharedRecordStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -212437,13 +198135,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.SharedRecordStatus} SharedRecordStatus */ - SharedRecordStatus.fromObject = function fromObject(object, long) { + SharedRecordStatus.fromObject = function fromObject(object) { if (object instanceof $root.Records.SharedRecordStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.SharedRecordStatus(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -212468,13 +198162,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedRecordStatus.toObject = function toObject(message, options, q) { + SharedRecordStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -212550,7 +198240,7 @@ export const Records = $root.Records = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -212591,13 +198281,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordPermissionsRequest.encode = function encode(message, writer, q) { + GetRecordPermissionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); @@ -212630,18 +198316,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRecordPermissionsRequest.decode = function decode(reader, length, error, long) { + GetRecordPermissionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordPermissionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordUids && message.recordUids.length)) @@ -212654,7 +198334,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -212685,13 +198365,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetRecordPermissionsRequest.verify = function verify(message, long) { + GetRecordPermissionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUids != null && message.hasOwnProperty("recordUids")) { if (!Array.isArray(message.recordUids)) return "recordUids: array expected"; @@ -212713,13 +198389,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.GetRecordPermissionsRequest} GetRecordPermissionsRequest */ - GetRecordPermissionsRequest.fromObject = function fromObject(object, long) { + GetRecordPermissionsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.GetRecordPermissionsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.GetRecordPermissionsRequest(); if (object.recordUids) { if (!Array.isArray(object.recordUids)) @@ -212745,13 +198417,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRecordPermissionsRequest.toObject = function toObject(message, options, q) { + GetRecordPermissionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordUids = []; @@ -212817,7 +198485,7 @@ export const Records = $root.Records = (() => { this.recordPermissions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -212850,16 +198518,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRecordPermissionsResponse.encode = function encode(message, writer, q) { + GetRecordPermissionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordPermissions != null && message.recordPermissions.length) for (let i = 0; i < message.recordPermissions.length; ++i) - $root.Records.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -212887,27 +198551,21 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRecordPermissionsResponse.decode = function decode(reader, length, error, long) { + GetRecordPermissionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordPermissionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordPermissions && message.recordPermissions.length)) message.recordPermissions = []; - message.recordPermissions.push($root.Records.RecordPermission.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordPermissions.push($root.Records.RecordPermission.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -212938,18 +198596,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetRecordPermissionsResponse.verify = function verify(message, long) { + GetRecordPermissionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordPermissions != null && message.hasOwnProperty("recordPermissions")) { if (!Array.isArray(message.recordPermissions)) return "recordPermissions: array expected"; for (let i = 0; i < message.recordPermissions.length; ++i) { - let error = $root.Records.RecordPermission.verify(message.recordPermissions[i], long + 1); + let error = $root.Records.RecordPermission.verify(message.recordPermissions[i]); if (error) return "recordPermissions." + error; } @@ -212965,13 +198619,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.GetRecordPermissionsResponse} GetRecordPermissionsResponse */ - GetRecordPermissionsResponse.fromObject = function fromObject(object, long) { + GetRecordPermissionsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.GetRecordPermissionsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.GetRecordPermissionsResponse(); if (object.recordPermissions) { if (!Array.isArray(object.recordPermissions)) @@ -212980,7 +198630,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.recordPermissions.length; ++i) { if (typeof object.recordPermissions[i] !== "object") throw TypeError(".Records.GetRecordPermissionsResponse.recordPermissions: object expected"); - message.recordPermissions[i] = $root.Records.RecordPermission.fromObject(object.recordPermissions[i], long + 1); + message.recordPermissions[i] = $root.Records.RecordPermission.fromObject(object.recordPermissions[i]); } } return message; @@ -212995,20 +198645,16 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRecordPermissionsResponse.toObject = function toObject(message, options, q) { + GetRecordPermissionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordPermissions = []; if (message.recordPermissions && message.recordPermissions.length) { object.recordPermissions = []; for (let j = 0; j < message.recordPermissions.length; ++j) - object.recordPermissions[j] = $root.Records.RecordPermission.toObject(message.recordPermissions[j], options, q + 1); + object.recordPermissions[j] = $root.Records.RecordPermission.toObject(message.recordPermissions[j], options); } return object; }; @@ -213066,7 +198712,7 @@ export const Records = $root.Records = (() => { function RecordPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -213131,13 +198777,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordPermission.encode = function encode(message, writer, q) { + RecordPermission.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) @@ -213175,18 +198817,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordPermission.decode = function decode(reader, length, error, long) { + RecordPermission.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordPermission(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -213209,7 +198845,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -213240,13 +198876,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordPermission.verify = function verify(message, long) { + RecordPermission.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -213273,13 +198905,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordPermission} RecordPermission */ - RecordPermission.fromObject = function fromObject(object, long) { + RecordPermission.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordPermission) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordPermission(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -213306,13 +198934,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordPermission.toObject = function toObject(message, options, q) { + RecordPermission.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -213392,7 +199016,7 @@ export const Records = $root.Records = (() => { function GetShareObjectsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -213449,13 +199073,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShareObjectsRequest.encode = function encode(message, writer, q) { + GetShareObjectsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.startWith != null && Object.hasOwnProperty.call(message, "startWith")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.startWith); if (message.contains != null && Object.hasOwnProperty.call(message, "contains")) @@ -213491,18 +199111,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShareObjectsRequest.decode = function decode(reader, length, error, long) { + GetShareObjectsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetShareObjectsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.startWith = reader.string(); @@ -213521,7 +199135,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -213552,13 +199166,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetShareObjectsRequest.verify = function verify(message, long) { + GetShareObjectsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.startWith != null && message.hasOwnProperty("startWith")) if (!$util.isString(message.startWith)) return "startWith: string expected"; @@ -213582,13 +199192,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.GetShareObjectsRequest} GetShareObjectsRequest */ - GetShareObjectsRequest.fromObject = function fromObject(object, long) { + GetShareObjectsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.GetShareObjectsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.GetShareObjectsRequest(); if (object.startWith != null) message.startWith = String(object.startWith); @@ -213613,13 +199219,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShareObjectsRequest.toObject = function toObject(message, options, q) { + GetShareObjectsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.startWith = ""; @@ -213706,7 +199308,7 @@ export const Records = $root.Records = (() => { this.shareEnterpriseNames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -213787,34 +199389,30 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetShareObjectsResponse.encode = function encode(message, writer, q) { + GetShareObjectsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.shareRelationships != null && message.shareRelationships.length) for (let i = 0; i < message.shareRelationships.length; ++i) - $root.Records.ShareUser.encode(message.shareRelationships[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.ShareUser.encode(message.shareRelationships[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.shareFamilyUsers != null && message.shareFamilyUsers.length) for (let i = 0; i < message.shareFamilyUsers.length; ++i) - $root.Records.ShareUser.encode(message.shareFamilyUsers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Records.ShareUser.encode(message.shareFamilyUsers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.shareEnterpriseUsers != null && message.shareEnterpriseUsers.length) for (let i = 0; i < message.shareEnterpriseUsers.length; ++i) - $root.Records.ShareUser.encode(message.shareEnterpriseUsers[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Records.ShareUser.encode(message.shareEnterpriseUsers[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.shareTeams != null && message.shareTeams.length) for (let i = 0; i < message.shareTeams.length; ++i) - $root.Records.ShareTeam.encode(message.shareTeams[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Records.ShareTeam.encode(message.shareTeams[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.shareMCTeams != null && message.shareMCTeams.length) for (let i = 0; i < message.shareMCTeams.length; ++i) - $root.Records.ShareTeam.encode(message.shareMCTeams[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Records.ShareTeam.encode(message.shareMCTeams[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.shareMCEnterpriseUsers != null && message.shareMCEnterpriseUsers.length) for (let i = 0; i < message.shareMCEnterpriseUsers.length; ++i) - $root.Records.ShareUser.encode(message.shareMCEnterpriseUsers[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Records.ShareUser.encode(message.shareMCEnterpriseUsers[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.shareEnterpriseNames != null && message.shareEnterpriseNames.length) for (let i = 0; i < message.shareEnterpriseNames.length; ++i) - $root.Records.ShareEnterprise.encode(message.shareEnterpriseNames[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Records.ShareEnterprise.encode(message.shareEnterpriseNames[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -213842,63 +199440,57 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetShareObjectsResponse.decode = function decode(reader, length, error, long) { + GetShareObjectsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetShareObjectsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.shareRelationships && message.shareRelationships.length)) message.shareRelationships = []; - message.shareRelationships.push($root.Records.ShareUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.shareRelationships.push($root.Records.ShareUser.decode(reader, reader.uint32())); break; } case 2: { if (!(message.shareFamilyUsers && message.shareFamilyUsers.length)) message.shareFamilyUsers = []; - message.shareFamilyUsers.push($root.Records.ShareUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.shareFamilyUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); break; } case 3: { if (!(message.shareEnterpriseUsers && message.shareEnterpriseUsers.length)) message.shareEnterpriseUsers = []; - message.shareEnterpriseUsers.push($root.Records.ShareUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.shareEnterpriseUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); break; } case 4: { if (!(message.shareTeams && message.shareTeams.length)) message.shareTeams = []; - message.shareTeams.push($root.Records.ShareTeam.decode(reader, reader.uint32(), undefined, long + 1)); + message.shareTeams.push($root.Records.ShareTeam.decode(reader, reader.uint32())); break; } case 5: { if (!(message.shareMCTeams && message.shareMCTeams.length)) message.shareMCTeams = []; - message.shareMCTeams.push($root.Records.ShareTeam.decode(reader, reader.uint32(), undefined, long + 1)); + message.shareMCTeams.push($root.Records.ShareTeam.decode(reader, reader.uint32())); break; } case 6: { if (!(message.shareMCEnterpriseUsers && message.shareMCEnterpriseUsers.length)) message.shareMCEnterpriseUsers = []; - message.shareMCEnterpriseUsers.push($root.Records.ShareUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.shareMCEnterpriseUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); break; } case 7: { if (!(message.shareEnterpriseNames && message.shareEnterpriseNames.length)) message.shareEnterpriseNames = []; - message.shareEnterpriseNames.push($root.Records.ShareEnterprise.decode(reader, reader.uint32(), undefined, long + 1)); + message.shareEnterpriseNames.push($root.Records.ShareEnterprise.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -213929,18 +199521,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetShareObjectsResponse.verify = function verify(message, long) { + GetShareObjectsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.shareRelationships != null && message.hasOwnProperty("shareRelationships")) { if (!Array.isArray(message.shareRelationships)) return "shareRelationships: array expected"; for (let i = 0; i < message.shareRelationships.length; ++i) { - let error = $root.Records.ShareUser.verify(message.shareRelationships[i], long + 1); + let error = $root.Records.ShareUser.verify(message.shareRelationships[i]); if (error) return "shareRelationships." + error; } @@ -213949,7 +199537,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.shareFamilyUsers)) return "shareFamilyUsers: array expected"; for (let i = 0; i < message.shareFamilyUsers.length; ++i) { - let error = $root.Records.ShareUser.verify(message.shareFamilyUsers[i], long + 1); + let error = $root.Records.ShareUser.verify(message.shareFamilyUsers[i]); if (error) return "shareFamilyUsers." + error; } @@ -213958,7 +199546,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.shareEnterpriseUsers)) return "shareEnterpriseUsers: array expected"; for (let i = 0; i < message.shareEnterpriseUsers.length; ++i) { - let error = $root.Records.ShareUser.verify(message.shareEnterpriseUsers[i], long + 1); + let error = $root.Records.ShareUser.verify(message.shareEnterpriseUsers[i]); if (error) return "shareEnterpriseUsers." + error; } @@ -213967,7 +199555,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.shareTeams)) return "shareTeams: array expected"; for (let i = 0; i < message.shareTeams.length; ++i) { - let error = $root.Records.ShareTeam.verify(message.shareTeams[i], long + 1); + let error = $root.Records.ShareTeam.verify(message.shareTeams[i]); if (error) return "shareTeams." + error; } @@ -213976,7 +199564,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.shareMCTeams)) return "shareMCTeams: array expected"; for (let i = 0; i < message.shareMCTeams.length; ++i) { - let error = $root.Records.ShareTeam.verify(message.shareMCTeams[i], long + 1); + let error = $root.Records.ShareTeam.verify(message.shareMCTeams[i]); if (error) return "shareMCTeams." + error; } @@ -213985,7 +199573,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.shareMCEnterpriseUsers)) return "shareMCEnterpriseUsers: array expected"; for (let i = 0; i < message.shareMCEnterpriseUsers.length; ++i) { - let error = $root.Records.ShareUser.verify(message.shareMCEnterpriseUsers[i], long + 1); + let error = $root.Records.ShareUser.verify(message.shareMCEnterpriseUsers[i]); if (error) return "shareMCEnterpriseUsers." + error; } @@ -213994,7 +199582,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.shareEnterpriseNames)) return "shareEnterpriseNames: array expected"; for (let i = 0; i < message.shareEnterpriseNames.length; ++i) { - let error = $root.Records.ShareEnterprise.verify(message.shareEnterpriseNames[i], long + 1); + let error = $root.Records.ShareEnterprise.verify(message.shareEnterpriseNames[i]); if (error) return "shareEnterpriseNames." + error; } @@ -214010,13 +199598,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.GetShareObjectsResponse} GetShareObjectsResponse */ - GetShareObjectsResponse.fromObject = function fromObject(object, long) { + GetShareObjectsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.GetShareObjectsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.GetShareObjectsResponse(); if (object.shareRelationships) { if (!Array.isArray(object.shareRelationships)) @@ -214025,7 +199609,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.shareRelationships.length; ++i) { if (typeof object.shareRelationships[i] !== "object") throw TypeError(".Records.GetShareObjectsResponse.shareRelationships: object expected"); - message.shareRelationships[i] = $root.Records.ShareUser.fromObject(object.shareRelationships[i], long + 1); + message.shareRelationships[i] = $root.Records.ShareUser.fromObject(object.shareRelationships[i]); } } if (object.shareFamilyUsers) { @@ -214035,7 +199619,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.shareFamilyUsers.length; ++i) { if (typeof object.shareFamilyUsers[i] !== "object") throw TypeError(".Records.GetShareObjectsResponse.shareFamilyUsers: object expected"); - message.shareFamilyUsers[i] = $root.Records.ShareUser.fromObject(object.shareFamilyUsers[i], long + 1); + message.shareFamilyUsers[i] = $root.Records.ShareUser.fromObject(object.shareFamilyUsers[i]); } } if (object.shareEnterpriseUsers) { @@ -214045,7 +199629,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.shareEnterpriseUsers.length; ++i) { if (typeof object.shareEnterpriseUsers[i] !== "object") throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseUsers: object expected"); - message.shareEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareEnterpriseUsers[i], long + 1); + message.shareEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareEnterpriseUsers[i]); } } if (object.shareTeams) { @@ -214055,7 +199639,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.shareTeams.length; ++i) { if (typeof object.shareTeams[i] !== "object") throw TypeError(".Records.GetShareObjectsResponse.shareTeams: object expected"); - message.shareTeams[i] = $root.Records.ShareTeam.fromObject(object.shareTeams[i], long + 1); + message.shareTeams[i] = $root.Records.ShareTeam.fromObject(object.shareTeams[i]); } } if (object.shareMCTeams) { @@ -214065,7 +199649,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.shareMCTeams.length; ++i) { if (typeof object.shareMCTeams[i] !== "object") throw TypeError(".Records.GetShareObjectsResponse.shareMCTeams: object expected"); - message.shareMCTeams[i] = $root.Records.ShareTeam.fromObject(object.shareMCTeams[i], long + 1); + message.shareMCTeams[i] = $root.Records.ShareTeam.fromObject(object.shareMCTeams[i]); } } if (object.shareMCEnterpriseUsers) { @@ -214075,7 +199659,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.shareMCEnterpriseUsers.length; ++i) { if (typeof object.shareMCEnterpriseUsers[i] !== "object") throw TypeError(".Records.GetShareObjectsResponse.shareMCEnterpriseUsers: object expected"); - message.shareMCEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareMCEnterpriseUsers[i], long + 1); + message.shareMCEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareMCEnterpriseUsers[i]); } } if (object.shareEnterpriseNames) { @@ -214085,7 +199669,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.shareEnterpriseNames.length; ++i) { if (typeof object.shareEnterpriseNames[i] !== "object") throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseNames: object expected"); - message.shareEnterpriseNames[i] = $root.Records.ShareEnterprise.fromObject(object.shareEnterpriseNames[i], long + 1); + message.shareEnterpriseNames[i] = $root.Records.ShareEnterprise.fromObject(object.shareEnterpriseNames[i]); } } return message; @@ -214100,13 +199684,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetShareObjectsResponse.toObject = function toObject(message, options, q) { + GetShareObjectsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.shareRelationships = []; @@ -214120,37 +199700,37 @@ export const Records = $root.Records = (() => { if (message.shareRelationships && message.shareRelationships.length) { object.shareRelationships = []; for (let j = 0; j < message.shareRelationships.length; ++j) - object.shareRelationships[j] = $root.Records.ShareUser.toObject(message.shareRelationships[j], options, q + 1); + object.shareRelationships[j] = $root.Records.ShareUser.toObject(message.shareRelationships[j], options); } if (message.shareFamilyUsers && message.shareFamilyUsers.length) { object.shareFamilyUsers = []; for (let j = 0; j < message.shareFamilyUsers.length; ++j) - object.shareFamilyUsers[j] = $root.Records.ShareUser.toObject(message.shareFamilyUsers[j], options, q + 1); + object.shareFamilyUsers[j] = $root.Records.ShareUser.toObject(message.shareFamilyUsers[j], options); } if (message.shareEnterpriseUsers && message.shareEnterpriseUsers.length) { object.shareEnterpriseUsers = []; for (let j = 0; j < message.shareEnterpriseUsers.length; ++j) - object.shareEnterpriseUsers[j] = $root.Records.ShareUser.toObject(message.shareEnterpriseUsers[j], options, q + 1); + object.shareEnterpriseUsers[j] = $root.Records.ShareUser.toObject(message.shareEnterpriseUsers[j], options); } if (message.shareTeams && message.shareTeams.length) { object.shareTeams = []; for (let j = 0; j < message.shareTeams.length; ++j) - object.shareTeams[j] = $root.Records.ShareTeam.toObject(message.shareTeams[j], options, q + 1); + object.shareTeams[j] = $root.Records.ShareTeam.toObject(message.shareTeams[j], options); } if (message.shareMCTeams && message.shareMCTeams.length) { object.shareMCTeams = []; for (let j = 0; j < message.shareMCTeams.length; ++j) - object.shareMCTeams[j] = $root.Records.ShareTeam.toObject(message.shareMCTeams[j], options, q + 1); + object.shareMCTeams[j] = $root.Records.ShareTeam.toObject(message.shareMCTeams[j], options); } if (message.shareMCEnterpriseUsers && message.shareMCEnterpriseUsers.length) { object.shareMCEnterpriseUsers = []; for (let j = 0; j < message.shareMCEnterpriseUsers.length; ++j) - object.shareMCEnterpriseUsers[j] = $root.Records.ShareUser.toObject(message.shareMCEnterpriseUsers[j], options, q + 1); + object.shareMCEnterpriseUsers[j] = $root.Records.ShareUser.toObject(message.shareMCEnterpriseUsers[j], options); } if (message.shareEnterpriseNames && message.shareEnterpriseNames.length) { object.shareEnterpriseNames = []; for (let j = 0; j < message.shareEnterpriseNames.length; ++j) - object.shareEnterpriseNames[j] = $root.Records.ShareEnterprise.toObject(message.shareEnterpriseNames[j], options, q + 1); + object.shareEnterpriseNames[j] = $root.Records.ShareEnterprise.toObject(message.shareEnterpriseNames[j], options); } return object; }; @@ -214210,7 +199790,7 @@ export const Records = $root.Records = (() => { function ShareUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -214291,13 +199871,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareUser.encode = function encode(message, writer, q) { + ShareUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.fullname != null && Object.hasOwnProperty.call(message, "fullname")) @@ -214339,18 +199915,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShareUser.decode = function decode(reader, length, error, long) { + ShareUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -214381,7 +199951,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -214412,13 +199982,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShareUser.verify = function verify(message, long) { + ShareUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -214457,13 +200023,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.ShareUser} ShareUser */ - ShareUser.fromObject = function fromObject(object, long) { + ShareUser.fromObject = function fromObject(object) { if (object instanceof $root.Records.ShareUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.ShareUser(); if (object.username != null) message.username = String(object.username); @@ -214512,13 +200074,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShareUser.toObject = function toObject(message, options, q) { + ShareUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -214603,7 +200161,7 @@ export const Records = $root.Records = (() => { function ShareTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -214652,13 +200210,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareTeam.encode = function encode(message, writer, q) { + ShareTeam.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamname != null && Object.hasOwnProperty.call(message, "teamname")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.teamname); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) @@ -214692,18 +200246,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShareTeam.decode = function decode(reader, length, error, long) { + ShareTeam.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareTeam(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamname = reader.string(); @@ -214718,7 +200266,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -214749,13 +200297,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShareTeam.verify = function verify(message, long) { + ShareTeam.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamname != null && message.hasOwnProperty("teamname")) if (!$util.isString(message.teamname)) return "teamname: string expected"; @@ -214776,13 +200320,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.ShareTeam} ShareTeam */ - ShareTeam.fromObject = function fromObject(object, long) { + ShareTeam.fromObject = function fromObject(object) { if (object instanceof $root.Records.ShareTeam) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.ShareTeam(); if (object.teamname != null) message.teamname = String(object.teamname); @@ -214805,13 +200345,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShareTeam.toObject = function toObject(message, options, q) { + ShareTeam.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.teamname = ""; @@ -214883,7 +200419,7 @@ export const Records = $root.Records = (() => { function ShareEnterprise(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -214924,13 +200460,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareEnterprise.encode = function encode(message, writer, q) { + ShareEnterprise.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterprisename != null && Object.hasOwnProperty.call(message, "enterprisename")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.enterprisename); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) @@ -214962,18 +200494,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShareEnterprise.decode = function decode(reader, length, error, long) { + ShareEnterprise.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareEnterprise(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterprisename = reader.string(); @@ -214984,7 +200510,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -215015,13 +200541,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShareEnterprise.verify = function verify(message, long) { + ShareEnterprise.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterprisename != null && message.hasOwnProperty("enterprisename")) if (!$util.isString(message.enterprisename)) return "enterprisename: string expected"; @@ -215039,13 +200561,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.ShareEnterprise} ShareEnterprise */ - ShareEnterprise.fromObject = function fromObject(object, long) { + ShareEnterprise.fromObject = function fromObject(object) { if (object instanceof $root.Records.ShareEnterprise) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.ShareEnterprise(); if (object.enterprisename != null) message.enterprisename = String(object.enterprisename); @@ -215063,13 +200581,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShareEnterprise.toObject = function toObject(message, options, q) { + ShareEnterprise.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.enterprisename = ""; @@ -215148,7 +200662,7 @@ export const Records = $root.Records = (() => { this.transferRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -215181,16 +200695,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsOnwershipTransferRequest.encode = function encode(message, writer, q) { + RecordsOnwershipTransferRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.transferRecords != null && message.transferRecords.length) for (let i = 0; i < message.transferRecords.length; ++i) - $root.Records.TransferRecord.encode(message.transferRecords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.TransferRecord.encode(message.transferRecords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -215218,27 +200728,21 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsOnwershipTransferRequest.decode = function decode(reader, length, error, long) { + RecordsOnwershipTransferRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsOnwershipTransferRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.transferRecords && message.transferRecords.length)) message.transferRecords = []; - message.transferRecords.push($root.Records.TransferRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.transferRecords.push($root.Records.TransferRecord.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -215269,18 +200773,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsOnwershipTransferRequest.verify = function verify(message, long) { + RecordsOnwershipTransferRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.transferRecords != null && message.hasOwnProperty("transferRecords")) { if (!Array.isArray(message.transferRecords)) return "transferRecords: array expected"; for (let i = 0; i < message.transferRecords.length; ++i) { - let error = $root.Records.TransferRecord.verify(message.transferRecords[i], long + 1); + let error = $root.Records.TransferRecord.verify(message.transferRecords[i]); if (error) return "transferRecords." + error; } @@ -215296,13 +200796,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsOnwershipTransferRequest} RecordsOnwershipTransferRequest */ - RecordsOnwershipTransferRequest.fromObject = function fromObject(object, long) { + RecordsOnwershipTransferRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsOnwershipTransferRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsOnwershipTransferRequest(); if (object.transferRecords) { if (!Array.isArray(object.transferRecords)) @@ -215311,7 +200807,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.transferRecords.length; ++i) { if (typeof object.transferRecords[i] !== "object") throw TypeError(".Records.RecordsOnwershipTransferRequest.transferRecords: object expected"); - message.transferRecords[i] = $root.Records.TransferRecord.fromObject(object.transferRecords[i], long + 1); + message.transferRecords[i] = $root.Records.TransferRecord.fromObject(object.transferRecords[i]); } } return message; @@ -215326,20 +200822,16 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsOnwershipTransferRequest.toObject = function toObject(message, options, q) { + RecordsOnwershipTransferRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.transferRecords = []; if (message.transferRecords && message.transferRecords.length) { object.transferRecords = []; for (let j = 0; j < message.transferRecords.length; ++j) - object.transferRecords[j] = $root.Records.TransferRecord.toObject(message.transferRecords[j], options, q + 1); + object.transferRecords[j] = $root.Records.TransferRecord.toObject(message.transferRecords[j], options); } return object; }; @@ -215396,7 +200888,7 @@ export const Records = $root.Records = (() => { function TransferRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -215453,13 +200945,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransferRecord.encode = function encode(message, writer, q) { + TransferRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -215495,18 +200983,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransferRecord.decode = function decode(reader, length, error, long) { + TransferRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TransferRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -215525,7 +201007,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -215556,13 +201038,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransferRecord.verify = function verify(message, long) { + TransferRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -215586,13 +201064,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.TransferRecord} TransferRecord */ - TransferRecord.fromObject = function fromObject(object, long) { + TransferRecord.fromObject = function fromObject(object) { if (object instanceof $root.Records.TransferRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.TransferRecord(); if (object.username != null) message.username = String(object.username); @@ -215620,13 +201094,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransferRecord.toObject = function toObject(message, options, q) { + TransferRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -215707,7 +201177,7 @@ export const Records = $root.Records = (() => { this.transferRecordStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -215740,16 +201210,12 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsOnwershipTransferResponse.encode = function encode(message, writer, q) { + RecordsOnwershipTransferResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.transferRecordStatus != null && message.transferRecordStatus.length) for (let i = 0; i < message.transferRecordStatus.length; ++i) - $root.Records.TransferRecordStatus.encode(message.transferRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.TransferRecordStatus.encode(message.transferRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -215777,27 +201243,21 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsOnwershipTransferResponse.decode = function decode(reader, length, error, long) { + RecordsOnwershipTransferResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsOnwershipTransferResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.transferRecordStatus && message.transferRecordStatus.length)) message.transferRecordStatus = []; - message.transferRecordStatus.push($root.Records.TransferRecordStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.transferRecordStatus.push($root.Records.TransferRecordStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -215828,18 +201288,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsOnwershipTransferResponse.verify = function verify(message, long) { + RecordsOnwershipTransferResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.transferRecordStatus != null && message.hasOwnProperty("transferRecordStatus")) { if (!Array.isArray(message.transferRecordStatus)) return "transferRecordStatus: array expected"; for (let i = 0; i < message.transferRecordStatus.length; ++i) { - let error = $root.Records.TransferRecordStatus.verify(message.transferRecordStatus[i], long + 1); + let error = $root.Records.TransferRecordStatus.verify(message.transferRecordStatus[i]); if (error) return "transferRecordStatus." + error; } @@ -215855,13 +201311,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsOnwershipTransferResponse} RecordsOnwershipTransferResponse */ - RecordsOnwershipTransferResponse.fromObject = function fromObject(object, long) { + RecordsOnwershipTransferResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsOnwershipTransferResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsOnwershipTransferResponse(); if (object.transferRecordStatus) { if (!Array.isArray(object.transferRecordStatus)) @@ -215870,7 +201322,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.transferRecordStatus.length; ++i) { if (typeof object.transferRecordStatus[i] !== "object") throw TypeError(".Records.RecordsOnwershipTransferResponse.transferRecordStatus: object expected"); - message.transferRecordStatus[i] = $root.Records.TransferRecordStatus.fromObject(object.transferRecordStatus[i], long + 1); + message.transferRecordStatus[i] = $root.Records.TransferRecordStatus.fromObject(object.transferRecordStatus[i]); } } return message; @@ -215885,20 +201337,16 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsOnwershipTransferResponse.toObject = function toObject(message, options, q) { + RecordsOnwershipTransferResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.transferRecordStatus = []; if (message.transferRecordStatus && message.transferRecordStatus.length) { object.transferRecordStatus = []; for (let j = 0; j < message.transferRecordStatus.length; ++j) - object.transferRecordStatus[j] = $root.Records.TransferRecordStatus.toObject(message.transferRecordStatus[j], options, q + 1); + object.transferRecordStatus[j] = $root.Records.TransferRecordStatus.toObject(message.transferRecordStatus[j], options); } return object; }; @@ -215955,7 +201403,7 @@ export const Records = $root.Records = (() => { function TransferRecordStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -216012,13 +201460,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransferRecordStatus.encode = function encode(message, writer, q) { + TransferRecordStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -216054,18 +201498,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransferRecordStatus.decode = function decode(reader, length, error, long) { + TransferRecordStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TransferRecordStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -216084,7 +201522,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -216115,13 +201553,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransferRecordStatus.verify = function verify(message, long) { + TransferRecordStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -216145,13 +201579,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.TransferRecordStatus} TransferRecordStatus */ - TransferRecordStatus.fromObject = function fromObject(object, long) { + TransferRecordStatus.fromObject = function fromObject(object) { if (object instanceof $root.Records.TransferRecordStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.TransferRecordStatus(); if (object.username != null) message.username = String(object.username); @@ -216176,13 +201606,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransferRecordStatus.toObject = function toObject(message, options, q) { + TransferRecordStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -216259,7 +201685,7 @@ export const Records = $root.Records = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -216300,19 +201726,15 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareRequest.encode = function encode(message, writer, q) { + RecordsUnshareRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolders != null && message.sharedFolders.length) for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Records.RecordsUnshareFolder.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordsUnshareFolder.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Records.RecordsUnshareUser.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Records.RecordsUnshareUser.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -216340,33 +201762,27 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsUnshareRequest.decode = function decode(reader, length, error, long) { + RecordsUnshareRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.sharedFolders && message.sharedFolders.length)) message.sharedFolders = []; - message.sharedFolders.push($root.Records.RecordsUnshareFolder.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolders.push($root.Records.RecordsUnshareFolder.decode(reader, reader.uint32())); break; } case 2: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Records.RecordsUnshareUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Records.RecordsUnshareUser.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -216397,18 +201813,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsUnshareRequest.verify = function verify(message, long) { + RecordsUnshareRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolders != null && message.hasOwnProperty("sharedFolders")) { if (!Array.isArray(message.sharedFolders)) return "sharedFolders: array expected"; for (let i = 0; i < message.sharedFolders.length; ++i) { - let error = $root.Records.RecordsUnshareFolder.verify(message.sharedFolders[i], long + 1); + let error = $root.Records.RecordsUnshareFolder.verify(message.sharedFolders[i]); if (error) return "sharedFolders." + error; } @@ -216417,7 +201829,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Records.RecordsUnshareUser.verify(message.users[i], long + 1); + let error = $root.Records.RecordsUnshareUser.verify(message.users[i]); if (error) return "users." + error; } @@ -216433,13 +201845,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsUnshareRequest} RecordsUnshareRequest */ - RecordsUnshareRequest.fromObject = function fromObject(object, long) { + RecordsUnshareRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsUnshareRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsUnshareRequest(); if (object.sharedFolders) { if (!Array.isArray(object.sharedFolders)) @@ -216448,7 +201856,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.sharedFolders.length; ++i) { if (typeof object.sharedFolders[i] !== "object") throw TypeError(".Records.RecordsUnshareRequest.sharedFolders: object expected"); - message.sharedFolders[i] = $root.Records.RecordsUnshareFolder.fromObject(object.sharedFolders[i], long + 1); + message.sharedFolders[i] = $root.Records.RecordsUnshareFolder.fromObject(object.sharedFolders[i]); } } if (object.users) { @@ -216458,7 +201866,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Records.RecordsUnshareRequest.users: object expected"); - message.users[i] = $root.Records.RecordsUnshareUser.fromObject(object.users[i], long + 1); + message.users[i] = $root.Records.RecordsUnshareUser.fromObject(object.users[i]); } } return message; @@ -216473,13 +201881,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareRequest.toObject = function toObject(message, options, q) { + RecordsUnshareRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.sharedFolders = []; @@ -216488,12 +201892,12 @@ export const Records = $root.Records = (() => { if (message.sharedFolders && message.sharedFolders.length) { object.sharedFolders = []; for (let j = 0; j < message.sharedFolders.length; ++j) - object.sharedFolders[j] = $root.Records.RecordsUnshareFolder.toObject(message.sharedFolders[j], options, q + 1); + object.sharedFolders[j] = $root.Records.RecordsUnshareFolder.toObject(message.sharedFolders[j], options); } if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Records.RecordsUnshareUser.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Records.RecordsUnshareUser.toObject(message.users[j], options); } return object; }; @@ -216550,7 +201954,7 @@ export const Records = $root.Records = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -216591,19 +201995,15 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareResponse.encode = function encode(message, writer, q) { + RecordsUnshareResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolders != null && message.sharedFolders.length) for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Records.RecordsUnshareFolderStatus.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Records.RecordsUnshareFolderStatus.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Records.RecordsUnshareUserStatus.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Records.RecordsUnshareUserStatus.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -216631,33 +202031,27 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsUnshareResponse.decode = function decode(reader, length, error, long) { + RecordsUnshareResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.sharedFolders && message.sharedFolders.length)) message.sharedFolders = []; - message.sharedFolders.push($root.Records.RecordsUnshareFolderStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolders.push($root.Records.RecordsUnshareFolderStatus.decode(reader, reader.uint32())); break; } case 2: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Records.RecordsUnshareUserStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Records.RecordsUnshareUserStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -216688,18 +202082,14 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsUnshareResponse.verify = function verify(message, long) { + RecordsUnshareResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolders != null && message.hasOwnProperty("sharedFolders")) { if (!Array.isArray(message.sharedFolders)) return "sharedFolders: array expected"; for (let i = 0; i < message.sharedFolders.length; ++i) { - let error = $root.Records.RecordsUnshareFolderStatus.verify(message.sharedFolders[i], long + 1); + let error = $root.Records.RecordsUnshareFolderStatus.verify(message.sharedFolders[i]); if (error) return "sharedFolders." + error; } @@ -216708,7 +202098,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Records.RecordsUnshareUserStatus.verify(message.users[i], long + 1); + let error = $root.Records.RecordsUnshareUserStatus.verify(message.users[i]); if (error) return "users." + error; } @@ -216724,13 +202114,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsUnshareResponse} RecordsUnshareResponse */ - RecordsUnshareResponse.fromObject = function fromObject(object, long) { + RecordsUnshareResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsUnshareResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsUnshareResponse(); if (object.sharedFolders) { if (!Array.isArray(object.sharedFolders)) @@ -216739,7 +202125,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.sharedFolders.length; ++i) { if (typeof object.sharedFolders[i] !== "object") throw TypeError(".Records.RecordsUnshareResponse.sharedFolders: object expected"); - message.sharedFolders[i] = $root.Records.RecordsUnshareFolderStatus.fromObject(object.sharedFolders[i], long + 1); + message.sharedFolders[i] = $root.Records.RecordsUnshareFolderStatus.fromObject(object.sharedFolders[i]); } } if (object.users) { @@ -216749,7 +202135,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Records.RecordsUnshareResponse.users: object expected"); - message.users[i] = $root.Records.RecordsUnshareUserStatus.fromObject(object.users[i], long + 1); + message.users[i] = $root.Records.RecordsUnshareUserStatus.fromObject(object.users[i]); } } return message; @@ -216764,13 +202150,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareResponse.toObject = function toObject(message, options, q) { + RecordsUnshareResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.sharedFolders = []; @@ -216779,12 +202161,12 @@ export const Records = $root.Records = (() => { if (message.sharedFolders && message.sharedFolders.length) { object.sharedFolders = []; for (let j = 0; j < message.sharedFolders.length; ++j) - object.sharedFolders[j] = $root.Records.RecordsUnshareFolderStatus.toObject(message.sharedFolders[j], options, q + 1); + object.sharedFolders[j] = $root.Records.RecordsUnshareFolderStatus.toObject(message.sharedFolders[j], options); } if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Records.RecordsUnshareUserStatus.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Records.RecordsUnshareUserStatus.toObject(message.users[j], options); } return object; }; @@ -216839,7 +202221,7 @@ export const Records = $root.Records = (() => { function RecordsUnshareFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -216880,13 +202262,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareFolder.encode = function encode(message, writer, q) { + RecordsUnshareFolder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) @@ -216918,18 +202296,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsUnshareFolder.decode = function decode(reader, length, error, long) { + RecordsUnshareFolder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareFolder(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -216940,7 +202312,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -216971,13 +202343,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsUnshareFolder.verify = function verify(message, long) { + RecordsUnshareFolder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -216995,13 +202363,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsUnshareFolder} RecordsUnshareFolder */ - RecordsUnshareFolder.fromObject = function fromObject(object, long) { + RecordsUnshareFolder.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsUnshareFolder) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsUnshareFolder(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -217025,13 +202389,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareFolder.toObject = function toObject(message, options, q) { + RecordsUnshareFolder.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -217106,7 +202466,7 @@ export const Records = $root.Records = (() => { function RecordsUnshareUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -217147,13 +202507,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareUser.encode = function encode(message, writer, q) { + RecordsUnshareUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) @@ -217185,18 +202541,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsUnshareUser.decode = function decode(reader, length, error, long) { + RecordsUnshareUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -217207,7 +202557,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -217238,13 +202588,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsUnshareUser.verify = function verify(message, long) { + RecordsUnshareUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -217262,13 +202608,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsUnshareUser} RecordsUnshareUser */ - RecordsUnshareUser.fromObject = function fromObject(object, long) { + RecordsUnshareUser.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsUnshareUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsUnshareUser(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -217292,13 +202634,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareUser.toObject = function toObject(message, options, q) { + RecordsUnshareUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -217373,7 +202711,7 @@ export const Records = $root.Records = (() => { function RecordsUnshareFolderStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -217414,13 +202752,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareFolderStatus.encode = function encode(message, writer, q) { + RecordsUnshareFolderStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) @@ -217452,18 +202786,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsUnshareFolderStatus.decode = function decode(reader, length, error, long) { + RecordsUnshareFolderStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareFolderStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -217474,7 +202802,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -217505,13 +202833,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsUnshareFolderStatus.verify = function verify(message, long) { + RecordsUnshareFolderStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -217529,13 +202853,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsUnshareFolderStatus} RecordsUnshareFolderStatus */ - RecordsUnshareFolderStatus.fromObject = function fromObject(object, long) { + RecordsUnshareFolderStatus.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsUnshareFolderStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsUnshareFolderStatus(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -217559,13 +202879,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareFolderStatus.toObject = function toObject(message, options, q) { + RecordsUnshareFolderStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -217640,7 +202956,7 @@ export const Records = $root.Records = (() => { function RecordsUnshareUserStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -217681,13 +202997,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordsUnshareUserStatus.encode = function encode(message, writer, q) { + RecordsUnshareUserStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) @@ -217719,18 +203031,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordsUnshareUserStatus.decode = function decode(reader, length, error, long) { + RecordsUnshareUserStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareUserStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -217741,7 +203047,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -217772,13 +203078,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordsUnshareUserStatus.verify = function verify(message, long) { + RecordsUnshareUserStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -217796,13 +203098,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.RecordsUnshareUserStatus} RecordsUnshareUserStatus */ - RecordsUnshareUserStatus.fromObject = function fromObject(object, long) { + RecordsUnshareUserStatus.fromObject = function fromObject(object) { if (object instanceof $root.Records.RecordsUnshareUserStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.RecordsUnshareUserStatus(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -217826,13 +203124,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordsUnshareUserStatus.toObject = function toObject(message, options, q) { + RecordsUnshareUserStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -217966,7 +203260,7 @@ export const Records = $root.Records = (() => { function TimedAccessCallbackPayload(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -217999,13 +203293,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimedAccessCallbackPayload.encode = function encode(message, writer, q) { + TimedAccessCallbackPayload.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "timeLimitedAccessType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.timeLimitedAccessType); return writer; @@ -218035,25 +203325,19 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimedAccessCallbackPayload.decode = function decode(reader, length, error, long) { + TimedAccessCallbackPayload.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimedAccessCallbackPayload(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.timeLimitedAccessType = reader.int32(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -218084,13 +203368,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimedAccessCallbackPayload.verify = function verify(message, long) { + TimedAccessCallbackPayload.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) switch (message.timeLimitedAccessType) { default: @@ -218118,13 +203398,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.TimedAccessCallbackPayload} TimedAccessCallbackPayload */ - TimedAccessCallbackPayload.fromObject = function fromObject(object, long) { + TimedAccessCallbackPayload.fromObject = function fromObject(object) { if (object instanceof $root.Records.TimedAccessCallbackPayload) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.TimedAccessCallbackPayload(); switch (object.timeLimitedAccessType) { default: @@ -218186,13 +203462,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimedAccessCallbackPayload.toObject = function toObject(message, options, q) { + TimedAccessCallbackPayload.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; @@ -218259,7 +203531,7 @@ export const Records = $root.Records = (() => { this.recordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -218340,13 +203612,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessRequest.encode = function encode(message, writer, q) { + TimeLimitedAccessRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.accountUid != null && message.accountUid.length) for (let i = 0; i < message.accountUid.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid[i]); @@ -218391,18 +203659,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimeLimitedAccessRequest.decode = function decode(reader, length, error, long) { + TimeLimitedAccessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.accountUid && message.accountUid.length)) @@ -218439,7 +203701,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -218470,13 +203732,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimeLimitedAccessRequest.verify = function verify(message, long) { + TimeLimitedAccessRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.accountUid != null && message.hasOwnProperty("accountUid")) { if (!Array.isArray(message.accountUid)) return "accountUid: array expected"; @@ -218540,13 +203798,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.TimeLimitedAccessRequest} TimeLimitedAccessRequest */ - TimeLimitedAccessRequest.fromObject = function fromObject(object, long) { + TimeLimitedAccessRequest.fromObject = function fromObject(object) { if (object instanceof $root.Records.TimeLimitedAccessRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.TimeLimitedAccessRequest(); if (object.accountUid) { if (!Array.isArray(object.accountUid)) @@ -218633,7 +203887,7 @@ export const Records = $root.Records = (() => { } if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -218672,13 +203926,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeLimitedAccessRequest.toObject = function toObject(message, options, q) { + TimeLimitedAccessRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.accountUid = []; @@ -218696,9 +203946,9 @@ export const Records = $root.Records = (() => { object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; } if (message.accountUid && message.accountUid.length) { @@ -218721,9 +203971,7 @@ export const Records = $root.Records = (() => { if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) object.timeLimitedAccessType = options.enums === String ? $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined ? message.timeLimitedAccessType : $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] : message.timeLimitedAccessType; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -218782,7 +204030,7 @@ export const Records = $root.Records = (() => { function TimeLimitedAccessStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -218823,13 +204071,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessStatus.encode = function encode(message, writer, q) { + TimeLimitedAccessStatus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -218861,18 +204105,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimeLimitedAccessStatus.decode = function decode(reader, length, error, long) { + TimeLimitedAccessStatus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessStatus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); @@ -218883,7 +204121,7 @@ export const Records = $root.Records = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -218914,13 +204152,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimeLimitedAccessStatus.verify = function verify(message, long) { + TimeLimitedAccessStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -218938,13 +204172,9 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.TimeLimitedAccessStatus} TimeLimitedAccessStatus */ - TimeLimitedAccessStatus.fromObject = function fromObject(object, long) { + TimeLimitedAccessStatus.fromObject = function fromObject(object) { if (object instanceof $root.Records.TimeLimitedAccessStatus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.TimeLimitedAccessStatus(); if (object.uid != null) if (typeof object.uid === "string") @@ -218965,13 +204195,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeLimitedAccessStatus.toObject = function toObject(message, options, q) { + TimeLimitedAccessStatus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -219045,7 +204271,7 @@ export const Records = $root.Records = (() => { this.recordAccessStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -219102,24 +204328,20 @@ export const Records = $root.Records = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeLimitedAccessResponse.encode = function encode(message, writer, q) { + TimeLimitedAccessResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); if (message.userAccessStatus != null && message.userAccessStatus.length) for (let i = 0; i < message.userAccessStatus.length; ++i) - $root.Records.TimeLimitedAccessStatus.encode(message.userAccessStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Records.TimeLimitedAccessStatus.encode(message.userAccessStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.teamAccessStatus != null && message.teamAccessStatus.length) for (let i = 0; i < message.teamAccessStatus.length; ++i) - $root.Records.TimeLimitedAccessStatus.encode(message.teamAccessStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Records.TimeLimitedAccessStatus.encode(message.teamAccessStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.recordAccessStatus != null && message.recordAccessStatus.length) for (let i = 0; i < message.recordAccessStatus.length; ++i) - $root.Records.TimeLimitedAccessStatus.encode(message.recordAccessStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Records.TimeLimitedAccessStatus.encode(message.recordAccessStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -219147,18 +204369,12 @@ export const Records = $root.Records = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimeLimitedAccessResponse.decode = function decode(reader, length, error, long) { + TimeLimitedAccessResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.revision = reader.int64(); @@ -219167,23 +204383,23 @@ export const Records = $root.Records = (() => { case 2: { if (!(message.userAccessStatus && message.userAccessStatus.length)) message.userAccessStatus = []; - message.userAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.userAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); break; } case 3: { if (!(message.teamAccessStatus && message.teamAccessStatus.length)) message.teamAccessStatus = []; - message.teamAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.teamAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); break; } case 4: { if (!(message.recordAccessStatus && message.recordAccessStatus.length)) message.recordAccessStatus = []; - message.recordAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -219214,13 +204430,9 @@ export const Records = $root.Records = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimeLimitedAccessResponse.verify = function verify(message, long) { + TimeLimitedAccessResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.revision != null && message.hasOwnProperty("revision")) if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) return "revision: integer|Long expected"; @@ -219228,7 +204440,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.userAccessStatus)) return "userAccessStatus: array expected"; for (let i = 0; i < message.userAccessStatus.length; ++i) { - let error = $root.Records.TimeLimitedAccessStatus.verify(message.userAccessStatus[i], long + 1); + let error = $root.Records.TimeLimitedAccessStatus.verify(message.userAccessStatus[i]); if (error) return "userAccessStatus." + error; } @@ -219237,7 +204449,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.teamAccessStatus)) return "teamAccessStatus: array expected"; for (let i = 0; i < message.teamAccessStatus.length; ++i) { - let error = $root.Records.TimeLimitedAccessStatus.verify(message.teamAccessStatus[i], long + 1); + let error = $root.Records.TimeLimitedAccessStatus.verify(message.teamAccessStatus[i]); if (error) return "teamAccessStatus." + error; } @@ -219246,7 +204458,7 @@ export const Records = $root.Records = (() => { if (!Array.isArray(message.recordAccessStatus)) return "recordAccessStatus: array expected"; for (let i = 0; i < message.recordAccessStatus.length; ++i) { - let error = $root.Records.TimeLimitedAccessStatus.verify(message.recordAccessStatus[i], long + 1); + let error = $root.Records.TimeLimitedAccessStatus.verify(message.recordAccessStatus[i]); if (error) return "recordAccessStatus." + error; } @@ -219262,17 +204474,13 @@ export const Records = $root.Records = (() => { * @param {Object.} object Plain object * @returns {Records.TimeLimitedAccessResponse} TimeLimitedAccessResponse */ - TimeLimitedAccessResponse.fromObject = function fromObject(object, long) { + TimeLimitedAccessResponse.fromObject = function fromObject(object) { if (object instanceof $root.Records.TimeLimitedAccessResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Records.TimeLimitedAccessResponse(); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -219286,7 +204494,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.userAccessStatus.length; ++i) { if (typeof object.userAccessStatus[i] !== "object") throw TypeError(".Records.TimeLimitedAccessResponse.userAccessStatus: object expected"); - message.userAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.userAccessStatus[i], long + 1); + message.userAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.userAccessStatus[i]); } } if (object.teamAccessStatus) { @@ -219296,7 +204504,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.teamAccessStatus.length; ++i) { if (typeof object.teamAccessStatus[i] !== "object") throw TypeError(".Records.TimeLimitedAccessResponse.teamAccessStatus: object expected"); - message.teamAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.teamAccessStatus[i], long + 1); + message.teamAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.teamAccessStatus[i]); } } if (object.recordAccessStatus) { @@ -219306,7 +204514,7 @@ export const Records = $root.Records = (() => { for (let i = 0; i < object.recordAccessStatus.length; ++i) { if (typeof object.recordAccessStatus[i] !== "object") throw TypeError(".Records.TimeLimitedAccessResponse.recordAccessStatus: object expected"); - message.recordAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.recordAccessStatus[i], long + 1); + message.recordAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.recordAccessStatus[i]); } } return message; @@ -219321,13 +204529,9 @@ export const Records = $root.Records = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeLimitedAccessResponse.toObject = function toObject(message, options, q) { + TimeLimitedAccessResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.userAccessStatus = []; @@ -219337,30 +204541,28 @@ export const Records = $root.Records = (() => { if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; if (message.userAccessStatus && message.userAccessStatus.length) { object.userAccessStatus = []; for (let j = 0; j < message.userAccessStatus.length; ++j) - object.userAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.userAccessStatus[j], options, q + 1); + object.userAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.userAccessStatus[j], options); } if (message.teamAccessStatus && message.teamAccessStatus.length) { object.teamAccessStatus = []; for (let j = 0; j < message.teamAccessStatus.length; ++j) - object.teamAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.teamAccessStatus[j], options, q + 1); + object.teamAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.teamAccessStatus[j], options); } if (message.recordAccessStatus && message.recordAccessStatus.length) { object.recordAccessStatus = []; for (let j = 0; j < message.recordAccessStatus.length; ++j) - object.recordAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.recordAccessStatus[j], options, q + 1); + object.recordAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.recordAccessStatus[j], options); } return object; }; @@ -219442,7 +204644,7 @@ export const common = $root.common = (() => { function TLAProperties(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -219495,13 +204697,9 @@ export const common = $root.common = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TLAProperties.encode = function encode(message, writer, q) { + TLAProperties.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.expiration); if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) @@ -219535,18 +204733,12 @@ export const common = $root.common = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TLAProperties.decode = function decode(reader, length, error, long) { + TLAProperties.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.common.tla.TLAProperties(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.expiration = reader.int64(); @@ -219561,7 +204753,7 @@ export const common = $root.common = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -219592,13 +204784,9 @@ export const common = $root.common = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TLAProperties.verify = function verify(message, long) { + TLAProperties.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.expiration != null && message.hasOwnProperty("expiration")) if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) return "expiration: integer|Long expected"; @@ -219625,17 +204813,13 @@ export const common = $root.common = (() => { * @param {Object.} object Plain object * @returns {common.tla.TLAProperties} TLAProperties */ - TLAProperties.fromObject = function fromObject(object, long) { + TLAProperties.fromObject = function fromObject(object) { if (object instanceof $root.common.tla.TLAProperties) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.common.tla.TLAProperties(); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -219676,27 +204860,21 @@ export const common = $root.common = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TLAProperties.toObject = function toObject(message, options, q) { + TLAProperties.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -219789,7 +204967,7 @@ export const Push = $root.Push = (() => { function UserRegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -219838,13 +205016,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRegistrationRequest.encode = function encode(message, writer, q) { + UserRegistrationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) @@ -219878,18 +205052,12 @@ export const Push = $root.Push = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserRegistrationRequest.decode = function decode(reader, length, error, long) { + UserRegistrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.UserRegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.messageSessionUid = reader.bytes(); @@ -219904,7 +205072,7 @@ export const Push = $root.Push = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -219935,13 +205103,9 @@ export const Push = $root.Push = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserRegistrationRequest.verify = function verify(message, long) { + UserRegistrationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) return "messageSessionUid: buffer expected"; @@ -219962,13 +205126,9 @@ export const Push = $root.Push = (() => { * @param {Object.} object Plain object * @returns {Push.UserRegistrationRequest} UserRegistrationRequest */ - UserRegistrationRequest.fromObject = function fromObject(object, long) { + UserRegistrationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Push.UserRegistrationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Push.UserRegistrationRequest(); if (object.messageSessionUid != null) if (typeof object.messageSessionUid === "string") @@ -219991,13 +205151,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRegistrationRequest.toObject = function toObject(message, options, q) { + UserRegistrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -220106,7 +205262,7 @@ export const Push = $root.Push = (() => { this.enterpriseId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -220179,13 +205335,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KAToPushServerRequest.encode = function encode(message, writer, q) { + KAToPushServerRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -220234,18 +205386,12 @@ export const Push = $root.Push = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KAToPushServerRequest.decode = function decode(reader, length, error, long) { + KAToPushServerRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.KAToPushServerRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.messageType = reader.int32(); @@ -220288,7 +205434,7 @@ export const Push = $root.Push = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -220319,13 +205465,9 @@ export const Push = $root.Push = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KAToPushServerRequest.verify = function verify(message, long) { + KAToPushServerRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.messageType != null && message.hasOwnProperty("messageType")) switch (message.messageType) { default: @@ -220380,13 +205522,9 @@ export const Push = $root.Push = (() => { * @param {Object.} object Plain object * @returns {Push.KAToPushServerRequest} KAToPushServerRequest */ - KAToPushServerRequest.fromObject = function fromObject(object, long) { + KAToPushServerRequest.fromObject = function fromObject(object) { if (object instanceof $root.Push.KAToPushServerRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Push.KAToPushServerRequest(); switch (object.messageType) { default: @@ -220479,13 +205617,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KAToPushServerRequest.toObject = function toObject(message, options, q) { + KAToPushServerRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.encryptedDeviceToken = []; @@ -220578,7 +205712,7 @@ export const Push = $root.Push = (() => { function WssConnectionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -220627,13 +205761,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WssConnectionRequest.encode = function encode(message, writer, q) { + WssConnectionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) @@ -220667,18 +205797,12 @@ export const Push = $root.Push = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WssConnectionRequest.decode = function decode(reader, length, error, long) { + WssConnectionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.WssConnectionRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.messageSessionUid = reader.bytes(); @@ -220693,7 +205817,7 @@ export const Push = $root.Push = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -220724,13 +205848,9 @@ export const Push = $root.Push = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WssConnectionRequest.verify = function verify(message, long) { + WssConnectionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) return "messageSessionUid: buffer expected"; @@ -220751,13 +205871,9 @@ export const Push = $root.Push = (() => { * @param {Object.} object Plain object * @returns {Push.WssConnectionRequest} WssConnectionRequest */ - WssConnectionRequest.fromObject = function fromObject(object, long) { + WssConnectionRequest.fromObject = function fromObject(object) { if (object instanceof $root.Push.WssConnectionRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Push.WssConnectionRequest(); if (object.messageSessionUid != null) if (typeof object.messageSessionUid === "string") @@ -220771,7 +205887,7 @@ export const Push = $root.Push = (() => { message.encryptedDeviceToken = object.encryptedDeviceToken; if (object.deviceTimeStamp != null) if ($util.Long) - message.deviceTimeStamp = $util.Long.fromValue(object.deviceTimeStamp, false); + (message.deviceTimeStamp = $util.Long.fromValue(object.deviceTimeStamp)).unsigned = false; else if (typeof object.deviceTimeStamp === "string") message.deviceTimeStamp = parseInt(object.deviceTimeStamp, 10); else if (typeof object.deviceTimeStamp === "number") @@ -220790,13 +205906,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WssConnectionRequest.toObject = function toObject(message, options, q) { + WssConnectionRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -220815,18 +205927,16 @@ export const Push = $root.Push = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.deviceTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.deviceTimeStamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.deviceTimeStamp = options.longs === String ? "0" : 0; } if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; if (message.deviceTimeStamp != null && message.hasOwnProperty("deviceTimeStamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceTimeStamp = typeof message.deviceTimeStamp === "number" ? BigInt(message.deviceTimeStamp) : $util.Long.fromBits(message.deviceTimeStamp.low >>> 0, message.deviceTimeStamp.high >>> 0, false).toBigInt(); - else if (typeof message.deviceTimeStamp === "number") + if (typeof message.deviceTimeStamp === "number") object.deviceTimeStamp = options.longs === String ? String(message.deviceTimeStamp) : message.deviceTimeStamp; else object.deviceTimeStamp = options.longs === String ? $util.Long.prototype.toString.call(message.deviceTimeStamp) : options.longs === Number ? new $util.LongBits(message.deviceTimeStamp.low >>> 0, message.deviceTimeStamp.high >>> 0).toNumber() : message.deviceTimeStamp; @@ -220883,7 +205993,7 @@ export const Push = $root.Push = (() => { function WssClientResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -220924,13 +206034,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WssClientResponse.encode = function encode(message, writer, q) { + WssClientResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -220962,18 +206068,12 @@ export const Push = $root.Push = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WssClientResponse.decode = function decode(reader, length, error, long) { + WssClientResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.WssClientResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.messageType = reader.int32(); @@ -220984,7 +206084,7 @@ export const Push = $root.Push = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -221015,13 +206115,9 @@ export const Push = $root.Push = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WssClientResponse.verify = function verify(message, long) { + WssClientResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.messageType != null && message.hasOwnProperty("messageType")) switch (message.messageType) { default: @@ -221052,13 +206148,9 @@ export const Push = $root.Push = (() => { * @param {Object.} object Plain object * @returns {Push.WssClientResponse} WssClientResponse */ - WssClientResponse.fromObject = function fromObject(object, long) { + WssClientResponse.fromObject = function fromObject(object) { if (object instanceof $root.Push.WssClientResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Push.WssClientResponse(); switch (object.messageType) { default: @@ -221122,13 +206214,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WssClientResponse.toObject = function toObject(message, options, q) { + WssClientResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.messageType = options.enums === String ? "UNKNOWN" : 0; @@ -221193,7 +206281,7 @@ export const Push = $root.Push = (() => { function PushServerDeviceRegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -221250,13 +206338,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PushServerDeviceRegistrationRequest.encode = function encode(message, writer, q) { + PushServerDeviceRegistrationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); if (message.pushToken != null && Object.hasOwnProperty.call(message, "pushToken")) @@ -221292,18 +206376,12 @@ export const Push = $root.Push = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PushServerDeviceRegistrationRequest.decode = function decode(reader, length, error, long) { + PushServerDeviceRegistrationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.PushServerDeviceRegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedDeviceToken = reader.bytes(); @@ -221322,7 +206400,7 @@ export const Push = $root.Push = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -221353,13 +206431,9 @@ export const Push = $root.Push = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PushServerDeviceRegistrationRequest.verify = function verify(message, long) { + PushServerDeviceRegistrationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) return "encryptedDeviceToken: buffer expected"; @@ -221383,13 +206457,9 @@ export const Push = $root.Push = (() => { * @param {Object.} object Plain object * @returns {Push.PushServerDeviceRegistrationRequest} PushServerDeviceRegistrationRequest */ - PushServerDeviceRegistrationRequest.fromObject = function fromObject(object, long) { + PushServerDeviceRegistrationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Push.PushServerDeviceRegistrationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Push.PushServerDeviceRegistrationRequest(); if (object.encryptedDeviceToken != null) if (typeof object.encryptedDeviceToken === "string") @@ -221417,13 +206487,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PushServerDeviceRegistrationRequest.toObject = function toObject(message, options, q) { + PushServerDeviceRegistrationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -221504,7 +206570,7 @@ export const Push = $root.Push = (() => { function SnsMessage(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -221545,13 +206611,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SnsMessage.encode = function encode(message, writer, q) { + SnsMessage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -221583,18 +206645,12 @@ export const Push = $root.Push = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SnsMessage.decode = function decode(reader, length, error, long) { + SnsMessage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.SnsMessage(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.messageType = reader.int32(); @@ -221605,7 +206661,7 @@ export const Push = $root.Push = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -221636,13 +206692,9 @@ export const Push = $root.Push = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SnsMessage.verify = function verify(message, long) { + SnsMessage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.messageType != null && message.hasOwnProperty("messageType")) switch (message.messageType) { default: @@ -221673,13 +206725,9 @@ export const Push = $root.Push = (() => { * @param {Object.} object Plain object * @returns {Push.SnsMessage} SnsMessage */ - SnsMessage.fromObject = function fromObject(object, long) { + SnsMessage.fromObject = function fromObject(object) { if (object instanceof $root.Push.SnsMessage) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Push.SnsMessage(); switch (object.messageType) { default: @@ -221746,13 +206794,9 @@ export const Push = $root.Push = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SnsMessage.toObject = function toObject(message, options, q) { + SnsMessage.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.messageType = options.enums === String ? "UNKNOWN" : 0; @@ -221833,7 +206877,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { function IdRange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -221874,13 +206918,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdRange.encode = function encode(message, writer, q) { + IdRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.startingId != null && Object.hasOwnProperty.call(message, "startingId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startingId); if (message.endingId != null && Object.hasOwnProperty.call(message, "endingId")) @@ -221912,18 +206952,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdRange.decode = function decode(reader, length, error, long) { + IdRange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.IdRange(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.startingId = reader.uint64(); @@ -221934,7 +206968,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -221965,13 +206999,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdRange.verify = function verify(message, long) { + IdRange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.startingId != null && message.hasOwnProperty("startingId")) if (!$util.isInteger(message.startingId) && !(message.startingId && $util.isInteger(message.startingId.low) && $util.isInteger(message.startingId.high))) return "startingId: integer|Long expected"; @@ -221989,17 +207019,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.IdRange} IdRange */ - IdRange.fromObject = function fromObject(object, long) { + IdRange.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.IdRange) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.IdRange(); if (object.startingId != null) if ($util.Long) - message.startingId = $util.Long.fromValue(object.startingId, true); + (message.startingId = $util.Long.fromValue(object.startingId)).unsigned = true; else if (typeof object.startingId === "string") message.startingId = parseInt(object.startingId, 10); else if (typeof object.startingId === "number") @@ -222008,7 +207034,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { message.startingId = new $util.LongBits(object.startingId.low >>> 0, object.startingId.high >>> 0).toNumber(true); if (object.endingId != null) if ($util.Long) - message.endingId = $util.Long.fromValue(object.endingId, true); + (message.endingId = $util.Long.fromValue(object.endingId)).unsigned = true; else if (typeof object.endingId === "string") message.endingId = parseInt(object.endingId, 10); else if (typeof object.endingId === "number") @@ -222027,37 +207053,29 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdRange.toObject = function toObject(message, options, q) { + IdRange.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.startingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.startingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.startingId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.startingId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.endingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.endingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.endingId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.endingId = options.longs === String ? "0" : 0; } if (message.startingId != null && message.hasOwnProperty("startingId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.startingId = typeof message.startingId === "number" ? BigInt(message.startingId) : $util.Long.fromBits(message.startingId.low >>> 0, message.startingId.high >>> 0, true).toBigInt(); - else if (typeof message.startingId === "number") + if (typeof message.startingId === "number") object.startingId = options.longs === String ? String(message.startingId) : message.startingId; else object.startingId = options.longs === String ? $util.Long.prototype.toString.call(message.startingId) : options.longs === Number ? new $util.LongBits(message.startingId.low >>> 0, message.startingId.high >>> 0).toNumber(true) : message.startingId; if (message.endingId != null && message.hasOwnProperty("endingId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.endingId = typeof message.endingId === "number" ? BigInt(message.endingId) : $util.Long.fromBits(message.endingId.low >>> 0, message.endingId.high >>> 0, true).toBigInt(); - else if (typeof message.endingId === "number") + if (typeof message.endingId === "number") object.endingId = options.longs === String ? String(message.endingId) : message.endingId; else object.endingId = options.longs === String ? $util.Long.prototype.toString.call(message.endingId) : options.longs === Number ? new $util.LongBits(message.endingId.low >>> 0, message.endingId.high >>> 0).toNumber(true) : message.endingId; @@ -222115,7 +207133,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { function ServiceInfoSpecifier(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -222164,13 +207182,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoSpecifier.encode = function encode(message, writer, q) { + ServiceInfoSpecifier.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.all != null && Object.hasOwnProperty.call(message, "all")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) @@ -222204,18 +207218,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceInfoSpecifier.decode = function decode(reader, length, error, long) { + ServiceInfoSpecifier.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoSpecifier(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.all = reader.bool(); @@ -222230,7 +207238,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -222261,13 +207269,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceInfoSpecifier.verify = function verify(message, long) { + ServiceInfoSpecifier.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.all != null && message.hasOwnProperty("all")) if (typeof message.all !== "boolean") return "all: boolean expected"; @@ -222288,19 +207292,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceInfoSpecifier} ServiceInfoSpecifier */ - ServiceInfoSpecifier.fromObject = function fromObject(object, long) { + ServiceInfoSpecifier.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceInfoSpecifier) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceInfoSpecifier(); if (object.all != null) message.all = Boolean(object.all); if (object.serviceInfoId != null) if ($util.Long) - message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId, true); + (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; else if (typeof object.serviceInfoId === "string") message.serviceInfoId = parseInt(object.serviceInfoId, 10); else if (typeof object.serviceInfoId === "number") @@ -222321,29 +207321,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceInfoSpecifier.toObject = function toObject(message, options, q) { + ServiceInfoSpecifier.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.all = false; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceInfoId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceInfoId = options.longs === String ? "0" : 0; object.name = ""; } if (message.all != null && message.hasOwnProperty("all")) object.all = message.all; if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceInfoId = typeof message.serviceInfoId === "number" ? BigInt(message.serviceInfoId) : $util.Long.fromBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceInfoId === "number") + if (typeof message.serviceInfoId === "number") object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; else object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; @@ -222402,7 +207396,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceInfoSpecifier = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -222435,16 +207429,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoRequest.encode = function encode(message, writer, q) { + ServiceInfoRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceInfoSpecifier != null && message.serviceInfoSpecifier.length) for (let i = 0; i < message.serviceInfoSpecifier.length; ++i) - $root.ServiceLogger.ServiceInfoSpecifier.encode(message.serviceInfoSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.ServiceLogger.ServiceInfoSpecifier.encode(message.serviceInfoSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -222472,27 +207462,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceInfoRequest.decode = function decode(reader, length, error, long) { + ServiceInfoRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.serviceInfoSpecifier && message.serviceInfoSpecifier.length)) message.serviceInfoSpecifier = []; - message.serviceInfoSpecifier.push($root.ServiceLogger.ServiceInfoSpecifier.decode(reader, reader.uint32(), undefined, long + 1)); + message.serviceInfoSpecifier.push($root.ServiceLogger.ServiceInfoSpecifier.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -222523,18 +207507,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceInfoRequest.verify = function verify(message, long) { + ServiceInfoRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceInfoSpecifier != null && message.hasOwnProperty("serviceInfoSpecifier")) { if (!Array.isArray(message.serviceInfoSpecifier)) return "serviceInfoSpecifier: array expected"; for (let i = 0; i < message.serviceInfoSpecifier.length; ++i) { - let error = $root.ServiceLogger.ServiceInfoSpecifier.verify(message.serviceInfoSpecifier[i], long + 1); + let error = $root.ServiceLogger.ServiceInfoSpecifier.verify(message.serviceInfoSpecifier[i]); if (error) return "serviceInfoSpecifier." + error; } @@ -222550,13 +207530,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceInfoRequest} ServiceInfoRequest */ - ServiceInfoRequest.fromObject = function fromObject(object, long) { + ServiceInfoRequest.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceInfoRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceInfoRequest(); if (object.serviceInfoSpecifier) { if (!Array.isArray(object.serviceInfoSpecifier)) @@ -222565,7 +207541,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.serviceInfoSpecifier.length; ++i) { if (typeof object.serviceInfoSpecifier[i] !== "object") throw TypeError(".ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: object expected"); - message.serviceInfoSpecifier[i] = $root.ServiceLogger.ServiceInfoSpecifier.fromObject(object.serviceInfoSpecifier[i], long + 1); + message.serviceInfoSpecifier[i] = $root.ServiceLogger.ServiceInfoSpecifier.fromObject(object.serviceInfoSpecifier[i]); } } return message; @@ -222580,20 +207556,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceInfoRequest.toObject = function toObject(message, options, q) { + ServiceInfoRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.serviceInfoSpecifier = []; if (message.serviceInfoSpecifier && message.serviceInfoSpecifier.length) { object.serviceInfoSpecifier = []; for (let j = 0; j < message.serviceInfoSpecifier.length; ++j) - object.serviceInfoSpecifier[j] = $root.ServiceLogger.ServiceInfoSpecifier.toObject(message.serviceInfoSpecifier[j], options, q + 1); + object.serviceInfoSpecifier[j] = $root.ServiceLogger.ServiceInfoSpecifier.toObject(message.serviceInfoSpecifier[j], options); } return object; }; @@ -222651,7 +207623,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { function ServiceInfoRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -222716,13 +207688,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoRecord.encode = function encode(message, writer, q) { + ServiceInfoRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceInfoId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -222760,18 +207728,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceInfoRecord.decode = function decode(reader, length, error, long) { + ServiceInfoRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.serviceInfoId = reader.uint64(); @@ -222794,7 +207756,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -222825,13 +207787,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceInfoRecord.verify = function verify(message, long) { + ServiceInfoRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) if (!$util.isInteger(message.serviceInfoId) && !(message.serviceInfoId && $util.isInteger(message.serviceInfoId.low) && $util.isInteger(message.serviceInfoId.high))) return "serviceInfoId: integer|Long expected"; @@ -222858,17 +207816,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceInfoRecord} ServiceInfoRecord */ - ServiceInfoRecord.fromObject = function fromObject(object, long) { + ServiceInfoRecord.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceInfoRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceInfoRecord(); if (object.serviceInfoId != null) if ($util.Long) - message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId, true); + (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; else if (typeof object.serviceInfoId === "string") message.serviceInfoId = parseInt(object.serviceInfoId, 10); else if (typeof object.serviceInfoId === "number") @@ -222895,29 +207849,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceInfoRecord.toObject = function toObject(message, options, q) { + ServiceInfoRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceInfoId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceInfoId = options.longs === String ? "0" : 0; object.name = ""; object.deleteAfter = 0; object.deleteAfterTimeUnits = ""; object.isShortTermLogging = false; } if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceInfoId = typeof message.serviceInfoId === "number" ? BigInt(message.serviceInfoId) : $util.Long.fromBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceInfoId === "number") + if (typeof message.serviceInfoId === "number") object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; else object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; @@ -222982,7 +207930,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceInfoRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -223015,16 +207963,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoResponse.encode = function encode(message, writer, q) { + ServiceInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceInfoRecord != null && message.serviceInfoRecord.length) for (let i = 0; i < message.serviceInfoRecord.length; ++i) - $root.ServiceLogger.ServiceInfoRecord.encode(message.serviceInfoRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.ServiceLogger.ServiceInfoRecord.encode(message.serviceInfoRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -223052,27 +207996,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceInfoResponse.decode = function decode(reader, length, error, long) { + ServiceInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.serviceInfoRecord && message.serviceInfoRecord.length)) message.serviceInfoRecord = []; - message.serviceInfoRecord.push($root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.serviceInfoRecord.push($root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -223103,18 +208041,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceInfoResponse.verify = function verify(message, long) { + ServiceInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceInfoRecord != null && message.hasOwnProperty("serviceInfoRecord")) { if (!Array.isArray(message.serviceInfoRecord)) return "serviceInfoRecord: array expected"; for (let i = 0; i < message.serviceInfoRecord.length; ++i) { - let error = $root.ServiceLogger.ServiceInfoRecord.verify(message.serviceInfoRecord[i], long + 1); + let error = $root.ServiceLogger.ServiceInfoRecord.verify(message.serviceInfoRecord[i]); if (error) return "serviceInfoRecord." + error; } @@ -223130,13 +208064,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceInfoResponse} ServiceInfoResponse */ - ServiceInfoResponse.fromObject = function fromObject(object, long) { + ServiceInfoResponse.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceInfoResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceInfoResponse(); if (object.serviceInfoRecord) { if (!Array.isArray(object.serviceInfoRecord)) @@ -223145,7 +208075,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.serviceInfoRecord.length; ++i) { if (typeof object.serviceInfoRecord[i] !== "object") throw TypeError(".ServiceLogger.ServiceInfoResponse.serviceInfoRecord: object expected"); - message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i], long + 1); + message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i]); } } return message; @@ -223160,20 +208090,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceInfoResponse.toObject = function toObject(message, options, q) { + ServiceInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.serviceInfoRecord = []; if (message.serviceInfoRecord && message.serviceInfoRecord.length) { object.serviceInfoRecord = []; for (let j = 0; j < message.serviceInfoRecord.length; ++j) - object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject(message.serviceInfoRecord[j], options, q + 1); + object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject(message.serviceInfoRecord[j], options); } return object; }; @@ -223228,7 +208154,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceInfoRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -223261,16 +208187,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceInfoUpdateRequest.encode = function encode(message, writer, q) { + ServiceInfoUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceInfoRecord != null && message.serviceInfoRecord.length) for (let i = 0; i < message.serviceInfoRecord.length; ++i) - $root.ServiceLogger.ServiceInfoRecord.encode(message.serviceInfoRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.ServiceLogger.ServiceInfoRecord.encode(message.serviceInfoRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -223298,27 +208220,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceInfoUpdateRequest.decode = function decode(reader, length, error, long) { + ServiceInfoUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.serviceInfoRecord && message.serviceInfoRecord.length)) message.serviceInfoRecord = []; - message.serviceInfoRecord.push($root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.serviceInfoRecord.push($root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -223349,18 +208265,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceInfoUpdateRequest.verify = function verify(message, long) { + ServiceInfoUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceInfoRecord != null && message.hasOwnProperty("serviceInfoRecord")) { if (!Array.isArray(message.serviceInfoRecord)) return "serviceInfoRecord: array expected"; for (let i = 0; i < message.serviceInfoRecord.length; ++i) { - let error = $root.ServiceLogger.ServiceInfoRecord.verify(message.serviceInfoRecord[i], long + 1); + let error = $root.ServiceLogger.ServiceInfoRecord.verify(message.serviceInfoRecord[i]); if (error) return "serviceInfoRecord." + error; } @@ -223376,13 +208288,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceInfoUpdateRequest} ServiceInfoUpdateRequest */ - ServiceInfoUpdateRequest.fromObject = function fromObject(object, long) { + ServiceInfoUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceInfoUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceInfoUpdateRequest(); if (object.serviceInfoRecord) { if (!Array.isArray(object.serviceInfoRecord)) @@ -223391,7 +208299,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.serviceInfoRecord.length; ++i) { if (typeof object.serviceInfoRecord[i] !== "object") throw TypeError(".ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: object expected"); - message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i], long + 1); + message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i]); } } return message; @@ -223406,20 +208314,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceInfoUpdateRequest.toObject = function toObject(message, options, q) { + ServiceInfoUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.serviceInfoRecord = []; if (message.serviceInfoRecord && message.serviceInfoRecord.length) { object.serviceInfoRecord = []; for (let j = 0; j < message.serviceInfoRecord.length; ++j) - object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject(message.serviceInfoRecord[j], options, q + 1); + object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject(message.serviceInfoRecord[j], options); } return object; }; @@ -223477,7 +208381,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -223534,13 +208438,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleSpecifier.encode = function encode(message, writer, q) { + ServiceRuleSpecifier.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.all != null && Object.hasOwnProperty.call(message, "all")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, "serviceRuleId")) @@ -223549,7 +208449,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.serviceInfoId); if (message.resourceIdRange != null && message.resourceIdRange.length) for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -223577,18 +208477,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceRuleSpecifier.decode = function decode(reader, length, error, long) { + ServiceRuleSpecifier.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleSpecifier(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.all = reader.bool(); @@ -223605,11 +208499,11 @@ export const ServiceLogger = $root.ServiceLogger = (() => { case 4: { if (!(message.resourceIdRange && message.resourceIdRange.length)) message.resourceIdRange = []; - message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32(), undefined, long + 1)); + message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -223640,13 +208534,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceRuleSpecifier.verify = function verify(message, long) { + ServiceRuleSpecifier.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.all != null && message.hasOwnProperty("all")) if (typeof message.all !== "boolean") return "all: boolean expected"; @@ -223660,7 +208550,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { if (!Array.isArray(message.resourceIdRange)) return "resourceIdRange: array expected"; for (let i = 0; i < message.resourceIdRange.length; ++i) { - let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i], long + 1); + let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i]); if (error) return "resourceIdRange." + error; } @@ -223676,19 +208566,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceRuleSpecifier} ServiceRuleSpecifier */ - ServiceRuleSpecifier.fromObject = function fromObject(object, long) { + ServiceRuleSpecifier.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceRuleSpecifier) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceRuleSpecifier(); if (object.all != null) message.all = Boolean(object.all); if (object.serviceRuleId != null) if ($util.Long) - message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId, true); + (message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId)).unsigned = true; else if (typeof object.serviceRuleId === "string") message.serviceRuleId = parseInt(object.serviceRuleId, 10); else if (typeof object.serviceRuleId === "number") @@ -223697,7 +208583,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { message.serviceRuleId = new $util.LongBits(object.serviceRuleId.low >>> 0, object.serviceRuleId.high >>> 0).toNumber(true); if (object.serviceInfoId != null) if ($util.Long) - message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId, true); + (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; else if (typeof object.serviceInfoId === "string") message.serviceInfoId = parseInt(object.serviceInfoId, 10); else if (typeof object.serviceInfoId === "number") @@ -223711,7 +208597,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.resourceIdRange.length; ++i) { if (typeof object.resourceIdRange[i] !== "object") throw TypeError(".ServiceLogger.ServiceRuleSpecifier.resourceIdRange: object expected"); - message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i], long + 1); + message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } } return message; @@ -223726,13 +208612,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceRuleSpecifier.toObject = function toObject(message, options, q) { + ServiceRuleSpecifier.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.resourceIdRange = []; @@ -223740,35 +208622,31 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.all = false; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceRuleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceRuleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceRuleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceRuleId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceInfoId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceInfoId = options.longs === String ? "0" : 0; } if (message.all != null && message.hasOwnProperty("all")) object.all = message.all; if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceRuleId = typeof message.serviceRuleId === "number" ? BigInt(message.serviceRuleId) : $util.Long.fromBits(message.serviceRuleId.low >>> 0, message.serviceRuleId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceRuleId === "number") + if (typeof message.serviceRuleId === "number") object.serviceRuleId = options.longs === String ? String(message.serviceRuleId) : message.serviceRuleId; else object.serviceRuleId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceRuleId) : options.longs === Number ? new $util.LongBits(message.serviceRuleId.low >>> 0, message.serviceRuleId.high >>> 0).toNumber(true) : message.serviceRuleId; if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceInfoId = typeof message.serviceInfoId === "number" ? BigInt(message.serviceInfoId) : $util.Long.fromBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceInfoId === "number") + if (typeof message.serviceInfoId === "number") object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; else object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; if (message.resourceIdRange && message.resourceIdRange.length) { object.resourceIdRange = []; for (let j = 0; j < message.resourceIdRange.length; ++j) - object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options, q + 1); + object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options); } return object; }; @@ -223823,7 +208701,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceRuleSpecifier = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -223856,16 +208734,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleRequest.encode = function encode(message, writer, q) { + ServiceRuleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceRuleSpecifier != null && message.serviceRuleSpecifier.length) for (let i = 0; i < message.serviceRuleSpecifier.length; ++i) - $root.ServiceLogger.ServiceRuleSpecifier.encode(message.serviceRuleSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.ServiceLogger.ServiceRuleSpecifier.encode(message.serviceRuleSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -223893,27 +208767,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceRuleRequest.decode = function decode(reader, length, error, long) { + ServiceRuleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.serviceRuleSpecifier && message.serviceRuleSpecifier.length)) message.serviceRuleSpecifier = []; - message.serviceRuleSpecifier.push($root.ServiceLogger.ServiceRuleSpecifier.decode(reader, reader.uint32(), undefined, long + 1)); + message.serviceRuleSpecifier.push($root.ServiceLogger.ServiceRuleSpecifier.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -223944,18 +208812,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceRuleRequest.verify = function verify(message, long) { + ServiceRuleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceRuleSpecifier != null && message.hasOwnProperty("serviceRuleSpecifier")) { if (!Array.isArray(message.serviceRuleSpecifier)) return "serviceRuleSpecifier: array expected"; for (let i = 0; i < message.serviceRuleSpecifier.length; ++i) { - let error = $root.ServiceLogger.ServiceRuleSpecifier.verify(message.serviceRuleSpecifier[i], long + 1); + let error = $root.ServiceLogger.ServiceRuleSpecifier.verify(message.serviceRuleSpecifier[i]); if (error) return "serviceRuleSpecifier." + error; } @@ -223971,13 +208835,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceRuleRequest} ServiceRuleRequest */ - ServiceRuleRequest.fromObject = function fromObject(object, long) { + ServiceRuleRequest.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceRuleRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceRuleRequest(); if (object.serviceRuleSpecifier) { if (!Array.isArray(object.serviceRuleSpecifier)) @@ -223986,7 +208846,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.serviceRuleSpecifier.length; ++i) { if (typeof object.serviceRuleSpecifier[i] !== "object") throw TypeError(".ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: object expected"); - message.serviceRuleSpecifier[i] = $root.ServiceLogger.ServiceRuleSpecifier.fromObject(object.serviceRuleSpecifier[i], long + 1); + message.serviceRuleSpecifier[i] = $root.ServiceLogger.ServiceRuleSpecifier.fromObject(object.serviceRuleSpecifier[i]); } } return message; @@ -224001,20 +208861,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceRuleRequest.toObject = function toObject(message, options, q) { + ServiceRuleRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.serviceRuleSpecifier = []; if (message.serviceRuleSpecifier && message.serviceRuleSpecifier.length) { object.serviceRuleSpecifier = []; for (let j = 0; j < message.serviceRuleSpecifier.length; ++j) - object.serviceRuleSpecifier[j] = $root.ServiceLogger.ServiceRuleSpecifier.toObject(message.serviceRuleSpecifier[j], options, q + 1); + object.serviceRuleSpecifier[j] = $root.ServiceLogger.ServiceRuleSpecifier.toObject(message.serviceRuleSpecifier[j], options); } return object; }; @@ -224075,7 +208931,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { function ServiceRuleRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -224164,13 +209020,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleRecord.encode = function encode(message, writer, q) { + ServiceRuleRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, "serviceRuleId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceRuleId); if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) @@ -224214,18 +209066,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceRuleRecord.decode = function decode(reader, length, error, long) { + ServiceRuleRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.serviceRuleId = reader.uint64(); @@ -224260,7 +209106,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -224291,13 +209137,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceRuleRecord.verify = function verify(message, long) { + ServiceRuleRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) if (!$util.isInteger(message.serviceRuleId) && !(message.serviceRuleId && $util.isInteger(message.serviceRuleId.low) && $util.isInteger(message.serviceRuleId.high))) return "serviceRuleId: integer|Long expected"; @@ -224333,17 +209175,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceRuleRecord} ServiceRuleRecord */ - ServiceRuleRecord.fromObject = function fromObject(object, long) { + ServiceRuleRecord.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceRuleRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceRuleRecord(); if (object.serviceRuleId != null) if ($util.Long) - message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId, true); + (message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId)).unsigned = true; else if (typeof object.serviceRuleId === "string") message.serviceRuleId = parseInt(object.serviceRuleId, 10); else if (typeof object.serviceRuleId === "number") @@ -224352,7 +209190,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { message.serviceRuleId = new $util.LongBits(object.serviceRuleId.low >>> 0, object.serviceRuleId.high >>> 0).toNumber(true); if (object.serviceInfoId != null) if ($util.Long) - message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId, true); + (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; else if (typeof object.serviceInfoId === "string") message.serviceInfoId = parseInt(object.serviceInfoId, 10); else if (typeof object.serviceInfoId === "number") @@ -224361,7 +209199,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); if (object.resourceId != null) if ($util.Long) - message.resourceId = $util.Long.fromValue(object.resourceId, true); + (message.resourceId = $util.Long.fromValue(object.resourceId)).unsigned = true; else if (typeof object.resourceId === "string") message.resourceId = parseInt(object.resourceId, 10); else if (typeof object.resourceId === "number") @@ -224390,30 +209228,26 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceRuleRecord.toObject = function toObject(message, options, q) { + ServiceRuleRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceRuleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceRuleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceRuleId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceRuleId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceInfoId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceInfoId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.resourceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.resourceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.resourceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.resourceId = options.longs === String ? "0" : 0; object.isLoggingEnabled = false; object.logLevel = ""; object.ruleStart = ""; @@ -224421,23 +209255,17 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.dateModified = ""; } if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceRuleId = typeof message.serviceRuleId === "number" ? BigInt(message.serviceRuleId) : $util.Long.fromBits(message.serviceRuleId.low >>> 0, message.serviceRuleId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceRuleId === "number") + if (typeof message.serviceRuleId === "number") object.serviceRuleId = options.longs === String ? String(message.serviceRuleId) : message.serviceRuleId; else object.serviceRuleId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceRuleId) : options.longs === Number ? new $util.LongBits(message.serviceRuleId.low >>> 0, message.serviceRuleId.high >>> 0).toNumber(true) : message.serviceRuleId; if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceInfoId = typeof message.serviceInfoId === "number" ? BigInt(message.serviceInfoId) : $util.Long.fromBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceInfoId === "number") + if (typeof message.serviceInfoId === "number") object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; else object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; if (message.resourceId != null && message.hasOwnProperty("resourceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.resourceId = typeof message.resourceId === "number" ? BigInt(message.resourceId) : $util.Long.fromBits(message.resourceId.low >>> 0, message.resourceId.high >>> 0, true).toBigInt(); - else if (typeof message.resourceId === "number") + if (typeof message.resourceId === "number") object.resourceId = options.longs === String ? String(message.resourceId) : message.resourceId; else object.resourceId = options.longs === String ? $util.Long.prototype.toString.call(message.resourceId) : options.longs === Number ? new $util.LongBits(message.resourceId.low >>> 0, message.resourceId.high >>> 0).toNumber(true) : message.resourceId; @@ -224504,7 +209332,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceRule = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -224537,16 +209365,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleResponse.encode = function encode(message, writer, q) { + ServiceRuleResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceRule != null && message.serviceRule.length) for (let i = 0; i < message.serviceRule.length; ++i) - $root.ServiceLogger.ServiceRuleRecord.encode(message.serviceRule[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.ServiceLogger.ServiceRuleRecord.encode(message.serviceRule[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -224574,27 +209398,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceRuleResponse.decode = function decode(reader, length, error, long) { + ServiceRuleResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.serviceRule && message.serviceRule.length)) message.serviceRule = []; - message.serviceRule.push($root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.serviceRule.push($root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -224625,18 +209443,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceRuleResponse.verify = function verify(message, long) { + ServiceRuleResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceRule != null && message.hasOwnProperty("serviceRule")) { if (!Array.isArray(message.serviceRule)) return "serviceRule: array expected"; for (let i = 0; i < message.serviceRule.length; ++i) { - let error = $root.ServiceLogger.ServiceRuleRecord.verify(message.serviceRule[i], long + 1); + let error = $root.ServiceLogger.ServiceRuleRecord.verify(message.serviceRule[i]); if (error) return "serviceRule." + error; } @@ -224652,13 +209466,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceRuleResponse} ServiceRuleResponse */ - ServiceRuleResponse.fromObject = function fromObject(object, long) { + ServiceRuleResponse.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceRuleResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceRuleResponse(); if (object.serviceRule) { if (!Array.isArray(object.serviceRule)) @@ -224667,7 +209477,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.serviceRule.length; ++i) { if (typeof object.serviceRule[i] !== "object") throw TypeError(".ServiceLogger.ServiceRuleResponse.serviceRule: object expected"); - message.serviceRule[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRule[i], long + 1); + message.serviceRule[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRule[i]); } } return message; @@ -224682,20 +209492,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceRuleResponse.toObject = function toObject(message, options, q) { + ServiceRuleResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.serviceRule = []; if (message.serviceRule && message.serviceRule.length) { object.serviceRule = []; for (let j = 0; j < message.serviceRule.length; ++j) - object.serviceRule[j] = $root.ServiceLogger.ServiceRuleRecord.toObject(message.serviceRule[j], options, q + 1); + object.serviceRule[j] = $root.ServiceLogger.ServiceRuleRecord.toObject(message.serviceRule[j], options); } return object; }; @@ -224750,7 +209556,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceRuleRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -224783,16 +209589,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceRuleUpdateRequest.encode = function encode(message, writer, q) { + ServiceRuleUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceRuleRecord != null && message.serviceRuleRecord.length) for (let i = 0; i < message.serviceRuleRecord.length; ++i) - $root.ServiceLogger.ServiceRuleRecord.encode(message.serviceRuleRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.ServiceLogger.ServiceRuleRecord.encode(message.serviceRuleRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -224820,27 +209622,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceRuleUpdateRequest.decode = function decode(reader, length, error, long) { + ServiceRuleUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.serviceRuleRecord && message.serviceRuleRecord.length)) message.serviceRuleRecord = []; - message.serviceRuleRecord.push($root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.serviceRuleRecord.push($root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -224871,18 +209667,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceRuleUpdateRequest.verify = function verify(message, long) { + ServiceRuleUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceRuleRecord != null && message.hasOwnProperty("serviceRuleRecord")) { if (!Array.isArray(message.serviceRuleRecord)) return "serviceRuleRecord: array expected"; for (let i = 0; i < message.serviceRuleRecord.length; ++i) { - let error = $root.ServiceLogger.ServiceRuleRecord.verify(message.serviceRuleRecord[i], long + 1); + let error = $root.ServiceLogger.ServiceRuleRecord.verify(message.serviceRuleRecord[i]); if (error) return "serviceRuleRecord." + error; } @@ -224898,13 +209690,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceRuleUpdateRequest} ServiceRuleUpdateRequest */ - ServiceRuleUpdateRequest.fromObject = function fromObject(object, long) { + ServiceRuleUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceRuleUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceRuleUpdateRequest(); if (object.serviceRuleRecord) { if (!Array.isArray(object.serviceRuleRecord)) @@ -224913,7 +209701,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.serviceRuleRecord.length; ++i) { if (typeof object.serviceRuleRecord[i] !== "object") throw TypeError(".ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: object expected"); - message.serviceRuleRecord[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRuleRecord[i], long + 1); + message.serviceRuleRecord[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRuleRecord[i]); } } return message; @@ -224928,20 +209716,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceRuleUpdateRequest.toObject = function toObject(message, options, q) { + ServiceRuleUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.serviceRuleRecord = []; if (message.serviceRuleRecord && message.serviceRuleRecord.length) { object.serviceRuleRecord = []; for (let j = 0; j < message.serviceRuleRecord.length; ++j) - object.serviceRuleRecord[j] = $root.ServiceLogger.ServiceRuleRecord.toObject(message.serviceRuleRecord[j], options, q + 1); + object.serviceRuleRecord[j] = $root.ServiceLogger.ServiceRuleRecord.toObject(message.serviceRuleRecord[j], options); } return object; }; @@ -225002,7 +209786,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -225075,23 +209859,19 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogSpecifier.encode = function encode(message, writer, q) { + ServiceLogSpecifier.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.all != null && Object.hasOwnProperty.call(message, "all")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); if (message.serviceLogId != null && Object.hasOwnProperty.call(message, "serviceLogId")) writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceLogId); if (message.serviceIdRange != null && message.serviceIdRange.length) for (let i = 0; i < message.serviceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.serviceIdRange[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.ServiceLogger.IdRange.encode(message.serviceIdRange[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.resourceIdRange != null && message.resourceIdRange.length) for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.startDateTime != null && Object.hasOwnProperty.call(message, "startDateTime")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.startDateTime); if (message.endDateTime != null && Object.hasOwnProperty.call(message, "endDateTime")) @@ -225123,18 +209903,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceLogSpecifier.decode = function decode(reader, length, error, long) { + ServiceLogSpecifier.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogSpecifier(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.all = reader.bool(); @@ -225147,13 +209921,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { case 3: { if (!(message.serviceIdRange && message.serviceIdRange.length)) message.serviceIdRange = []; - message.serviceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32(), undefined, long + 1)); + message.serviceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } case 4: { if (!(message.resourceIdRange && message.resourceIdRange.length)) message.resourceIdRange = []; - message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32(), undefined, long + 1)); + message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } case 5: { @@ -225165,7 +209939,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -225196,13 +209970,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceLogSpecifier.verify = function verify(message, long) { + ServiceLogSpecifier.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.all != null && message.hasOwnProperty("all")) if (typeof message.all !== "boolean") return "all: boolean expected"; @@ -225213,7 +209983,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { if (!Array.isArray(message.serviceIdRange)) return "serviceIdRange: array expected"; for (let i = 0; i < message.serviceIdRange.length; ++i) { - let error = $root.ServiceLogger.IdRange.verify(message.serviceIdRange[i], long + 1); + let error = $root.ServiceLogger.IdRange.verify(message.serviceIdRange[i]); if (error) return "serviceIdRange." + error; } @@ -225222,7 +209992,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { if (!Array.isArray(message.resourceIdRange)) return "resourceIdRange: array expected"; for (let i = 0; i < message.resourceIdRange.length; ++i) { - let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i], long + 1); + let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i]); if (error) return "resourceIdRange." + error; } @@ -225244,19 +210014,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceLogSpecifier} ServiceLogSpecifier */ - ServiceLogSpecifier.fromObject = function fromObject(object, long) { + ServiceLogSpecifier.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceLogSpecifier) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceLogSpecifier(); if (object.all != null) message.all = Boolean(object.all); if (object.serviceLogId != null) if ($util.Long) - message.serviceLogId = $util.Long.fromValue(object.serviceLogId, true); + (message.serviceLogId = $util.Long.fromValue(object.serviceLogId)).unsigned = true; else if (typeof object.serviceLogId === "string") message.serviceLogId = parseInt(object.serviceLogId, 10); else if (typeof object.serviceLogId === "number") @@ -225270,7 +210036,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.serviceIdRange.length; ++i) { if (typeof object.serviceIdRange[i] !== "object") throw TypeError(".ServiceLogger.ServiceLogSpecifier.serviceIdRange: object expected"); - message.serviceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.serviceIdRange[i], long + 1); + message.serviceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.serviceIdRange[i]); } } if (object.resourceIdRange) { @@ -225280,7 +210046,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.resourceIdRange.length; ++i) { if (typeof object.resourceIdRange[i] !== "object") throw TypeError(".ServiceLogger.ServiceLogSpecifier.resourceIdRange: object expected"); - message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i], long + 1); + message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } } if (object.startDateTime != null) @@ -225299,13 +210065,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogSpecifier.toObject = function toObject(message, options, q) { + ServiceLogSpecifier.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.serviceIdRange = []; @@ -225315,30 +210077,28 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.all = false; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceLogId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceLogId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceLogId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceLogId = options.longs === String ? "0" : 0; object.startDateTime = ""; object.endDateTime = ""; } if (message.all != null && message.hasOwnProperty("all")) object.all = message.all; if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceLogId = typeof message.serviceLogId === "number" ? BigInt(message.serviceLogId) : $util.Long.fromBits(message.serviceLogId.low >>> 0, message.serviceLogId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceLogId === "number") + if (typeof message.serviceLogId === "number") object.serviceLogId = options.longs === String ? String(message.serviceLogId) : message.serviceLogId; else object.serviceLogId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceLogId) : options.longs === Number ? new $util.LongBits(message.serviceLogId.low >>> 0, message.serviceLogId.high >>> 0).toNumber(true) : message.serviceLogId; if (message.serviceIdRange && message.serviceIdRange.length) { object.serviceIdRange = []; for (let j = 0; j < message.serviceIdRange.length; ++j) - object.serviceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.serviceIdRange[j], options, q + 1); + object.serviceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.serviceIdRange[j], options); } if (message.resourceIdRange && message.resourceIdRange.length) { object.resourceIdRange = []; for (let j = 0; j < message.resourceIdRange.length; ++j) - object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options, q + 1); + object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options); } if (message.startDateTime != null && message.hasOwnProperty("startDateTime")) object.startDateTime = message.startDateTime; @@ -225397,7 +210157,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceLogSpecifier = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -225430,16 +210190,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogGetRequest.encode = function encode(message, writer, q) { + ServiceLogGetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceLogSpecifier != null && message.serviceLogSpecifier.length) for (let i = 0; i < message.serviceLogSpecifier.length; ++i) - $root.ServiceLogger.ServiceLogSpecifier.encode(message.serviceLogSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.ServiceLogger.ServiceLogSpecifier.encode(message.serviceLogSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -225467,27 +210223,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceLogGetRequest.decode = function decode(reader, length, error, long) { + ServiceLogGetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogGetRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.serviceLogSpecifier && message.serviceLogSpecifier.length)) message.serviceLogSpecifier = []; - message.serviceLogSpecifier.push($root.ServiceLogger.ServiceLogSpecifier.decode(reader, reader.uint32(), undefined, long + 1)); + message.serviceLogSpecifier.push($root.ServiceLogger.ServiceLogSpecifier.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -225518,18 +210268,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceLogGetRequest.verify = function verify(message, long) { + ServiceLogGetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceLogSpecifier != null && message.hasOwnProperty("serviceLogSpecifier")) { if (!Array.isArray(message.serviceLogSpecifier)) return "serviceLogSpecifier: array expected"; for (let i = 0; i < message.serviceLogSpecifier.length; ++i) { - let error = $root.ServiceLogger.ServiceLogSpecifier.verify(message.serviceLogSpecifier[i], long + 1); + let error = $root.ServiceLogger.ServiceLogSpecifier.verify(message.serviceLogSpecifier[i]); if (error) return "serviceLogSpecifier." + error; } @@ -225545,13 +210291,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceLogGetRequest} ServiceLogGetRequest */ - ServiceLogGetRequest.fromObject = function fromObject(object, long) { + ServiceLogGetRequest.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceLogGetRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceLogGetRequest(); if (object.serviceLogSpecifier) { if (!Array.isArray(object.serviceLogSpecifier)) @@ -225560,7 +210302,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.serviceLogSpecifier.length; ++i) { if (typeof object.serviceLogSpecifier[i] !== "object") throw TypeError(".ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: object expected"); - message.serviceLogSpecifier[i] = $root.ServiceLogger.ServiceLogSpecifier.fromObject(object.serviceLogSpecifier[i], long + 1); + message.serviceLogSpecifier[i] = $root.ServiceLogger.ServiceLogSpecifier.fromObject(object.serviceLogSpecifier[i]); } } return message; @@ -225575,20 +210317,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogGetRequest.toObject = function toObject(message, options, q) { + ServiceLogGetRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.serviceLogSpecifier = []; if (message.serviceLogSpecifier && message.serviceLogSpecifier.length) { object.serviceLogSpecifier = []; for (let j = 0; j < message.serviceLogSpecifier.length; ++j) - object.serviceLogSpecifier[j] = $root.ServiceLogger.ServiceLogSpecifier.toObject(message.serviceLogSpecifier[j], options, q + 1); + object.serviceLogSpecifier[j] = $root.ServiceLogger.ServiceLogSpecifier.toObject(message.serviceLogSpecifier[j], options); } return object; }; @@ -225649,7 +210387,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { function ServiceLogRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -225738,13 +210476,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogRecord.encode = function encode(message, writer, q) { + ServiceLogRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceLogId != null && Object.hasOwnProperty.call(message, "serviceLogId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceLogId); if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) @@ -225788,18 +210522,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceLogRecord.decode = function decode(reader, length, error, long) { + ServiceLogRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.serviceLogId = reader.uint64(); @@ -225834,7 +210562,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -225865,13 +210593,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceLogRecord.verify = function verify(message, long) { + ServiceLogRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) if (!$util.isInteger(message.serviceLogId) && !(message.serviceLogId && $util.isInteger(message.serviceLogId.low) && $util.isInteger(message.serviceLogId.high))) return "serviceLogId: integer|Long expected"; @@ -225907,17 +210631,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceLogRecord} ServiceLogRecord */ - ServiceLogRecord.fromObject = function fromObject(object, long) { + ServiceLogRecord.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceLogRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceLogRecord(); if (object.serviceLogId != null) if ($util.Long) - message.serviceLogId = $util.Long.fromValue(object.serviceLogId, true); + (message.serviceLogId = $util.Long.fromValue(object.serviceLogId)).unsigned = true; else if (typeof object.serviceLogId === "string") message.serviceLogId = parseInt(object.serviceLogId, 10); else if (typeof object.serviceLogId === "number") @@ -225926,7 +210646,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { message.serviceLogId = new $util.LongBits(object.serviceLogId.low >>> 0, object.serviceLogId.high >>> 0).toNumber(true); if (object.serviceInfoId != null) if ($util.Long) - message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId, true); + (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; else if (typeof object.serviceInfoId === "string") message.serviceInfoId = parseInt(object.serviceInfoId, 10); else if (typeof object.serviceInfoId === "number") @@ -225935,7 +210655,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); if (object.resourceId != null) if ($util.Long) - message.resourceId = $util.Long.fromValue(object.resourceId, true); + (message.resourceId = $util.Long.fromValue(object.resourceId)).unsigned = true; else if (typeof object.resourceId === "string") message.resourceId = parseInt(object.resourceId, 10); else if (typeof object.resourceId === "number") @@ -225964,30 +210684,26 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogRecord.toObject = function toObject(message, options, q) { + ServiceLogRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceLogId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceLogId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceLogId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceLogId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceInfoId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceInfoId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.resourceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.resourceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.resourceId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.resourceId = options.longs === String ? "0" : 0; object.logger = ""; object.logLevel = ""; object.message = ""; @@ -225995,23 +210711,17 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.dateCreated = ""; } if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceLogId = typeof message.serviceLogId === "number" ? BigInt(message.serviceLogId) : $util.Long.fromBits(message.serviceLogId.low >>> 0, message.serviceLogId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceLogId === "number") + if (typeof message.serviceLogId === "number") object.serviceLogId = options.longs === String ? String(message.serviceLogId) : message.serviceLogId; else object.serviceLogId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceLogId) : options.longs === Number ? new $util.LongBits(message.serviceLogId.low >>> 0, message.serviceLogId.high >>> 0).toNumber(true) : message.serviceLogId; if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceInfoId = typeof message.serviceInfoId === "number" ? BigInt(message.serviceInfoId) : $util.Long.fromBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceInfoId === "number") + if (typeof message.serviceInfoId === "number") object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; else object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; if (message.resourceId != null && message.hasOwnProperty("resourceId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.resourceId = typeof message.resourceId === "number" ? BigInt(message.resourceId) : $util.Long.fromBits(message.resourceId.low >>> 0, message.resourceId.high >>> 0, true).toBigInt(); - else if (typeof message.resourceId === "number") + if (typeof message.resourceId === "number") object.resourceId = options.longs === String ? String(message.resourceId) : message.resourceId; else object.resourceId = options.longs === String ? $util.Long.prototype.toString.call(message.resourceId) : options.longs === Number ? new $util.LongBits(message.resourceId.low >>> 0, message.resourceId.high >>> 0).toNumber(true) : message.resourceId; @@ -226078,7 +210788,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.entry = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -226111,16 +210821,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogAddRequest.encode = function encode(message, writer, q) { + ServiceLogAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.entry != null && message.entry.length) for (let i = 0; i < message.entry.length; ++i) - $root.ServiceLogger.ServiceLogRecord.encode(message.entry[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.ServiceLogger.ServiceLogRecord.encode(message.entry[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -226148,27 +210854,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceLogAddRequest.decode = function decode(reader, length, error, long) { + ServiceLogAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.entry && message.entry.length)) message.entry = []; - message.entry.push($root.ServiceLogger.ServiceLogRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.entry.push($root.ServiceLogger.ServiceLogRecord.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -226199,18 +210899,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceLogAddRequest.verify = function verify(message, long) { + ServiceLogAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.entry != null && message.hasOwnProperty("entry")) { if (!Array.isArray(message.entry)) return "entry: array expected"; for (let i = 0; i < message.entry.length; ++i) { - let error = $root.ServiceLogger.ServiceLogRecord.verify(message.entry[i], long + 1); + let error = $root.ServiceLogger.ServiceLogRecord.verify(message.entry[i]); if (error) return "entry." + error; } @@ -226226,13 +210922,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceLogAddRequest} ServiceLogAddRequest */ - ServiceLogAddRequest.fromObject = function fromObject(object, long) { + ServiceLogAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceLogAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceLogAddRequest(); if (object.entry) { if (!Array.isArray(object.entry)) @@ -226241,7 +210933,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.entry.length; ++i) { if (typeof object.entry[i] !== "object") throw TypeError(".ServiceLogger.ServiceLogAddRequest.entry: object expected"); - message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i], long + 1); + message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i]); } } return message; @@ -226256,20 +210948,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogAddRequest.toObject = function toObject(message, options, q) { + ServiceLogAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.entry = []; if (message.entry && message.entry.length) { object.entry = []; for (let j = 0; j < message.entry.length; ++j) - object.entry[j] = $root.ServiceLogger.ServiceLogRecord.toObject(message.entry[j], options, q + 1); + object.entry[j] = $root.ServiceLogger.ServiceLogRecord.toObject(message.entry[j], options); } return object; }; @@ -226324,7 +211012,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.entry = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -226357,16 +211045,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogResponse.encode = function encode(message, writer, q) { + ServiceLogResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.entry != null && message.entry.length) for (let i = 0; i < message.entry.length; ++i) - $root.ServiceLogger.ServiceLogRecord.encode(message.entry[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.ServiceLogger.ServiceLogRecord.encode(message.entry[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -226394,27 +211078,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceLogResponse.decode = function decode(reader, length, error, long) { + ServiceLogResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.entry && message.entry.length)) message.entry = []; - message.entry.push($root.ServiceLogger.ServiceLogRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.entry.push($root.ServiceLogger.ServiceLogRecord.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -226445,18 +211123,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceLogResponse.verify = function verify(message, long) { + ServiceLogResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.entry != null && message.hasOwnProperty("entry")) { if (!Array.isArray(message.entry)) return "entry: array expected"; for (let i = 0; i < message.entry.length; ++i) { - let error = $root.ServiceLogger.ServiceLogRecord.verify(message.entry[i], long + 1); + let error = $root.ServiceLogger.ServiceLogRecord.verify(message.entry[i]); if (error) return "entry." + error; } @@ -226472,13 +211146,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceLogResponse} ServiceLogResponse */ - ServiceLogResponse.fromObject = function fromObject(object, long) { + ServiceLogResponse.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceLogResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceLogResponse(); if (object.entry) { if (!Array.isArray(object.entry)) @@ -226487,7 +211157,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.entry.length; ++i) { if (typeof object.entry[i] !== "object") throw TypeError(".ServiceLogger.ServiceLogResponse.entry: object expected"); - message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i], long + 1); + message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i]); } } return message; @@ -226502,20 +211172,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogResponse.toObject = function toObject(message, options, q) { + ServiceLogResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.entry = []; if (message.entry && message.entry.length) { object.entry = []; for (let j = 0; j < message.entry.length; ++j) - object.entry[j] = $root.ServiceLogger.ServiceLogRecord.toObject(message.entry[j], options, q + 1); + object.entry[j] = $root.ServiceLogger.ServiceLogRecord.toObject(message.entry[j], options); } return object; }; @@ -226574,7 +211240,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -226639,13 +211305,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogClearRequest.encode = function encode(message, writer, q) { + ServiceLogClearRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.useDefaults != null && Object.hasOwnProperty.call(message, "useDefaults")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useDefaults); if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, "serviceTypeId")) @@ -226656,7 +211318,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.hoursOld); if (message.resourceIdRange != null && message.resourceIdRange.length) for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -226684,18 +211346,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceLogClearRequest.decode = function decode(reader, length, error, long) { + ServiceLogClearRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogClearRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.useDefaults = reader.bool(); @@ -226716,11 +211372,11 @@ export const ServiceLogger = $root.ServiceLogger = (() => { case 5: { if (!(message.resourceIdRange && message.resourceIdRange.length)) message.resourceIdRange = []; - message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32(), undefined, long + 1)); + message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -226751,13 +211407,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceLogClearRequest.verify = function verify(message, long) { + ServiceLogClearRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.useDefaults != null && message.hasOwnProperty("useDefaults")) if (typeof message.useDefaults !== "boolean") return "useDefaults: boolean expected"; @@ -226774,7 +211426,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { if (!Array.isArray(message.resourceIdRange)) return "resourceIdRange: array expected"; for (let i = 0; i < message.resourceIdRange.length; ++i) { - let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i], long + 1); + let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i]); if (error) return "resourceIdRange." + error; } @@ -226790,19 +211442,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceLogClearRequest} ServiceLogClearRequest */ - ServiceLogClearRequest.fromObject = function fromObject(object, long) { + ServiceLogClearRequest.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceLogClearRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceLogClearRequest(); if (object.useDefaults != null) message.useDefaults = Boolean(object.useDefaults); if (object.serviceTypeId != null) if ($util.Long) - message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId, true); + (message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId)).unsigned = true; else if (typeof object.serviceTypeId === "string") message.serviceTypeId = parseInt(object.serviceTypeId, 10); else if (typeof object.serviceTypeId === "number") @@ -226820,7 +211468,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.resourceIdRange.length; ++i) { if (typeof object.resourceIdRange[i] !== "object") throw TypeError(".ServiceLogger.ServiceLogClearRequest.resourceIdRange: object expected"); - message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i], long + 1); + message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } } return message; @@ -226835,13 +211483,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogClearRequest.toObject = function toObject(message, options, q) { + ServiceLogClearRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.resourceIdRange = []; @@ -226849,18 +211493,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.useDefaults = false; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceTypeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceTypeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceTypeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceTypeId = options.longs === String ? "0" : 0; object.daysOld = 0; object.hoursOld = 0; } if (message.useDefaults != null && message.hasOwnProperty("useDefaults")) object.useDefaults = message.useDefaults; if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceTypeId = typeof message.serviceTypeId === "number" ? BigInt(message.serviceTypeId) : $util.Long.fromBits(message.serviceTypeId.low >>> 0, message.serviceTypeId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceTypeId === "number") + if (typeof message.serviceTypeId === "number") object.serviceTypeId = options.longs === String ? String(message.serviceTypeId) : message.serviceTypeId; else object.serviceTypeId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceTypeId) : options.longs === Number ? new $util.LongBits(message.serviceTypeId.low >>> 0, message.serviceTypeId.high >>> 0).toNumber(true) : message.serviceTypeId; @@ -226871,7 +211513,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { if (message.resourceIdRange && message.resourceIdRange.length) { object.resourceIdRange = []; for (let j = 0; j < message.resourceIdRange.length; ++j) - object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options, q + 1); + object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options); } return object; }; @@ -226930,7 +211572,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -226995,20 +211637,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceLogClearResponse.encode = function encode(message, writer, q) { + ServiceLogClearResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, "serviceTypeId")) writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceTypeId); if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceName); if (message.resourceIdRange != null && message.resourceIdRange.length) for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.numDeleted != null && Object.hasOwnProperty.call(message, "numDeleted")) writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.numDeleted); if (message.numRemaining != null && Object.hasOwnProperty.call(message, "numRemaining")) @@ -227040,18 +211678,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceLogClearResponse.decode = function decode(reader, length, error, long) { + ServiceLogClearResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogClearResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.serviceTypeId = reader.uint64(); @@ -227064,7 +211696,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { case 3: { if (!(message.resourceIdRange && message.resourceIdRange.length)) message.resourceIdRange = []; - message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32(), undefined, long + 1)); + message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } case 4: { @@ -227076,7 +211708,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -227107,13 +211739,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceLogClearResponse.verify = function verify(message, long) { + ServiceLogClearResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) if (!$util.isInteger(message.serviceTypeId) && !(message.serviceTypeId && $util.isInteger(message.serviceTypeId.low) && $util.isInteger(message.serviceTypeId.high))) return "serviceTypeId: integer|Long expected"; @@ -227124,7 +211752,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { if (!Array.isArray(message.resourceIdRange)) return "resourceIdRange: array expected"; for (let i = 0; i < message.resourceIdRange.length; ++i) { - let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i], long + 1); + let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i]); if (error) return "resourceIdRange." + error; } @@ -227146,17 +211774,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {Object.} object Plain object * @returns {ServiceLogger.ServiceLogClearResponse} ServiceLogClearResponse */ - ServiceLogClearResponse.fromObject = function fromObject(object, long) { + ServiceLogClearResponse.fromObject = function fromObject(object) { if (object instanceof $root.ServiceLogger.ServiceLogClearResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.ServiceLogger.ServiceLogClearResponse(); if (object.serviceTypeId != null) if ($util.Long) - message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId, true); + (message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId)).unsigned = true; else if (typeof object.serviceTypeId === "string") message.serviceTypeId = parseInt(object.serviceTypeId, 10); else if (typeof object.serviceTypeId === "number") @@ -227172,7 +211796,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { for (let i = 0; i < object.resourceIdRange.length; ++i) { if (typeof object.resourceIdRange[i] !== "object") throw TypeError(".ServiceLogger.ServiceLogClearResponse.resourceIdRange: object expected"); - message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i], long + 1); + message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } } if (object.numDeleted != null) @@ -227191,30 +211815,24 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceLogClearResponse.toObject = function toObject(message, options, q) { + ServiceLogClearResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.resourceIdRange = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceTypeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serviceTypeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serviceTypeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serviceTypeId = options.longs === String ? "0" : 0; object.serviceName = ""; object.numDeleted = 0; object.numRemaining = 0; } if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serviceTypeId = typeof message.serviceTypeId === "number" ? BigInt(message.serviceTypeId) : $util.Long.fromBits(message.serviceTypeId.low >>> 0, message.serviceTypeId.high >>> 0, true).toBigInt(); - else if (typeof message.serviceTypeId === "number") + if (typeof message.serviceTypeId === "number") object.serviceTypeId = options.longs === String ? String(message.serviceTypeId) : message.serviceTypeId; else object.serviceTypeId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceTypeId) : options.longs === Number ? new $util.LongBits(message.serviceTypeId.low >>> 0, message.serviceTypeId.high >>> 0).toNumber(true) : message.serviceTypeId; @@ -227223,7 +211841,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { if (message.resourceIdRange && message.resourceIdRange.length) { object.resourceIdRange = []; for (let j = 0; j < message.resourceIdRange.length; ++j) - object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options, q + 1); + object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options); } if (message.numDeleted != null && message.hasOwnProperty("numDeleted")) object.numDeleted = message.numDeleted; @@ -227309,7 +211927,7 @@ export const Vault = $root.Vault = (() => { function SyncDownRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -227358,13 +211976,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncDownRequest.encode = function encode(message, writer, q) { + SyncDownRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); if (message.dataVersion != null && Object.hasOwnProperty.call(message, "dataVersion")) @@ -227398,18 +212012,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SyncDownRequest.decode = function decode(reader, length, error, long) { + SyncDownRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDownRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.continuationToken = reader.bytes(); @@ -227424,7 +212032,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -227455,13 +212063,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SyncDownRequest.verify = function verify(message, long) { + SyncDownRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) return "continuationToken: buffer expected"; @@ -227482,13 +212086,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SyncDownRequest} SyncDownRequest */ - SyncDownRequest.fromObject = function fromObject(object, long) { + SyncDownRequest.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SyncDownRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SyncDownRequest(); if (object.continuationToken != null) if (typeof object.continuationToken === "string") @@ -227511,13 +212111,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SyncDownRequest.toObject = function toObject(message, options, q) { + SyncDownRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -227675,7 +212271,7 @@ export const Vault = $root.Vault = (() => { this.notificationSync = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -228084,13 +212680,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncDownResponse.encode = function encode(message, writer, q) { + SyncDownResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) @@ -228099,70 +212691,70 @@ export const Vault = $root.Vault = (() => { writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cacheStatus); if (message.userFolders != null && message.userFolders.length) for (let i = 0; i < message.userFolders.length; ++i) - $root.Vault.UserFolder.encode(message.userFolders[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Vault.UserFolder.encode(message.userFolders[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.sharedFolders != null && message.sharedFolders.length) for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Vault.SharedFolder.encode(message.sharedFolders[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Vault.SharedFolder.encode(message.sharedFolders[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.userFolderSharedFolders != null && message.userFolderSharedFolders.length) for (let i = 0; i < message.userFolderSharedFolders.length; ++i) - $root.Vault.UserFolderSharedFolder.encode(message.userFolderSharedFolders[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Vault.UserFolderSharedFolder.encode(message.userFolderSharedFolders[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.sharedFolderFolders != null && message.sharedFolderFolders.length) for (let i = 0; i < message.sharedFolderFolders.length; ++i) - $root.Vault.SharedFolderFolder.encode(message.sharedFolderFolders[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderFolder.encode(message.sharedFolderFolders[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Vault.Record.encode(message.records[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.Vault.Record.encode(message.records[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.recordMetaData != null && message.recordMetaData.length) for (let i = 0; i < message.recordMetaData.length; ++i) - $root.Vault.RecordMetaData.encode(message.recordMetaData[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.Vault.RecordMetaData.encode(message.recordMetaData[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.nonSharedData != null && message.nonSharedData.length) for (let i = 0; i < message.nonSharedData.length; ++i) - $root.Vault.NonSharedData.encode(message.nonSharedData[i], writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.Vault.NonSharedData.encode(message.nonSharedData[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.recordLinks != null && message.recordLinks.length) for (let i = 0; i < message.recordLinks.length; ++i) - $root.Vault.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.Vault.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.userFolderRecords != null && message.userFolderRecords.length) for (let i = 0; i < message.userFolderRecords.length; ++i) - $root.Vault.UserFolderRecord.encode(message.userFolderRecords[i], writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim(); + $root.Vault.UserFolderRecord.encode(message.userFolderRecords[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.sharedFolderRecords != null && message.sharedFolderRecords.length) for (let i = 0; i < message.sharedFolderRecords.length; ++i) - $root.Vault.SharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 13, wireType 2 =*/106).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.sharedFolderFolderRecords != null && message.sharedFolderFolderRecords.length) for (let i = 0; i < message.sharedFolderFolderRecords.length; ++i) - $root.Vault.SharedFolderFolderRecord.encode(message.sharedFolderFolderRecords[i], writer.uint32(/* id 14, wireType 2 =*/114).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderFolderRecord.encode(message.sharedFolderFolderRecords[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.sharedFolderUsers != null && message.sharedFolderUsers.length) for (let i = 0; i < message.sharedFolderUsers.length; ++i) - $root.Vault.SharedFolderUser.encode(message.sharedFolderUsers[i], writer.uint32(/* id 15, wireType 2 =*/122).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderUser.encode(message.sharedFolderUsers[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); if (message.sharedFolderTeams != null && message.sharedFolderTeams.length) for (let i = 0; i < message.sharedFolderTeams.length; ++i) - $root.Vault.SharedFolderTeam.encode(message.sharedFolderTeams[i], writer.uint32(/* id 16, wireType 2 =*/130).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderTeam.encode(message.sharedFolderTeams[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); if (message.recordAddAuditData != null && message.recordAddAuditData.length) for (let i = 0; i < message.recordAddAuditData.length; ++i) writer.uint32(/* id 17, wireType 2 =*/138).bytes(message.recordAddAuditData[i]); if (message.teams != null && message.teams.length) for (let i = 0; i < message.teams.length; ++i) - $root.Vault.Team.encode(message.teams[i], writer.uint32(/* id 18, wireType 2 =*/146).fork(), q + 1).ldelim(); + $root.Vault.Team.encode(message.teams[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); if (message.sharingChanges != null && message.sharingChanges.length) for (let i = 0; i < message.sharingChanges.length; ++i) - $root.Vault.SharingChange.encode(message.sharingChanges[i], writer.uint32(/* id 19, wireType 2 =*/154).fork(), q + 1).ldelim(); + $root.Vault.SharingChange.encode(message.sharingChanges[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); if (message.profile != null && Object.hasOwnProperty.call(message, "profile")) - $root.Vault.Profile.encode(message.profile, writer.uint32(/* id 20, wireType 2 =*/162).fork(), q + 1).ldelim(); + $root.Vault.Profile.encode(message.profile, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); if (message.profilePic != null && Object.hasOwnProperty.call(message, "profilePic")) - $root.Vault.ProfilePic.encode(message.profilePic, writer.uint32(/* id 21, wireType 2 =*/170).fork(), q + 1).ldelim(); + $root.Vault.ProfilePic.encode(message.profilePic, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); if (message.pendingTeamMembers != null && message.pendingTeamMembers.length) for (let i = 0; i < message.pendingTeamMembers.length; ++i) - $root.Vault.PendingTeamMember.encode(message.pendingTeamMembers[i], writer.uint32(/* id 22, wireType 2 =*/178).fork(), q + 1).ldelim(); + $root.Vault.PendingTeamMember.encode(message.pendingTeamMembers[i], writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); if (message.breachWatchRecords != null && message.breachWatchRecords.length) for (let i = 0; i < message.breachWatchRecords.length; ++i) - $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 23, wireType 2 =*/186).fork(), q + 1).ldelim(); + $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.userAuths != null && message.userAuths.length) for (let i = 0; i < message.userAuths.length; ++i) - $root.Vault.UserAuth.encode(message.userAuths[i], writer.uint32(/* id 24, wireType 2 =*/194).fork(), q + 1).ldelim(); + $root.Vault.UserAuth.encode(message.userAuths[i], writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); if (message.breachWatchSecurityData != null && message.breachWatchSecurityData.length) for (let i = 0; i < message.breachWatchSecurityData.length; ++i) - $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 25, wireType 2 =*/202).fork(), q + 1).ldelim(); + $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); if (message.reusedPasswords != null && Object.hasOwnProperty.call(message, "reusedPasswords")) - $root.Vault.ReusedPasswords.encode(message.reusedPasswords, writer.uint32(/* id 26, wireType 2 =*/210).fork(), q + 1).ldelim(); + $root.Vault.ReusedPasswords.encode(message.reusedPasswords, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); if (message.removedUserFolders != null && message.removedUserFolders.length) for (let i = 0; i < message.removedUserFolders.length; ++i) writer.uint32(/* id 27, wireType 2 =*/218).bytes(message.removedUserFolders[i]); @@ -228171,62 +212763,62 @@ export const Vault = $root.Vault = (() => { writer.uint32(/* id 28, wireType 2 =*/226).bytes(message.removedSharedFolders[i]); if (message.removedUserFolderSharedFolders != null && message.removedUserFolderSharedFolders.length) for (let i = 0; i < message.removedUserFolderSharedFolders.length; ++i) - $root.Vault.UserFolderSharedFolder.encode(message.removedUserFolderSharedFolders[i], writer.uint32(/* id 29, wireType 2 =*/234).fork(), q + 1).ldelim(); + $root.Vault.UserFolderSharedFolder.encode(message.removedUserFolderSharedFolders[i], writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); if (message.removedSharedFolderFolders != null && message.removedSharedFolderFolders.length) for (let i = 0; i < message.removedSharedFolderFolders.length; ++i) - $root.Vault.SharedFolderFolder.encode(message.removedSharedFolderFolders[i], writer.uint32(/* id 30, wireType 2 =*/242).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderFolder.encode(message.removedSharedFolderFolders[i], writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); if (message.removedRecords != null && message.removedRecords.length) for (let i = 0; i < message.removedRecords.length; ++i) writer.uint32(/* id 31, wireType 2 =*/250).bytes(message.removedRecords[i]); if (message.removedRecordLinks != null && message.removedRecordLinks.length) for (let i = 0; i < message.removedRecordLinks.length; ++i) - $root.Vault.RecordLink.encode(message.removedRecordLinks[i], writer.uint32(/* id 32, wireType 2 =*/258).fork(), q + 1).ldelim(); + $root.Vault.RecordLink.encode(message.removedRecordLinks[i], writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); if (message.removedUserFolderRecords != null && message.removedUserFolderRecords.length) for (let i = 0; i < message.removedUserFolderRecords.length; ++i) - $root.Vault.UserFolderRecord.encode(message.removedUserFolderRecords[i], writer.uint32(/* id 33, wireType 2 =*/266).fork(), q + 1).ldelim(); + $root.Vault.UserFolderRecord.encode(message.removedUserFolderRecords[i], writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); if (message.removedSharedFolderRecords != null && message.removedSharedFolderRecords.length) for (let i = 0; i < message.removedSharedFolderRecords.length; ++i) - $root.Vault.SharedFolderRecord.encode(message.removedSharedFolderRecords[i], writer.uint32(/* id 34, wireType 2 =*/274).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderRecord.encode(message.removedSharedFolderRecords[i], writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); if (message.removedSharedFolderFolderRecords != null && message.removedSharedFolderFolderRecords.length) for (let i = 0; i < message.removedSharedFolderFolderRecords.length; ++i) - $root.Vault.SharedFolderFolderRecord.encode(message.removedSharedFolderFolderRecords[i], writer.uint32(/* id 35, wireType 2 =*/282).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderFolderRecord.encode(message.removedSharedFolderFolderRecords[i], writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); if (message.removedSharedFolderUsers != null && message.removedSharedFolderUsers.length) for (let i = 0; i < message.removedSharedFolderUsers.length; ++i) - $root.Vault.SharedFolderUser.encode(message.removedSharedFolderUsers[i], writer.uint32(/* id 36, wireType 2 =*/290).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderUser.encode(message.removedSharedFolderUsers[i], writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim(); if (message.removedSharedFolderTeams != null && message.removedSharedFolderTeams.length) for (let i = 0; i < message.removedSharedFolderTeams.length; ++i) - $root.Vault.SharedFolderTeam.encode(message.removedSharedFolderTeams[i], writer.uint32(/* id 37, wireType 2 =*/298).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderTeam.encode(message.removedSharedFolderTeams[i], writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); if (message.removedTeams != null && message.removedTeams.length) for (let i = 0; i < message.removedTeams.length; ++i) writer.uint32(/* id 38, wireType 2 =*/306).bytes(message.removedTeams[i]); if (message.ksmAppShares != null && message.ksmAppShares.length) for (let i = 0; i < message.ksmAppShares.length; ++i) - $root.Vault.KsmChange.encode(message.ksmAppShares[i], writer.uint32(/* id 39, wireType 2 =*/314).fork(), q + 1).ldelim(); + $root.Vault.KsmChange.encode(message.ksmAppShares[i], writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); if (message.ksmAppClients != null && message.ksmAppClients.length) for (let i = 0; i < message.ksmAppClients.length; ++i) - $root.Vault.KsmChange.encode(message.ksmAppClients[i], writer.uint32(/* id 40, wireType 2 =*/322).fork(), q + 1).ldelim(); + $root.Vault.KsmChange.encode(message.ksmAppClients[i], writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); if (message.shareInvitations != null && message.shareInvitations.length) for (let i = 0; i < message.shareInvitations.length; ++i) - $root.Vault.ShareInvitation.encode(message.shareInvitations[i], writer.uint32(/* id 41, wireType 2 =*/330).fork(), q + 1).ldelim(); + $root.Vault.ShareInvitation.encode(message.shareInvitations[i], writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim(); if (message.diagnostics != null && Object.hasOwnProperty.call(message, "diagnostics")) - $root.Vault.SyncDiagnostics.encode(message.diagnostics, writer.uint32(/* id 42, wireType 2 =*/338).fork(), q + 1).ldelim(); + $root.Vault.SyncDiagnostics.encode(message.diagnostics, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); if (message.recordRotations != null && message.recordRotations.length) for (let i = 0; i < message.recordRotations.length; ++i) - $root.Vault.RecordRotation.encode(message.recordRotations[i], writer.uint32(/* id 43, wireType 2 =*/346).fork(), q + 1).ldelim(); + $root.Vault.RecordRotation.encode(message.recordRotations[i], writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Vault.User.encode(message.users[i], writer.uint32(/* id 44, wireType 2 =*/354).fork(), q + 1).ldelim(); + $root.Vault.User.encode(message.users[i], writer.uint32(/* id 44, wireType 2 =*/354).fork()).ldelim(); if (message.removedUsers != null && message.removedUsers.length) for (let i = 0; i < message.removedUsers.length; ++i) writer.uint32(/* id 45, wireType 2 =*/362).bytes(message.removedUsers[i]); if (message.securityScoreData != null && message.securityScoreData.length) for (let i = 0; i < message.securityScoreData.length; ++i) - $root.Vault.SecurityScoreData.encode(message.securityScoreData[i], writer.uint32(/* id 46, wireType 2 =*/370).fork(), q + 1).ldelim(); + $root.Vault.SecurityScoreData.encode(message.securityScoreData[i], writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim(); if (message.notificationSync != null && message.notificationSync.length) for (let i = 0; i < message.notificationSync.length; ++i) - $root.NotificationCenter.NotificationWrapper.encode(message.notificationSync[i], writer.uint32(/* id 47, wireType 2 =*/378).fork(), q + 1).ldelim(); + $root.NotificationCenter.NotificationWrapper.encode(message.notificationSync[i], writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim(); if (message.keeperDriveData != null && Object.hasOwnProperty.call(message, "keeperDriveData")) - $root.Vault.KeeperDriveData.encode(message.keeperDriveData, writer.uint32(/* id 48, wireType 2 =*/386).fork(), q + 1).ldelim(); + $root.Vault.KeeperDriveData.encode(message.keeperDriveData, writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim(); return writer; }; @@ -228254,18 +212846,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SyncDownResponse.decode = function decode(reader, length, error, long) { + SyncDownResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDownResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.continuationToken = reader.bytes(); @@ -228282,79 +212868,79 @@ export const Vault = $root.Vault = (() => { case 4: { if (!(message.userFolders && message.userFolders.length)) message.userFolders = []; - message.userFolders.push($root.Vault.UserFolder.decode(reader, reader.uint32(), undefined, long + 1)); + message.userFolders.push($root.Vault.UserFolder.decode(reader, reader.uint32())); break; } case 5: { if (!(message.sharedFolders && message.sharedFolders.length)) message.sharedFolders = []; - message.sharedFolders.push($root.Vault.SharedFolder.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolders.push($root.Vault.SharedFolder.decode(reader, reader.uint32())); break; } case 6: { if (!(message.userFolderSharedFolders && message.userFolderSharedFolders.length)) message.userFolderSharedFolders = []; - message.userFolderSharedFolders.push($root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32(), undefined, long + 1)); + message.userFolderSharedFolders.push($root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32())); break; } case 7: { if (!(message.sharedFolderFolders && message.sharedFolderFolders.length)) message.sharedFolderFolders = []; - message.sharedFolderFolders.push($root.Vault.SharedFolderFolder.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderFolders.push($root.Vault.SharedFolderFolder.decode(reader, reader.uint32())); break; } case 8: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Vault.Record.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Vault.Record.decode(reader, reader.uint32())); break; } case 9: { if (!(message.recordMetaData && message.recordMetaData.length)) message.recordMetaData = []; - message.recordMetaData.push($root.Vault.RecordMetaData.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordMetaData.push($root.Vault.RecordMetaData.decode(reader, reader.uint32())); break; } case 10: { if (!(message.nonSharedData && message.nonSharedData.length)) message.nonSharedData = []; - message.nonSharedData.push($root.Vault.NonSharedData.decode(reader, reader.uint32(), undefined, long + 1)); + message.nonSharedData.push($root.Vault.NonSharedData.decode(reader, reader.uint32())); break; } case 11: { if (!(message.recordLinks && message.recordLinks.length)) message.recordLinks = []; - message.recordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); break; } case 12: { if (!(message.userFolderRecords && message.userFolderRecords.length)) message.userFolderRecords = []; - message.userFolderRecords.push($root.Vault.UserFolderRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.userFolderRecords.push($root.Vault.UserFolderRecord.decode(reader, reader.uint32())); break; } case 13: { if (!(message.sharedFolderRecords && message.sharedFolderRecords.length)) message.sharedFolderRecords = []; - message.sharedFolderRecords.push($root.Vault.SharedFolderRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderRecords.push($root.Vault.SharedFolderRecord.decode(reader, reader.uint32())); break; } case 14: { if (!(message.sharedFolderFolderRecords && message.sharedFolderFolderRecords.length)) message.sharedFolderFolderRecords = []; - message.sharedFolderFolderRecords.push($root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderFolderRecords.push($root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32())); break; } case 15: { if (!(message.sharedFolderUsers && message.sharedFolderUsers.length)) message.sharedFolderUsers = []; - message.sharedFolderUsers.push($root.Vault.SharedFolderUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderUsers.push($root.Vault.SharedFolderUser.decode(reader, reader.uint32())); break; } case 16: { if (!(message.sharedFolderTeams && message.sharedFolderTeams.length)) message.sharedFolderTeams = []; - message.sharedFolderTeams.push($root.Vault.SharedFolderTeam.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderTeams.push($root.Vault.SharedFolderTeam.decode(reader, reader.uint32())); break; } case 17: { @@ -228366,49 +212952,49 @@ export const Vault = $root.Vault = (() => { case 18: { if (!(message.teams && message.teams.length)) message.teams = []; - message.teams.push($root.Vault.Team.decode(reader, reader.uint32(), undefined, long + 1)); + message.teams.push($root.Vault.Team.decode(reader, reader.uint32())); break; } case 19: { if (!(message.sharingChanges && message.sharingChanges.length)) message.sharingChanges = []; - message.sharingChanges.push($root.Vault.SharingChange.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharingChanges.push($root.Vault.SharingChange.decode(reader, reader.uint32())); break; } case 20: { - message.profile = $root.Vault.Profile.decode(reader, reader.uint32(), undefined, long + 1); + message.profile = $root.Vault.Profile.decode(reader, reader.uint32()); break; } case 21: { - message.profilePic = $root.Vault.ProfilePic.decode(reader, reader.uint32(), undefined, long + 1); + message.profilePic = $root.Vault.ProfilePic.decode(reader, reader.uint32()); break; } case 22: { if (!(message.pendingTeamMembers && message.pendingTeamMembers.length)) message.pendingTeamMembers = []; - message.pendingTeamMembers.push($root.Vault.PendingTeamMember.decode(reader, reader.uint32(), undefined, long + 1)); + message.pendingTeamMembers.push($root.Vault.PendingTeamMember.decode(reader, reader.uint32())); break; } case 23: { if (!(message.breachWatchRecords && message.breachWatchRecords.length)) message.breachWatchRecords = []; - message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32())); break; } case 24: { if (!(message.userAuths && message.userAuths.length)) message.userAuths = []; - message.userAuths.push($root.Vault.UserAuth.decode(reader, reader.uint32(), undefined, long + 1)); + message.userAuths.push($root.Vault.UserAuth.decode(reader, reader.uint32())); break; } case 25: { if (!(message.breachWatchSecurityData && message.breachWatchSecurityData.length)) message.breachWatchSecurityData = []; - message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32(), undefined, long + 1)); + message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32())); break; } case 26: { - message.reusedPasswords = $root.Vault.ReusedPasswords.decode(reader, reader.uint32(), undefined, long + 1); + message.reusedPasswords = $root.Vault.ReusedPasswords.decode(reader, reader.uint32()); break; } case 27: { @@ -228426,13 +213012,13 @@ export const Vault = $root.Vault = (() => { case 29: { if (!(message.removedUserFolderSharedFolders && message.removedUserFolderSharedFolders.length)) message.removedUserFolderSharedFolders = []; - message.removedUserFolderSharedFolders.push($root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedUserFolderSharedFolders.push($root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32())); break; } case 30: { if (!(message.removedSharedFolderFolders && message.removedSharedFolderFolders.length)) message.removedSharedFolderFolders = []; - message.removedSharedFolderFolders.push($root.Vault.SharedFolderFolder.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedSharedFolderFolders.push($root.Vault.SharedFolderFolder.decode(reader, reader.uint32())); break; } case 31: { @@ -228444,37 +213030,37 @@ export const Vault = $root.Vault = (() => { case 32: { if (!(message.removedRecordLinks && message.removedRecordLinks.length)) message.removedRecordLinks = []; - message.removedRecordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedRecordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); break; } case 33: { if (!(message.removedUserFolderRecords && message.removedUserFolderRecords.length)) message.removedUserFolderRecords = []; - message.removedUserFolderRecords.push($root.Vault.UserFolderRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedUserFolderRecords.push($root.Vault.UserFolderRecord.decode(reader, reader.uint32())); break; } case 34: { if (!(message.removedSharedFolderRecords && message.removedSharedFolderRecords.length)) message.removedSharedFolderRecords = []; - message.removedSharedFolderRecords.push($root.Vault.SharedFolderRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedSharedFolderRecords.push($root.Vault.SharedFolderRecord.decode(reader, reader.uint32())); break; } case 35: { if (!(message.removedSharedFolderFolderRecords && message.removedSharedFolderFolderRecords.length)) message.removedSharedFolderFolderRecords = []; - message.removedSharedFolderFolderRecords.push($root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedSharedFolderFolderRecords.push($root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32())); break; } case 36: { if (!(message.removedSharedFolderUsers && message.removedSharedFolderUsers.length)) message.removedSharedFolderUsers = []; - message.removedSharedFolderUsers.push($root.Vault.SharedFolderUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedSharedFolderUsers.push($root.Vault.SharedFolderUser.decode(reader, reader.uint32())); break; } case 37: { if (!(message.removedSharedFolderTeams && message.removedSharedFolderTeams.length)) message.removedSharedFolderTeams = []; - message.removedSharedFolderTeams.push($root.Vault.SharedFolderTeam.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedSharedFolderTeams.push($root.Vault.SharedFolderTeam.decode(reader, reader.uint32())); break; } case 38: { @@ -228486,35 +213072,35 @@ export const Vault = $root.Vault = (() => { case 39: { if (!(message.ksmAppShares && message.ksmAppShares.length)) message.ksmAppShares = []; - message.ksmAppShares.push($root.Vault.KsmChange.decode(reader, reader.uint32(), undefined, long + 1)); + message.ksmAppShares.push($root.Vault.KsmChange.decode(reader, reader.uint32())); break; } case 40: { if (!(message.ksmAppClients && message.ksmAppClients.length)) message.ksmAppClients = []; - message.ksmAppClients.push($root.Vault.KsmChange.decode(reader, reader.uint32(), undefined, long + 1)); + message.ksmAppClients.push($root.Vault.KsmChange.decode(reader, reader.uint32())); break; } case 41: { if (!(message.shareInvitations && message.shareInvitations.length)) message.shareInvitations = []; - message.shareInvitations.push($root.Vault.ShareInvitation.decode(reader, reader.uint32(), undefined, long + 1)); + message.shareInvitations.push($root.Vault.ShareInvitation.decode(reader, reader.uint32())); break; } case 42: { - message.diagnostics = $root.Vault.SyncDiagnostics.decode(reader, reader.uint32(), undefined, long + 1); + message.diagnostics = $root.Vault.SyncDiagnostics.decode(reader, reader.uint32()); break; } case 43: { if (!(message.recordRotations && message.recordRotations.length)) message.recordRotations = []; - message.recordRotations.push($root.Vault.RecordRotation.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordRotations.push($root.Vault.RecordRotation.decode(reader, reader.uint32())); break; } case 44: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Vault.User.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Vault.User.decode(reader, reader.uint32())); break; } case 45: { @@ -228526,21 +213112,21 @@ export const Vault = $root.Vault = (() => { case 46: { if (!(message.securityScoreData && message.securityScoreData.length)) message.securityScoreData = []; - message.securityScoreData.push($root.Vault.SecurityScoreData.decode(reader, reader.uint32(), undefined, long + 1)); + message.securityScoreData.push($root.Vault.SecurityScoreData.decode(reader, reader.uint32())); break; } case 47: { if (!(message.notificationSync && message.notificationSync.length)) message.notificationSync = []; - message.notificationSync.push($root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32(), undefined, long + 1)); + message.notificationSync.push($root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32())); break; } case 48: { - message.keeperDriveData = $root.Vault.KeeperDriveData.decode(reader, reader.uint32(), undefined, long + 1); + message.keeperDriveData = $root.Vault.KeeperDriveData.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -228571,13 +213157,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SyncDownResponse.verify = function verify(message, long) { + SyncDownResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) return "continuationToken: buffer expected"; @@ -228596,7 +213178,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.userFolders)) return "userFolders: array expected"; for (let i = 0; i < message.userFolders.length; ++i) { - let error = $root.Vault.UserFolder.verify(message.userFolders[i], long + 1); + let error = $root.Vault.UserFolder.verify(message.userFolders[i]); if (error) return "userFolders." + error; } @@ -228605,7 +213187,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.sharedFolders)) return "sharedFolders: array expected"; for (let i = 0; i < message.sharedFolders.length; ++i) { - let error = $root.Vault.SharedFolder.verify(message.sharedFolders[i], long + 1); + let error = $root.Vault.SharedFolder.verify(message.sharedFolders[i]); if (error) return "sharedFolders." + error; } @@ -228614,7 +213196,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.userFolderSharedFolders)) return "userFolderSharedFolders: array expected"; for (let i = 0; i < message.userFolderSharedFolders.length; ++i) { - let error = $root.Vault.UserFolderSharedFolder.verify(message.userFolderSharedFolders[i], long + 1); + let error = $root.Vault.UserFolderSharedFolder.verify(message.userFolderSharedFolders[i]); if (error) return "userFolderSharedFolders." + error; } @@ -228623,7 +213205,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.sharedFolderFolders)) return "sharedFolderFolders: array expected"; for (let i = 0; i < message.sharedFolderFolders.length; ++i) { - let error = $root.Vault.SharedFolderFolder.verify(message.sharedFolderFolders[i], long + 1); + let error = $root.Vault.SharedFolderFolder.verify(message.sharedFolderFolders[i]); if (error) return "sharedFolderFolders." + error; } @@ -228632,7 +213214,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Vault.Record.verify(message.records[i], long + 1); + let error = $root.Vault.Record.verify(message.records[i]); if (error) return "records." + error; } @@ -228641,7 +213223,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.recordMetaData)) return "recordMetaData: array expected"; for (let i = 0; i < message.recordMetaData.length; ++i) { - let error = $root.Vault.RecordMetaData.verify(message.recordMetaData[i], long + 1); + let error = $root.Vault.RecordMetaData.verify(message.recordMetaData[i]); if (error) return "recordMetaData." + error; } @@ -228650,7 +213232,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.nonSharedData)) return "nonSharedData: array expected"; for (let i = 0; i < message.nonSharedData.length; ++i) { - let error = $root.Vault.NonSharedData.verify(message.nonSharedData[i], long + 1); + let error = $root.Vault.NonSharedData.verify(message.nonSharedData[i]); if (error) return "nonSharedData." + error; } @@ -228659,7 +213241,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.recordLinks)) return "recordLinks: array expected"; for (let i = 0; i < message.recordLinks.length; ++i) { - let error = $root.Vault.RecordLink.verify(message.recordLinks[i], long + 1); + let error = $root.Vault.RecordLink.verify(message.recordLinks[i]); if (error) return "recordLinks." + error; } @@ -228668,7 +213250,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.userFolderRecords)) return "userFolderRecords: array expected"; for (let i = 0; i < message.userFolderRecords.length; ++i) { - let error = $root.Vault.UserFolderRecord.verify(message.userFolderRecords[i], long + 1); + let error = $root.Vault.UserFolderRecord.verify(message.userFolderRecords[i]); if (error) return "userFolderRecords." + error; } @@ -228677,7 +213259,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.sharedFolderRecords)) return "sharedFolderRecords: array expected"; for (let i = 0; i < message.sharedFolderRecords.length; ++i) { - let error = $root.Vault.SharedFolderRecord.verify(message.sharedFolderRecords[i], long + 1); + let error = $root.Vault.SharedFolderRecord.verify(message.sharedFolderRecords[i]); if (error) return "sharedFolderRecords." + error; } @@ -228686,7 +213268,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.sharedFolderFolderRecords)) return "sharedFolderFolderRecords: array expected"; for (let i = 0; i < message.sharedFolderFolderRecords.length; ++i) { - let error = $root.Vault.SharedFolderFolderRecord.verify(message.sharedFolderFolderRecords[i], long + 1); + let error = $root.Vault.SharedFolderFolderRecord.verify(message.sharedFolderFolderRecords[i]); if (error) return "sharedFolderFolderRecords." + error; } @@ -228695,7 +213277,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.sharedFolderUsers)) return "sharedFolderUsers: array expected"; for (let i = 0; i < message.sharedFolderUsers.length; ++i) { - let error = $root.Vault.SharedFolderUser.verify(message.sharedFolderUsers[i], long + 1); + let error = $root.Vault.SharedFolderUser.verify(message.sharedFolderUsers[i]); if (error) return "sharedFolderUsers." + error; } @@ -228704,7 +213286,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.sharedFolderTeams)) return "sharedFolderTeams: array expected"; for (let i = 0; i < message.sharedFolderTeams.length; ++i) { - let error = $root.Vault.SharedFolderTeam.verify(message.sharedFolderTeams[i], long + 1); + let error = $root.Vault.SharedFolderTeam.verify(message.sharedFolderTeams[i]); if (error) return "sharedFolderTeams." + error; } @@ -228720,7 +213302,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.teams)) return "teams: array expected"; for (let i = 0; i < message.teams.length; ++i) { - let error = $root.Vault.Team.verify(message.teams[i], long + 1); + let error = $root.Vault.Team.verify(message.teams[i]); if (error) return "teams." + error; } @@ -228729,18 +213311,18 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.sharingChanges)) return "sharingChanges: array expected"; for (let i = 0; i < message.sharingChanges.length; ++i) { - let error = $root.Vault.SharingChange.verify(message.sharingChanges[i], long + 1); + let error = $root.Vault.SharingChange.verify(message.sharingChanges[i]); if (error) return "sharingChanges." + error; } } if (message.profile != null && message.hasOwnProperty("profile")) { - let error = $root.Vault.Profile.verify(message.profile, long + 1); + let error = $root.Vault.Profile.verify(message.profile); if (error) return "profile." + error; } if (message.profilePic != null && message.hasOwnProperty("profilePic")) { - let error = $root.Vault.ProfilePic.verify(message.profilePic, long + 1); + let error = $root.Vault.ProfilePic.verify(message.profilePic); if (error) return "profilePic." + error; } @@ -228748,7 +213330,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.pendingTeamMembers)) return "pendingTeamMembers: array expected"; for (let i = 0; i < message.pendingTeamMembers.length; ++i) { - let error = $root.Vault.PendingTeamMember.verify(message.pendingTeamMembers[i], long + 1); + let error = $root.Vault.PendingTeamMember.verify(message.pendingTeamMembers[i]); if (error) return "pendingTeamMembers." + error; } @@ -228757,7 +213339,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.breachWatchRecords)) return "breachWatchRecords: array expected"; for (let i = 0; i < message.breachWatchRecords.length; ++i) { - let error = $root.Vault.BreachWatchRecord.verify(message.breachWatchRecords[i], long + 1); + let error = $root.Vault.BreachWatchRecord.verify(message.breachWatchRecords[i]); if (error) return "breachWatchRecords." + error; } @@ -228766,7 +213348,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.userAuths)) return "userAuths: array expected"; for (let i = 0; i < message.userAuths.length; ++i) { - let error = $root.Vault.UserAuth.verify(message.userAuths[i], long + 1); + let error = $root.Vault.UserAuth.verify(message.userAuths[i]); if (error) return "userAuths." + error; } @@ -228775,13 +213357,13 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.breachWatchSecurityData)) return "breachWatchSecurityData: array expected"; for (let i = 0; i < message.breachWatchSecurityData.length; ++i) { - let error = $root.Vault.BreachWatchSecurityData.verify(message.breachWatchSecurityData[i], long + 1); + let error = $root.Vault.BreachWatchSecurityData.verify(message.breachWatchSecurityData[i]); if (error) return "breachWatchSecurityData." + error; } } if (message.reusedPasswords != null && message.hasOwnProperty("reusedPasswords")) { - let error = $root.Vault.ReusedPasswords.verify(message.reusedPasswords, long + 1); + let error = $root.Vault.ReusedPasswords.verify(message.reusedPasswords); if (error) return "reusedPasswords." + error; } @@ -228803,7 +213385,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedUserFolderSharedFolders)) return "removedUserFolderSharedFolders: array expected"; for (let i = 0; i < message.removedUserFolderSharedFolders.length; ++i) { - let error = $root.Vault.UserFolderSharedFolder.verify(message.removedUserFolderSharedFolders[i], long + 1); + let error = $root.Vault.UserFolderSharedFolder.verify(message.removedUserFolderSharedFolders[i]); if (error) return "removedUserFolderSharedFolders." + error; } @@ -228812,7 +213394,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedSharedFolderFolders)) return "removedSharedFolderFolders: array expected"; for (let i = 0; i < message.removedSharedFolderFolders.length; ++i) { - let error = $root.Vault.SharedFolderFolder.verify(message.removedSharedFolderFolders[i], long + 1); + let error = $root.Vault.SharedFolderFolder.verify(message.removedSharedFolderFolders[i]); if (error) return "removedSharedFolderFolders." + error; } @@ -228828,7 +213410,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedRecordLinks)) return "removedRecordLinks: array expected"; for (let i = 0; i < message.removedRecordLinks.length; ++i) { - let error = $root.Vault.RecordLink.verify(message.removedRecordLinks[i], long + 1); + let error = $root.Vault.RecordLink.verify(message.removedRecordLinks[i]); if (error) return "removedRecordLinks." + error; } @@ -228837,7 +213419,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedUserFolderRecords)) return "removedUserFolderRecords: array expected"; for (let i = 0; i < message.removedUserFolderRecords.length; ++i) { - let error = $root.Vault.UserFolderRecord.verify(message.removedUserFolderRecords[i], long + 1); + let error = $root.Vault.UserFolderRecord.verify(message.removedUserFolderRecords[i]); if (error) return "removedUserFolderRecords." + error; } @@ -228846,7 +213428,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedSharedFolderRecords)) return "removedSharedFolderRecords: array expected"; for (let i = 0; i < message.removedSharedFolderRecords.length; ++i) { - let error = $root.Vault.SharedFolderRecord.verify(message.removedSharedFolderRecords[i], long + 1); + let error = $root.Vault.SharedFolderRecord.verify(message.removedSharedFolderRecords[i]); if (error) return "removedSharedFolderRecords." + error; } @@ -228855,7 +213437,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedSharedFolderFolderRecords)) return "removedSharedFolderFolderRecords: array expected"; for (let i = 0; i < message.removedSharedFolderFolderRecords.length; ++i) { - let error = $root.Vault.SharedFolderFolderRecord.verify(message.removedSharedFolderFolderRecords[i], long + 1); + let error = $root.Vault.SharedFolderFolderRecord.verify(message.removedSharedFolderFolderRecords[i]); if (error) return "removedSharedFolderFolderRecords." + error; } @@ -228864,7 +213446,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedSharedFolderUsers)) return "removedSharedFolderUsers: array expected"; for (let i = 0; i < message.removedSharedFolderUsers.length; ++i) { - let error = $root.Vault.SharedFolderUser.verify(message.removedSharedFolderUsers[i], long + 1); + let error = $root.Vault.SharedFolderUser.verify(message.removedSharedFolderUsers[i]); if (error) return "removedSharedFolderUsers." + error; } @@ -228873,7 +213455,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedSharedFolderTeams)) return "removedSharedFolderTeams: array expected"; for (let i = 0; i < message.removedSharedFolderTeams.length; ++i) { - let error = $root.Vault.SharedFolderTeam.verify(message.removedSharedFolderTeams[i], long + 1); + let error = $root.Vault.SharedFolderTeam.verify(message.removedSharedFolderTeams[i]); if (error) return "removedSharedFolderTeams." + error; } @@ -228889,7 +213471,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.ksmAppShares)) return "ksmAppShares: array expected"; for (let i = 0; i < message.ksmAppShares.length; ++i) { - let error = $root.Vault.KsmChange.verify(message.ksmAppShares[i], long + 1); + let error = $root.Vault.KsmChange.verify(message.ksmAppShares[i]); if (error) return "ksmAppShares." + error; } @@ -228898,7 +213480,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.ksmAppClients)) return "ksmAppClients: array expected"; for (let i = 0; i < message.ksmAppClients.length; ++i) { - let error = $root.Vault.KsmChange.verify(message.ksmAppClients[i], long + 1); + let error = $root.Vault.KsmChange.verify(message.ksmAppClients[i]); if (error) return "ksmAppClients." + error; } @@ -228907,13 +213489,13 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.shareInvitations)) return "shareInvitations: array expected"; for (let i = 0; i < message.shareInvitations.length; ++i) { - let error = $root.Vault.ShareInvitation.verify(message.shareInvitations[i], long + 1); + let error = $root.Vault.ShareInvitation.verify(message.shareInvitations[i]); if (error) return "shareInvitations." + error; } } if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) { - let error = $root.Vault.SyncDiagnostics.verify(message.diagnostics, long + 1); + let error = $root.Vault.SyncDiagnostics.verify(message.diagnostics); if (error) return "diagnostics." + error; } @@ -228921,7 +213503,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.recordRotations)) return "recordRotations: array expected"; for (let i = 0; i < message.recordRotations.length; ++i) { - let error = $root.Vault.RecordRotation.verify(message.recordRotations[i], long + 1); + let error = $root.Vault.RecordRotation.verify(message.recordRotations[i]); if (error) return "recordRotations." + error; } @@ -228930,7 +213512,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Vault.User.verify(message.users[i], long + 1); + let error = $root.Vault.User.verify(message.users[i]); if (error) return "users." + error; } @@ -228946,7 +213528,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.securityScoreData)) return "securityScoreData: array expected"; for (let i = 0; i < message.securityScoreData.length; ++i) { - let error = $root.Vault.SecurityScoreData.verify(message.securityScoreData[i], long + 1); + let error = $root.Vault.SecurityScoreData.verify(message.securityScoreData[i]); if (error) return "securityScoreData." + error; } @@ -228955,13 +213537,13 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.notificationSync)) return "notificationSync: array expected"; for (let i = 0; i < message.notificationSync.length; ++i) { - let error = $root.NotificationCenter.NotificationWrapper.verify(message.notificationSync[i], long + 1); + let error = $root.NotificationCenter.NotificationWrapper.verify(message.notificationSync[i]); if (error) return "notificationSync." + error; } } if (message.keeperDriveData != null && message.hasOwnProperty("keeperDriveData")) { - let error = $root.Vault.KeeperDriveData.verify(message.keeperDriveData, long + 1); + let error = $root.Vault.KeeperDriveData.verify(message.keeperDriveData); if (error) return "keeperDriveData." + error; } @@ -228976,13 +213558,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SyncDownResponse} SyncDownResponse */ - SyncDownResponse.fromObject = function fromObject(object, long) { + SyncDownResponse.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SyncDownResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SyncDownResponse(); if (object.continuationToken != null) if (typeof object.continuationToken === "string") @@ -229014,7 +213592,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.userFolders.length; ++i) { if (typeof object.userFolders[i] !== "object") throw TypeError(".Vault.SyncDownResponse.userFolders: object expected"); - message.userFolders[i] = $root.Vault.UserFolder.fromObject(object.userFolders[i], long + 1); + message.userFolders[i] = $root.Vault.UserFolder.fromObject(object.userFolders[i]); } } if (object.sharedFolders) { @@ -229024,7 +213602,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.sharedFolders.length; ++i) { if (typeof object.sharedFolders[i] !== "object") throw TypeError(".Vault.SyncDownResponse.sharedFolders: object expected"); - message.sharedFolders[i] = $root.Vault.SharedFolder.fromObject(object.sharedFolders[i], long + 1); + message.sharedFolders[i] = $root.Vault.SharedFolder.fromObject(object.sharedFolders[i]); } } if (object.userFolderSharedFolders) { @@ -229034,7 +213612,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.userFolderSharedFolders.length; ++i) { if (typeof object.userFolderSharedFolders[i] !== "object") throw TypeError(".Vault.SyncDownResponse.userFolderSharedFolders: object expected"); - message.userFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.userFolderSharedFolders[i], long + 1); + message.userFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.userFolderSharedFolders[i]); } } if (object.sharedFolderFolders) { @@ -229044,7 +213622,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.sharedFolderFolders.length; ++i) { if (typeof object.sharedFolderFolders[i] !== "object") throw TypeError(".Vault.SyncDownResponse.sharedFolderFolders: object expected"); - message.sharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.sharedFolderFolders[i], long + 1); + message.sharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.sharedFolderFolders[i]); } } if (object.records) { @@ -229054,7 +213632,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Vault.SyncDownResponse.records: object expected"); - message.records[i] = $root.Vault.Record.fromObject(object.records[i], long + 1); + message.records[i] = $root.Vault.Record.fromObject(object.records[i]); } } if (object.recordMetaData) { @@ -229064,7 +213642,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.recordMetaData.length; ++i) { if (typeof object.recordMetaData[i] !== "object") throw TypeError(".Vault.SyncDownResponse.recordMetaData: object expected"); - message.recordMetaData[i] = $root.Vault.RecordMetaData.fromObject(object.recordMetaData[i], long + 1); + message.recordMetaData[i] = $root.Vault.RecordMetaData.fromObject(object.recordMetaData[i]); } } if (object.nonSharedData) { @@ -229074,7 +213652,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.nonSharedData.length; ++i) { if (typeof object.nonSharedData[i] !== "object") throw TypeError(".Vault.SyncDownResponse.nonSharedData: object expected"); - message.nonSharedData[i] = $root.Vault.NonSharedData.fromObject(object.nonSharedData[i], long + 1); + message.nonSharedData[i] = $root.Vault.NonSharedData.fromObject(object.nonSharedData[i]); } } if (object.recordLinks) { @@ -229084,7 +213662,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.recordLinks.length; ++i) { if (typeof object.recordLinks[i] !== "object") throw TypeError(".Vault.SyncDownResponse.recordLinks: object expected"); - message.recordLinks[i] = $root.Vault.RecordLink.fromObject(object.recordLinks[i], long + 1); + message.recordLinks[i] = $root.Vault.RecordLink.fromObject(object.recordLinks[i]); } } if (object.userFolderRecords) { @@ -229094,7 +213672,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.userFolderRecords.length; ++i) { if (typeof object.userFolderRecords[i] !== "object") throw TypeError(".Vault.SyncDownResponse.userFolderRecords: object expected"); - message.userFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.userFolderRecords[i], long + 1); + message.userFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.userFolderRecords[i]); } } if (object.sharedFolderRecords) { @@ -229104,7 +213682,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.sharedFolderRecords.length; ++i) { if (typeof object.sharedFolderRecords[i] !== "object") throw TypeError(".Vault.SyncDownResponse.sharedFolderRecords: object expected"); - message.sharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.sharedFolderRecords[i], long + 1); + message.sharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.sharedFolderRecords[i]); } } if (object.sharedFolderFolderRecords) { @@ -229114,7 +213692,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.sharedFolderFolderRecords.length; ++i) { if (typeof object.sharedFolderFolderRecords[i] !== "object") throw TypeError(".Vault.SyncDownResponse.sharedFolderFolderRecords: object expected"); - message.sharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.sharedFolderFolderRecords[i], long + 1); + message.sharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.sharedFolderFolderRecords[i]); } } if (object.sharedFolderUsers) { @@ -229124,7 +213702,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.sharedFolderUsers.length; ++i) { if (typeof object.sharedFolderUsers[i] !== "object") throw TypeError(".Vault.SyncDownResponse.sharedFolderUsers: object expected"); - message.sharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.sharedFolderUsers[i], long + 1); + message.sharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.sharedFolderUsers[i]); } } if (object.sharedFolderTeams) { @@ -229134,7 +213712,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.sharedFolderTeams.length; ++i) { if (typeof object.sharedFolderTeams[i] !== "object") throw TypeError(".Vault.SyncDownResponse.sharedFolderTeams: object expected"); - message.sharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.sharedFolderTeams[i], long + 1); + message.sharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.sharedFolderTeams[i]); } } if (object.recordAddAuditData) { @@ -229154,7 +213732,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.teams.length; ++i) { if (typeof object.teams[i] !== "object") throw TypeError(".Vault.SyncDownResponse.teams: object expected"); - message.teams[i] = $root.Vault.Team.fromObject(object.teams[i], long + 1); + message.teams[i] = $root.Vault.Team.fromObject(object.teams[i]); } } if (object.sharingChanges) { @@ -229164,18 +213742,18 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.sharingChanges.length; ++i) { if (typeof object.sharingChanges[i] !== "object") throw TypeError(".Vault.SyncDownResponse.sharingChanges: object expected"); - message.sharingChanges[i] = $root.Vault.SharingChange.fromObject(object.sharingChanges[i], long + 1); + message.sharingChanges[i] = $root.Vault.SharingChange.fromObject(object.sharingChanges[i]); } } if (object.profile != null) { if (typeof object.profile !== "object") throw TypeError(".Vault.SyncDownResponse.profile: object expected"); - message.profile = $root.Vault.Profile.fromObject(object.profile, long + 1); + message.profile = $root.Vault.Profile.fromObject(object.profile); } if (object.profilePic != null) { if (typeof object.profilePic !== "object") throw TypeError(".Vault.SyncDownResponse.profilePic: object expected"); - message.profilePic = $root.Vault.ProfilePic.fromObject(object.profilePic, long + 1); + message.profilePic = $root.Vault.ProfilePic.fromObject(object.profilePic); } if (object.pendingTeamMembers) { if (!Array.isArray(object.pendingTeamMembers)) @@ -229184,7 +213762,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.pendingTeamMembers.length; ++i) { if (typeof object.pendingTeamMembers[i] !== "object") throw TypeError(".Vault.SyncDownResponse.pendingTeamMembers: object expected"); - message.pendingTeamMembers[i] = $root.Vault.PendingTeamMember.fromObject(object.pendingTeamMembers[i], long + 1); + message.pendingTeamMembers[i] = $root.Vault.PendingTeamMember.fromObject(object.pendingTeamMembers[i]); } } if (object.breachWatchRecords) { @@ -229194,7 +213772,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.breachWatchRecords.length; ++i) { if (typeof object.breachWatchRecords[i] !== "object") throw TypeError(".Vault.SyncDownResponse.breachWatchRecords: object expected"); - message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i], long + 1); + message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i]); } } if (object.userAuths) { @@ -229204,7 +213782,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.userAuths.length; ++i) { if (typeof object.userAuths[i] !== "object") throw TypeError(".Vault.SyncDownResponse.userAuths: object expected"); - message.userAuths[i] = $root.Vault.UserAuth.fromObject(object.userAuths[i], long + 1); + message.userAuths[i] = $root.Vault.UserAuth.fromObject(object.userAuths[i]); } } if (object.breachWatchSecurityData) { @@ -229214,13 +213792,13 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { if (typeof object.breachWatchSecurityData[i] !== "object") throw TypeError(".Vault.SyncDownResponse.breachWatchSecurityData: object expected"); - message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i], long + 1); + message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i]); } } if (object.reusedPasswords != null) { if (typeof object.reusedPasswords !== "object") throw TypeError(".Vault.SyncDownResponse.reusedPasswords: object expected"); - message.reusedPasswords = $root.Vault.ReusedPasswords.fromObject(object.reusedPasswords, long + 1); + message.reusedPasswords = $root.Vault.ReusedPasswords.fromObject(object.reusedPasswords); } if (object.removedUserFolders) { if (!Array.isArray(object.removedUserFolders)) @@ -229249,7 +213827,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedUserFolderSharedFolders.length; ++i) { if (typeof object.removedUserFolderSharedFolders[i] !== "object") throw TypeError(".Vault.SyncDownResponse.removedUserFolderSharedFolders: object expected"); - message.removedUserFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.removedUserFolderSharedFolders[i], long + 1); + message.removedUserFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.removedUserFolderSharedFolders[i]); } } if (object.removedSharedFolderFolders) { @@ -229259,7 +213837,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedSharedFolderFolders.length; ++i) { if (typeof object.removedSharedFolderFolders[i] !== "object") throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolders: object expected"); - message.removedSharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.removedSharedFolderFolders[i], long + 1); + message.removedSharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.removedSharedFolderFolders[i]); } } if (object.removedRecords) { @@ -229279,7 +213857,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedRecordLinks.length; ++i) { if (typeof object.removedRecordLinks[i] !== "object") throw TypeError(".Vault.SyncDownResponse.removedRecordLinks: object expected"); - message.removedRecordLinks[i] = $root.Vault.RecordLink.fromObject(object.removedRecordLinks[i], long + 1); + message.removedRecordLinks[i] = $root.Vault.RecordLink.fromObject(object.removedRecordLinks[i]); } } if (object.removedUserFolderRecords) { @@ -229289,7 +213867,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedUserFolderRecords.length; ++i) { if (typeof object.removedUserFolderRecords[i] !== "object") throw TypeError(".Vault.SyncDownResponse.removedUserFolderRecords: object expected"); - message.removedUserFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.removedUserFolderRecords[i], long + 1); + message.removedUserFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.removedUserFolderRecords[i]); } } if (object.removedSharedFolderRecords) { @@ -229299,7 +213877,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedSharedFolderRecords.length; ++i) { if (typeof object.removedSharedFolderRecords[i] !== "object") throw TypeError(".Vault.SyncDownResponse.removedSharedFolderRecords: object expected"); - message.removedSharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.removedSharedFolderRecords[i], long + 1); + message.removedSharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.removedSharedFolderRecords[i]); } } if (object.removedSharedFolderFolderRecords) { @@ -229309,7 +213887,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedSharedFolderFolderRecords.length; ++i) { if (typeof object.removedSharedFolderFolderRecords[i] !== "object") throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolderRecords: object expected"); - message.removedSharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.removedSharedFolderFolderRecords[i], long + 1); + message.removedSharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.removedSharedFolderFolderRecords[i]); } } if (object.removedSharedFolderUsers) { @@ -229319,7 +213897,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedSharedFolderUsers.length; ++i) { if (typeof object.removedSharedFolderUsers[i] !== "object") throw TypeError(".Vault.SyncDownResponse.removedSharedFolderUsers: object expected"); - message.removedSharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.removedSharedFolderUsers[i], long + 1); + message.removedSharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.removedSharedFolderUsers[i]); } } if (object.removedSharedFolderTeams) { @@ -229329,7 +213907,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedSharedFolderTeams.length; ++i) { if (typeof object.removedSharedFolderTeams[i] !== "object") throw TypeError(".Vault.SyncDownResponse.removedSharedFolderTeams: object expected"); - message.removedSharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.removedSharedFolderTeams[i], long + 1); + message.removedSharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.removedSharedFolderTeams[i]); } } if (object.removedTeams) { @@ -229349,7 +213927,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.ksmAppShares.length; ++i) { if (typeof object.ksmAppShares[i] !== "object") throw TypeError(".Vault.SyncDownResponse.ksmAppShares: object expected"); - message.ksmAppShares[i] = $root.Vault.KsmChange.fromObject(object.ksmAppShares[i], long + 1); + message.ksmAppShares[i] = $root.Vault.KsmChange.fromObject(object.ksmAppShares[i]); } } if (object.ksmAppClients) { @@ -229359,7 +213937,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.ksmAppClients.length; ++i) { if (typeof object.ksmAppClients[i] !== "object") throw TypeError(".Vault.SyncDownResponse.ksmAppClients: object expected"); - message.ksmAppClients[i] = $root.Vault.KsmChange.fromObject(object.ksmAppClients[i], long + 1); + message.ksmAppClients[i] = $root.Vault.KsmChange.fromObject(object.ksmAppClients[i]); } } if (object.shareInvitations) { @@ -229369,13 +213947,13 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.shareInvitations.length; ++i) { if (typeof object.shareInvitations[i] !== "object") throw TypeError(".Vault.SyncDownResponse.shareInvitations: object expected"); - message.shareInvitations[i] = $root.Vault.ShareInvitation.fromObject(object.shareInvitations[i], long + 1); + message.shareInvitations[i] = $root.Vault.ShareInvitation.fromObject(object.shareInvitations[i]); } } if (object.diagnostics != null) { if (typeof object.diagnostics !== "object") throw TypeError(".Vault.SyncDownResponse.diagnostics: object expected"); - message.diagnostics = $root.Vault.SyncDiagnostics.fromObject(object.diagnostics, long + 1); + message.diagnostics = $root.Vault.SyncDiagnostics.fromObject(object.diagnostics); } if (object.recordRotations) { if (!Array.isArray(object.recordRotations)) @@ -229384,7 +213962,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.recordRotations.length; ++i) { if (typeof object.recordRotations[i] !== "object") throw TypeError(".Vault.SyncDownResponse.recordRotations: object expected"); - message.recordRotations[i] = $root.Vault.RecordRotation.fromObject(object.recordRotations[i], long + 1); + message.recordRotations[i] = $root.Vault.RecordRotation.fromObject(object.recordRotations[i]); } } if (object.users) { @@ -229394,7 +213972,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Vault.SyncDownResponse.users: object expected"); - message.users[i] = $root.Vault.User.fromObject(object.users[i], long + 1); + message.users[i] = $root.Vault.User.fromObject(object.users[i]); } } if (object.removedUsers) { @@ -229414,7 +213992,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.securityScoreData.length; ++i) { if (typeof object.securityScoreData[i] !== "object") throw TypeError(".Vault.SyncDownResponse.securityScoreData: object expected"); - message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject(object.securityScoreData[i], long + 1); + message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject(object.securityScoreData[i]); } } if (object.notificationSync) { @@ -229424,13 +214002,13 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.notificationSync.length; ++i) { if (typeof object.notificationSync[i] !== "object") throw TypeError(".Vault.SyncDownResponse.notificationSync: object expected"); - message.notificationSync[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.notificationSync[i], long + 1); + message.notificationSync[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.notificationSync[i]); } } if (object.keeperDriveData != null) { if (typeof object.keeperDriveData !== "object") throw TypeError(".Vault.SyncDownResponse.keeperDriveData: object expected"); - message.keeperDriveData = $root.Vault.KeeperDriveData.fromObject(object.keeperDriveData, long + 1); + message.keeperDriveData = $root.Vault.KeeperDriveData.fromObject(object.keeperDriveData); } return message; }; @@ -229444,13 +214022,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SyncDownResponse.toObject = function toObject(message, options, q) { + SyncDownResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.userFolders = []; @@ -229519,67 +214093,67 @@ export const Vault = $root.Vault = (() => { if (message.userFolders && message.userFolders.length) { object.userFolders = []; for (let j = 0; j < message.userFolders.length; ++j) - object.userFolders[j] = $root.Vault.UserFolder.toObject(message.userFolders[j], options, q + 1); + object.userFolders[j] = $root.Vault.UserFolder.toObject(message.userFolders[j], options); } if (message.sharedFolders && message.sharedFolders.length) { object.sharedFolders = []; for (let j = 0; j < message.sharedFolders.length; ++j) - object.sharedFolders[j] = $root.Vault.SharedFolder.toObject(message.sharedFolders[j], options, q + 1); + object.sharedFolders[j] = $root.Vault.SharedFolder.toObject(message.sharedFolders[j], options); } if (message.userFolderSharedFolders && message.userFolderSharedFolders.length) { object.userFolderSharedFolders = []; for (let j = 0; j < message.userFolderSharedFolders.length; ++j) - object.userFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject(message.userFolderSharedFolders[j], options, q + 1); + object.userFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject(message.userFolderSharedFolders[j], options); } if (message.sharedFolderFolders && message.sharedFolderFolders.length) { object.sharedFolderFolders = []; for (let j = 0; j < message.sharedFolderFolders.length; ++j) - object.sharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject(message.sharedFolderFolders[j], options, q + 1); + object.sharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject(message.sharedFolderFolders[j], options); } if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Vault.Record.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Vault.Record.toObject(message.records[j], options); } if (message.recordMetaData && message.recordMetaData.length) { object.recordMetaData = []; for (let j = 0; j < message.recordMetaData.length; ++j) - object.recordMetaData[j] = $root.Vault.RecordMetaData.toObject(message.recordMetaData[j], options, q + 1); + object.recordMetaData[j] = $root.Vault.RecordMetaData.toObject(message.recordMetaData[j], options); } if (message.nonSharedData && message.nonSharedData.length) { object.nonSharedData = []; for (let j = 0; j < message.nonSharedData.length; ++j) - object.nonSharedData[j] = $root.Vault.NonSharedData.toObject(message.nonSharedData[j], options, q + 1); + object.nonSharedData[j] = $root.Vault.NonSharedData.toObject(message.nonSharedData[j], options); } if (message.recordLinks && message.recordLinks.length) { object.recordLinks = []; for (let j = 0; j < message.recordLinks.length; ++j) - object.recordLinks[j] = $root.Vault.RecordLink.toObject(message.recordLinks[j], options, q + 1); + object.recordLinks[j] = $root.Vault.RecordLink.toObject(message.recordLinks[j], options); } if (message.userFolderRecords && message.userFolderRecords.length) { object.userFolderRecords = []; for (let j = 0; j < message.userFolderRecords.length; ++j) - object.userFolderRecords[j] = $root.Vault.UserFolderRecord.toObject(message.userFolderRecords[j], options, q + 1); + object.userFolderRecords[j] = $root.Vault.UserFolderRecord.toObject(message.userFolderRecords[j], options); } if (message.sharedFolderRecords && message.sharedFolderRecords.length) { object.sharedFolderRecords = []; for (let j = 0; j < message.sharedFolderRecords.length; ++j) - object.sharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject(message.sharedFolderRecords[j], options, q + 1); + object.sharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject(message.sharedFolderRecords[j], options); } if (message.sharedFolderFolderRecords && message.sharedFolderFolderRecords.length) { object.sharedFolderFolderRecords = []; for (let j = 0; j < message.sharedFolderFolderRecords.length; ++j) - object.sharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject(message.sharedFolderFolderRecords[j], options, q + 1); + object.sharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject(message.sharedFolderFolderRecords[j], options); } if (message.sharedFolderUsers && message.sharedFolderUsers.length) { object.sharedFolderUsers = []; for (let j = 0; j < message.sharedFolderUsers.length; ++j) - object.sharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject(message.sharedFolderUsers[j], options, q + 1); + object.sharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject(message.sharedFolderUsers[j], options); } if (message.sharedFolderTeams && message.sharedFolderTeams.length) { object.sharedFolderTeams = []; for (let j = 0; j < message.sharedFolderTeams.length; ++j) - object.sharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject(message.sharedFolderTeams[j], options, q + 1); + object.sharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject(message.sharedFolderTeams[j], options); } if (message.recordAddAuditData && message.recordAddAuditData.length) { object.recordAddAuditData = []; @@ -229589,39 +214163,39 @@ export const Vault = $root.Vault = (() => { if (message.teams && message.teams.length) { object.teams = []; for (let j = 0; j < message.teams.length; ++j) - object.teams[j] = $root.Vault.Team.toObject(message.teams[j], options, q + 1); + object.teams[j] = $root.Vault.Team.toObject(message.teams[j], options); } if (message.sharingChanges && message.sharingChanges.length) { object.sharingChanges = []; for (let j = 0; j < message.sharingChanges.length; ++j) - object.sharingChanges[j] = $root.Vault.SharingChange.toObject(message.sharingChanges[j], options, q + 1); + object.sharingChanges[j] = $root.Vault.SharingChange.toObject(message.sharingChanges[j], options); } if (message.profile != null && message.hasOwnProperty("profile")) - object.profile = $root.Vault.Profile.toObject(message.profile, options, q + 1); + object.profile = $root.Vault.Profile.toObject(message.profile, options); if (message.profilePic != null && message.hasOwnProperty("profilePic")) - object.profilePic = $root.Vault.ProfilePic.toObject(message.profilePic, options, q + 1); + object.profilePic = $root.Vault.ProfilePic.toObject(message.profilePic, options); if (message.pendingTeamMembers && message.pendingTeamMembers.length) { object.pendingTeamMembers = []; for (let j = 0; j < message.pendingTeamMembers.length; ++j) - object.pendingTeamMembers[j] = $root.Vault.PendingTeamMember.toObject(message.pendingTeamMembers[j], options, q + 1); + object.pendingTeamMembers[j] = $root.Vault.PendingTeamMember.toObject(message.pendingTeamMembers[j], options); } if (message.breachWatchRecords && message.breachWatchRecords.length) { object.breachWatchRecords = []; for (let j = 0; j < message.breachWatchRecords.length; ++j) - object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options, q + 1); + object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options); } if (message.userAuths && message.userAuths.length) { object.userAuths = []; for (let j = 0; j < message.userAuths.length; ++j) - object.userAuths[j] = $root.Vault.UserAuth.toObject(message.userAuths[j], options, q + 1); + object.userAuths[j] = $root.Vault.UserAuth.toObject(message.userAuths[j], options); } if (message.breachWatchSecurityData && message.breachWatchSecurityData.length) { object.breachWatchSecurityData = []; for (let j = 0; j < message.breachWatchSecurityData.length; ++j) - object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options, q + 1); + object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options); } if (message.reusedPasswords != null && message.hasOwnProperty("reusedPasswords")) - object.reusedPasswords = $root.Vault.ReusedPasswords.toObject(message.reusedPasswords, options, q + 1); + object.reusedPasswords = $root.Vault.ReusedPasswords.toObject(message.reusedPasswords, options); if (message.removedUserFolders && message.removedUserFolders.length) { object.removedUserFolders = []; for (let j = 0; j < message.removedUserFolders.length; ++j) @@ -229635,12 +214209,12 @@ export const Vault = $root.Vault = (() => { if (message.removedUserFolderSharedFolders && message.removedUserFolderSharedFolders.length) { object.removedUserFolderSharedFolders = []; for (let j = 0; j < message.removedUserFolderSharedFolders.length; ++j) - object.removedUserFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject(message.removedUserFolderSharedFolders[j], options, q + 1); + object.removedUserFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject(message.removedUserFolderSharedFolders[j], options); } if (message.removedSharedFolderFolders && message.removedSharedFolderFolders.length) { object.removedSharedFolderFolders = []; for (let j = 0; j < message.removedSharedFolderFolders.length; ++j) - object.removedSharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject(message.removedSharedFolderFolders[j], options, q + 1); + object.removedSharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject(message.removedSharedFolderFolders[j], options); } if (message.removedRecords && message.removedRecords.length) { object.removedRecords = []; @@ -229650,32 +214224,32 @@ export const Vault = $root.Vault = (() => { if (message.removedRecordLinks && message.removedRecordLinks.length) { object.removedRecordLinks = []; for (let j = 0; j < message.removedRecordLinks.length; ++j) - object.removedRecordLinks[j] = $root.Vault.RecordLink.toObject(message.removedRecordLinks[j], options, q + 1); + object.removedRecordLinks[j] = $root.Vault.RecordLink.toObject(message.removedRecordLinks[j], options); } if (message.removedUserFolderRecords && message.removedUserFolderRecords.length) { object.removedUserFolderRecords = []; for (let j = 0; j < message.removedUserFolderRecords.length; ++j) - object.removedUserFolderRecords[j] = $root.Vault.UserFolderRecord.toObject(message.removedUserFolderRecords[j], options, q + 1); + object.removedUserFolderRecords[j] = $root.Vault.UserFolderRecord.toObject(message.removedUserFolderRecords[j], options); } if (message.removedSharedFolderRecords && message.removedSharedFolderRecords.length) { object.removedSharedFolderRecords = []; for (let j = 0; j < message.removedSharedFolderRecords.length; ++j) - object.removedSharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject(message.removedSharedFolderRecords[j], options, q + 1); + object.removedSharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject(message.removedSharedFolderRecords[j], options); } if (message.removedSharedFolderFolderRecords && message.removedSharedFolderFolderRecords.length) { object.removedSharedFolderFolderRecords = []; for (let j = 0; j < message.removedSharedFolderFolderRecords.length; ++j) - object.removedSharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject(message.removedSharedFolderFolderRecords[j], options, q + 1); + object.removedSharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject(message.removedSharedFolderFolderRecords[j], options); } if (message.removedSharedFolderUsers && message.removedSharedFolderUsers.length) { object.removedSharedFolderUsers = []; for (let j = 0; j < message.removedSharedFolderUsers.length; ++j) - object.removedSharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject(message.removedSharedFolderUsers[j], options, q + 1); + object.removedSharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject(message.removedSharedFolderUsers[j], options); } if (message.removedSharedFolderTeams && message.removedSharedFolderTeams.length) { object.removedSharedFolderTeams = []; for (let j = 0; j < message.removedSharedFolderTeams.length; ++j) - object.removedSharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject(message.removedSharedFolderTeams[j], options, q + 1); + object.removedSharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject(message.removedSharedFolderTeams[j], options); } if (message.removedTeams && message.removedTeams.length) { object.removedTeams = []; @@ -229685,29 +214259,29 @@ export const Vault = $root.Vault = (() => { if (message.ksmAppShares && message.ksmAppShares.length) { object.ksmAppShares = []; for (let j = 0; j < message.ksmAppShares.length; ++j) - object.ksmAppShares[j] = $root.Vault.KsmChange.toObject(message.ksmAppShares[j], options, q + 1); + object.ksmAppShares[j] = $root.Vault.KsmChange.toObject(message.ksmAppShares[j], options); } if (message.ksmAppClients && message.ksmAppClients.length) { object.ksmAppClients = []; for (let j = 0; j < message.ksmAppClients.length; ++j) - object.ksmAppClients[j] = $root.Vault.KsmChange.toObject(message.ksmAppClients[j], options, q + 1); + object.ksmAppClients[j] = $root.Vault.KsmChange.toObject(message.ksmAppClients[j], options); } if (message.shareInvitations && message.shareInvitations.length) { object.shareInvitations = []; for (let j = 0; j < message.shareInvitations.length; ++j) - object.shareInvitations[j] = $root.Vault.ShareInvitation.toObject(message.shareInvitations[j], options, q + 1); + object.shareInvitations[j] = $root.Vault.ShareInvitation.toObject(message.shareInvitations[j], options); } if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) - object.diagnostics = $root.Vault.SyncDiagnostics.toObject(message.diagnostics, options, q + 1); + object.diagnostics = $root.Vault.SyncDiagnostics.toObject(message.diagnostics, options); if (message.recordRotations && message.recordRotations.length) { object.recordRotations = []; for (let j = 0; j < message.recordRotations.length; ++j) - object.recordRotations[j] = $root.Vault.RecordRotation.toObject(message.recordRotations[j], options, q + 1); + object.recordRotations[j] = $root.Vault.RecordRotation.toObject(message.recordRotations[j], options); } if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Vault.User.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Vault.User.toObject(message.users[j], options); } if (message.removedUsers && message.removedUsers.length) { object.removedUsers = []; @@ -229717,15 +214291,15 @@ export const Vault = $root.Vault = (() => { if (message.securityScoreData && message.securityScoreData.length) { object.securityScoreData = []; for (let j = 0; j < message.securityScoreData.length; ++j) - object.securityScoreData[j] = $root.Vault.SecurityScoreData.toObject(message.securityScoreData[j], options, q + 1); + object.securityScoreData[j] = $root.Vault.SecurityScoreData.toObject(message.securityScoreData[j], options); } if (message.notificationSync && message.notificationSync.length) { object.notificationSync = []; for (let j = 0; j < message.notificationSync.length; ++j) - object.notificationSync[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.notificationSync[j], options, q + 1); + object.notificationSync[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.notificationSync[j], options); } if (message.keeperDriveData != null && message.hasOwnProperty("keeperDriveData")) - object.keeperDriveData = $root.Vault.KeeperDriveData.toObject(message.keeperDriveData, options, q + 1); + object.keeperDriveData = $root.Vault.KeeperDriveData.toObject(message.keeperDriveData, options); return object; }; @@ -229784,7 +214358,7 @@ export const Vault = $root.Vault = (() => { function DriveRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -229865,13 +214439,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DriveRecord.encode = function encode(message, writer, q) { + DriveRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -229913,18 +214483,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DriveRecord.decode = function decode(reader, length, error, long) { + DriveRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.DriveRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -229955,7 +214519,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -229986,13 +214550,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DriveRecord.verify = function verify(message, long) { + DriveRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -230025,13 +214585,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.DriveRecord} DriveRecord */ - DriveRecord.fromObject = function fromObject(object, long) { + DriveRecord.fromObject = function fromObject(object) { if (object instanceof $root.Vault.DriveRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.DriveRecord(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -230040,7 +214596,7 @@ export const Vault = $root.Vault = (() => { message.recordUid = object.recordUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -230053,7 +214609,7 @@ export const Vault = $root.Vault = (() => { message.shared = Boolean(object.shared); if (object.clientModifiedTime != null) if ($util.Long) - message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime, false); + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; else if (typeof object.clientModifiedTime === "string") message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); else if (typeof object.clientModifiedTime === "number") @@ -230062,7 +214618,7 @@ export const Vault = $root.Vault = (() => { message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); if (object.fileSize != null) if ($util.Long) - message.fileSize = $util.Long.fromValue(object.fileSize, false); + (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; else if (typeof object.fileSize === "string") message.fileSize = parseInt(object.fileSize, 10); else if (typeof object.fileSize === "number") @@ -230071,7 +214627,7 @@ export const Vault = $root.Vault = (() => { message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); if (object.thumbnailSize != null) if ($util.Long) - message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize, false); + (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; else if (typeof object.thumbnailSize === "string") message.thumbnailSize = parseInt(object.thumbnailSize, 10); else if (typeof object.thumbnailSize === "number") @@ -230090,13 +214646,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DriveRecord.toObject = function toObject(message, options, q) { + DriveRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -230108,33 +214660,31 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; object.version = 0; object.shared = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientModifiedTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientModifiedTime = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.fileSize = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.fileSize = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.thumbnailSize = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.thumbnailSize = options.longs === String ? "0" : 0; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -230143,23 +214693,17 @@ export const Vault = $root.Vault = (() => { if (message.shared != null && message.hasOwnProperty("shared")) object.shared = message.shared; if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientModifiedTime = typeof message.clientModifiedTime === "number" ? BigInt(message.clientModifiedTime) : $util.Long.fromBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientModifiedTime === "number") + if (typeof message.clientModifiedTime === "number") object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.fileSize = typeof message.fileSize === "number" ? BigInt(message.fileSize) : $util.Long.fromBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0, false).toBigInt(); - else if (typeof message.fileSize === "number") + if (typeof message.fileSize === "number") object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; else object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.thumbnailSize = typeof message.thumbnailSize === "number" ? BigInt(message.thumbnailSize) : $util.Long.fromBits(message.thumbnailSize.low >>> 0, message.thumbnailSize.high >>> 0, false).toBigInt(); - else if (typeof message.thumbnailSize === "number") + if (typeof message.thumbnailSize === "number") object.thumbnailSize = options.longs === String ? String(message.thumbnailSize) : message.thumbnailSize; else object.thumbnailSize = options.longs === String ? $util.Long.prototype.toString.call(message.thumbnailSize) : options.longs === Number ? new $util.LongBits(message.thumbnailSize.low >>> 0, message.thumbnailSize.high >>> 0).toNumber() : message.thumbnailSize; @@ -230217,7 +214761,7 @@ export const Vault = $root.Vault = (() => { function FolderSharingState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -230266,13 +214810,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FolderSharingState.encode = function encode(message, writer, q) { + FolderSharingState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) @@ -230306,18 +214846,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FolderSharingState.decode = function decode(reader, length, error, long) { + FolderSharingState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.FolderSharingState(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -230332,7 +214866,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -230363,13 +214897,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FolderSharingState.verify = function verify(message, long) { + FolderSharingState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -230390,13 +214920,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.FolderSharingState} FolderSharingState */ - FolderSharingState.fromObject = function fromObject(object, long) { + FolderSharingState.fromObject = function fromObject(object) { if (object instanceof $root.Vault.FolderSharingState) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.FolderSharingState(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -230419,13 +214945,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FolderSharingState.toObject = function toObject(message, options, q) { + FolderSharingState.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -230537,7 +215059,7 @@ export const Vault = $root.Vault = (() => { this.rawDagData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -230730,76 +215252,72 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KeeperDriveData.encode = function encode(message, writer, q) { + KeeperDriveData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folders != null && message.folders.length) for (let i = 0; i < message.folders.length; ++i) - $root.Folder.FolderData.encode(message.folders[i], writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.Folder.FolderData.encode(message.folders[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.folderKeys != null && message.folderKeys.length) for (let i = 0; i < message.folderKeys.length; ++i) - $root.Folder.FolderKey.encode(message.folderKeys[i], writer.uint32(/* id 13, wireType 2 =*/106).fork(), q + 1).ldelim(); + $root.Folder.FolderKey.encode(message.folderKeys[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.folderAccesses != null && message.folderAccesses.length) for (let i = 0; i < message.folderAccesses.length; ++i) - $root.Folder.FolderAccessData.encode(message.folderAccesses[i], writer.uint32(/* id 15, wireType 2 =*/122).fork(), q + 1).ldelim(); + $root.Folder.FolderAccessData.encode(message.folderAccesses[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); if (message.revokedFolderAccesses != null && message.revokedFolderAccesses.length) for (let i = 0; i < message.revokedFolderAccesses.length; ++i) - $root.Folder.RevokedAccess.encode(message.revokedFolderAccesses[i], writer.uint32(/* id 17, wireType 2 =*/138).fork(), q + 1).ldelim(); + $root.Folder.RevokedAccess.encode(message.revokedFolderAccesses[i], writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); if (message.recordData != null && message.recordData.length) for (let i = 0; i < message.recordData.length; ++i) - $root.Folder.RecordData.encode(message.recordData[i], writer.uint32(/* id 20, wireType 2 =*/162).fork(), q + 1).ldelim(); + $root.Folder.RecordData.encode(message.recordData[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); if (message.nonSharedData != null && message.nonSharedData.length) for (let i = 0; i < message.nonSharedData.length; ++i) - $root.Vault.NonSharedData.encode(message.nonSharedData[i], writer.uint32(/* id 21, wireType 2 =*/170).fork(), q + 1).ldelim(); + $root.Vault.NonSharedData.encode(message.nonSharedData[i], writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); if (message.recordAccesses != null && message.recordAccesses.length) for (let i = 0; i < message.recordAccesses.length; ++i) - $root.Folder.RecordAccessData.encode(message.recordAccesses[i], writer.uint32(/* id 25, wireType 2 =*/202).fork(), q + 1).ldelim(); + $root.Folder.RecordAccessData.encode(message.recordAccesses[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); if (message.revokedRecordAccesses != null && message.revokedRecordAccesses.length) for (let i = 0; i < message.revokedRecordAccesses.length; ++i) - $root.record.v3.sharing.RevokedAccess.encode(message.revokedRecordAccesses[i], writer.uint32(/* id 27, wireType 2 =*/218).fork(), q + 1).ldelim(); + $root.record.v3.sharing.RevokedAccess.encode(message.revokedRecordAccesses[i], writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); if (message.recordSharingStates != null && message.recordSharingStates.length) for (let i = 0; i < message.recordSharingStates.length; ++i) - $root.record.v3.sharing.RecordSharingState.encode(message.recordSharingStates[i], writer.uint32(/* id 28, wireType 2 =*/226).fork(), q + 1).ldelim(); + $root.record.v3.sharing.RecordSharingState.encode(message.recordSharingStates[i], writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); if (message.recordLinks != null && message.recordLinks.length) for (let i = 0; i < message.recordLinks.length; ++i) - $root.Vault.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 30, wireType 2 =*/242).fork(), q + 1).ldelim(); + $root.Vault.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); if (message.removedRecordLinks != null && message.removedRecordLinks.length) for (let i = 0; i < message.removedRecordLinks.length; ++i) - $root.Vault.RecordLink.encode(message.removedRecordLinks[i], writer.uint32(/* id 32, wireType 2 =*/258).fork(), q + 1).ldelim(); + $root.Vault.RecordLink.encode(message.removedRecordLinks[i], writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); if (message.breachWatchRecords != null && message.breachWatchRecords.length) for (let i = 0; i < message.breachWatchRecords.length; ++i) - $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 40, wireType 2 =*/322).fork(), q + 1).ldelim(); + $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); if (message.securityScoreData != null && message.securityScoreData.length) for (let i = 0; i < message.securityScoreData.length; ++i) - $root.Vault.SecurityScoreData.encode(message.securityScoreData[i], writer.uint32(/* id 41, wireType 2 =*/330).fork(), q + 1).ldelim(); + $root.Vault.SecurityScoreData.encode(message.securityScoreData[i], writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim(); if (message.breachWatchSecurityData != null && message.breachWatchSecurityData.length) for (let i = 0; i < message.breachWatchSecurityData.length; ++i) - $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 42, wireType 2 =*/338).fork(), q + 1).ldelim(); + $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); if (message.removedFolders != null && message.removedFolders.length) for (let i = 0; i < message.removedFolders.length; ++i) - $root.Folder.FolderRemoved.encode(message.removedFolders[i], writer.uint32(/* id 48, wireType 2 =*/386).fork(), q + 1).ldelim(); + $root.Folder.FolderRemoved.encode(message.removedFolders[i], writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim(); if (message.removedFolderRecords != null && message.removedFolderRecords.length) for (let i = 0; i < message.removedFolderRecords.length; ++i) - $root.Records.FolderRecordKey.encode(message.removedFolderRecords[i], writer.uint32(/* id 52, wireType 2 =*/418).fork(), q + 1).ldelim(); + $root.Records.FolderRecordKey.encode(message.removedFolderRecords[i], writer.uint32(/* id 52, wireType 2 =*/418).fork()).ldelim(); if (message.folderRecords != null && message.folderRecords.length) for (let i = 0; i < message.folderRecords.length; ++i) - $root.Folder.FolderRecord.encode(message.folderRecords[i], writer.uint32(/* id 54, wireType 2 =*/434).fork(), q + 1).ldelim(); + $root.Folder.FolderRecord.encode(message.folderRecords[i], writer.uint32(/* id 54, wireType 2 =*/434).fork()).ldelim(); if (message.recordRotationData != null && message.recordRotationData.length) for (let i = 0; i < message.recordRotationData.length; ++i) - $root.Vault.RecordRotation.encode(message.recordRotationData[i], writer.uint32(/* id 56, wireType 2 =*/450).fork(), q + 1).ldelim(); + $root.Vault.RecordRotation.encode(message.recordRotationData[i], writer.uint32(/* id 56, wireType 2 =*/450).fork()).ldelim(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Vault.DriveRecord.encode(message.records[i], writer.uint32(/* id 58, wireType 2 =*/466).fork(), q + 1).ldelim(); + $root.Vault.DriveRecord.encode(message.records[i], writer.uint32(/* id 58, wireType 2 =*/466).fork()).ldelim(); if (message.folderSharingState != null && message.folderSharingState.length) for (let i = 0; i < message.folderSharingState.length; ++i) - $root.Vault.FolderSharingState.encode(message.folderSharingState[i], writer.uint32(/* id 60, wireType 2 =*/482).fork(), q + 1).ldelim(); + $root.Vault.FolderSharingState.encode(message.folderSharingState[i], writer.uint32(/* id 60, wireType 2 =*/482).fork()).ldelim(); if (message.rawDagData != null && message.rawDagData.length) for (let i = 0; i < message.rawDagData.length; ++i) - $root.Dag.DebugData.encode(message.rawDagData[i], writer.uint32(/* id 101, wireType 2 =*/810).fork(), q + 1).ldelim(); + $root.Dag.DebugData.encode(message.rawDagData[i], writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); return writer; }; @@ -230827,147 +215345,141 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KeeperDriveData.decode = function decode(reader, length, error, long) { + KeeperDriveData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.KeeperDriveData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 10: { if (!(message.folders && message.folders.length)) message.folders = []; - message.folders.push($root.Folder.FolderData.decode(reader, reader.uint32(), undefined, long + 1)); + message.folders.push($root.Folder.FolderData.decode(reader, reader.uint32())); break; } case 13: { if (!(message.folderKeys && message.folderKeys.length)) message.folderKeys = []; - message.folderKeys.push($root.Folder.FolderKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderKeys.push($root.Folder.FolderKey.decode(reader, reader.uint32())); break; } case 15: { if (!(message.folderAccesses && message.folderAccesses.length)) message.folderAccesses = []; - message.folderAccesses.push($root.Folder.FolderAccessData.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderAccesses.push($root.Folder.FolderAccessData.decode(reader, reader.uint32())); break; } case 17: { if (!(message.revokedFolderAccesses && message.revokedFolderAccesses.length)) message.revokedFolderAccesses = []; - message.revokedFolderAccesses.push($root.Folder.RevokedAccess.decode(reader, reader.uint32(), undefined, long + 1)); + message.revokedFolderAccesses.push($root.Folder.RevokedAccess.decode(reader, reader.uint32())); break; } case 20: { if (!(message.recordData && message.recordData.length)) message.recordData = []; - message.recordData.push($root.Folder.RecordData.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordData.push($root.Folder.RecordData.decode(reader, reader.uint32())); break; } case 21: { if (!(message.nonSharedData && message.nonSharedData.length)) message.nonSharedData = []; - message.nonSharedData.push($root.Vault.NonSharedData.decode(reader, reader.uint32(), undefined, long + 1)); + message.nonSharedData.push($root.Vault.NonSharedData.decode(reader, reader.uint32())); break; } case 25: { if (!(message.recordAccesses && message.recordAccesses.length)) message.recordAccesses = []; - message.recordAccesses.push($root.Folder.RecordAccessData.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordAccesses.push($root.Folder.RecordAccessData.decode(reader, reader.uint32())); break; } case 27: { if (!(message.revokedRecordAccesses && message.revokedRecordAccesses.length)) message.revokedRecordAccesses = []; - message.revokedRecordAccesses.push($root.record.v3.sharing.RevokedAccess.decode(reader, reader.uint32(), undefined, long + 1)); + message.revokedRecordAccesses.push($root.record.v3.sharing.RevokedAccess.decode(reader, reader.uint32())); break; } case 28: { if (!(message.recordSharingStates && message.recordSharingStates.length)) message.recordSharingStates = []; - message.recordSharingStates.push($root.record.v3.sharing.RecordSharingState.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordSharingStates.push($root.record.v3.sharing.RecordSharingState.decode(reader, reader.uint32())); break; } case 30: { if (!(message.recordLinks && message.recordLinks.length)) message.recordLinks = []; - message.recordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); break; } case 32: { if (!(message.removedRecordLinks && message.removedRecordLinks.length)) message.removedRecordLinks = []; - message.removedRecordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedRecordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); break; } case 40: { if (!(message.breachWatchRecords && message.breachWatchRecords.length)) message.breachWatchRecords = []; - message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32())); break; } case 41: { if (!(message.securityScoreData && message.securityScoreData.length)) message.securityScoreData = []; - message.securityScoreData.push($root.Vault.SecurityScoreData.decode(reader, reader.uint32(), undefined, long + 1)); + message.securityScoreData.push($root.Vault.SecurityScoreData.decode(reader, reader.uint32())); break; } case 42: { if (!(message.breachWatchSecurityData && message.breachWatchSecurityData.length)) message.breachWatchSecurityData = []; - message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32(), undefined, long + 1)); + message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32())); break; } case 48: { if (!(message.removedFolders && message.removedFolders.length)) message.removedFolders = []; - message.removedFolders.push($root.Folder.FolderRemoved.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedFolders.push($root.Folder.FolderRemoved.decode(reader, reader.uint32())); break; } case 52: { if (!(message.removedFolderRecords && message.removedFolderRecords.length)) message.removedFolderRecords = []; - message.removedFolderRecords.push($root.Records.FolderRecordKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.removedFolderRecords.push($root.Records.FolderRecordKey.decode(reader, reader.uint32())); break; } case 54: { if (!(message.folderRecords && message.folderRecords.length)) message.folderRecords = []; - message.folderRecords.push($root.Folder.FolderRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderRecords.push($root.Folder.FolderRecord.decode(reader, reader.uint32())); break; } case 56: { if (!(message.recordRotationData && message.recordRotationData.length)) message.recordRotationData = []; - message.recordRotationData.push($root.Vault.RecordRotation.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordRotationData.push($root.Vault.RecordRotation.decode(reader, reader.uint32())); break; } case 58: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.Vault.DriveRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.Vault.DriveRecord.decode(reader, reader.uint32())); break; } case 60: { if (!(message.folderSharingState && message.folderSharingState.length)) message.folderSharingState = []; - message.folderSharingState.push($root.Vault.FolderSharingState.decode(reader, reader.uint32(), undefined, long + 1)); + message.folderSharingState.push($root.Vault.FolderSharingState.decode(reader, reader.uint32())); break; } case 101: { if (!(message.rawDagData && message.rawDagData.length)) message.rawDagData = []; - message.rawDagData.push($root.Dag.DebugData.decode(reader, reader.uint32(), undefined, long + 1)); + message.rawDagData.push($root.Dag.DebugData.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -230998,18 +215510,14 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KeeperDriveData.verify = function verify(message, long) { + KeeperDriveData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folders != null && message.hasOwnProperty("folders")) { if (!Array.isArray(message.folders)) return "folders: array expected"; for (let i = 0; i < message.folders.length; ++i) { - let error = $root.Folder.FolderData.verify(message.folders[i], long + 1); + let error = $root.Folder.FolderData.verify(message.folders[i]); if (error) return "folders." + error; } @@ -231018,7 +215526,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.folderKeys)) return "folderKeys: array expected"; for (let i = 0; i < message.folderKeys.length; ++i) { - let error = $root.Folder.FolderKey.verify(message.folderKeys[i], long + 1); + let error = $root.Folder.FolderKey.verify(message.folderKeys[i]); if (error) return "folderKeys." + error; } @@ -231027,7 +215535,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.folderAccesses)) return "folderAccesses: array expected"; for (let i = 0; i < message.folderAccesses.length; ++i) { - let error = $root.Folder.FolderAccessData.verify(message.folderAccesses[i], long + 1); + let error = $root.Folder.FolderAccessData.verify(message.folderAccesses[i]); if (error) return "folderAccesses." + error; } @@ -231036,7 +215544,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.revokedFolderAccesses)) return "revokedFolderAccesses: array expected"; for (let i = 0; i < message.revokedFolderAccesses.length; ++i) { - let error = $root.Folder.RevokedAccess.verify(message.revokedFolderAccesses[i], long + 1); + let error = $root.Folder.RevokedAccess.verify(message.revokedFolderAccesses[i]); if (error) return "revokedFolderAccesses." + error; } @@ -231045,7 +215553,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.recordData)) return "recordData: array expected"; for (let i = 0; i < message.recordData.length; ++i) { - let error = $root.Folder.RecordData.verify(message.recordData[i], long + 1); + let error = $root.Folder.RecordData.verify(message.recordData[i]); if (error) return "recordData." + error; } @@ -231054,7 +215562,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.nonSharedData)) return "nonSharedData: array expected"; for (let i = 0; i < message.nonSharedData.length; ++i) { - let error = $root.Vault.NonSharedData.verify(message.nonSharedData[i], long + 1); + let error = $root.Vault.NonSharedData.verify(message.nonSharedData[i]); if (error) return "nonSharedData." + error; } @@ -231063,7 +215571,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.recordAccesses)) return "recordAccesses: array expected"; for (let i = 0; i < message.recordAccesses.length; ++i) { - let error = $root.Folder.RecordAccessData.verify(message.recordAccesses[i], long + 1); + let error = $root.Folder.RecordAccessData.verify(message.recordAccesses[i]); if (error) return "recordAccesses." + error; } @@ -231072,7 +215580,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.revokedRecordAccesses)) return "revokedRecordAccesses: array expected"; for (let i = 0; i < message.revokedRecordAccesses.length; ++i) { - let error = $root.record.v3.sharing.RevokedAccess.verify(message.revokedRecordAccesses[i], long + 1); + let error = $root.record.v3.sharing.RevokedAccess.verify(message.revokedRecordAccesses[i]); if (error) return "revokedRecordAccesses." + error; } @@ -231081,7 +215589,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.recordSharingStates)) return "recordSharingStates: array expected"; for (let i = 0; i < message.recordSharingStates.length; ++i) { - let error = $root.record.v3.sharing.RecordSharingState.verify(message.recordSharingStates[i], long + 1); + let error = $root.record.v3.sharing.RecordSharingState.verify(message.recordSharingStates[i]); if (error) return "recordSharingStates." + error; } @@ -231090,7 +215598,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.recordLinks)) return "recordLinks: array expected"; for (let i = 0; i < message.recordLinks.length; ++i) { - let error = $root.Vault.RecordLink.verify(message.recordLinks[i], long + 1); + let error = $root.Vault.RecordLink.verify(message.recordLinks[i]); if (error) return "recordLinks." + error; } @@ -231099,7 +215607,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedRecordLinks)) return "removedRecordLinks: array expected"; for (let i = 0; i < message.removedRecordLinks.length; ++i) { - let error = $root.Vault.RecordLink.verify(message.removedRecordLinks[i], long + 1); + let error = $root.Vault.RecordLink.verify(message.removedRecordLinks[i]); if (error) return "removedRecordLinks." + error; } @@ -231108,7 +215616,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.breachWatchRecords)) return "breachWatchRecords: array expected"; for (let i = 0; i < message.breachWatchRecords.length; ++i) { - let error = $root.Vault.BreachWatchRecord.verify(message.breachWatchRecords[i], long + 1); + let error = $root.Vault.BreachWatchRecord.verify(message.breachWatchRecords[i]); if (error) return "breachWatchRecords." + error; } @@ -231117,7 +215625,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.securityScoreData)) return "securityScoreData: array expected"; for (let i = 0; i < message.securityScoreData.length; ++i) { - let error = $root.Vault.SecurityScoreData.verify(message.securityScoreData[i], long + 1); + let error = $root.Vault.SecurityScoreData.verify(message.securityScoreData[i]); if (error) return "securityScoreData." + error; } @@ -231126,7 +215634,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.breachWatchSecurityData)) return "breachWatchSecurityData: array expected"; for (let i = 0; i < message.breachWatchSecurityData.length; ++i) { - let error = $root.Vault.BreachWatchSecurityData.verify(message.breachWatchSecurityData[i], long + 1); + let error = $root.Vault.BreachWatchSecurityData.verify(message.breachWatchSecurityData[i]); if (error) return "breachWatchSecurityData." + error; } @@ -231135,7 +215643,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedFolders)) return "removedFolders: array expected"; for (let i = 0; i < message.removedFolders.length; ++i) { - let error = $root.Folder.FolderRemoved.verify(message.removedFolders[i], long + 1); + let error = $root.Folder.FolderRemoved.verify(message.removedFolders[i]); if (error) return "removedFolders." + error; } @@ -231144,7 +215652,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.removedFolderRecords)) return "removedFolderRecords: array expected"; for (let i = 0; i < message.removedFolderRecords.length; ++i) { - let error = $root.Records.FolderRecordKey.verify(message.removedFolderRecords[i], long + 1); + let error = $root.Records.FolderRecordKey.verify(message.removedFolderRecords[i]); if (error) return "removedFolderRecords." + error; } @@ -231153,7 +215661,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.folderRecords)) return "folderRecords: array expected"; for (let i = 0; i < message.folderRecords.length; ++i) { - let error = $root.Folder.FolderRecord.verify(message.folderRecords[i], long + 1); + let error = $root.Folder.FolderRecord.verify(message.folderRecords[i]); if (error) return "folderRecords." + error; } @@ -231162,7 +215670,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.recordRotationData)) return "recordRotationData: array expected"; for (let i = 0; i < message.recordRotationData.length; ++i) { - let error = $root.Vault.RecordRotation.verify(message.recordRotationData[i], long + 1); + let error = $root.Vault.RecordRotation.verify(message.recordRotationData[i]); if (error) return "recordRotationData." + error; } @@ -231171,7 +215679,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.Vault.DriveRecord.verify(message.records[i], long + 1); + let error = $root.Vault.DriveRecord.verify(message.records[i]); if (error) return "records." + error; } @@ -231180,7 +215688,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.folderSharingState)) return "folderSharingState: array expected"; for (let i = 0; i < message.folderSharingState.length; ++i) { - let error = $root.Vault.FolderSharingState.verify(message.folderSharingState[i], long + 1); + let error = $root.Vault.FolderSharingState.verify(message.folderSharingState[i]); if (error) return "folderSharingState." + error; } @@ -231189,7 +215697,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.rawDagData)) return "rawDagData: array expected"; for (let i = 0; i < message.rawDagData.length; ++i) { - let error = $root.Dag.DebugData.verify(message.rawDagData[i], long + 1); + let error = $root.Dag.DebugData.verify(message.rawDagData[i]); if (error) return "rawDagData." + error; } @@ -231205,13 +215713,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.KeeperDriveData} KeeperDriveData */ - KeeperDriveData.fromObject = function fromObject(object, long) { + KeeperDriveData.fromObject = function fromObject(object) { if (object instanceof $root.Vault.KeeperDriveData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.KeeperDriveData(); if (object.folders) { if (!Array.isArray(object.folders)) @@ -231220,7 +215724,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.folders.length; ++i) { if (typeof object.folders[i] !== "object") throw TypeError(".Vault.KeeperDriveData.folders: object expected"); - message.folders[i] = $root.Folder.FolderData.fromObject(object.folders[i], long + 1); + message.folders[i] = $root.Folder.FolderData.fromObject(object.folders[i]); } } if (object.folderKeys) { @@ -231230,7 +215734,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.folderKeys.length; ++i) { if (typeof object.folderKeys[i] !== "object") throw TypeError(".Vault.KeeperDriveData.folderKeys: object expected"); - message.folderKeys[i] = $root.Folder.FolderKey.fromObject(object.folderKeys[i], long + 1); + message.folderKeys[i] = $root.Folder.FolderKey.fromObject(object.folderKeys[i]); } } if (object.folderAccesses) { @@ -231240,7 +215744,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.folderAccesses.length; ++i) { if (typeof object.folderAccesses[i] !== "object") throw TypeError(".Vault.KeeperDriveData.folderAccesses: object expected"); - message.folderAccesses[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccesses[i], long + 1); + message.folderAccesses[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccesses[i]); } } if (object.revokedFolderAccesses) { @@ -231250,7 +215754,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.revokedFolderAccesses.length; ++i) { if (typeof object.revokedFolderAccesses[i] !== "object") throw TypeError(".Vault.KeeperDriveData.revokedFolderAccesses: object expected"); - message.revokedFolderAccesses[i] = $root.Folder.RevokedAccess.fromObject(object.revokedFolderAccesses[i], long + 1); + message.revokedFolderAccesses[i] = $root.Folder.RevokedAccess.fromObject(object.revokedFolderAccesses[i]); } } if (object.recordData) { @@ -231260,7 +215764,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.recordData.length; ++i) { if (typeof object.recordData[i] !== "object") throw TypeError(".Vault.KeeperDriveData.recordData: object expected"); - message.recordData[i] = $root.Folder.RecordData.fromObject(object.recordData[i], long + 1); + message.recordData[i] = $root.Folder.RecordData.fromObject(object.recordData[i]); } } if (object.nonSharedData) { @@ -231270,7 +215774,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.nonSharedData.length; ++i) { if (typeof object.nonSharedData[i] !== "object") throw TypeError(".Vault.KeeperDriveData.nonSharedData: object expected"); - message.nonSharedData[i] = $root.Vault.NonSharedData.fromObject(object.nonSharedData[i], long + 1); + message.nonSharedData[i] = $root.Vault.NonSharedData.fromObject(object.nonSharedData[i]); } } if (object.recordAccesses) { @@ -231280,7 +215784,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.recordAccesses.length; ++i) { if (typeof object.recordAccesses[i] !== "object") throw TypeError(".Vault.KeeperDriveData.recordAccesses: object expected"); - message.recordAccesses[i] = $root.Folder.RecordAccessData.fromObject(object.recordAccesses[i], long + 1); + message.recordAccesses[i] = $root.Folder.RecordAccessData.fromObject(object.recordAccesses[i]); } } if (object.revokedRecordAccesses) { @@ -231290,7 +215794,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.revokedRecordAccesses.length; ++i) { if (typeof object.revokedRecordAccesses[i] !== "object") throw TypeError(".Vault.KeeperDriveData.revokedRecordAccesses: object expected"); - message.revokedRecordAccesses[i] = $root.record.v3.sharing.RevokedAccess.fromObject(object.revokedRecordAccesses[i], long + 1); + message.revokedRecordAccesses[i] = $root.record.v3.sharing.RevokedAccess.fromObject(object.revokedRecordAccesses[i]); } } if (object.recordSharingStates) { @@ -231300,7 +215804,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.recordSharingStates.length; ++i) { if (typeof object.recordSharingStates[i] !== "object") throw TypeError(".Vault.KeeperDriveData.recordSharingStates: object expected"); - message.recordSharingStates[i] = $root.record.v3.sharing.RecordSharingState.fromObject(object.recordSharingStates[i], long + 1); + message.recordSharingStates[i] = $root.record.v3.sharing.RecordSharingState.fromObject(object.recordSharingStates[i]); } } if (object.recordLinks) { @@ -231310,7 +215814,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.recordLinks.length; ++i) { if (typeof object.recordLinks[i] !== "object") throw TypeError(".Vault.KeeperDriveData.recordLinks: object expected"); - message.recordLinks[i] = $root.Vault.RecordLink.fromObject(object.recordLinks[i], long + 1); + message.recordLinks[i] = $root.Vault.RecordLink.fromObject(object.recordLinks[i]); } } if (object.removedRecordLinks) { @@ -231320,7 +215824,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedRecordLinks.length; ++i) { if (typeof object.removedRecordLinks[i] !== "object") throw TypeError(".Vault.KeeperDriveData.removedRecordLinks: object expected"); - message.removedRecordLinks[i] = $root.Vault.RecordLink.fromObject(object.removedRecordLinks[i], long + 1); + message.removedRecordLinks[i] = $root.Vault.RecordLink.fromObject(object.removedRecordLinks[i]); } } if (object.breachWatchRecords) { @@ -231330,7 +215834,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.breachWatchRecords.length; ++i) { if (typeof object.breachWatchRecords[i] !== "object") throw TypeError(".Vault.KeeperDriveData.breachWatchRecords: object expected"); - message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i], long + 1); + message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i]); } } if (object.securityScoreData) { @@ -231340,7 +215844,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.securityScoreData.length; ++i) { if (typeof object.securityScoreData[i] !== "object") throw TypeError(".Vault.KeeperDriveData.securityScoreData: object expected"); - message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject(object.securityScoreData[i], long + 1); + message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject(object.securityScoreData[i]); } } if (object.breachWatchSecurityData) { @@ -231350,7 +215854,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { if (typeof object.breachWatchSecurityData[i] !== "object") throw TypeError(".Vault.KeeperDriveData.breachWatchSecurityData: object expected"); - message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i], long + 1); + message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i]); } } if (object.removedFolders) { @@ -231360,7 +215864,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedFolders.length; ++i) { if (typeof object.removedFolders[i] !== "object") throw TypeError(".Vault.KeeperDriveData.removedFolders: object expected"); - message.removedFolders[i] = $root.Folder.FolderRemoved.fromObject(object.removedFolders[i], long + 1); + message.removedFolders[i] = $root.Folder.FolderRemoved.fromObject(object.removedFolders[i]); } } if (object.removedFolderRecords) { @@ -231370,7 +215874,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.removedFolderRecords.length; ++i) { if (typeof object.removedFolderRecords[i] !== "object") throw TypeError(".Vault.KeeperDriveData.removedFolderRecords: object expected"); - message.removedFolderRecords[i] = $root.Records.FolderRecordKey.fromObject(object.removedFolderRecords[i], long + 1); + message.removedFolderRecords[i] = $root.Records.FolderRecordKey.fromObject(object.removedFolderRecords[i]); } } if (object.folderRecords) { @@ -231380,7 +215884,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.folderRecords.length; ++i) { if (typeof object.folderRecords[i] !== "object") throw TypeError(".Vault.KeeperDriveData.folderRecords: object expected"); - message.folderRecords[i] = $root.Folder.FolderRecord.fromObject(object.folderRecords[i], long + 1); + message.folderRecords[i] = $root.Folder.FolderRecord.fromObject(object.folderRecords[i]); } } if (object.recordRotationData) { @@ -231390,7 +215894,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.recordRotationData.length; ++i) { if (typeof object.recordRotationData[i] !== "object") throw TypeError(".Vault.KeeperDriveData.recordRotationData: object expected"); - message.recordRotationData[i] = $root.Vault.RecordRotation.fromObject(object.recordRotationData[i], long + 1); + message.recordRotationData[i] = $root.Vault.RecordRotation.fromObject(object.recordRotationData[i]); } } if (object.records) { @@ -231400,7 +215904,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".Vault.KeeperDriveData.records: object expected"); - message.records[i] = $root.Vault.DriveRecord.fromObject(object.records[i], long + 1); + message.records[i] = $root.Vault.DriveRecord.fromObject(object.records[i]); } } if (object.folderSharingState) { @@ -231410,7 +215914,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.folderSharingState.length; ++i) { if (typeof object.folderSharingState[i] !== "object") throw TypeError(".Vault.KeeperDriveData.folderSharingState: object expected"); - message.folderSharingState[i] = $root.Vault.FolderSharingState.fromObject(object.folderSharingState[i], long + 1); + message.folderSharingState[i] = $root.Vault.FolderSharingState.fromObject(object.folderSharingState[i]); } } if (object.rawDagData) { @@ -231420,7 +215924,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.rawDagData.length; ++i) { if (typeof object.rawDagData[i] !== "object") throw TypeError(".Vault.KeeperDriveData.rawDagData: object expected"); - message.rawDagData[i] = $root.Dag.DebugData.fromObject(object.rawDagData[i], long + 1); + message.rawDagData[i] = $root.Dag.DebugData.fromObject(object.rawDagData[i]); } } return message; @@ -231435,13 +215939,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KeeperDriveData.toObject = function toObject(message, options, q) { + KeeperDriveData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.folders = []; @@ -231469,107 +215969,107 @@ export const Vault = $root.Vault = (() => { if (message.folders && message.folders.length) { object.folders = []; for (let j = 0; j < message.folders.length; ++j) - object.folders[j] = $root.Folder.FolderData.toObject(message.folders[j], options, q + 1); + object.folders[j] = $root.Folder.FolderData.toObject(message.folders[j], options); } if (message.folderKeys && message.folderKeys.length) { object.folderKeys = []; for (let j = 0; j < message.folderKeys.length; ++j) - object.folderKeys[j] = $root.Folder.FolderKey.toObject(message.folderKeys[j], options, q + 1); + object.folderKeys[j] = $root.Folder.FolderKey.toObject(message.folderKeys[j], options); } if (message.folderAccesses && message.folderAccesses.length) { object.folderAccesses = []; for (let j = 0; j < message.folderAccesses.length; ++j) - object.folderAccesses[j] = $root.Folder.FolderAccessData.toObject(message.folderAccesses[j], options, q + 1); + object.folderAccesses[j] = $root.Folder.FolderAccessData.toObject(message.folderAccesses[j], options); } if (message.revokedFolderAccesses && message.revokedFolderAccesses.length) { object.revokedFolderAccesses = []; for (let j = 0; j < message.revokedFolderAccesses.length; ++j) - object.revokedFolderAccesses[j] = $root.Folder.RevokedAccess.toObject(message.revokedFolderAccesses[j], options, q + 1); + object.revokedFolderAccesses[j] = $root.Folder.RevokedAccess.toObject(message.revokedFolderAccesses[j], options); } if (message.recordData && message.recordData.length) { object.recordData = []; for (let j = 0; j < message.recordData.length; ++j) - object.recordData[j] = $root.Folder.RecordData.toObject(message.recordData[j], options, q + 1); + object.recordData[j] = $root.Folder.RecordData.toObject(message.recordData[j], options); } if (message.nonSharedData && message.nonSharedData.length) { object.nonSharedData = []; for (let j = 0; j < message.nonSharedData.length; ++j) - object.nonSharedData[j] = $root.Vault.NonSharedData.toObject(message.nonSharedData[j], options, q + 1); + object.nonSharedData[j] = $root.Vault.NonSharedData.toObject(message.nonSharedData[j], options); } if (message.recordAccesses && message.recordAccesses.length) { object.recordAccesses = []; for (let j = 0; j < message.recordAccesses.length; ++j) - object.recordAccesses[j] = $root.Folder.RecordAccessData.toObject(message.recordAccesses[j], options, q + 1); + object.recordAccesses[j] = $root.Folder.RecordAccessData.toObject(message.recordAccesses[j], options); } if (message.revokedRecordAccesses && message.revokedRecordAccesses.length) { object.revokedRecordAccesses = []; for (let j = 0; j < message.revokedRecordAccesses.length; ++j) - object.revokedRecordAccesses[j] = $root.record.v3.sharing.RevokedAccess.toObject(message.revokedRecordAccesses[j], options, q + 1); + object.revokedRecordAccesses[j] = $root.record.v3.sharing.RevokedAccess.toObject(message.revokedRecordAccesses[j], options); } if (message.recordSharingStates && message.recordSharingStates.length) { object.recordSharingStates = []; for (let j = 0; j < message.recordSharingStates.length; ++j) - object.recordSharingStates[j] = $root.record.v3.sharing.RecordSharingState.toObject(message.recordSharingStates[j], options, q + 1); + object.recordSharingStates[j] = $root.record.v3.sharing.RecordSharingState.toObject(message.recordSharingStates[j], options); } if (message.recordLinks && message.recordLinks.length) { object.recordLinks = []; for (let j = 0; j < message.recordLinks.length; ++j) - object.recordLinks[j] = $root.Vault.RecordLink.toObject(message.recordLinks[j], options, q + 1); + object.recordLinks[j] = $root.Vault.RecordLink.toObject(message.recordLinks[j], options); } if (message.removedRecordLinks && message.removedRecordLinks.length) { object.removedRecordLinks = []; for (let j = 0; j < message.removedRecordLinks.length; ++j) - object.removedRecordLinks[j] = $root.Vault.RecordLink.toObject(message.removedRecordLinks[j], options, q + 1); + object.removedRecordLinks[j] = $root.Vault.RecordLink.toObject(message.removedRecordLinks[j], options); } if (message.breachWatchRecords && message.breachWatchRecords.length) { object.breachWatchRecords = []; for (let j = 0; j < message.breachWatchRecords.length; ++j) - object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options, q + 1); + object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options); } if (message.securityScoreData && message.securityScoreData.length) { object.securityScoreData = []; for (let j = 0; j < message.securityScoreData.length; ++j) - object.securityScoreData[j] = $root.Vault.SecurityScoreData.toObject(message.securityScoreData[j], options, q + 1); + object.securityScoreData[j] = $root.Vault.SecurityScoreData.toObject(message.securityScoreData[j], options); } if (message.breachWatchSecurityData && message.breachWatchSecurityData.length) { object.breachWatchSecurityData = []; for (let j = 0; j < message.breachWatchSecurityData.length; ++j) - object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options, q + 1); + object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options); } if (message.removedFolders && message.removedFolders.length) { object.removedFolders = []; for (let j = 0; j < message.removedFolders.length; ++j) - object.removedFolders[j] = $root.Folder.FolderRemoved.toObject(message.removedFolders[j], options, q + 1); + object.removedFolders[j] = $root.Folder.FolderRemoved.toObject(message.removedFolders[j], options); } if (message.removedFolderRecords && message.removedFolderRecords.length) { object.removedFolderRecords = []; for (let j = 0; j < message.removedFolderRecords.length; ++j) - object.removedFolderRecords[j] = $root.Records.FolderRecordKey.toObject(message.removedFolderRecords[j], options, q + 1); + object.removedFolderRecords[j] = $root.Records.FolderRecordKey.toObject(message.removedFolderRecords[j], options); } if (message.folderRecords && message.folderRecords.length) { object.folderRecords = []; for (let j = 0; j < message.folderRecords.length; ++j) - object.folderRecords[j] = $root.Folder.FolderRecord.toObject(message.folderRecords[j], options, q + 1); + object.folderRecords[j] = $root.Folder.FolderRecord.toObject(message.folderRecords[j], options); } if (message.recordRotationData && message.recordRotationData.length) { object.recordRotationData = []; for (let j = 0; j < message.recordRotationData.length; ++j) - object.recordRotationData[j] = $root.Vault.RecordRotation.toObject(message.recordRotationData[j], options, q + 1); + object.recordRotationData[j] = $root.Vault.RecordRotation.toObject(message.recordRotationData[j], options); } if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.Vault.DriveRecord.toObject(message.records[j], options, q + 1); + object.records[j] = $root.Vault.DriveRecord.toObject(message.records[j], options); } if (message.folderSharingState && message.folderSharingState.length) { object.folderSharingState = []; for (let j = 0; j < message.folderSharingState.length; ++j) - object.folderSharingState[j] = $root.Vault.FolderSharingState.toObject(message.folderSharingState[j], options, q + 1); + object.folderSharingState[j] = $root.Vault.FolderSharingState.toObject(message.folderSharingState[j], options); } if (message.rawDagData && message.rawDagData.length) { object.rawDagData = []; for (let j = 0; j < message.rawDagData.length; ++j) - object.rawDagData[j] = $root.Dag.DebugData.toObject(message.rawDagData[j], options, q + 1); + object.rawDagData[j] = $root.Dag.DebugData.toObject(message.rawDagData[j], options); } return object; }; @@ -231628,7 +216128,7 @@ export const Vault = $root.Vault = (() => { function UserFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -231701,13 +216201,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserFolder.encode = function encode(message, writer, q) { + UserFolder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) @@ -231747,18 +216243,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserFolder.decode = function decode(reader, length, error, long) { + UserFolder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolder(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -231785,7 +216275,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -231816,13 +216306,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserFolder.verify = function verify(message, long) { + UserFolder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -231862,13 +216348,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.UserFolder} UserFolder */ - UserFolder.fromObject = function fromObject(object, long) { + UserFolder.fromObject = function fromObject(object) { if (object instanceof $root.Vault.UserFolder) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.UserFolder(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -231923,7 +216405,7 @@ export const Vault = $root.Vault = (() => { } if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -231947,13 +216429,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserFolder.toObject = function toObject(message, options, q) { + UserFolder.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -231980,9 +216458,9 @@ export const Vault = $root.Vault = (() => { object.keyType = options.enums === String ? "NO_KEY" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) object.data = ""; else { @@ -232000,9 +216478,7 @@ export const Vault = $root.Vault = (() => { if (message.keyType != null && message.hasOwnProperty("keyType")) object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -232072,7 +216548,7 @@ export const Vault = $root.Vault = (() => { function SharedFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -232201,13 +216677,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolder.encode = function encode(message, writer, q) { + SharedFolder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -232261,18 +216733,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolder.decode = function decode(reader, length, error, long) { + SharedFolder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolder(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -232327,7 +216793,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -232358,13 +216824,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolder.verify = function verify(message, long) { + SharedFolder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -232430,13 +216892,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SharedFolder} SharedFolder */ - SharedFolder.fromObject = function fromObject(object, long) { + SharedFolder.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SharedFolder) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SharedFolder(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -232445,7 +216903,7 @@ export const Vault = $root.Vault = (() => { message.sharedFolderUid = object.sharedFolderUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -232546,13 +217004,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolder.toObject = function toObject(message, options, q) { + SharedFolder.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -232564,9 +217018,9 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) object.sharedFolderKey = ""; else { @@ -232606,9 +217060,7 @@ export const Vault = $root.Vault = (() => { if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -232688,7 +217140,7 @@ export const Vault = $root.Vault = (() => { function UserFolderSharedFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -232737,13 +217189,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserFolderSharedFolder.encode = function encode(message, writer, q) { + UserFolderSharedFolder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) @@ -232777,18 +217225,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserFolderSharedFolder.decode = function decode(reader, length, error, long) { + UserFolderSharedFolder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolderSharedFolder(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -232803,7 +217245,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -232834,13 +217276,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserFolderSharedFolder.verify = function verify(message, long) { + UserFolderSharedFolder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -232861,13 +217299,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.UserFolderSharedFolder} UserFolderSharedFolder */ - UserFolderSharedFolder.fromObject = function fromObject(object, long) { + UserFolderSharedFolder.fromObject = function fromObject(object) { if (object instanceof $root.Vault.UserFolderSharedFolder) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.UserFolderSharedFolder(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -232881,7 +217315,7 @@ export const Vault = $root.Vault = (() => { message.sharedFolderUid = object.sharedFolderUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -232900,13 +217334,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserFolderSharedFolder.toObject = function toObject(message, options, q) { + UserFolderSharedFolder.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -232925,18 +217355,16 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.folderUid != null && message.hasOwnProperty("folderUid")) object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -232998,7 +217426,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -233079,13 +217507,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderFolder.encode = function encode(message, writer, q) { + SharedFolderFolder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) @@ -233127,18 +217551,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderFolder.decode = function decode(reader, length, error, long) { + SharedFolderFolder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderFolder(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -233169,7 +217587,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -233200,13 +217618,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderFolder.verify = function verify(message, long) { + SharedFolderFolder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -233249,13 +217663,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SharedFolderFolder} SharedFolderFolder */ - SharedFolderFolder.fromObject = function fromObject(object, long) { + SharedFolderFolder.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SharedFolderFolder) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SharedFolderFolder(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -233315,7 +217725,7 @@ export const Vault = $root.Vault = (() => { } if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -233339,13 +217749,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderFolder.toObject = function toObject(message, options, q) { + SharedFolderFolder.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -233379,9 +217785,9 @@ export const Vault = $root.Vault = (() => { object.keyType = options.enums === String ? "NO_KEY" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) object.data = ""; else { @@ -233401,9 +217807,7 @@ export const Vault = $root.Vault = (() => { if (message.keyType != null && message.hasOwnProperty("keyType")) object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -233463,7 +217867,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -233512,13 +217916,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderKey.encode = function encode(message, writer, q) { + SharedFolderKey.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderKey")) @@ -233552,18 +217952,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderKey.decode = function decode(reader, length, error, long) { + SharedFolderKey.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderKey(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -233578,7 +217972,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -233609,13 +218003,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderKey.verify = function verify(message, long) { + SharedFolderKey.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -233646,13 +218036,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SharedFolderKey} SharedFolderKey */ - SharedFolderKey.fromObject = function fromObject(object, long) { + SharedFolderKey.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SharedFolderKey) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SharedFolderKey(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -233712,13 +218098,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderKey.toObject = function toObject(message, options, q) { + SharedFolderKey.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -233808,7 +218190,7 @@ export const Vault = $root.Vault = (() => { this.sharedFolderKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -233929,13 +218311,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Team.encode = function encode(message, writer, q) { + Team.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -233957,7 +218335,7 @@ export const Vault = $root.Vault = (() => { writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.removedSharedFolders[i]); if (message.sharedFolderKeys != null && message.sharedFolderKeys.length) for (let i = 0; i < message.sharedFolderKeys.length; ++i) - $root.Vault.SharedFolderKey.encode(message.sharedFolderKeys[i], writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.Vault.SharedFolderKey.encode(message.sharedFolderKeys[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.teamEccPrivateKey != null && Object.hasOwnProperty.call(message, "teamEccPrivateKey")) writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.teamEccPrivateKey); if (message.teamEccPublicKey != null && Object.hasOwnProperty.call(message, "teamEccPublicKey")) @@ -233989,18 +218367,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Team.decode = function decode(reader, length, error, long) { + Team.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Team(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.teamUid = reader.bytes(); @@ -234043,7 +218415,7 @@ export const Vault = $root.Vault = (() => { case 10: { if (!(message.sharedFolderKeys && message.sharedFolderKeys.length)) message.sharedFolderKeys = []; - message.sharedFolderKeys.push($root.Vault.SharedFolderKey.decode(reader, reader.uint32(), undefined, long + 1)); + message.sharedFolderKeys.push($root.Vault.SharedFolderKey.decode(reader, reader.uint32())); break; } case 11: { @@ -234055,7 +218427,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -234086,13 +218458,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Team.verify = function verify(message, long) { + Team.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.teamUid != null && message.hasOwnProperty("teamUid")) if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) return "teamUid: buffer expected"; @@ -234138,7 +218506,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.sharedFolderKeys)) return "sharedFolderKeys: array expected"; for (let i = 0; i < message.sharedFolderKeys.length; ++i) { - let error = $root.Vault.SharedFolderKey.verify(message.sharedFolderKeys[i], long + 1); + let error = $root.Vault.SharedFolderKey.verify(message.sharedFolderKeys[i]); if (error) return "sharedFolderKeys." + error; } @@ -234160,13 +218528,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.Team} Team */ - Team.fromObject = function fromObject(object, long) { + Team.fromObject = function fromObject(object) { if (object instanceof $root.Vault.Team) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.Team(); if (object.teamUid != null) if (typeof object.teamUid === "string") @@ -234244,7 +218608,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.sharedFolderKeys.length; ++i) { if (typeof object.sharedFolderKeys[i] !== "object") throw TypeError(".Vault.Team.sharedFolderKeys: object expected"); - message.sharedFolderKeys[i] = $root.Vault.SharedFolderKey.fromObject(object.sharedFolderKeys[i], long + 1); + message.sharedFolderKeys[i] = $root.Vault.SharedFolderKey.fromObject(object.sharedFolderKeys[i]); } } if (object.teamEccPrivateKey != null) @@ -234269,13 +218633,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Team.toObject = function toObject(message, options, q) { + Team.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.removedSharedFolders = []; @@ -234347,7 +218707,7 @@ export const Vault = $root.Vault = (() => { if (message.sharedFolderKeys && message.sharedFolderKeys.length) { object.sharedFolderKeys = []; for (let j = 0; j < message.sharedFolderKeys.length; ++j) - object.sharedFolderKeys[j] = $root.Vault.SharedFolderKey.toObject(message.sharedFolderKeys[j], options, q + 1); + object.sharedFolderKeys[j] = $root.Vault.SharedFolderKey.toObject(message.sharedFolderKeys[j], options); } if (message.teamEccPrivateKey != null && message.hasOwnProperty("teamEccPrivateKey")) object.teamEccPrivateKey = options.bytes === String ? $util.base64.encode(message.teamEccPrivateKey, 0, message.teamEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamEccPrivateKey) : message.teamEccPrivateKey; @@ -234414,7 +218774,7 @@ export const Vault = $root.Vault = (() => { function Record(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -234519,13 +218879,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Record.encode = function encode(message, writer, q) { + Record.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -234573,18 +218929,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Record.decode = function decode(reader, length, error, long) { + Record.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Record(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -234627,7 +218977,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -234658,13 +219008,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Record.verify = function verify(message, long) { + Record.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -234706,13 +219052,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.Record} Record */ - Record.fromObject = function fromObject(object, long) { + Record.fromObject = function fromObject(object) { if (object instanceof $root.Vault.Record) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.Record(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -234721,7 +219063,7 @@ export const Vault = $root.Vault = (() => { message.recordUid = object.recordUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -234734,7 +219076,7 @@ export const Vault = $root.Vault = (() => { message.shared = Boolean(object.shared); if (object.clientModifiedTime != null) if ($util.Long) - message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime, false); + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; else if (typeof object.clientModifiedTime === "string") message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); else if (typeof object.clientModifiedTime === "number") @@ -234755,7 +219097,7 @@ export const Vault = $root.Vault = (() => { message.udata = String(object.udata); if (object.fileSize != null) if ($util.Long) - message.fileSize = $util.Long.fromValue(object.fileSize, false); + (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; else if (typeof object.fileSize === "string") message.fileSize = parseInt(object.fileSize, 10); else if (typeof object.fileSize === "number") @@ -234764,7 +219106,7 @@ export const Vault = $root.Vault = (() => { message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); if (object.thumbnailSize != null) if ($util.Long) - message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize, false); + (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; else if (typeof object.thumbnailSize === "string") message.thumbnailSize = parseInt(object.thumbnailSize, 10); else if (typeof object.thumbnailSize === "number") @@ -234783,13 +219125,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Record.toObject = function toObject(message, options, q) { + Record.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -234801,16 +219139,16 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; object.version = 0; object.shared = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.clientModifiedTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.clientModifiedTime = options.longs === String ? "0" : 0; if (options.bytes === String) object.data = ""; else { @@ -234828,21 +219166,19 @@ export const Vault = $root.Vault = (() => { object.udata = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.fileSize = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.fileSize = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.thumbnailSize = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.thumbnailSize = options.longs === String ? "0" : 0; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -234851,9 +219187,7 @@ export const Vault = $root.Vault = (() => { if (message.shared != null && message.hasOwnProperty("shared")) object.shared = message.shared; if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.clientModifiedTime = typeof message.clientModifiedTime === "number" ? BigInt(message.clientModifiedTime) : $util.Long.fromBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0, false).toBigInt(); - else if (typeof message.clientModifiedTime === "number") + if (typeof message.clientModifiedTime === "number") object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; @@ -234864,16 +219198,12 @@ export const Vault = $root.Vault = (() => { if (message.udata != null && message.hasOwnProperty("udata")) object.udata = message.udata; if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.fileSize = typeof message.fileSize === "number" ? BigInt(message.fileSize) : $util.Long.fromBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0, false).toBigInt(); - else if (typeof message.fileSize === "number") + if (typeof message.fileSize === "number") object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; else object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.thumbnailSize = typeof message.thumbnailSize === "number" ? BigInt(message.thumbnailSize) : $util.Long.fromBits(message.thumbnailSize.low >>> 0, message.thumbnailSize.high >>> 0, false).toBigInt(); - else if (typeof message.thumbnailSize === "number") + if (typeof message.thumbnailSize === "number") object.thumbnailSize = options.longs === String ? String(message.thumbnailSize) : message.thumbnailSize; else object.thumbnailSize = options.longs === String ? $util.Long.prototype.toString.call(message.thumbnailSize) : options.longs === Number ? new $util.LongBits(message.thumbnailSize.low >>> 0, message.thumbnailSize.high >>> 0).toNumber() : message.thumbnailSize; @@ -234932,7 +219262,7 @@ export const Vault = $root.Vault = (() => { function RecordLink(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -234989,13 +219319,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordLink.encode = function encode(message, writer, q) { + RecordLink.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.parentRecordUid != null && Object.hasOwnProperty.call(message, "parentRecordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.parentRecordUid); if (message.childRecordUid != null && Object.hasOwnProperty.call(message, "childRecordUid")) @@ -235031,18 +219357,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordLink.decode = function decode(reader, length, error, long) { + RecordLink.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordLink(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.parentRecordUid = reader.bytes(); @@ -235061,7 +219381,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -235092,13 +219412,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordLink.verify = function verify(message, long) { + RecordLink.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) if (!(message.parentRecordUid && typeof message.parentRecordUid.length === "number" || $util.isString(message.parentRecordUid))) return "parentRecordUid: buffer expected"; @@ -235122,13 +219438,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.RecordLink} RecordLink */ - RecordLink.fromObject = function fromObject(object, long) { + RecordLink.fromObject = function fromObject(object) { if (object instanceof $root.Vault.RecordLink) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.RecordLink(); if (object.parentRecordUid != null) if (typeof object.parentRecordUid === "string") @@ -235147,7 +219459,7 @@ export const Vault = $root.Vault = (() => { message.recordKey = object.recordKey; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -235166,13 +219478,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordLink.toObject = function toObject(message, options, q) { + RecordLink.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -235198,9 +219506,9 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) object.parentRecordUid = options.bytes === String ? $util.base64.encode(message.parentRecordUid, 0, message.parentRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentRecordUid) : message.parentRecordUid; @@ -235209,9 +219517,7 @@ export const Vault = $root.Vault = (() => { if (message.recordKey != null && message.hasOwnProperty("recordKey")) object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -235269,7 +219575,7 @@ export const Vault = $root.Vault = (() => { function UserFolderRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -235318,13 +219624,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserFolderRecord.encode = function encode(message, writer, q) { + UserFolderRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -235358,18 +219660,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserFolderRecord.decode = function decode(reader, length, error, long) { + UserFolderRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.folderUid = reader.bytes(); @@ -235384,7 +219680,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -235415,13 +219711,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserFolderRecord.verify = function verify(message, long) { + UserFolderRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.folderUid != null && message.hasOwnProperty("folderUid")) if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) return "folderUid: buffer expected"; @@ -235442,13 +219734,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.UserFolderRecord} UserFolderRecord */ - UserFolderRecord.fromObject = function fromObject(object, long) { + UserFolderRecord.fromObject = function fromObject(object) { if (object instanceof $root.Vault.UserFolderRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.UserFolderRecord(); if (object.folderUid != null) if (typeof object.folderUid === "string") @@ -235462,7 +219750,7 @@ export const Vault = $root.Vault = (() => { message.recordUid = object.recordUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -235481,13 +219769,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserFolderRecord.toObject = function toObject(message, options, q) { + UserFolderRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -235506,18 +219790,16 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.folderUid != null && message.hasOwnProperty("folderUid")) object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -235576,7 +219858,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderFolderRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -235633,13 +219915,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderFolderRecord.encode = function encode(message, writer, q) { + SharedFolderFolderRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) @@ -235675,18 +219953,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderFolderRecord.decode = function decode(reader, length, error, long) { + SharedFolderFolderRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderFolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -235705,7 +219977,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -235736,13 +220008,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderFolderRecord.verify = function verify(message, long) { + SharedFolderFolderRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -235766,13 +220034,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SharedFolderFolderRecord} SharedFolderFolderRecord */ - SharedFolderFolderRecord.fromObject = function fromObject(object, long) { + SharedFolderFolderRecord.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SharedFolderFolderRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SharedFolderFolderRecord(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -235791,7 +220055,7 @@ export const Vault = $root.Vault = (() => { message.recordUid = object.recordUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -235810,13 +220074,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderFolderRecord.toObject = function toObject(message, options, q) { + SharedFolderFolderRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -235842,9 +220102,9 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; @@ -235853,9 +220113,7 @@ export const Vault = $root.Vault = (() => { if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -235912,7 +220170,7 @@ export const Vault = $root.Vault = (() => { function NonSharedData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -235953,13 +220211,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NonSharedData.encode = function encode(message, writer, q) { + NonSharedData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -235991,18 +220245,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NonSharedData.decode = function decode(reader, length, error, long) { + NonSharedData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.NonSharedData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -236013,7 +220261,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -236044,13 +220292,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NonSharedData.verify = function verify(message, long) { + NonSharedData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -236068,13 +220312,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.NonSharedData} NonSharedData */ - NonSharedData.fromObject = function fromObject(object, long) { + NonSharedData.fromObject = function fromObject(object) { if (object instanceof $root.Vault.NonSharedData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.NonSharedData(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -236098,13 +220338,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NonSharedData.toObject = function toObject(message, options, q) { + NonSharedData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -236187,7 +220423,7 @@ export const Vault = $root.Vault = (() => { function RecordMetaData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -236292,13 +220528,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordMetaData.encode = function encode(message, writer, q) { + RecordMetaData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) @@ -236346,18 +220578,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordMetaData.decode = function decode(reader, length, error, long) { + RecordMetaData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordMetaData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -236400,7 +220626,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -236431,13 +220657,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordMetaData.verify = function verify(message, long) { + RecordMetaData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -236495,13 +220717,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.RecordMetaData} RecordMetaData */ - RecordMetaData.fromObject = function fromObject(object, long) { + RecordMetaData.fromObject = function fromObject(object) { if (object instanceof $root.Vault.RecordMetaData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.RecordMetaData(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -236562,7 +220780,7 @@ export const Vault = $root.Vault = (() => { message.ownerAccountUid = object.ownerAccountUid; if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -236603,13 +220821,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordMetaData.toObject = function toObject(message, options, q) { + RecordMetaData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -236639,9 +220853,9 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.ownerUsername = ""; } @@ -236660,9 +220874,7 @@ export const Vault = $root.Vault = (() => { if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -236723,7 +220935,7 @@ export const Vault = $root.Vault = (() => { function SharingChange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -236764,13 +220976,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharingChange.encode = function encode(message, writer, q) { + SharingChange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) @@ -236802,18 +221010,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharingChange.decode = function decode(reader, length, error, long) { + SharingChange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharingChange(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -236824,7 +221026,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -236855,13 +221057,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharingChange.verify = function verify(message, long) { + SharingChange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -236879,13 +221077,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SharingChange} SharingChange */ - SharingChange.fromObject = function fromObject(object, long) { + SharingChange.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SharingChange) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SharingChange(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -236906,13 +221100,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharingChange.toObject = function toObject(message, options, q) { + SharingChange.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -236982,7 +221172,7 @@ export const Vault = $root.Vault = (() => { function Profile(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -237031,13 +221221,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Profile.encode = function encode(message, writer, q) { + Profile.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.data != null && Object.hasOwnProperty.call(message, "data")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); if (message.profileName != null && Object.hasOwnProperty.call(message, "profileName")) @@ -237071,18 +221257,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Profile.decode = function decode(reader, length, error, long) { + Profile.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Profile(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.data = reader.bytes(); @@ -237097,7 +221277,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -237128,13 +221308,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Profile.verify = function verify(message, long) { + Profile.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.data != null && message.hasOwnProperty("data")) if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) return "data: buffer expected"; @@ -237155,13 +221331,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.Profile} Profile */ - Profile.fromObject = function fromObject(object, long) { + Profile.fromObject = function fromObject(object) { if (object instanceof $root.Vault.Profile) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.Profile(); if (object.data != null) if (typeof object.data === "string") @@ -237172,7 +221344,7 @@ export const Vault = $root.Vault = (() => { message.profileName = String(object.profileName); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -237191,13 +221363,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Profile.toObject = function toObject(message, options, q) { + Profile.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -237210,18 +221378,16 @@ export const Vault = $root.Vault = (() => { object.profileName = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.profileName != null && message.hasOwnProperty("profileName")) object.profileName = message.profileName; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -237278,7 +221444,7 @@ export const Vault = $root.Vault = (() => { function ProfilePic(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -237319,13 +221485,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProfilePic.encode = function encode(message, writer, q) { + ProfilePic.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.url != null && Object.hasOwnProperty.call(message, "url")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -237357,18 +221519,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProfilePic.decode = function decode(reader, length, error, long) { + ProfilePic.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ProfilePic(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.url = reader.string(); @@ -237379,7 +221535,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -237410,13 +221566,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ProfilePic.verify = function verify(message, long) { + ProfilePic.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.url != null && message.hasOwnProperty("url")) if (!$util.isString(message.url)) return "url: string expected"; @@ -237434,19 +221586,15 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.ProfilePic} ProfilePic */ - ProfilePic.fromObject = function fromObject(object, long) { + ProfilePic.fromObject = function fromObject(object) { if (object instanceof $root.Vault.ProfilePic) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.ProfilePic(); if (object.url != null) message.url = String(object.url); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -237465,28 +221613,22 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProfilePic.toObject = function toObject(message, options, q) { + ProfilePic.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.url = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.url != null && message.hasOwnProperty("url")) object.url = message.url; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -237546,7 +221688,7 @@ export const Vault = $root.Vault = (() => { this.teamUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -237603,13 +221745,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PendingTeamMember.encode = function encode(message, writer, q) { + PendingTeamMember.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); if (message.userPublicKey != null && Object.hasOwnProperty.call(message, "userPublicKey")) @@ -237646,18 +221784,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PendingTeamMember.decode = function decode(reader, length, error, long) { + PendingTeamMember.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.PendingTeamMember(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); @@ -237678,7 +221810,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -237709,13 +221841,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PendingTeamMember.verify = function verify(message, long) { + PendingTeamMember.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -237743,17 +221871,13 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.PendingTeamMember} PendingTeamMember */ - PendingTeamMember.fromObject = function fromObject(object, long) { + PendingTeamMember.fromObject = function fromObject(object) { if (object instanceof $root.Vault.PendingTeamMember) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.PendingTeamMember(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -237792,22 +221916,18 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PendingTeamMember.toObject = function toObject(message, options, q) { + PendingTeamMember.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.teamUids = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.userPublicKey = ""; else { @@ -237824,9 +221944,7 @@ export const Vault = $root.Vault = (() => { } } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -237896,7 +222014,7 @@ export const Vault = $root.Vault = (() => { function BreachWatchRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -237969,13 +222087,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchRecord.encode = function encode(message, writer, q) { + BreachWatchRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -238015,18 +222129,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchRecord.decode = function decode(reader, length, error, long) { + BreachWatchRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -238053,7 +222161,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -238084,13 +222192,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchRecord.verify = function verify(message, long) { + BreachWatchRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -238125,13 +222229,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.BreachWatchRecord} BreachWatchRecord */ - BreachWatchRecord.fromObject = function fromObject(object, long) { + BreachWatchRecord.fromObject = function fromObject(object) { if (object instanceof $root.Vault.BreachWatchRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.BreachWatchRecord(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -238163,7 +222263,7 @@ export const Vault = $root.Vault = (() => { message.scannedBy = String(object.scannedBy); if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -238187,13 +222287,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchRecord.toObject = function toObject(message, options, q) { + BreachWatchRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -238214,9 +222310,9 @@ export const Vault = $root.Vault = (() => { object.scannedBy = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) object.scannedByAccountUid = ""; else { @@ -238234,9 +222330,7 @@ export const Vault = $root.Vault = (() => { if (message.scannedBy != null && message.hasOwnProperty("scannedBy")) object.scannedBy = message.scannedBy; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -238301,7 +222395,7 @@ export const Vault = $root.Vault = (() => { function UserAuth(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -238390,13 +222484,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserAuth.encode = function encode(message, writer, q) { + UserAuth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) @@ -238440,18 +222530,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserAuth.decode = function decode(reader, length, error, long) { + UserAuth.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserAuth(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); @@ -238486,7 +222570,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -238517,13 +222601,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserAuth.verify = function verify(message, long) { + UserAuth.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -238569,13 +222649,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.UserAuth} UserAuth */ - UserAuth.fromObject = function fromObject(object, long) { + UserAuth.fromObject = function fromObject(object) { if (object instanceof $root.Vault.UserAuth) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.UserAuth(); if (object.uid != null) if (typeof object.uid === "string") @@ -238634,7 +222710,7 @@ export const Vault = $root.Vault = (() => { message.encryptedClientKey = object.encryptedClientKey; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -238655,13 +222731,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserAuth.toObject = function toObject(message, options, q) { + UserAuth.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -238690,9 +222762,9 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; object.name = ""; } if (message.uid != null && message.hasOwnProperty("uid")) @@ -238708,9 +222780,7 @@ export const Vault = $root.Vault = (() => { if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -238770,7 +222840,7 @@ export const Vault = $root.Vault = (() => { function BreachWatchSecurityData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -238819,13 +222889,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchSecurityData.encode = function encode(message, writer, q) { + BreachWatchSecurityData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -238859,18 +222925,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchSecurityData.decode = function decode(reader, length, error, long) { + BreachWatchSecurityData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchSecurityData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -238885,7 +222945,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -238916,13 +222976,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchSecurityData.verify = function verify(message, long) { + BreachWatchSecurityData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -238943,13 +222999,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.BreachWatchSecurityData} BreachWatchSecurityData */ - BreachWatchSecurityData.fromObject = function fromObject(object, long) { + BreachWatchSecurityData.fromObject = function fromObject(object) { if (object instanceof $root.Vault.BreachWatchSecurityData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.BreachWatchSecurityData(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -238958,7 +223010,7 @@ export const Vault = $root.Vault = (() => { message.recordUid = object.recordUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -238979,13 +223031,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchSecurityData.toObject = function toObject(message, options, q) { + BreachWatchSecurityData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -238997,17 +223045,15 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; object.removed = false; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -239066,7 +223112,7 @@ export const Vault = $root.Vault = (() => { function ReusedPasswords(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -239107,13 +223153,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReusedPasswords.encode = function encode(message, writer, q) { + ReusedPasswords.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.count != null && Object.hasOwnProperty.call(message, "count")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -239145,18 +223187,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReusedPasswords.decode = function decode(reader, length, error, long) { + ReusedPasswords.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ReusedPasswords(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.count = reader.int32(); @@ -239167,7 +223203,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -239198,13 +223234,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReusedPasswords.verify = function verify(message, long) { + ReusedPasswords.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.count != null && message.hasOwnProperty("count")) if (!$util.isInteger(message.count)) return "count: integer expected"; @@ -239222,19 +223254,15 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.ReusedPasswords} ReusedPasswords */ - ReusedPasswords.fromObject = function fromObject(object, long) { + ReusedPasswords.fromObject = function fromObject(object) { if (object instanceof $root.Vault.ReusedPasswords) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.ReusedPasswords(); if (object.count != null) message.count = object.count | 0; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -239253,28 +223281,22 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReusedPasswords.toObject = function toObject(message, options, q) { + ReusedPasswords.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.count = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.count != null && message.hasOwnProperty("count")) object.count = message.count; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -239340,7 +223362,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -239453,13 +223475,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderRecord.encode = function encode(message, writer, q) { + SharedFolderRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -239509,18 +223527,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderRecord.decode = function decode(reader, length, error, long) { + SharedFolderRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -239567,7 +223579,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -239598,13 +223610,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderRecord.verify = function verify(message, long) { + SharedFolderRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -239655,13 +223663,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SharedFolderRecord} SharedFolderRecord */ - SharedFolderRecord.fromObject = function fromObject(object, long) { + SharedFolderRecord.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SharedFolderRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SharedFolderRecord(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -239689,7 +223693,7 @@ export const Vault = $root.Vault = (() => { message.ownerAccountUid = object.ownerAccountUid; if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -239734,13 +223738,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderRecord.toObject = function toObject(message, options, q) { + SharedFolderRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -239775,9 +223775,9 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.owner = false; object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.ownerUsername = ""; @@ -239796,9 +223796,7 @@ export const Vault = $root.Vault = (() => { if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -239869,7 +223867,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -239958,13 +223956,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderUser.encode = function encode(message, writer, q) { + SharedFolderUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -240008,18 +224002,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderUser.decode = function decode(reader, length, error, long) { + SharedFolderUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -240054,7 +224042,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -240085,13 +224073,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderUser.verify = function verify(message, long) { + SharedFolderUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -240133,13 +224117,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SharedFolderUser} SharedFolderUser */ - SharedFolderUser.fromObject = function fromObject(object, long) { + SharedFolderUser.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SharedFolderUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SharedFolderUser(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -240159,7 +224139,7 @@ export const Vault = $root.Vault = (() => { message.accountUid = object.accountUid; if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -240200,13 +224180,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderUser.toObject = function toObject(message, options, q) { + SharedFolderUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -240228,9 +224204,9 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } @@ -240245,9 +224221,7 @@ export const Vault = $root.Vault = (() => { if (message.accountUid != null && message.hasOwnProperty("accountUid")) object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -240314,7 +224288,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -240403,13 +224377,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SharedFolderTeam.encode = function encode(message, writer, q) { + SharedFolderTeam.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) @@ -240453,18 +224423,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SharedFolderTeam.decode = function decode(reader, length, error, long) { + SharedFolderTeam.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderTeam(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -240499,7 +224463,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -240530,13 +224494,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SharedFolderTeam.verify = function verify(message, long) { + SharedFolderTeam.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -240578,13 +224538,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SharedFolderTeam} SharedFolderTeam */ - SharedFolderTeam.fromObject = function fromObject(object, long) { + SharedFolderTeam.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SharedFolderTeam) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SharedFolderTeam(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -240604,7 +224560,7 @@ export const Vault = $root.Vault = (() => { message.manageUsers = Boolean(object.manageUsers); if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -240645,13 +224601,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SharedFolderTeam.toObject = function toObject(message, options, q) { + SharedFolderTeam.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -240673,9 +224625,9 @@ export const Vault = $root.Vault = (() => { object.manageUsers = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; object.rotateOnExpiration = false; } @@ -240690,9 +224642,7 @@ export const Vault = $root.Vault = (() => { if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) object.manageUsers = message.manageUsers; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -240756,7 +224706,7 @@ export const Vault = $root.Vault = (() => { function KsmChange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -240821,13 +224771,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KsmChange.encode = function encode(message, writer, q) { + KsmChange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); if (message.detailId != null && Object.hasOwnProperty.call(message, "detailId")) @@ -240865,18 +224811,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KsmChange.decode = function decode(reader, length, error, long) { + KsmChange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.KsmChange(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.appRecordUid = reader.bytes(); @@ -240899,7 +224839,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -240930,13 +224870,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KsmChange.verify = function verify(message, long) { + KsmChange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) return "appRecordUid: buffer expected"; @@ -240971,13 +224907,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.KsmChange} KsmChange */ - KsmChange.fromObject = function fromObject(object, long) { + KsmChange.fromObject = function fromObject(object) { if (object instanceof $root.Vault.KsmChange) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.KsmChange(); if (object.appRecordUid != null) if (typeof object.appRecordUid === "string") @@ -241021,7 +224953,7 @@ export const Vault = $root.Vault = (() => { } if (object.expiration != null) if ($util.Long) - message.expiration = $util.Long.fromValue(object.expiration, false); + (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; else if (typeof object.expiration === "string") message.expiration = parseInt(object.expiration, 10); else if (typeof object.expiration === "number") @@ -241040,13 +224972,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KsmChange.toObject = function toObject(message, options, q) { + KsmChange.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -241067,9 +224995,9 @@ export const Vault = $root.Vault = (() => { object.appClientType = options.enums === String ? "NOT_USED" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.expiration = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.expiration = options.longs === String ? "0" : 0; } if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; @@ -241080,9 +225008,7 @@ export const Vault = $root.Vault = (() => { if (message.appClientType != null && message.hasOwnProperty("appClientType")) object.appClientType = options.enums === String ? $root.Enterprise.AppClientType[message.appClientType] === undefined ? message.appClientType : $root.Enterprise.AppClientType[message.appClientType] : message.appClientType; if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.expiration = typeof message.expiration === "number" ? BigInt(message.expiration) : $util.Long.fromBits(message.expiration.low >>> 0, message.expiration.high >>> 0, false).toBigInt(); - else if (typeof message.expiration === "number") + if (typeof message.expiration === "number") object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; @@ -241138,7 +225064,7 @@ export const Vault = $root.Vault = (() => { function ShareInvitation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -241171,13 +225097,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ShareInvitation.encode = function encode(message, writer, q) { + ShareInvitation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); return writer; @@ -241207,25 +225129,19 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ShareInvitation.decode = function decode(reader, length, error, long) { + ShareInvitation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ShareInvitation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -241256,13 +225172,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ShareInvitation.verify = function verify(message, long) { + ShareInvitation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -241277,13 +225189,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.ShareInvitation} ShareInvitation */ - ShareInvitation.fromObject = function fromObject(object, long) { + ShareInvitation.fromObject = function fromObject(object) { if (object instanceof $root.Vault.ShareInvitation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.ShareInvitation(); if (object.username != null) message.username = String(object.username); @@ -241299,13 +225207,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ShareInvitation.toObject = function toObject(message, options, q) { + ShareInvitation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.username = ""; @@ -241364,7 +225268,7 @@ export const Vault = $root.Vault = (() => { function User(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -241405,13 +225309,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - User.encode = function encode(message, writer, q) { + User.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid); if (message.username != null && Object.hasOwnProperty.call(message, "username")) @@ -241443,18 +225343,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - User.decode = function decode(reader, length, error, long) { + User.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.User(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.accountUid = reader.bytes(); @@ -241465,7 +225359,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -241496,13 +225390,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - User.verify = function verify(message, long) { + User.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.accountUid != null && message.hasOwnProperty("accountUid")) if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) return "accountUid: buffer expected"; @@ -241520,13 +225410,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.User} User */ - User.fromObject = function fromObject(object, long) { + User.fromObject = function fromObject(object) { if (object instanceof $root.Vault.User) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.User(); if (object.accountUid != null) if (typeof object.accountUid === "string") @@ -241547,13 +225433,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - User.toObject = function toObject(message, options, q) { + User.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -241625,7 +225507,7 @@ export const Vault = $root.Vault = (() => { function SyncDiagnostics(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -241690,13 +225572,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncDiagnostics.encode = function encode(message, writer, q) { + SyncDiagnostics.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) @@ -241734,18 +225612,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SyncDiagnostics.decode = function decode(reader, length, error, long) { + SyncDiagnostics.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDiagnostics(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.continuationToken = reader.bytes(); @@ -241768,7 +225640,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -241799,13 +225671,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SyncDiagnostics.verify = function verify(message, long) { + SyncDiagnostics.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) return "continuationToken: buffer expected"; @@ -241832,13 +225700,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SyncDiagnostics} SyncDiagnostics */ - SyncDiagnostics.fromObject = function fromObject(object, long) { + SyncDiagnostics.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SyncDiagnostics) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SyncDiagnostics(); if (object.continuationToken != null) if (typeof object.continuationToken === "string") @@ -241849,7 +225713,7 @@ export const Vault = $root.Vault = (() => { message.userId = object.userId | 0; if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -241858,7 +225722,7 @@ export const Vault = $root.Vault = (() => { message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); if (object.syncedTo != null) if ($util.Long) - message.syncedTo = $util.Long.fromValue(object.syncedTo, false); + (message.syncedTo = $util.Long.fromValue(object.syncedTo)).unsigned = false; else if (typeof object.syncedTo === "string") message.syncedTo = parseInt(object.syncedTo, 10); else if (typeof object.syncedTo === "number") @@ -241867,7 +225731,7 @@ export const Vault = $root.Vault = (() => { message.syncedTo = new $util.LongBits(object.syncedTo.low >>> 0, object.syncedTo.high >>> 0).toNumber(); if (object.syncingTo != null) if ($util.Long) - message.syncingTo = $util.Long.fromValue(object.syncingTo, false); + (message.syncingTo = $util.Long.fromValue(object.syncingTo)).unsigned = false; else if (typeof object.syncingTo === "string") message.syncingTo = parseInt(object.syncingTo, 10); else if (typeof object.syncingTo === "number") @@ -241886,13 +225750,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SyncDiagnostics.toObject = function toObject(message, options, q) { + SyncDiagnostics.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -241905,42 +225765,36 @@ export const Vault = $root.Vault = (() => { object.userId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncedTo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.syncedTo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.syncedTo = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.syncedTo = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncingTo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.syncingTo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.syncingTo = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.syncingTo = options.longs === String ? "0" : 0; } if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; if (message.userId != null && message.hasOwnProperty("userId")) object.userId = message.userId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; if (message.syncedTo != null && message.hasOwnProperty("syncedTo")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.syncedTo = typeof message.syncedTo === "number" ? BigInt(message.syncedTo) : $util.Long.fromBits(message.syncedTo.low >>> 0, message.syncedTo.high >>> 0, false).toBigInt(); - else if (typeof message.syncedTo === "number") + if (typeof message.syncedTo === "number") object.syncedTo = options.longs === String ? String(message.syncedTo) : message.syncedTo; else object.syncedTo = options.longs === String ? $util.Long.prototype.toString.call(message.syncedTo) : options.longs === Number ? new $util.LongBits(message.syncedTo.low >>> 0, message.syncedTo.high >>> 0).toNumber() : message.syncedTo; if (message.syncingTo != null && message.hasOwnProperty("syncingTo")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.syncingTo = typeof message.syncingTo === "number" ? BigInt(message.syncingTo) : $util.Long.fromBits(message.syncingTo.low >>> 0, message.syncingTo.high >>> 0, false).toBigInt(); - else if (typeof message.syncingTo === "number") + if (typeof message.syncingTo === "number") object.syncingTo = options.longs === String ? String(message.syncingTo) : message.syncingTo; else object.syncingTo = options.longs === String ? $util.Long.prototype.toString.call(message.syncingTo) : options.longs === Number ? new $util.LongBits(message.syncingTo.low >>> 0, message.syncingTo.high >>> 0).toNumber() : message.syncingTo; @@ -242022,7 +225876,7 @@ export const Vault = $root.Vault = (() => { function RecordRotation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -242119,13 +225973,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordRotation.encode = function encode(message, writer, q) { + RecordRotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -242171,18 +226021,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordRotation.decode = function decode(reader, length, error, long) { + RecordRotation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordRotation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -242221,7 +226065,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -242252,13 +226096,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordRotation.verify = function verify(message, long) { + RecordRotation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -242304,13 +226144,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.RecordRotation} RecordRotation */ - RecordRotation.fromObject = function fromObject(object, long) { + RecordRotation.fromObject = function fromObject(object) { if (object instanceof $root.Vault.RecordRotation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.RecordRotation(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -242319,7 +226155,7 @@ export const Vault = $root.Vault = (() => { message.recordUid = object.recordUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -242347,7 +226183,7 @@ export const Vault = $root.Vault = (() => { message.resourceUid = object.resourceUid; if (object.lastRotation != null) if ($util.Long) - message.lastRotation = $util.Long.fromValue(object.lastRotation, false); + (message.lastRotation = $util.Long.fromValue(object.lastRotation)).unsigned = false; else if (typeof object.lastRotation === "string") message.lastRotation = parseInt(object.lastRotation, 10); else if (typeof object.lastRotation === "number") @@ -242390,13 +226226,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordRotation.toObject = function toObject(message, options, q) { + RecordRotation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -242408,9 +226240,9 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) object.configurationUid = ""; else { @@ -242436,17 +226268,15 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastRotation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastRotation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastRotation = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastRotation = options.longs === String ? "0" : 0; object.lastRotationStatus = options.enums === String ? "RRST_NOT_ROTATED" : 0; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -242461,9 +226291,7 @@ export const Vault = $root.Vault = (() => { if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) object.resourceUid = options.bytes === String ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUid) : message.resourceUid; if (message.lastRotation != null && message.hasOwnProperty("lastRotation")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastRotation = typeof message.lastRotation === "number" ? BigInt(message.lastRotation) : $util.Long.fromBits(message.lastRotation.low >>> 0, message.lastRotation.high >>> 0, false).toBigInt(); - else if (typeof message.lastRotation === "number") + if (typeof message.lastRotation === "number") object.lastRotation = options.longs === String ? String(message.lastRotation) : message.lastRotation; else object.lastRotation = options.longs === String ? $util.Long.prototype.toString.call(message.lastRotation) : options.longs === Number ? new $util.LongBits(message.lastRotation.low >>> 0, message.lastRotation.high >>> 0).toNumber() : message.lastRotation; @@ -242523,7 +226351,7 @@ export const Vault = $root.Vault = (() => { function SecurityScoreData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -242572,13 +226400,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityScoreData.encode = function encode(message, writer, q) { + SecurityScoreData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -242612,18 +226436,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityScoreData.decode = function decode(reader, length, error, long) { + SecurityScoreData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SecurityScoreData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -242638,7 +226456,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -242669,13 +226487,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityScoreData.verify = function verify(message, long) { + SecurityScoreData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -242696,13 +226510,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.SecurityScoreData} SecurityScoreData */ - SecurityScoreData.fromObject = function fromObject(object, long) { + SecurityScoreData.fromObject = function fromObject(object) { if (object instanceof $root.Vault.SecurityScoreData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.SecurityScoreData(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -242716,7 +226526,7 @@ export const Vault = $root.Vault = (() => { message.data = object.data; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -242735,13 +226545,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityScoreData.toObject = function toObject(message, options, q) { + SecurityScoreData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -242760,18 +226566,16 @@ export const Vault = $root.Vault = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -242828,7 +226632,7 @@ export const Vault = $root.Vault = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -242861,13 +226665,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchGetSyncDataRequest.encode = function encode(message, writer, q) { + BreachWatchGetSyncDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); @@ -242898,18 +226698,12 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchGetSyncDataRequest.decode = function decode(reader, length, error, long) { + BreachWatchGetSyncDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchGetSyncDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordUids && message.recordUids.length)) @@ -242918,7 +226712,7 @@ export const Vault = $root.Vault = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -242949,13 +226743,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchGetSyncDataRequest.verify = function verify(message, long) { + BreachWatchGetSyncDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUids != null && message.hasOwnProperty("recordUids")) { if (!Array.isArray(message.recordUids)) return "recordUids: array expected"; @@ -242974,13 +226764,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.BreachWatchGetSyncDataRequest} BreachWatchGetSyncDataRequest */ - BreachWatchGetSyncDataRequest.fromObject = function fromObject(object, long) { + BreachWatchGetSyncDataRequest.fromObject = function fromObject(object) { if (object instanceof $root.Vault.BreachWatchGetSyncDataRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.BreachWatchGetSyncDataRequest(); if (object.recordUids) { if (!Array.isArray(object.recordUids)) @@ -243004,13 +226790,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchGetSyncDataRequest.toObject = function toObject(message, options, q) { + BreachWatchGetSyncDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordUids = []; @@ -243076,7 +226858,7 @@ export const Vault = $root.Vault = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -243125,22 +226907,18 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BreachWatchGetSyncDataResponse.encode = function encode(message, writer, q) { + BreachWatchGetSyncDataResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.breachWatchRecords != null && message.breachWatchRecords.length) for (let i = 0; i < message.breachWatchRecords.length; ++i) - $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.breachWatchSecurityData != null && message.breachWatchSecurityData.length) for (let i = 0; i < message.breachWatchSecurityData.length; ++i) - $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Vault.User.encode(message.users[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Vault.User.encode(message.users[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -243168,39 +226946,33 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BreachWatchGetSyncDataResponse.decode = function decode(reader, length, error, long) { + BreachWatchGetSyncDataResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchGetSyncDataResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.breachWatchRecords && message.breachWatchRecords.length)) message.breachWatchRecords = []; - message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32())); break; } case 2: { if (!(message.breachWatchSecurityData && message.breachWatchSecurityData.length)) message.breachWatchSecurityData = []; - message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32(), undefined, long + 1)); + message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32())); break; } case 3: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Vault.User.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Vault.User.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -243231,18 +227003,14 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BreachWatchGetSyncDataResponse.verify = function verify(message, long) { + BreachWatchGetSyncDataResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.breachWatchRecords != null && message.hasOwnProperty("breachWatchRecords")) { if (!Array.isArray(message.breachWatchRecords)) return "breachWatchRecords: array expected"; for (let i = 0; i < message.breachWatchRecords.length; ++i) { - let error = $root.Vault.BreachWatchRecord.verify(message.breachWatchRecords[i], long + 1); + let error = $root.Vault.BreachWatchRecord.verify(message.breachWatchRecords[i]); if (error) return "breachWatchRecords." + error; } @@ -243251,7 +227019,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.breachWatchSecurityData)) return "breachWatchSecurityData: array expected"; for (let i = 0; i < message.breachWatchSecurityData.length; ++i) { - let error = $root.Vault.BreachWatchSecurityData.verify(message.breachWatchSecurityData[i], long + 1); + let error = $root.Vault.BreachWatchSecurityData.verify(message.breachWatchSecurityData[i]); if (error) return "breachWatchSecurityData." + error; } @@ -243260,7 +227028,7 @@ export const Vault = $root.Vault = (() => { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Vault.User.verify(message.users[i], long + 1); + let error = $root.Vault.User.verify(message.users[i]); if (error) return "users." + error; } @@ -243276,13 +227044,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.BreachWatchGetSyncDataResponse} BreachWatchGetSyncDataResponse */ - BreachWatchGetSyncDataResponse.fromObject = function fromObject(object, long) { + BreachWatchGetSyncDataResponse.fromObject = function fromObject(object) { if (object instanceof $root.Vault.BreachWatchGetSyncDataResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.BreachWatchGetSyncDataResponse(); if (object.breachWatchRecords) { if (!Array.isArray(object.breachWatchRecords)) @@ -243291,7 +227055,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.breachWatchRecords.length; ++i) { if (typeof object.breachWatchRecords[i] !== "object") throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: object expected"); - message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i], long + 1); + message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i]); } } if (object.breachWatchSecurityData) { @@ -243301,7 +227065,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { if (typeof object.breachWatchSecurityData[i] !== "object") throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: object expected"); - message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i], long + 1); + message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i]); } } if (object.users) { @@ -243311,7 +227075,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Vault.BreachWatchGetSyncDataResponse.users: object expected"); - message.users[i] = $root.Vault.User.fromObject(object.users[i], long + 1); + message.users[i] = $root.Vault.User.fromObject(object.users[i]); } } return message; @@ -243326,13 +227090,9 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BreachWatchGetSyncDataResponse.toObject = function toObject(message, options, q) { + BreachWatchGetSyncDataResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.breachWatchRecords = []; @@ -243342,17 +227102,17 @@ export const Vault = $root.Vault = (() => { if (message.breachWatchRecords && message.breachWatchRecords.length) { object.breachWatchRecords = []; for (let j = 0; j < message.breachWatchRecords.length; ++j) - object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options, q + 1); + object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options); } if (message.breachWatchSecurityData && message.breachWatchSecurityData.length) { object.breachWatchSecurityData = []; for (let j = 0; j < message.breachWatchSecurityData.length; ++j) - object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options, q + 1); + object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options); } if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Vault.User.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Vault.User.toObject(message.users[j], options); } return object; }; @@ -243407,7 +227167,7 @@ export const Vault = $root.Vault = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -243440,16 +227200,12 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAccountUidMapResponse.encode = function encode(message, writer, q) { + GetAccountUidMapResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Vault.User.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Vault.User.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -243477,27 +227233,21 @@ export const Vault = $root.Vault = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAccountUidMapResponse.decode = function decode(reader, length, error, long) { + GetAccountUidMapResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.GetAccountUidMapResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.users && message.users.length)) message.users = []; - message.users.push($root.Vault.User.decode(reader, reader.uint32(), undefined, long + 1)); + message.users.push($root.Vault.User.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -243528,18 +227278,14 @@ export const Vault = $root.Vault = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAccountUidMapResponse.verify = function verify(message, long) { + GetAccountUidMapResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.users != null && message.hasOwnProperty("users")) { if (!Array.isArray(message.users)) return "users: array expected"; for (let i = 0; i < message.users.length; ++i) { - let error = $root.Vault.User.verify(message.users[i], long + 1); + let error = $root.Vault.User.verify(message.users[i]); if (error) return "users." + error; } @@ -243555,13 +227301,9 @@ export const Vault = $root.Vault = (() => { * @param {Object.} object Plain object * @returns {Vault.GetAccountUidMapResponse} GetAccountUidMapResponse */ - GetAccountUidMapResponse.fromObject = function fromObject(object, long) { + GetAccountUidMapResponse.fromObject = function fromObject(object) { if (object instanceof $root.Vault.GetAccountUidMapResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Vault.GetAccountUidMapResponse(); if (object.users) { if (!Array.isArray(object.users)) @@ -243570,7 +227312,7 @@ export const Vault = $root.Vault = (() => { for (let i = 0; i < object.users.length; ++i) { if (typeof object.users[i] !== "object") throw TypeError(".Vault.GetAccountUidMapResponse.users: object expected"); - message.users[i] = $root.Vault.User.fromObject(object.users[i], long + 1); + message.users[i] = $root.Vault.User.fromObject(object.users[i]); } } return message; @@ -243585,20 +227327,16 @@ export const Vault = $root.Vault = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAccountUidMapResponse.toObject = function toObject(message, options, q) { + GetAccountUidMapResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.users = []; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Vault.User.toObject(message.users[j], options, q + 1); + object.users[j] = $root.Vault.User.toObject(message.users[j], options); } return object; }; @@ -243785,7 +227523,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function EncryptedData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -243826,13 +227564,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EncryptedData.encode = function encode(message, writer, q) { + EncryptedData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.version != null && Object.hasOwnProperty.call(message, "version")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -243864,18 +227598,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EncryptedData.decode = function decode(reader, length, error, long) { + EncryptedData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.EncryptedData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.version = reader.int32(); @@ -243886,7 +227614,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -243917,13 +227645,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EncryptedData.verify = function verify(message, long) { + EncryptedData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.version != null && message.hasOwnProperty("version")) if (!$util.isInteger(message.version)) return "version: integer expected"; @@ -243941,13 +227665,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.EncryptedData} EncryptedData */ - EncryptedData.fromObject = function fromObject(object, long) { + EncryptedData.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.EncryptedData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.EncryptedData(); if (object.version != null) message.version = object.version | 0; @@ -243968,13 +227688,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EncryptedData.toObject = function toObject(message, options, q) { + EncryptedData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.version = 0; @@ -244043,7 +227759,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function NotificationParameter(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -244084,13 +227800,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationParameter.encode = function encode(message, writer, q) { + NotificationParameter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -244122,18 +227834,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NotificationParameter.decode = function decode(reader, length, error, long) { + NotificationParameter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationParameter(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.key = reader.string(); @@ -244144,7 +227850,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -244175,13 +227881,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NotificationParameter.verify = function verify(message, long) { + NotificationParameter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.key != null && message.hasOwnProperty("key")) if (!$util.isString(message.key)) return "key: string expected"; @@ -244199,13 +227901,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.NotificationParameter} NotificationParameter */ - NotificationParameter.fromObject = function fromObject(object, long) { + NotificationParameter.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.NotificationParameter) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.NotificationParameter(); if (object.key != null) message.key = String(object.key); @@ -244226,13 +227924,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationParameter.toObject = function toObject(message, options, q) { + NotificationParameter.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.key = ""; @@ -244310,7 +228004,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.parameters = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -244399,26 +228093,22 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Notification.encode = function encode(message, writer, q) { + Notification.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); if (message.category != null && Object.hasOwnProperty.call(message, "category")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.category); if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - $root.GraphSync.GraphSyncRef.encode(message.sender, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncRef.encode(message.sender, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.senderFullName != null && Object.hasOwnProperty.call(message, "senderFullName")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.senderFullName); if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - $root.NotificationCenter.EncryptedData.encode(message.encryptedData, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.NotificationCenter.EncryptedData.encode(message.encryptedData, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.refs != null && message.refs.length) for (let i = 0; i < message.refs.length; ++i) - $root.GraphSync.GraphSyncRef.encode(message.refs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncRef.encode(message.refs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.categories != null && message.categories.length) { writer.uint32(/* id 7, wireType 2 =*/58).fork(); for (let i = 0; i < message.categories.length; ++i) @@ -244427,7 +228117,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } if (message.parameters != null && message.parameters.length) for (let i = 0; i < message.parameters.length; ++i) - $root.NotificationCenter.NotificationParameter.encode(message.parameters[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.NotificationCenter.NotificationParameter.encode(message.parameters[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; @@ -244455,18 +228145,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Notification.decode = function decode(reader, length, error, long) { + Notification.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.Notification(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.type = reader.int32(); @@ -244477,7 +228161,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } case 3: { - message.sender = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32(), undefined, long + 1); + message.sender = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); break; } case 4: { @@ -244485,13 +228169,13 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } case 5: { - message.encryptedData = $root.NotificationCenter.EncryptedData.decode(reader, reader.uint32(), undefined, long + 1); + message.encryptedData = $root.NotificationCenter.EncryptedData.decode(reader, reader.uint32()); break; } case 6: { if (!(message.refs && message.refs.length)) message.refs = []; - message.refs.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32(), undefined, long + 1)); + message.refs.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); break; } case 7: { @@ -244508,11 +228192,11 @@ export const NotificationCenter = $root.NotificationCenter = (() => { case 8: { if (!(message.parameters && message.parameters.length)) message.parameters = []; - message.parameters.push($root.NotificationCenter.NotificationParameter.decode(reader, reader.uint32(), undefined, long + 1)); + message.parameters.push($root.NotificationCenter.NotificationParameter.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -244543,13 +228227,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Notification.verify = function verify(message, long) { + Notification.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.type != null && message.hasOwnProperty("type")) switch (message.type) { default: @@ -244594,7 +228274,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } if (message.sender != null && message.hasOwnProperty("sender")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.sender, long + 1); + let error = $root.GraphSync.GraphSyncRef.verify(message.sender); if (error) return "sender." + error; } @@ -244602,7 +228282,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (!$util.isString(message.senderFullName)) return "senderFullName: string expected"; if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) { - let error = $root.NotificationCenter.EncryptedData.verify(message.encryptedData, long + 1); + let error = $root.NotificationCenter.EncryptedData.verify(message.encryptedData); if (error) return "encryptedData." + error; } @@ -244610,7 +228290,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (!Array.isArray(message.refs)) return "refs: array expected"; for (let i = 0; i < message.refs.length; ++i) { - let error = $root.GraphSync.GraphSyncRef.verify(message.refs[i], long + 1); + let error = $root.GraphSync.GraphSyncRef.verify(message.refs[i]); if (error) return "refs." + error; } @@ -244637,7 +228317,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (!Array.isArray(message.parameters)) return "parameters: array expected"; for (let i = 0; i < message.parameters.length; ++i) { - let error = $root.NotificationCenter.NotificationParameter.verify(message.parameters[i], long + 1); + let error = $root.NotificationCenter.NotificationParameter.verify(message.parameters[i]); if (error) return "parameters." + error; } @@ -244653,13 +228333,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.Notification} Notification */ - Notification.fromObject = function fromObject(object, long) { + Notification.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.Notification) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.Notification(); switch (object.type) { default: @@ -244804,14 +228480,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (object.sender != null) { if (typeof object.sender !== "object") throw TypeError(".NotificationCenter.Notification.sender: object expected"); - message.sender = $root.GraphSync.GraphSyncRef.fromObject(object.sender, long + 1); + message.sender = $root.GraphSync.GraphSyncRef.fromObject(object.sender); } if (object.senderFullName != null) message.senderFullName = String(object.senderFullName); if (object.encryptedData != null) { if (typeof object.encryptedData !== "object") throw TypeError(".NotificationCenter.Notification.encryptedData: object expected"); - message.encryptedData = $root.NotificationCenter.EncryptedData.fromObject(object.encryptedData, long + 1); + message.encryptedData = $root.NotificationCenter.EncryptedData.fromObject(object.encryptedData); } if (object.refs) { if (!Array.isArray(object.refs)) @@ -244820,7 +228496,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { for (let i = 0; i < object.refs.length; ++i) { if (typeof object.refs[i] !== "object") throw TypeError(".NotificationCenter.Notification.refs: object expected"); - message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i], long + 1); + message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i]); } } if (object.categories) { @@ -244875,7 +228551,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { for (let i = 0; i < object.parameters.length; ++i) { if (typeof object.parameters[i] !== "object") throw TypeError(".NotificationCenter.Notification.parameters: object expected"); - message.parameters[i] = $root.NotificationCenter.NotificationParameter.fromObject(object.parameters[i], long + 1); + message.parameters[i] = $root.NotificationCenter.NotificationParameter.fromObject(object.parameters[i]); } } return message; @@ -244890,13 +228566,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Notification.toObject = function toObject(message, options, q) { + Notification.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.refs = []; @@ -244915,15 +228587,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (message.category != null && message.hasOwnProperty("category")) object.category = options.enums === String ? $root.NotificationCenter.NotificationCategory[message.category] === undefined ? message.category : $root.NotificationCenter.NotificationCategory[message.category] : message.category; if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = $root.GraphSync.GraphSyncRef.toObject(message.sender, options, q + 1); + object.sender = $root.GraphSync.GraphSyncRef.toObject(message.sender, options); if (message.senderFullName != null && message.hasOwnProperty("senderFullName")) object.senderFullName = message.senderFullName; if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - object.encryptedData = $root.NotificationCenter.EncryptedData.toObject(message.encryptedData, options, q + 1); + object.encryptedData = $root.NotificationCenter.EncryptedData.toObject(message.encryptedData, options); if (message.refs && message.refs.length) { object.refs = []; for (let j = 0; j < message.refs.length; ++j) - object.refs[j] = $root.GraphSync.GraphSyncRef.toObject(message.refs[j], options, q + 1); + object.refs[j] = $root.GraphSync.GraphSyncRef.toObject(message.refs[j], options); } if (message.categories && message.categories.length) { object.categories = []; @@ -244933,7 +228605,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (message.parameters && message.parameters.length) { object.parameters = []; for (let j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.NotificationCenter.NotificationParameter.toObject(message.parameters[j], options, q + 1); + object.parameters[j] = $root.NotificationCenter.NotificationParameter.toObject(message.parameters[j], options); } return object; }; @@ -244990,7 +228662,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function NotificationReadMark(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -245047,13 +228719,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationReadMark.encode = function encode(message, writer, q) { + NotificationReadMark.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.notificationEdgeId != null && Object.hasOwnProperty.call(message, "notificationEdgeId")) @@ -245089,18 +228757,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NotificationReadMark.decode = function decode(reader, length, error, long) { + NotificationReadMark.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationReadMark(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); @@ -245119,7 +228781,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -245150,13 +228812,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NotificationReadMark.verify = function verify(message, long) { + NotificationReadMark.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -245187,13 +228845,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.NotificationReadMark} NotificationReadMark */ - NotificationReadMark.fromObject = function fromObject(object, long) { + NotificationReadMark.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.NotificationReadMark) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.NotificationReadMark(); if (object.uid != null) if (typeof object.uid === "string") @@ -245202,7 +228856,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { message.uid = object.uid; if (object.notificationEdgeId != null) if ($util.Long) - message.notificationEdgeId = $util.Long.fromValue(object.notificationEdgeId, false); + (message.notificationEdgeId = $util.Long.fromValue(object.notificationEdgeId)).unsigned = false; else if (typeof object.notificationEdgeId === "string") message.notificationEdgeId = parseInt(object.notificationEdgeId, 10); else if (typeof object.notificationEdgeId === "number") @@ -245211,7 +228865,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { message.notificationEdgeId = new $util.LongBits(object.notificationEdgeId.low >>> 0, object.notificationEdgeId.high >>> 0).toNumber(); if (object.markEdgeId != null) if ($util.Long) - message.markEdgeId = $util.Long.fromValue(object.markEdgeId, false); + (message.markEdgeId = $util.Long.fromValue(object.markEdgeId)).unsigned = false; else if (typeof object.markEdgeId === "string") message.markEdgeId = parseInt(object.markEdgeId, 10); else if (typeof object.markEdgeId === "number") @@ -245254,13 +228908,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationReadMark.toObject = function toObject(message, options, q) { + NotificationReadMark.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -245272,29 +228922,25 @@ export const NotificationCenter = $root.NotificationCenter = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.notificationEdgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.notificationEdgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.notificationEdgeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.notificationEdgeId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.markEdgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.markEdgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.markEdgeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.markEdgeId = options.longs === String ? "0" : 0; object.readStatus = options.enums === String ? "NRS_UNSPECIFIED" : 0; } if (message.uid != null && message.hasOwnProperty("uid")) object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; if (message.notificationEdgeId != null && message.hasOwnProperty("notificationEdgeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.notificationEdgeId = typeof message.notificationEdgeId === "number" ? BigInt(message.notificationEdgeId) : $util.Long.fromBits(message.notificationEdgeId.low >>> 0, message.notificationEdgeId.high >>> 0, false).toBigInt(); - else if (typeof message.notificationEdgeId === "number") + if (typeof message.notificationEdgeId === "number") object.notificationEdgeId = options.longs === String ? String(message.notificationEdgeId) : message.notificationEdgeId; else object.notificationEdgeId = options.longs === String ? $util.Long.prototype.toString.call(message.notificationEdgeId) : options.longs === Number ? new $util.LongBits(message.notificationEdgeId.low >>> 0, message.notificationEdgeId.high >>> 0).toNumber() : message.notificationEdgeId; if (message.markEdgeId != null && message.hasOwnProperty("markEdgeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.markEdgeId = typeof message.markEdgeId === "number" ? BigInt(message.markEdgeId) : $util.Long.fromBits(message.markEdgeId.low >>> 0, message.markEdgeId.high >>> 0, false).toBigInt(); - else if (typeof message.markEdgeId === "number") + if (typeof message.markEdgeId === "number") object.markEdgeId = options.longs === String ? String(message.markEdgeId) : message.markEdgeId; else object.markEdgeId = options.longs === String ? $util.Long.prototype.toString.call(message.markEdgeId) : options.longs === Number ? new $util.LongBits(message.markEdgeId.low >>> 0, message.markEdgeId.high >>> 0).toNumber() : message.markEdgeId; @@ -245359,7 +229005,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.deviceIDs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -245446,15 +229092,11 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationContent.encode = function encode(message, writer, q) { + NotificationContent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) - $root.NotificationCenter.Notification.encode(message.notification, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.NotificationCenter.Notification.encode(message.notification, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.readStatus != null && Object.hasOwnProperty.call(message, "readStatus")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.readStatus); if (message.approvalStatus != null && Object.hasOwnProperty.call(message, "approvalStatus")) @@ -245500,21 +229142,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NotificationContent.decode = function decode(reader, length, error, long) { + NotificationContent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationContent(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.notification = $root.NotificationCenter.Notification.decode(reader, reader.uint32(), undefined, long + 1); + message.notification = $root.NotificationCenter.Notification.decode(reader, reader.uint32()); break; } case 2: { @@ -245552,7 +229188,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -245583,18 +229219,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NotificationContent.verify = function verify(message, long) { + NotificationContent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.notification != null && message.hasOwnProperty("notification")) { properties.type = 1; { - let error = $root.NotificationCenter.Notification.verify(message.notification, long + 1); + let error = $root.NotificationCenter.Notification.verify(message.notification); if (error) return "notification." + error; } @@ -245660,18 +229292,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.NotificationContent} NotificationContent */ - NotificationContent.fromObject = function fromObject(object, long) { + NotificationContent.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.NotificationContent) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.NotificationContent(); if (object.notification != null) { if (typeof object.notification !== "object") throw TypeError(".NotificationCenter.NotificationContent.notification: object expected"); - message.notification = $root.NotificationCenter.Notification.fromObject(object.notification, long + 1); + message.notification = $root.NotificationCenter.Notification.fromObject(object.notification); } switch (object.readStatus) { default: @@ -245740,7 +229368,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { message.deviceIDs = []; for (let i = 0; i < object.deviceIDs.length; ++i) if ($util.Long) - message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i], false); + (message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i])).unsigned = false; else if (typeof object.deviceIDs[i] === "string") message.deviceIDs[i] = parseInt(object.deviceIDs[i], 10); else if (typeof object.deviceIDs[i] === "number") @@ -245760,20 +229388,16 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationContent.toObject = function toObject(message, options, q) { + NotificationContent.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.clientTypeIDs = []; object.deviceIDs = []; } if (message.notification != null && message.hasOwnProperty("notification")) { - object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options, q + 1); + object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options); if (options.oneofs) object.type = "notification"; } @@ -245800,9 +229424,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (message.deviceIDs && message.deviceIDs.length) { object.deviceIDs = []; for (let j = 0; j < message.deviceIDs.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceIDs[j] = typeof message.deviceIDs[j] === "number" ? BigInt(message.deviceIDs[j]) : $util.Long.fromBits(message.deviceIDs[j].low >>> 0, message.deviceIDs[j].high >>> 0, false).toBigInt(); - else if (typeof message.deviceIDs[j] === "number") + if (typeof message.deviceIDs[j] === "number") object.deviceIDs[j] = options.longs === String ? String(message.deviceIDs[j]) : message.deviceIDs[j]; else object.deviceIDs[j] = options.longs === String ? $util.Long.prototype.toString.call(message.deviceIDs[j]) : options.longs === Number ? new $util.LongBits(message.deviceIDs[j].low >>> 0, message.deviceIDs[j].high >>> 0).toNumber() : message.deviceIDs[j]; @@ -245861,7 +229483,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function NotificationWrapper(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -245910,17 +229532,13 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationWrapper.encode = function encode(message, writer, q) { + NotificationWrapper.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); if (message.content != null && Object.hasOwnProperty.call(message, "content")) - $root.NotificationCenter.NotificationContent.encode(message.content, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.NotificationCenter.NotificationContent.encode(message.content, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.timestamp); return writer; @@ -245950,25 +229568,19 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NotificationWrapper.decode = function decode(reader, length, error, long) { + NotificationWrapper.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationWrapper(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); break; } case 2: { - message.content = $root.NotificationCenter.NotificationContent.decode(reader, reader.uint32(), undefined, long + 1); + message.content = $root.NotificationCenter.NotificationContent.decode(reader, reader.uint32()); break; } case 3: { @@ -245976,7 +229588,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -246007,18 +229619,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NotificationWrapper.verify = function verify(message, long) { + NotificationWrapper.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; if (message.content != null && message.hasOwnProperty("content")) { - let error = $root.NotificationCenter.NotificationContent.verify(message.content, long + 1); + let error = $root.NotificationCenter.NotificationContent.verify(message.content); if (error) return "content." + error; } @@ -246036,13 +229644,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.NotificationWrapper} NotificationWrapper */ - NotificationWrapper.fromObject = function fromObject(object, long) { + NotificationWrapper.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.NotificationWrapper) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.NotificationWrapper(); if (object.uid != null) if (typeof object.uid === "string") @@ -246052,11 +229656,11 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (object.content != null) { if (typeof object.content !== "object") throw TypeError(".NotificationCenter.NotificationWrapper.content: object expected"); - message.content = $root.NotificationCenter.NotificationContent.fromObject(object.content, long + 1); + message.content = $root.NotificationCenter.NotificationContent.fromObject(object.content); } if (object.timestamp != null) if ($util.Long) - message.timestamp = $util.Long.fromValue(object.timestamp, false); + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; else if (typeof object.timestamp === "string") message.timestamp = parseInt(object.timestamp, 10); else if (typeof object.timestamp === "number") @@ -246075,13 +229679,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationWrapper.toObject = function toObject(message, options, q) { + NotificationWrapper.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -246094,18 +229694,16 @@ export const NotificationCenter = $root.NotificationCenter = (() => { object.content = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.timestamp = options.longs === String ? "0" : 0; } if (message.uid != null && message.hasOwnProperty("uid")) object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; if (message.content != null && message.hasOwnProperty("content")) - object.content = $root.NotificationCenter.NotificationContent.toObject(message.content, options, q + 1); + object.content = $root.NotificationCenter.NotificationContent.toObject(message.content, options); if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, false).toBigInt(); - else if (typeof message.timestamp === "number") + if (typeof message.timestamp === "number") object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; @@ -246164,7 +229762,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -246213,16 +229811,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationSync.encode = function encode(message, writer, q) { + NotificationSync.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.data != null && message.data.length) for (let i = 0; i < message.data.length; ++i) - $root.NotificationCenter.NotificationWrapper.encode(message.data[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.NotificationCenter.NotificationWrapper.encode(message.data[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.syncPoint); if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) @@ -246254,23 +229848,17 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NotificationSync.decode = function decode(reader, length, error, long) { + NotificationSync.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSync(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.data && message.data.length)) message.data = []; - message.data.push($root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32(), undefined, long + 1)); + message.data.push($root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32())); break; } case 2: { @@ -246282,7 +229870,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -246313,18 +229901,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NotificationSync.verify = function verify(message, long) { + NotificationSync.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.data != null && message.hasOwnProperty("data")) { if (!Array.isArray(message.data)) return "data: array expected"; for (let i = 0; i < message.data.length; ++i) { - let error = $root.NotificationCenter.NotificationWrapper.verify(message.data[i], long + 1); + let error = $root.NotificationCenter.NotificationWrapper.verify(message.data[i]); if (error) return "data." + error; } @@ -246346,13 +229930,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.NotificationSync} NotificationSync */ - NotificationSync.fromObject = function fromObject(object, long) { + NotificationSync.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.NotificationSync) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.NotificationSync(); if (object.data) { if (!Array.isArray(object.data)) @@ -246361,12 +229941,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { for (let i = 0; i < object.data.length; ++i) { if (typeof object.data[i] !== "object") throw TypeError(".NotificationCenter.NotificationSync.data: object expected"); - message.data[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.data[i], long + 1); + message.data[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.data[i]); } } if (object.syncPoint != null) if ($util.Long) - message.syncPoint = $util.Long.fromValue(object.syncPoint, false); + (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; else if (typeof object.syncPoint === "string") message.syncPoint = parseInt(object.syncPoint, 10); else if (typeof object.syncPoint === "number") @@ -246387,33 +229967,27 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationSync.toObject = function toObject(message, options, q) { + NotificationSync.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.data = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.syncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.syncPoint = options.longs === String ? "0" : 0; object.hasMore = false; } if (message.data && message.data.length) { object.data = []; for (let j = 0; j < message.data.length; ++j) - object.data[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.data[j], options, q + 1); + object.data[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.data[j], options); } if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.syncPoint = typeof message.syncPoint === "number" ? BigInt(message.syncPoint) : $util.Long.fromBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0, false).toBigInt(); - else if (typeof message.syncPoint === "number") + if (typeof message.syncPoint === "number") object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; else object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; @@ -246472,7 +230046,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function ReadStatusUpdate(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -246513,13 +230087,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadStatusUpdate.encode = function encode(message, writer, q) { + ReadStatusUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.notificationUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -246551,18 +230121,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadStatusUpdate.decode = function decode(reader, length, error, long) { + ReadStatusUpdate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ReadStatusUpdate(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.notificationUid = reader.bytes(); @@ -246573,7 +230137,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -246604,13 +230168,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadStatusUpdate.verify = function verify(message, long) { + ReadStatusUpdate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.notificationUid != null && message.hasOwnProperty("notificationUid")) if (!(message.notificationUid && typeof message.notificationUid.length === "number" || $util.isString(message.notificationUid))) return "notificationUid: buffer expected"; @@ -246635,13 +230195,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.ReadStatusUpdate} ReadStatusUpdate */ - ReadStatusUpdate.fromObject = function fromObject(object, long) { + ReadStatusUpdate.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.ReadStatusUpdate) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.ReadStatusUpdate(); if (object.notificationUid != null) if (typeof object.notificationUid === "string") @@ -246684,13 +230240,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadStatusUpdate.toObject = function toObject(message, options, q) { + ReadStatusUpdate.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -246759,7 +230311,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function ApprovalStatusUpdate(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -246800,13 +230352,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApprovalStatusUpdate.encode = function encode(message, writer, q) { + ApprovalStatusUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.notificationUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -246838,18 +230386,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApprovalStatusUpdate.decode = function decode(reader, length, error, long) { + ApprovalStatusUpdate.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ApprovalStatusUpdate(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.notificationUid = reader.bytes(); @@ -246860,7 +230402,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -246891,13 +230433,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApprovalStatusUpdate.verify = function verify(message, long) { + ApprovalStatusUpdate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.notificationUid != null && message.hasOwnProperty("notificationUid")) if (!(message.notificationUid && typeof message.notificationUid.length === "number" || $util.isString(message.notificationUid))) return "notificationUid: buffer expected"; @@ -246923,13 +230461,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.ApprovalStatusUpdate} ApprovalStatusUpdate */ - ApprovalStatusUpdate.fromObject = function fromObject(object, long) { + ApprovalStatusUpdate.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.ApprovalStatusUpdate) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.ApprovalStatusUpdate(); if (object.notificationUid != null) if (typeof object.notificationUid === "string") @@ -246976,13 +230510,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApprovalStatusUpdate.toObject = function toObject(message, options, q) { + ApprovalStatusUpdate.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -247051,7 +230581,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.readStatusUpdate = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -247084,16 +230614,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProcessMarkReadEventsRequest.encode = function encode(message, writer, q) { + ProcessMarkReadEventsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.readStatusUpdate != null && message.readStatusUpdate.length) for (let i = 0; i < message.readStatusUpdate.length; ++i) - $root.NotificationCenter.ReadStatusUpdate.encode(message.readStatusUpdate[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.NotificationCenter.ReadStatusUpdate.encode(message.readStatusUpdate[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -247121,27 +230647,21 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProcessMarkReadEventsRequest.decode = function decode(reader, length, error, long) { + ProcessMarkReadEventsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ProcessMarkReadEventsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.readStatusUpdate && message.readStatusUpdate.length)) message.readStatusUpdate = []; - message.readStatusUpdate.push($root.NotificationCenter.ReadStatusUpdate.decode(reader, reader.uint32(), undefined, long + 1)); + message.readStatusUpdate.push($root.NotificationCenter.ReadStatusUpdate.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -247172,18 +230692,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ProcessMarkReadEventsRequest.verify = function verify(message, long) { + ProcessMarkReadEventsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.readStatusUpdate != null && message.hasOwnProperty("readStatusUpdate")) { if (!Array.isArray(message.readStatusUpdate)) return "readStatusUpdate: array expected"; for (let i = 0; i < message.readStatusUpdate.length; ++i) { - let error = $root.NotificationCenter.ReadStatusUpdate.verify(message.readStatusUpdate[i], long + 1); + let error = $root.NotificationCenter.ReadStatusUpdate.verify(message.readStatusUpdate[i]); if (error) return "readStatusUpdate." + error; } @@ -247199,13 +230715,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.ProcessMarkReadEventsRequest} ProcessMarkReadEventsRequest */ - ProcessMarkReadEventsRequest.fromObject = function fromObject(object, long) { + ProcessMarkReadEventsRequest.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.ProcessMarkReadEventsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.ProcessMarkReadEventsRequest(); if (object.readStatusUpdate) { if (!Array.isArray(object.readStatusUpdate)) @@ -247214,7 +230726,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { for (let i = 0; i < object.readStatusUpdate.length; ++i) { if (typeof object.readStatusUpdate[i] !== "object") throw TypeError(".NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: object expected"); - message.readStatusUpdate[i] = $root.NotificationCenter.ReadStatusUpdate.fromObject(object.readStatusUpdate[i], long + 1); + message.readStatusUpdate[i] = $root.NotificationCenter.ReadStatusUpdate.fromObject(object.readStatusUpdate[i]); } } return message; @@ -247229,20 +230741,16 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProcessMarkReadEventsRequest.toObject = function toObject(message, options, q) { + ProcessMarkReadEventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.readStatusUpdate = []; if (message.readStatusUpdate && message.readStatusUpdate.length) { object.readStatusUpdate = []; for (let j = 0; j < message.readStatusUpdate.length; ++j) - object.readStatusUpdate[j] = $root.NotificationCenter.ReadStatusUpdate.toObject(message.readStatusUpdate[j], options, q + 1); + object.readStatusUpdate[j] = $root.NotificationCenter.ReadStatusUpdate.toObject(message.readStatusUpdate[j], options); } return object; }; @@ -247303,7 +230811,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.deviceIDs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -247350,7 +230858,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * NotificationSendRequest _predefinedUid. + * @member {"predefinedUid"|undefined} _predefinedUid + * @memberof NotificationCenter.NotificationSendRequest + * @instance + */ Object.defineProperty(NotificationSendRequest.prototype, "_predefinedUid", { get: $util.oneOfGetter($oneOfFields = ["predefinedUid"]), set: $util.oneOfSetter($oneOfFields) @@ -247377,18 +230890,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationSendRequest.encode = function encode(message, writer, q) { + NotificationSendRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recipients != null && message.recipients.length) for (let i = 0; i < message.recipients.length; ++i) - $root.GraphSync.GraphSyncRef.encode(message.recipients[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncRef.encode(message.recipients[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) - $root.NotificationCenter.Notification.encode(message.notification, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.NotificationCenter.Notification.encode(message.notification, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.clientTypeIDs != null && message.clientTypeIDs.length) { writer.uint32(/* id 3, wireType 2 =*/26).fork(); for (let i = 0; i < message.clientTypeIDs.length; ++i) @@ -247430,27 +230939,21 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NotificationSendRequest.decode = function decode(reader, length, error, long) { + NotificationSendRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSendRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recipients && message.recipients.length)) message.recipients = []; - message.recipients.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32(), undefined, long + 1)); + message.recipients.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); break; } case 2: { - message.notification = $root.NotificationCenter.Notification.decode(reader, reader.uint32(), undefined, long + 1); + message.notification = $root.NotificationCenter.Notification.decode(reader, reader.uint32()); break; } case 3: { @@ -247480,7 +230983,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -247511,25 +231014,21 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NotificationSendRequest.verify = function verify(message, long) { + NotificationSendRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.recipients != null && message.hasOwnProperty("recipients")) { if (!Array.isArray(message.recipients)) return "recipients: array expected"; for (let i = 0; i < message.recipients.length; ++i) { - let error = $root.GraphSync.GraphSyncRef.verify(message.recipients[i], long + 1); + let error = $root.GraphSync.GraphSyncRef.verify(message.recipients[i]); if (error) return "recipients." + error; } } if (message.notification != null && message.hasOwnProperty("notification")) { - let error = $root.NotificationCenter.Notification.verify(message.notification, long + 1); + let error = $root.NotificationCenter.Notification.verify(message.notification); if (error) return "notification." + error; } @@ -247563,13 +231062,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.NotificationSendRequest} NotificationSendRequest */ - NotificationSendRequest.fromObject = function fromObject(object, long) { + NotificationSendRequest.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.NotificationSendRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.NotificationSendRequest(); if (object.recipients) { if (!Array.isArray(object.recipients)) @@ -247578,13 +231073,13 @@ export const NotificationCenter = $root.NotificationCenter = (() => { for (let i = 0; i < object.recipients.length; ++i) { if (typeof object.recipients[i] !== "object") throw TypeError(".NotificationCenter.NotificationSendRequest.recipients: object expected"); - message.recipients[i] = $root.GraphSync.GraphSyncRef.fromObject(object.recipients[i], long + 1); + message.recipients[i] = $root.GraphSync.GraphSyncRef.fromObject(object.recipients[i]); } } if (object.notification != null) { if (typeof object.notification !== "object") throw TypeError(".NotificationCenter.NotificationSendRequest.notification: object expected"); - message.notification = $root.NotificationCenter.Notification.fromObject(object.notification, long + 1); + message.notification = $root.NotificationCenter.Notification.fromObject(object.notification); } if (object.clientTypeIDs) { if (!Array.isArray(object.clientTypeIDs)) @@ -247599,7 +231094,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { message.deviceIDs = []; for (let i = 0; i < object.deviceIDs.length; ++i) if ($util.Long) - message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i], false); + (message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i])).unsigned = false; else if (typeof object.deviceIDs[i] === "string") message.deviceIDs[i] = parseInt(object.deviceIDs[i], 10); else if (typeof object.deviceIDs[i] === "number") @@ -247624,13 +231119,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationSendRequest.toObject = function toObject(message, options, q) { + NotificationSendRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.recipients = []; @@ -247642,10 +231133,10 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (message.recipients && message.recipients.length) { object.recipients = []; for (let j = 0; j < message.recipients.length; ++j) - object.recipients[j] = $root.GraphSync.GraphSyncRef.toObject(message.recipients[j], options, q + 1); + object.recipients[j] = $root.GraphSync.GraphSyncRef.toObject(message.recipients[j], options); } if (message.notification != null && message.hasOwnProperty("notification")) - object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options, q + 1); + object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options); if (message.clientTypeIDs && message.clientTypeIDs.length) { object.clientTypeIDs = []; for (let j = 0; j < message.clientTypeIDs.length; ++j) @@ -247654,9 +231145,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (message.deviceIDs && message.deviceIDs.length) { object.deviceIDs = []; for (let j = 0; j < message.deviceIDs.length; ++j) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.deviceIDs[j] = typeof message.deviceIDs[j] === "number" ? BigInt(message.deviceIDs[j]) : $util.Long.fromBits(message.deviceIDs[j].low >>> 0, message.deviceIDs[j].high >>> 0, false).toBigInt(); - else if (typeof message.deviceIDs[j] === "number") + if (typeof message.deviceIDs[j] === "number") object.deviceIDs[j] = options.longs === String ? String(message.deviceIDs[j]) : message.deviceIDs[j]; else object.deviceIDs[j] = options.longs === String ? $util.Long.prototype.toString.call(message.deviceIDs[j]) : options.longs === Number ? new $util.LongBits(message.deviceIDs[j].low >>> 0, message.deviceIDs[j].high >>> 0).toNumber() : message.deviceIDs[j]; @@ -247719,7 +231208,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.notifications = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -247752,16 +231241,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationsSendRequest.encode = function encode(message, writer, q) { + NotificationsSendRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.notifications != null && message.notifications.length) for (let i = 0; i < message.notifications.length; ++i) - $root.NotificationCenter.NotificationSendRequest.encode(message.notifications[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.NotificationCenter.NotificationSendRequest.encode(message.notifications[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -247789,27 +231274,21 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NotificationsSendRequest.decode = function decode(reader, length, error, long) { + NotificationsSendRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationsSendRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.notifications && message.notifications.length)) message.notifications = []; - message.notifications.push($root.NotificationCenter.NotificationSendRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.notifications.push($root.NotificationCenter.NotificationSendRequest.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -247840,18 +231319,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NotificationsSendRequest.verify = function verify(message, long) { + NotificationsSendRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.notifications != null && message.hasOwnProperty("notifications")) { if (!Array.isArray(message.notifications)) return "notifications: array expected"; for (let i = 0; i < message.notifications.length; ++i) { - let error = $root.NotificationCenter.NotificationSendRequest.verify(message.notifications[i], long + 1); + let error = $root.NotificationCenter.NotificationSendRequest.verify(message.notifications[i]); if (error) return "notifications." + error; } @@ -247867,13 +231342,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.NotificationsSendRequest} NotificationsSendRequest */ - NotificationsSendRequest.fromObject = function fromObject(object, long) { + NotificationsSendRequest.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.NotificationsSendRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.NotificationsSendRequest(); if (object.notifications) { if (!Array.isArray(object.notifications)) @@ -247882,7 +231353,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { for (let i = 0; i < object.notifications.length; ++i) { if (typeof object.notifications[i] !== "object") throw TypeError(".NotificationCenter.NotificationsSendRequest.notifications: object expected"); - message.notifications[i] = $root.NotificationCenter.NotificationSendRequest.fromObject(object.notifications[i], long + 1); + message.notifications[i] = $root.NotificationCenter.NotificationSendRequest.fromObject(object.notifications[i]); } } return message; @@ -247897,20 +231368,16 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationsSendRequest.toObject = function toObject(message, options, q) { + NotificationsSendRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.notifications = []; if (message.notifications && message.notifications.length) { object.notifications = []; for (let j = 0; j < message.notifications.length; ++j) - object.notifications[j] = $root.NotificationCenter.NotificationSendRequest.toObject(message.notifications[j], options, q + 1); + object.notifications[j] = $root.NotificationCenter.NotificationSendRequest.toObject(message.notifications[j], options); } return object; }; @@ -247964,7 +231431,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function NotificationSyncRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -247997,13 +231464,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationSyncRequest.encode = function encode(message, writer, q) { + NotificationSyncRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.syncPoint); return writer; @@ -248033,25 +231496,19 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NotificationSyncRequest.decode = function decode(reader, length, error, long) { + NotificationSyncRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSyncRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.syncPoint = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -248082,13 +231539,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NotificationSyncRequest.verify = function verify(message, long) { + NotificationSyncRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) if (!$util.isInteger(message.syncPoint) && !(message.syncPoint && $util.isInteger(message.syncPoint.low) && $util.isInteger(message.syncPoint.high))) return "syncPoint: integer|Long expected"; @@ -248103,17 +231556,13 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.NotificationSyncRequest} NotificationSyncRequest */ - NotificationSyncRequest.fromObject = function fromObject(object, long) { + NotificationSyncRequest.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.NotificationSyncRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.NotificationSyncRequest(); if (object.syncPoint != null) if ($util.Long) - message.syncPoint = $util.Long.fromValue(object.syncPoint, false); + (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; else if (typeof object.syncPoint === "string") message.syncPoint = parseInt(object.syncPoint, 10); else if (typeof object.syncPoint === "number") @@ -248132,24 +231581,18 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationSyncRequest.toObject = function toObject(message, options, q) { + NotificationSyncRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.syncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.syncPoint = options.longs === String ? "0" : 0; if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.syncPoint = typeof message.syncPoint === "number" ? BigInt(message.syncPoint) : $util.Long.fromBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0, false).toBigInt(); - else if (typeof message.syncPoint === "number") + if (typeof message.syncPoint === "number") object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; else object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; @@ -248206,7 +231649,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function SentNotification(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -248247,13 +231690,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SentNotification.encode = function encode(message, writer, q) { + SentNotification.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.user != null && Object.hasOwnProperty.call(message, "user")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.user); if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) @@ -248285,18 +231724,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SentNotification.decode = function decode(reader, length, error, long) { + SentNotification.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.SentNotification(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.user = reader.int32(); @@ -248307,7 +231740,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -248338,13 +231771,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SentNotification.verify = function verify(message, long) { + SentNotification.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.user != null && message.hasOwnProperty("user")) if (!$util.isInteger(message.user)) return "user: integer expected"; @@ -248362,13 +231791,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.SentNotification} SentNotification */ - SentNotification.fromObject = function fromObject(object, long) { + SentNotification.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.SentNotification) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.SentNotification(); if (object.user != null) message.user = object.user | 0; @@ -248389,13 +231814,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SentNotification.toObject = function toObject(message, options, q) { + SentNotification.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.user = 0; @@ -248465,7 +231886,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.notifications = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -248506,18 +231927,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NotificationsApprovalStatusUpdateRequest.encode = function encode(message, writer, q) { + NotificationsApprovalStatusUpdateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status); if (message.notifications != null && message.notifications.length) for (let i = 0; i < message.notifications.length; ++i) - $root.NotificationCenter.SentNotification.encode(message.notifications[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.NotificationCenter.SentNotification.encode(message.notifications[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -248545,18 +231962,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NotificationsApprovalStatusUpdateRequest.decode = function decode(reader, length, error, long) { + NotificationsApprovalStatusUpdateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.status = reader.int32(); @@ -248565,11 +231976,11 @@ export const NotificationCenter = $root.NotificationCenter = (() => { case 2: { if (!(message.notifications && message.notifications.length)) message.notifications = []; - message.notifications.push($root.NotificationCenter.SentNotification.decode(reader, reader.uint32(), undefined, long + 1)); + message.notifications.push($root.NotificationCenter.SentNotification.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -248600,13 +232011,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NotificationsApprovalStatusUpdateRequest.verify = function verify(message, long) { + NotificationsApprovalStatusUpdateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.status != null && message.hasOwnProperty("status")) switch (message.status) { default: @@ -248622,7 +232029,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (!Array.isArray(message.notifications)) return "notifications: array expected"; for (let i = 0; i < message.notifications.length; ++i) { - let error = $root.NotificationCenter.SentNotification.verify(message.notifications[i], long + 1); + let error = $root.NotificationCenter.SentNotification.verify(message.notifications[i]); if (error) return "notifications." + error; } @@ -248638,13 +232045,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {Object.} object Plain object * @returns {NotificationCenter.NotificationsApprovalStatusUpdateRequest} NotificationsApprovalStatusUpdateRequest */ - NotificationsApprovalStatusUpdateRequest.fromObject = function fromObject(object, long) { + NotificationsApprovalStatusUpdateRequest.fromObject = function fromObject(object) { if (object instanceof $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest(); switch (object.status) { default: @@ -248681,7 +232084,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { for (let i = 0; i < object.notifications.length; ++i) { if (typeof object.notifications[i] !== "object") throw TypeError(".NotificationCenter.NotificationsApprovalStatusUpdateRequest.notifications: object expected"); - message.notifications[i] = $root.NotificationCenter.SentNotification.fromObject(object.notifications[i], long + 1); + message.notifications[i] = $root.NotificationCenter.SentNotification.fromObject(object.notifications[i]); } } return message; @@ -248696,13 +232099,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NotificationsApprovalStatusUpdateRequest.toObject = function toObject(message, options, q) { + NotificationsApprovalStatusUpdateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.notifications = []; @@ -248713,7 +232112,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (message.notifications && message.notifications.length) { object.notifications = []; for (let j = 0; j < message.notifications.length; ++j) - object.notifications[j] = $root.NotificationCenter.SentNotification.toObject(message.notifications[j], options, q + 1); + object.notifications[j] = $root.NotificationCenter.SentNotification.toObject(message.notifications[j], options); } return object; }; @@ -248829,7 +232228,7 @@ export const GraphSync = $root.GraphSync = (() => { function GraphSyncRef(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -248878,13 +232277,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncRef.encode = function encode(message, writer, q) { + GraphSyncRef.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -248918,18 +232313,12 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncRef.decode = function decode(reader, length, error, long) { + GraphSyncRef.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncRef(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.type = reader.int32(); @@ -248944,7 +232333,7 @@ export const GraphSync = $root.GraphSync = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -248975,13 +232364,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncRef.verify = function verify(message, long) { + GraphSyncRef.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.type != null && message.hasOwnProperty("type")) switch (message.type) { default: @@ -249024,13 +232409,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncRef} GraphSyncRef */ - GraphSyncRef.fromObject = function fromObject(object, long) { + GraphSyncRef.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncRef) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncRef(); switch (object.type) { default: @@ -249135,13 +232516,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncRef.toObject = function toObject(message, options, q) { + GraphSyncRef.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.type = options.enums === String ? "RFT_GENERAL" : 0; @@ -249251,7 +232628,7 @@ export const GraphSync = $root.GraphSync = (() => { function GraphSyncActor(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -249308,13 +232685,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncActor.encode = function encode(message, writer, q) { + GraphSyncActor.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); if (message.id != null && Object.hasOwnProperty.call(message, "id")) @@ -249350,18 +232723,12 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncActor.decode = function decode(reader, length, error, long) { + GraphSyncActor.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncActor(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.type = reader.int32(); @@ -249380,7 +232747,7 @@ export const GraphSync = $root.GraphSync = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -249411,13 +232778,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncActor.verify = function verify(message, long) { + GraphSyncActor.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.type != null && message.hasOwnProperty("type")) switch (message.type) { default: @@ -249447,13 +232810,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncActor} GraphSyncActor */ - GraphSyncActor.fromObject = function fromObject(object, long) { + GraphSyncActor.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncActor) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncActor(); switch (object.type) { default: @@ -249499,13 +232858,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncActor.toObject = function toObject(message, options, q) { + GraphSyncActor.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.type = options.enums === String ? "GSA_USER" : 0; @@ -249589,7 +232944,7 @@ export const GraphSync = $root.GraphSync = (() => { function GraphSyncData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -249654,19 +233009,15 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncData.encode = function encode(message, writer, q) { + GraphSyncData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) - $root.GraphSync.GraphSyncRef.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncRef.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) - $root.GraphSync.GraphSyncRef.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncRef.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.content != null && Object.hasOwnProperty.call(message, "content")) writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.content); if (message.path != null && Object.hasOwnProperty.call(message, "path")) @@ -249698,29 +233049,23 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncData.decode = function decode(reader, length, error, long) { + GraphSyncData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.type = reader.int32(); break; } case 2: { - message.ref = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32(), undefined, long + 1); + message.ref = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); break; } case 3: { - message.parentRef = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32(), undefined, long + 1); + message.parentRef = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); break; } case 4: { @@ -249732,7 +233077,7 @@ export const GraphSync = $root.GraphSync = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -249763,13 +233108,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncData.verify = function verify(message, long) { + GraphSyncData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.type != null && message.hasOwnProperty("type")) switch (message.type) { default: @@ -249782,12 +233123,12 @@ export const GraphSync = $root.GraphSync = (() => { break; } if (message.ref != null && message.hasOwnProperty("ref")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.ref, long + 1); + let error = $root.GraphSync.GraphSyncRef.verify(message.ref); if (error) return "ref." + error; } if (message.parentRef != null && message.hasOwnProperty("parentRef")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.parentRef, long + 1); + let error = $root.GraphSync.GraphSyncRef.verify(message.parentRef); if (error) return "parentRef." + error; } @@ -249808,13 +233149,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncData} GraphSyncData */ - GraphSyncData.fromObject = function fromObject(object, long) { + GraphSyncData.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncData(); switch (object.type) { default: @@ -249847,12 +233184,12 @@ export const GraphSync = $root.GraphSync = (() => { if (object.ref != null) { if (typeof object.ref !== "object") throw TypeError(".GraphSync.GraphSyncData.ref: object expected"); - message.ref = $root.GraphSync.GraphSyncRef.fromObject(object.ref, long + 1); + message.ref = $root.GraphSync.GraphSyncRef.fromObject(object.ref); } if (object.parentRef != null) { if (typeof object.parentRef !== "object") throw TypeError(".GraphSync.GraphSyncData.parentRef: object expected"); - message.parentRef = $root.GraphSync.GraphSyncRef.fromObject(object.parentRef, long + 1); + message.parentRef = $root.GraphSync.GraphSyncRef.fromObject(object.parentRef); } if (object.content != null) if (typeof object.content === "string") @@ -249873,13 +233210,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncData.toObject = function toObject(message, options, q) { + GraphSyncData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.type = options.enums === String ? "GSE_DATA" : 0; @@ -249897,9 +233230,9 @@ export const GraphSync = $root.GraphSync = (() => { if (message.type != null && message.hasOwnProperty("type")) object.type = options.enums === String ? $root.GraphSync.GraphSyncDataType[message.type] === undefined ? message.type : $root.GraphSync.GraphSyncDataType[message.type] : message.type; if (message.ref != null && message.hasOwnProperty("ref")) - object.ref = $root.GraphSync.GraphSyncRef.toObject(message.ref, options, q + 1); + object.ref = $root.GraphSync.GraphSyncRef.toObject(message.ref, options); if (message.parentRef != null && message.hasOwnProperty("parentRef")) - object.parentRef = $root.GraphSync.GraphSyncRef.toObject(message.parentRef, options, q + 1); + object.parentRef = $root.GraphSync.GraphSyncRef.toObject(message.parentRef, options); if (message.content != null && message.hasOwnProperty("content")) object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; if (message.path != null && message.hasOwnProperty("path")) @@ -249958,7 +233291,7 @@ export const GraphSync = $root.GraphSync = (() => { function GraphSyncDataPlus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -250007,19 +233340,15 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncDataPlus.encode = function encode(message, writer, q) { + GraphSyncDataPlus.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.data != null && Object.hasOwnProperty.call(message, "data")) - $root.GraphSync.GraphSyncData.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncData.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.timestamp); if (message.actor != null && Object.hasOwnProperty.call(message, "actor")) - $root.GraphSync.GraphSyncActor.encode(message.actor, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncActor.encode(message.actor, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -250047,21 +233376,15 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncDataPlus.decode = function decode(reader, length, error, long) { + GraphSyncDataPlus.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncDataPlus(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.data = $root.GraphSync.GraphSyncData.decode(reader, reader.uint32(), undefined, long + 1); + message.data = $root.GraphSync.GraphSyncData.decode(reader, reader.uint32()); break; } case 2: { @@ -250069,11 +233392,11 @@ export const GraphSync = $root.GraphSync = (() => { break; } case 3: { - message.actor = $root.GraphSync.GraphSyncActor.decode(reader, reader.uint32(), undefined, long + 1); + message.actor = $root.GraphSync.GraphSyncActor.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -250104,15 +233427,11 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncDataPlus.verify = function verify(message, long) { + GraphSyncDataPlus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.data != null && message.hasOwnProperty("data")) { - let error = $root.GraphSync.GraphSyncData.verify(message.data, long + 1); + let error = $root.GraphSync.GraphSyncData.verify(message.data); if (error) return "data." + error; } @@ -250120,7 +233439,7 @@ export const GraphSync = $root.GraphSync = (() => { if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) return "timestamp: integer|Long expected"; if (message.actor != null && message.hasOwnProperty("actor")) { - let error = $root.GraphSync.GraphSyncActor.verify(message.actor, long + 1); + let error = $root.GraphSync.GraphSyncActor.verify(message.actor); if (error) return "actor." + error; } @@ -250135,22 +233454,18 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncDataPlus} GraphSyncDataPlus */ - GraphSyncDataPlus.fromObject = function fromObject(object, long) { + GraphSyncDataPlus.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncDataPlus) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncDataPlus(); if (object.data != null) { if (typeof object.data !== "object") throw TypeError(".GraphSync.GraphSyncDataPlus.data: object expected"); - message.data = $root.GraphSync.GraphSyncData.fromObject(object.data, long + 1); + message.data = $root.GraphSync.GraphSyncData.fromObject(object.data); } if (object.timestamp != null) if ($util.Long) - message.timestamp = $util.Long.fromValue(object.timestamp, false); + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; else if (typeof object.timestamp === "string") message.timestamp = parseInt(object.timestamp, 10); else if (typeof object.timestamp === "number") @@ -250160,7 +233475,7 @@ export const GraphSync = $root.GraphSync = (() => { if (object.actor != null) { if (typeof object.actor !== "object") throw TypeError(".GraphSync.GraphSyncDataPlus.actor: object expected"); - message.actor = $root.GraphSync.GraphSyncActor.fromObject(object.actor, long + 1); + message.actor = $root.GraphSync.GraphSyncActor.fromObject(object.actor); } return message; }; @@ -250174,34 +233489,28 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncDataPlus.toObject = function toObject(message, options, q) { + GraphSyncDataPlus.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.data = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.timestamp = options.longs === String ? "0" : 0; object.actor = null; } if (message.data != null && message.hasOwnProperty("data")) - object.data = $root.GraphSync.GraphSyncData.toObject(message.data, options, q + 1); + object.data = $root.GraphSync.GraphSyncData.toObject(message.data, options); if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, false).toBigInt(); - else if (typeof message.timestamp === "number") + if (typeof message.timestamp === "number") object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; if (message.actor != null && message.hasOwnProperty("actor")) - object.actor = $root.GraphSync.GraphSyncActor.toObject(message.actor, options, q + 1); + object.actor = $root.GraphSync.GraphSyncActor.toObject(message.actor, options); return object; }; @@ -250257,7 +233566,7 @@ export const GraphSync = $root.GraphSync = (() => { function GraphSyncQuery(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -250314,13 +233623,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncQuery.encode = function encode(message, writer, q) { + GraphSyncQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.streamId); if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) @@ -250356,18 +233661,12 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncQuery.decode = function decode(reader, length, error, long) { + GraphSyncQuery.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncQuery(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.streamId = reader.bytes(); @@ -250386,7 +233685,7 @@ export const GraphSync = $root.GraphSync = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -250417,13 +233716,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncQuery.verify = function verify(message, long) { + GraphSyncQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.streamId != null && message.hasOwnProperty("streamId")) if (!(message.streamId && typeof message.streamId.length === "number" || $util.isString(message.streamId))) return "streamId: buffer expected"; @@ -250447,13 +233742,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncQuery} GraphSyncQuery */ - GraphSyncQuery.fromObject = function fromObject(object, long) { + GraphSyncQuery.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncQuery) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncQuery(); if (object.streamId != null) if (typeof object.streamId === "string") @@ -250467,7 +233758,7 @@ export const GraphSync = $root.GraphSync = (() => { message.origin = object.origin; if (object.syncPoint != null) if ($util.Long) - message.syncPoint = $util.Long.fromValue(object.syncPoint, false); + (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; else if (typeof object.syncPoint === "string") message.syncPoint = parseInt(object.syncPoint, 10); else if (typeof object.syncPoint === "number") @@ -250488,13 +233779,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncQuery.toObject = function toObject(message, options, q) { + GraphSyncQuery.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -250513,9 +233800,9 @@ export const GraphSync = $root.GraphSync = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.syncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.syncPoint = options.longs === String ? "0" : 0; object.maxCount = 0; } if (message.streamId != null && message.hasOwnProperty("streamId")) @@ -250523,9 +233810,7 @@ export const GraphSync = $root.GraphSync = (() => { if (message.origin != null && message.hasOwnProperty("origin")) object.origin = options.bytes === String ? $util.base64.encode(message.origin, 0, message.origin.length) : options.bytes === Array ? Array.prototype.slice.call(message.origin) : message.origin; if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.syncPoint = typeof message.syncPoint === "number" ? BigInt(message.syncPoint) : $util.Long.fromBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0, false).toBigInt(); - else if (typeof message.syncPoint === "number") + if (typeof message.syncPoint === "number") object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; else object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; @@ -250587,7 +233872,7 @@ export const GraphSync = $root.GraphSync = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -250644,20 +233929,16 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncResult.encode = function encode(message, writer, q) { + GraphSyncResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.streamId); if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.syncPoint); if (message.data != null && message.data.length) for (let i = 0; i < message.data.length; ++i) - $root.GraphSync.GraphSyncDataPlus.encode(message.data[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncDataPlus.encode(message.data[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.hasMore); return writer; @@ -250687,18 +233968,12 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncResult.decode = function decode(reader, length, error, long) { + GraphSyncResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 2: { message.streamId = reader.bytes(); @@ -250711,7 +233986,7 @@ export const GraphSync = $root.GraphSync = (() => { case 4: { if (!(message.data && message.data.length)) message.data = []; - message.data.push($root.GraphSync.GraphSyncDataPlus.decode(reader, reader.uint32(), undefined, long + 1)); + message.data.push($root.GraphSync.GraphSyncDataPlus.decode(reader, reader.uint32())); break; } case 5: { @@ -250719,7 +233994,7 @@ export const GraphSync = $root.GraphSync = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -250750,13 +234025,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncResult.verify = function verify(message, long) { + GraphSyncResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.streamId != null && message.hasOwnProperty("streamId")) if (!(message.streamId && typeof message.streamId.length === "number" || $util.isString(message.streamId))) return "streamId: buffer expected"; @@ -250767,7 +234038,7 @@ export const GraphSync = $root.GraphSync = (() => { if (!Array.isArray(message.data)) return "data: array expected"; for (let i = 0; i < message.data.length; ++i) { - let error = $root.GraphSync.GraphSyncDataPlus.verify(message.data[i], long + 1); + let error = $root.GraphSync.GraphSyncDataPlus.verify(message.data[i]); if (error) return "data." + error; } @@ -250786,13 +234057,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncResult} GraphSyncResult */ - GraphSyncResult.fromObject = function fromObject(object, long) { + GraphSyncResult.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncResult(); if (object.streamId != null) if (typeof object.streamId === "string") @@ -250801,7 +234068,7 @@ export const GraphSync = $root.GraphSync = (() => { message.streamId = object.streamId; if (object.syncPoint != null) if ($util.Long) - message.syncPoint = $util.Long.fromValue(object.syncPoint, false); + (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; else if (typeof object.syncPoint === "string") message.syncPoint = parseInt(object.syncPoint, 10); else if (typeof object.syncPoint === "number") @@ -250815,7 +234082,7 @@ export const GraphSync = $root.GraphSync = (() => { for (let i = 0; i < object.data.length; ++i) { if (typeof object.data[i] !== "object") throw TypeError(".GraphSync.GraphSyncResult.data: object expected"); - message.data[i] = $root.GraphSync.GraphSyncDataPlus.fromObject(object.data[i], long + 1); + message.data[i] = $root.GraphSync.GraphSyncDataPlus.fromObject(object.data[i]); } } if (object.hasMore != null) @@ -250832,13 +234099,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncResult.toObject = function toObject(message, options, q) { + GraphSyncResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.data = []; @@ -250852,24 +234115,22 @@ export const GraphSync = $root.GraphSync = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.syncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.syncPoint = options.longs === String ? "0" : 0; object.hasMore = false; } if (message.streamId != null && message.hasOwnProperty("streamId")) object.streamId = options.bytes === String ? $util.base64.encode(message.streamId, 0, message.streamId.length) : options.bytes === Array ? Array.prototype.slice.call(message.streamId) : message.streamId; if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.syncPoint = typeof message.syncPoint === "number" ? BigInt(message.syncPoint) : $util.Long.fromBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0, false).toBigInt(); - else if (typeof message.syncPoint === "number") + if (typeof message.syncPoint === "number") object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; else object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; if (message.data && message.data.length) { object.data = []; for (let j = 0; j < message.data.length; ++j) - object.data[j] = $root.GraphSync.GraphSyncDataPlus.toObject(message.data[j], options, q + 1); + object.data[j] = $root.GraphSync.GraphSyncDataPlus.toObject(message.data[j], options); } if (message.hasMore != null && message.hasOwnProperty("hasMore")) object.hasMore = message.hasMore; @@ -250926,7 +234187,7 @@ export const GraphSync = $root.GraphSync = (() => { this.queries = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -250959,16 +234220,12 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncMultiQuery.encode = function encode(message, writer, q) { + GraphSyncMultiQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.queries != null && message.queries.length) for (let i = 0; i < message.queries.length; ++i) - $root.GraphSync.GraphSyncQuery.encode(message.queries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncQuery.encode(message.queries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -250996,27 +234253,21 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncMultiQuery.decode = function decode(reader, length, error, long) { + GraphSyncMultiQuery.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncMultiQuery(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.queries && message.queries.length)) message.queries = []; - message.queries.push($root.GraphSync.GraphSyncQuery.decode(reader, reader.uint32(), undefined, long + 1)); + message.queries.push($root.GraphSync.GraphSyncQuery.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -251047,18 +234298,14 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncMultiQuery.verify = function verify(message, long) { + GraphSyncMultiQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.queries != null && message.hasOwnProperty("queries")) { if (!Array.isArray(message.queries)) return "queries: array expected"; for (let i = 0; i < message.queries.length; ++i) { - let error = $root.GraphSync.GraphSyncQuery.verify(message.queries[i], long + 1); + let error = $root.GraphSync.GraphSyncQuery.verify(message.queries[i]); if (error) return "queries." + error; } @@ -251074,13 +234321,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncMultiQuery} GraphSyncMultiQuery */ - GraphSyncMultiQuery.fromObject = function fromObject(object, long) { + GraphSyncMultiQuery.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncMultiQuery) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncMultiQuery(); if (object.queries) { if (!Array.isArray(object.queries)) @@ -251089,7 +234332,7 @@ export const GraphSync = $root.GraphSync = (() => { for (let i = 0; i < object.queries.length; ++i) { if (typeof object.queries[i] !== "object") throw TypeError(".GraphSync.GraphSyncMultiQuery.queries: object expected"); - message.queries[i] = $root.GraphSync.GraphSyncQuery.fromObject(object.queries[i], long + 1); + message.queries[i] = $root.GraphSync.GraphSyncQuery.fromObject(object.queries[i]); } } return message; @@ -251104,20 +234347,16 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncMultiQuery.toObject = function toObject(message, options, q) { + GraphSyncMultiQuery.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.queries = []; if (message.queries && message.queries.length) { object.queries = []; for (let j = 0; j < message.queries.length; ++j) - object.queries[j] = $root.GraphSync.GraphSyncQuery.toObject(message.queries[j], options, q + 1); + object.queries[j] = $root.GraphSync.GraphSyncQuery.toObject(message.queries[j], options); } return object; }; @@ -251172,7 +234411,7 @@ export const GraphSync = $root.GraphSync = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -251205,16 +234444,12 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncMultiResult.encode = function encode(message, writer, q) { + GraphSyncMultiResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.GraphSync.GraphSyncResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -251242,27 +234477,21 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncMultiResult.decode = function decode(reader, length, error, long) { + GraphSyncMultiResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncMultiResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.results && message.results.length)) message.results = []; - message.results.push($root.GraphSync.GraphSyncResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.results.push($root.GraphSync.GraphSyncResult.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -251293,18 +234522,14 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncMultiResult.verify = function verify(message, long) { + GraphSyncMultiResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.results != null && message.hasOwnProperty("results")) { if (!Array.isArray(message.results)) return "results: array expected"; for (let i = 0; i < message.results.length; ++i) { - let error = $root.GraphSync.GraphSyncResult.verify(message.results[i], long + 1); + let error = $root.GraphSync.GraphSyncResult.verify(message.results[i]); if (error) return "results." + error; } @@ -251320,13 +234545,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncMultiResult} GraphSyncMultiResult */ - GraphSyncMultiResult.fromObject = function fromObject(object, long) { + GraphSyncMultiResult.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncMultiResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncMultiResult(); if (object.results) { if (!Array.isArray(object.results)) @@ -251335,7 +234556,7 @@ export const GraphSync = $root.GraphSync = (() => { for (let i = 0; i < object.results.length; ++i) { if (typeof object.results[i] !== "object") throw TypeError(".GraphSync.GraphSyncMultiResult.results: object expected"); - message.results[i] = $root.GraphSync.GraphSyncResult.fromObject(object.results[i], long + 1); + message.results[i] = $root.GraphSync.GraphSyncResult.fromObject(object.results[i]); } } return message; @@ -251350,20 +234571,16 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncMultiResult.toObject = function toObject(message, options, q) { + GraphSyncMultiResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.results = []; if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.GraphSync.GraphSyncResult.toObject(message.results[j], options, q + 1); + object.results[j] = $root.GraphSync.GraphSyncResult.toObject(message.results[j], options); } return object; }; @@ -251419,7 +234636,7 @@ export const GraphSync = $root.GraphSync = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -251460,18 +234677,14 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncAddDataRequest.encode = function encode(message, writer, q) { + GraphSyncAddDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) - $root.GraphSync.GraphSyncRef.encode(message.origin, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncRef.encode(message.origin, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.data != null && message.data.length) for (let i = 0; i < message.data.length; ++i) - $root.GraphSync.GraphSyncData.encode(message.data[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncData.encode(message.data[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -251499,31 +234712,25 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncAddDataRequest.decode = function decode(reader, length, error, long) { + GraphSyncAddDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncAddDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.origin = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32(), undefined, long + 1); + message.origin = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); break; } case 2: { if (!(message.data && message.data.length)) message.data = []; - message.data.push($root.GraphSync.GraphSyncData.decode(reader, reader.uint32(), undefined, long + 1)); + message.data.push($root.GraphSync.GraphSyncData.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -251554,15 +234761,11 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncAddDataRequest.verify = function verify(message, long) { + GraphSyncAddDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.origin != null && message.hasOwnProperty("origin")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.origin, long + 1); + let error = $root.GraphSync.GraphSyncRef.verify(message.origin); if (error) return "origin." + error; } @@ -251570,7 +234773,7 @@ export const GraphSync = $root.GraphSync = (() => { if (!Array.isArray(message.data)) return "data: array expected"; for (let i = 0; i < message.data.length; ++i) { - let error = $root.GraphSync.GraphSyncData.verify(message.data[i], long + 1); + let error = $root.GraphSync.GraphSyncData.verify(message.data[i]); if (error) return "data." + error; } @@ -251586,18 +234789,14 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncAddDataRequest} GraphSyncAddDataRequest */ - GraphSyncAddDataRequest.fromObject = function fromObject(object, long) { + GraphSyncAddDataRequest.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncAddDataRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncAddDataRequest(); if (object.origin != null) { if (typeof object.origin !== "object") throw TypeError(".GraphSync.GraphSyncAddDataRequest.origin: object expected"); - message.origin = $root.GraphSync.GraphSyncRef.fromObject(object.origin, long + 1); + message.origin = $root.GraphSync.GraphSyncRef.fromObject(object.origin); } if (object.data) { if (!Array.isArray(object.data)) @@ -251606,7 +234805,7 @@ export const GraphSync = $root.GraphSync = (() => { for (let i = 0; i < object.data.length; ++i) { if (typeof object.data[i] !== "object") throw TypeError(".GraphSync.GraphSyncAddDataRequest.data: object expected"); - message.data[i] = $root.GraphSync.GraphSyncData.fromObject(object.data[i], long + 1); + message.data[i] = $root.GraphSync.GraphSyncData.fromObject(object.data[i]); } } return message; @@ -251621,24 +234820,20 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncAddDataRequest.toObject = function toObject(message, options, q) { + GraphSyncAddDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.data = []; if (options.defaults) object.origin = null; if (message.origin != null && message.hasOwnProperty("origin")) - object.origin = $root.GraphSync.GraphSyncRef.toObject(message.origin, options, q + 1); + object.origin = $root.GraphSync.GraphSyncRef.toObject(message.origin, options); if (message.data && message.data.length) { object.data = []; for (let j = 0; j < message.data.length; ++j) - object.data[j] = $root.GraphSync.GraphSyncData.toObject(message.data[j], options, q + 1); + object.data[j] = $root.GraphSync.GraphSyncData.toObject(message.data[j], options); } return object; }; @@ -251693,7 +234888,7 @@ export const GraphSync = $root.GraphSync = (() => { this.vertices = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -251726,13 +234921,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncLeafsQuery.encode = function encode(message, writer, q) { + GraphSyncLeafsQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.vertices != null && message.vertices.length) for (let i = 0; i < message.vertices.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.vertices[i]); @@ -251763,18 +234954,12 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncLeafsQuery.decode = function decode(reader, length, error, long) { + GraphSyncLeafsQuery.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncLeafsQuery(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 2: { if (!(message.vertices && message.vertices.length)) @@ -251783,7 +234968,7 @@ export const GraphSync = $root.GraphSync = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -251814,13 +234999,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncLeafsQuery.verify = function verify(message, long) { + GraphSyncLeafsQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.vertices != null && message.hasOwnProperty("vertices")) { if (!Array.isArray(message.vertices)) return "vertices: array expected"; @@ -251839,13 +235020,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncLeafsQuery} GraphSyncLeafsQuery */ - GraphSyncLeafsQuery.fromObject = function fromObject(object, long) { + GraphSyncLeafsQuery.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncLeafsQuery) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncLeafsQuery(); if (object.vertices) { if (!Array.isArray(object.vertices)) @@ -251869,13 +235046,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncLeafsQuery.toObject = function toObject(message, options, q) { + GraphSyncLeafsQuery.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.vertices = []; @@ -251937,7 +235110,7 @@ export const GraphSync = $root.GraphSync = (() => { this.refs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -251970,16 +235143,12 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GraphSyncRefsResult.encode = function encode(message, writer, q) { + GraphSyncRefsResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.refs != null && message.refs.length) for (let i = 0; i < message.refs.length; ++i) - $root.GraphSync.GraphSyncRef.encode(message.refs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.GraphSync.GraphSyncRef.encode(message.refs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -252007,27 +235176,21 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GraphSyncRefsResult.decode = function decode(reader, length, error, long) { + GraphSyncRefsResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncRefsResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.refs && message.refs.length)) message.refs = []; - message.refs.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32(), undefined, long + 1)); + message.refs.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -252058,18 +235221,14 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GraphSyncRefsResult.verify = function verify(message, long) { + GraphSyncRefsResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.refs != null && message.hasOwnProperty("refs")) { if (!Array.isArray(message.refs)) return "refs: array expected"; for (let i = 0; i < message.refs.length; ++i) { - let error = $root.GraphSync.GraphSyncRef.verify(message.refs[i], long + 1); + let error = $root.GraphSync.GraphSyncRef.verify(message.refs[i]); if (error) return "refs." + error; } @@ -252085,13 +235244,9 @@ export const GraphSync = $root.GraphSync = (() => { * @param {Object.} object Plain object * @returns {GraphSync.GraphSyncRefsResult} GraphSyncRefsResult */ - GraphSyncRefsResult.fromObject = function fromObject(object, long) { + GraphSyncRefsResult.fromObject = function fromObject(object) { if (object instanceof $root.GraphSync.GraphSyncRefsResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.GraphSync.GraphSyncRefsResult(); if (object.refs) { if (!Array.isArray(object.refs)) @@ -252100,7 +235255,7 @@ export const GraphSync = $root.GraphSync = (() => { for (let i = 0; i < object.refs.length; ++i) { if (typeof object.refs[i] !== "object") throw TypeError(".GraphSync.GraphSyncRefsResult.refs: object expected"); - message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i], long + 1); + message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i]); } } return message; @@ -252115,20 +235270,16 @@ export const GraphSync = $root.GraphSync = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GraphSyncRefsResult.toObject = function toObject(message, options, q) { + GraphSyncRefsResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.refs = []; if (message.refs && message.refs.length) { object.refs = []; for (let j = 0; j < message.refs.length; ++j) - object.refs[j] = $root.GraphSync.GraphSyncRef.toObject(message.refs[j], options, q + 1); + object.refs[j] = $root.GraphSync.GraphSyncRef.toObject(message.refs[j], options); } return object; }; @@ -252250,7 +235401,7 @@ export const Dag = $root.Dag = (() => { function Ref(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -252299,13 +235450,9 @@ export const Dag = $root.Dag = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Ref.encode = function encode(message, writer, q) { + Ref.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -252339,18 +235486,12 @@ export const Dag = $root.Dag = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Ref.decode = function decode(reader, length, error, long) { + Ref.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Dag.Ref(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.type = reader.int32(); @@ -252365,7 +235506,7 @@ export const Dag = $root.Dag = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -252396,13 +235537,9 @@ export const Dag = $root.Dag = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Ref.verify = function verify(message, long) { + Ref.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.type != null && message.hasOwnProperty("type")) switch (message.type) { default: @@ -252436,13 +235573,9 @@ export const Dag = $root.Dag = (() => { * @param {Object.} object Plain object * @returns {Dag.Ref} Ref */ - Ref.fromObject = function fromObject(object, long) { + Ref.fromObject = function fromObject(object) { if (object instanceof $root.Dag.Ref) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Dag.Ref(); switch (object.type) { default: @@ -252511,13 +235644,9 @@ export const Dag = $root.Dag = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Ref.toObject = function toObject(message, options, q) { + Ref.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.type = options.enums === String ? "GENERAL" : 0; @@ -252592,7 +235721,7 @@ export const Dag = $root.Dag = (() => { function Data(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -252657,19 +235786,15 @@ export const Dag = $root.Dag = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Data.encode = function encode(message, writer, q) { + Data.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.dataType != null && Object.hasOwnProperty.call(message, "dataType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.dataType); if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) - $root.Dag.Ref.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Dag.Ref.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) - $root.Dag.Ref.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Dag.Ref.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.content != null && Object.hasOwnProperty.call(message, "content")) writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.content); if (message.path != null && Object.hasOwnProperty.call(message, "path")) @@ -252701,29 +235826,23 @@ export const Dag = $root.Dag = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Data.decode = function decode(reader, length, error, long) { + Data.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Dag.Data(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.dataType = reader.int32(); break; } case 2: { - message.ref = $root.Dag.Ref.decode(reader, reader.uint32(), undefined, long + 1); + message.ref = $root.Dag.Ref.decode(reader, reader.uint32()); break; } case 3: { - message.parentRef = $root.Dag.Ref.decode(reader, reader.uint32(), undefined, long + 1); + message.parentRef = $root.Dag.Ref.decode(reader, reader.uint32()); break; } case 4: { @@ -252735,7 +235854,7 @@ export const Dag = $root.Dag = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -252766,13 +235885,9 @@ export const Dag = $root.Dag = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Data.verify = function verify(message, long) { + Data.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.dataType != null && message.hasOwnProperty("dataType")) switch (message.dataType) { default: @@ -252787,12 +235902,12 @@ export const Dag = $root.Dag = (() => { break; } if (message.ref != null && message.hasOwnProperty("ref")) { - let error = $root.Dag.Ref.verify(message.ref, long + 1); + let error = $root.Dag.Ref.verify(message.ref); if (error) return "ref." + error; } if (message.parentRef != null && message.hasOwnProperty("parentRef")) { - let error = $root.Dag.Ref.verify(message.parentRef, long + 1); + let error = $root.Dag.Ref.verify(message.parentRef); if (error) return "parentRef." + error; } @@ -252813,13 +235928,9 @@ export const Dag = $root.Dag = (() => { * @param {Object.} object Plain object * @returns {Dag.Data} Data */ - Data.fromObject = function fromObject(object, long) { + Data.fromObject = function fromObject(object) { if (object instanceof $root.Dag.Data) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Dag.Data(); switch (object.dataType) { default: @@ -252860,12 +235971,12 @@ export const Dag = $root.Dag = (() => { if (object.ref != null) { if (typeof object.ref !== "object") throw TypeError(".Dag.Data.ref: object expected"); - message.ref = $root.Dag.Ref.fromObject(object.ref, long + 1); + message.ref = $root.Dag.Ref.fromObject(object.ref); } if (object.parentRef != null) { if (typeof object.parentRef !== "object") throw TypeError(".Dag.Data.parentRef: object expected"); - message.parentRef = $root.Dag.Ref.fromObject(object.parentRef, long + 1); + message.parentRef = $root.Dag.Ref.fromObject(object.parentRef); } if (object.content != null) if (typeof object.content === "string") @@ -252886,13 +235997,9 @@ export const Dag = $root.Dag = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Data.toObject = function toObject(message, options, q) { + Data.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.dataType = options.enums === String ? "DATA" : 0; @@ -252910,9 +236017,9 @@ export const Dag = $root.Dag = (() => { if (message.dataType != null && message.hasOwnProperty("dataType")) object.dataType = options.enums === String ? $root.Dag.DataType[message.dataType] === undefined ? message.dataType : $root.Dag.DataType[message.dataType] : message.dataType; if (message.ref != null && message.hasOwnProperty("ref")) - object.ref = $root.Dag.Ref.toObject(message.ref, options, q + 1); + object.ref = $root.Dag.Ref.toObject(message.ref, options); if (message.parentRef != null && message.hasOwnProperty("parentRef")) - object.parentRef = $root.Dag.Ref.toObject(message.parentRef, options, q + 1); + object.parentRef = $root.Dag.Ref.toObject(message.parentRef, options); if (message.content != null && message.hasOwnProperty("content")) object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; if (message.path != null && message.hasOwnProperty("path")) @@ -252972,7 +236079,7 @@ export const Dag = $root.Dag = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -253021,16 +236128,12 @@ export const Dag = $root.Dag = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SyncData.encode = function encode(message, writer, q) { + SyncData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.data != null && message.data.length) for (let i = 0; i < message.data.length; ++i) - $root.Dag.Data.encode(message.data[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Dag.Data.encode(message.data[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.syncPoint); if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) @@ -253062,23 +236165,17 @@ export const Dag = $root.Dag = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SyncData.decode = function decode(reader, length, error, long) { + SyncData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Dag.SyncData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.data && message.data.length)) message.data = []; - message.data.push($root.Dag.Data.decode(reader, reader.uint32(), undefined, long + 1)); + message.data.push($root.Dag.Data.decode(reader, reader.uint32())); break; } case 2: { @@ -253090,7 +236187,7 @@ export const Dag = $root.Dag = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -253121,18 +236218,14 @@ export const Dag = $root.Dag = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SyncData.verify = function verify(message, long) { + SyncData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.data != null && message.hasOwnProperty("data")) { if (!Array.isArray(message.data)) return "data: array expected"; for (let i = 0; i < message.data.length; ++i) { - let error = $root.Dag.Data.verify(message.data[i], long + 1); + let error = $root.Dag.Data.verify(message.data[i]); if (error) return "data." + error; } @@ -253154,13 +236247,9 @@ export const Dag = $root.Dag = (() => { * @param {Object.} object Plain object * @returns {Dag.SyncData} SyncData */ - SyncData.fromObject = function fromObject(object, long) { + SyncData.fromObject = function fromObject(object) { if (object instanceof $root.Dag.SyncData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Dag.SyncData(); if (object.data) { if (!Array.isArray(object.data)) @@ -253169,12 +236258,12 @@ export const Dag = $root.Dag = (() => { for (let i = 0; i < object.data.length; ++i) { if (typeof object.data[i] !== "object") throw TypeError(".Dag.SyncData.data: object expected"); - message.data[i] = $root.Dag.Data.fromObject(object.data[i], long + 1); + message.data[i] = $root.Dag.Data.fromObject(object.data[i]); } } if (object.syncPoint != null) if ($util.Long) - message.syncPoint = $util.Long.fromValue(object.syncPoint, false); + (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; else if (typeof object.syncPoint === "string") message.syncPoint = parseInt(object.syncPoint, 10); else if (typeof object.syncPoint === "number") @@ -253195,33 +236284,27 @@ export const Dag = $root.Dag = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SyncData.toObject = function toObject(message, options, q) { + SyncData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.data = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.syncPoint = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.syncPoint = options.longs === String ? "0" : 0; object.hasMore = false; } if (message.data && message.data.length) { object.data = []; for (let j = 0; j < message.data.length; ++j) - object.data[j] = $root.Dag.Data.toObject(message.data[j], options, q + 1); + object.data[j] = $root.Dag.Data.toObject(message.data[j], options); } if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.syncPoint = typeof message.syncPoint === "number" ? BigInt(message.syncPoint) : $util.Long.fromBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0, false).toBigInt(); - else if (typeof message.syncPoint === "number") + if (typeof message.syncPoint === "number") object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; else object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; @@ -253282,7 +236365,7 @@ export const Dag = $root.Dag = (() => { function DebugData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -253339,19 +236422,15 @@ export const Dag = $root.Dag = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DebugData.encode = function encode(message, writer, q) { + DebugData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.dataType != null && Object.hasOwnProperty.call(message, "dataType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataType); if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) - $root.Dag.DebugRefInfo.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Dag.DebugRefInfo.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) - $root.Dag.DebugRefInfo.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.Dag.DebugRefInfo.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.path); return writer; @@ -253381,18 +236460,12 @@ export const Dag = $root.Dag = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DebugData.decode = function decode(reader, length, error, long) { + DebugData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Dag.DebugData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.dataType = reader.string(); @@ -253403,15 +236476,15 @@ export const Dag = $root.Dag = (() => { break; } case 2: { - message.ref = $root.Dag.DebugRefInfo.decode(reader, reader.uint32(), undefined, long + 1); + message.ref = $root.Dag.DebugRefInfo.decode(reader, reader.uint32()); break; } case 3: { - message.parentRef = $root.Dag.DebugRefInfo.decode(reader, reader.uint32(), undefined, long + 1); + message.parentRef = $root.Dag.DebugRefInfo.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -253442,13 +236515,9 @@ export const Dag = $root.Dag = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DebugData.verify = function verify(message, long) { + DebugData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.dataType != null && message.hasOwnProperty("dataType")) if (!$util.isString(message.dataType)) return "dataType: string expected"; @@ -253456,12 +236525,12 @@ export const Dag = $root.Dag = (() => { if (!$util.isString(message.path)) return "path: string expected"; if (message.ref != null && message.hasOwnProperty("ref")) { - let error = $root.Dag.DebugRefInfo.verify(message.ref, long + 1); + let error = $root.Dag.DebugRefInfo.verify(message.ref); if (error) return "ref." + error; } if (message.parentRef != null && message.hasOwnProperty("parentRef")) { - let error = $root.Dag.DebugRefInfo.verify(message.parentRef, long + 1); + let error = $root.Dag.DebugRefInfo.verify(message.parentRef); if (error) return "parentRef." + error; } @@ -253476,13 +236545,9 @@ export const Dag = $root.Dag = (() => { * @param {Object.} object Plain object * @returns {Dag.DebugData} DebugData */ - DebugData.fromObject = function fromObject(object, long) { + DebugData.fromObject = function fromObject(object) { if (object instanceof $root.Dag.DebugData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Dag.DebugData(); if (object.dataType != null) message.dataType = String(object.dataType); @@ -253491,12 +236556,12 @@ export const Dag = $root.Dag = (() => { if (object.ref != null) { if (typeof object.ref !== "object") throw TypeError(".Dag.DebugData.ref: object expected"); - message.ref = $root.Dag.DebugRefInfo.fromObject(object.ref, long + 1); + message.ref = $root.Dag.DebugRefInfo.fromObject(object.ref); } if (object.parentRef != null) { if (typeof object.parentRef !== "object") throw TypeError(".Dag.DebugData.parentRef: object expected"); - message.parentRef = $root.Dag.DebugRefInfo.fromObject(object.parentRef, long + 1); + message.parentRef = $root.Dag.DebugRefInfo.fromObject(object.parentRef); } return message; }; @@ -253510,13 +236575,9 @@ export const Dag = $root.Dag = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DebugData.toObject = function toObject(message, options, q) { + DebugData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.dataType = ""; @@ -253527,9 +236588,9 @@ export const Dag = $root.Dag = (() => { if (message.dataType != null && message.hasOwnProperty("dataType")) object.dataType = message.dataType; if (message.ref != null && message.hasOwnProperty("ref")) - object.ref = $root.Dag.DebugRefInfo.toObject(message.ref, options, q + 1); + object.ref = $root.Dag.DebugRefInfo.toObject(message.ref, options); if (message.parentRef != null && message.hasOwnProperty("parentRef")) - object.parentRef = $root.Dag.DebugRefInfo.toObject(message.parentRef, options, q + 1); + object.parentRef = $root.Dag.DebugRefInfo.toObject(message.parentRef, options); if (message.path != null && message.hasOwnProperty("path")) object.path = message.path; return object; @@ -253585,7 +236646,7 @@ export const Dag = $root.Dag = (() => { function DebugRefInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -253626,13 +236687,9 @@ export const Dag = $root.Dag = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DebugRefInfo.encode = function encode(message, writer, q) { + DebugRefInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.refType != null && Object.hasOwnProperty.call(message, "refType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.refType); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -253664,18 +236721,12 @@ export const Dag = $root.Dag = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DebugRefInfo.decode = function decode(reader, length, error, long) { + DebugRefInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Dag.DebugRefInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.refType = reader.string(); @@ -253686,7 +236737,7 @@ export const Dag = $root.Dag = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -253717,13 +236768,9 @@ export const Dag = $root.Dag = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DebugRefInfo.verify = function verify(message, long) { + DebugRefInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.refType != null && message.hasOwnProperty("refType")) if (!$util.isString(message.refType)) return "refType: string expected"; @@ -253741,13 +236788,9 @@ export const Dag = $root.Dag = (() => { * @param {Object.} object Plain object * @returns {Dag.DebugRefInfo} DebugRefInfo */ - DebugRefInfo.fromObject = function fromObject(object, long) { + DebugRefInfo.fromObject = function fromObject(object) { if (object instanceof $root.Dag.DebugRefInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Dag.DebugRefInfo(); if (object.refType != null) message.refType = String(object.refType); @@ -253768,13 +236811,9 @@ export const Dag = $root.Dag = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DebugRefInfo.toObject = function toObject(message, options, q) { + DebugRefInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.refType = ""; @@ -253953,7 +236992,7 @@ export const record = $root.record = (() => { this.revokeSharingPermissions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -254012,22 +237051,18 @@ export const record = $root.record = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Request.encode = function encode(message, writer, q) { + Request.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.createSharingPermissions != null && message.createSharingPermissions.length) for (let i = 0; i < message.createSharingPermissions.length; ++i) - $root.record.v3.sharing.Permissions.encode(message.createSharingPermissions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.record.v3.sharing.Permissions.encode(message.createSharingPermissions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateSharingPermissions != null && message.updateSharingPermissions.length) for (let i = 0; i < message.updateSharingPermissions.length; ++i) - $root.record.v3.sharing.Permissions.encode(message.updateSharingPermissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.record.v3.sharing.Permissions.encode(message.updateSharingPermissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.revokeSharingPermissions != null && message.revokeSharingPermissions.length) for (let i = 0; i < message.revokeSharingPermissions.length; ++i) - $root.record.v3.sharing.Permissions.encode(message.revokeSharingPermissions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.record.v3.sharing.Permissions.encode(message.revokeSharingPermissions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.echo != null && Object.hasOwnProperty.call(message, "echo")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.echo); return writer; @@ -254057,35 +237092,29 @@ export const record = $root.record = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Request.decode = function decode(reader, length, error, long) { + Request.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.Request(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.createSharingPermissions && message.createSharingPermissions.length)) message.createSharingPermissions = []; - message.createSharingPermissions.push($root.record.v3.sharing.Permissions.decode(reader, reader.uint32(), undefined, long + 1)); + message.createSharingPermissions.push($root.record.v3.sharing.Permissions.decode(reader, reader.uint32())); break; } case 2: { if (!(message.updateSharingPermissions && message.updateSharingPermissions.length)) message.updateSharingPermissions = []; - message.updateSharingPermissions.push($root.record.v3.sharing.Permissions.decode(reader, reader.uint32(), undefined, long + 1)); + message.updateSharingPermissions.push($root.record.v3.sharing.Permissions.decode(reader, reader.uint32())); break; } case 3: { if (!(message.revokeSharingPermissions && message.revokeSharingPermissions.length)) message.revokeSharingPermissions = []; - message.revokeSharingPermissions.push($root.record.v3.sharing.Permissions.decode(reader, reader.uint32(), undefined, long + 1)); + message.revokeSharingPermissions.push($root.record.v3.sharing.Permissions.decode(reader, reader.uint32())); break; } case 4: { @@ -254093,7 +237122,7 @@ export const record = $root.record = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -254124,18 +237153,14 @@ export const record = $root.record = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Request.verify = function verify(message, long) { + Request.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.createSharingPermissions != null && message.hasOwnProperty("createSharingPermissions")) { if (!Array.isArray(message.createSharingPermissions)) return "createSharingPermissions: array expected"; for (let i = 0; i < message.createSharingPermissions.length; ++i) { - let error = $root.record.v3.sharing.Permissions.verify(message.createSharingPermissions[i], long + 1); + let error = $root.record.v3.sharing.Permissions.verify(message.createSharingPermissions[i]); if (error) return "createSharingPermissions." + error; } @@ -254144,7 +237169,7 @@ export const record = $root.record = (() => { if (!Array.isArray(message.updateSharingPermissions)) return "updateSharingPermissions: array expected"; for (let i = 0; i < message.updateSharingPermissions.length; ++i) { - let error = $root.record.v3.sharing.Permissions.verify(message.updateSharingPermissions[i], long + 1); + let error = $root.record.v3.sharing.Permissions.verify(message.updateSharingPermissions[i]); if (error) return "updateSharingPermissions." + error; } @@ -254153,7 +237178,7 @@ export const record = $root.record = (() => { if (!Array.isArray(message.revokeSharingPermissions)) return "revokeSharingPermissions: array expected"; for (let i = 0; i < message.revokeSharingPermissions.length; ++i) { - let error = $root.record.v3.sharing.Permissions.verify(message.revokeSharingPermissions[i], long + 1); + let error = $root.record.v3.sharing.Permissions.verify(message.revokeSharingPermissions[i]); if (error) return "revokeSharingPermissions." + error; } @@ -254172,13 +237197,9 @@ export const record = $root.record = (() => { * @param {Object.} object Plain object * @returns {record.v3.sharing.Request} Request */ - Request.fromObject = function fromObject(object, long) { + Request.fromObject = function fromObject(object) { if (object instanceof $root.record.v3.sharing.Request) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.record.v3.sharing.Request(); if (object.createSharingPermissions) { if (!Array.isArray(object.createSharingPermissions)) @@ -254187,7 +237208,7 @@ export const record = $root.record = (() => { for (let i = 0; i < object.createSharingPermissions.length; ++i) { if (typeof object.createSharingPermissions[i] !== "object") throw TypeError(".record.v3.sharing.Request.createSharingPermissions: object expected"); - message.createSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.createSharingPermissions[i], long + 1); + message.createSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.createSharingPermissions[i]); } } if (object.updateSharingPermissions) { @@ -254197,7 +237218,7 @@ export const record = $root.record = (() => { for (let i = 0; i < object.updateSharingPermissions.length; ++i) { if (typeof object.updateSharingPermissions[i] !== "object") throw TypeError(".record.v3.sharing.Request.updateSharingPermissions: object expected"); - message.updateSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.updateSharingPermissions[i], long + 1); + message.updateSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.updateSharingPermissions[i]); } } if (object.revokeSharingPermissions) { @@ -254207,7 +237228,7 @@ export const record = $root.record = (() => { for (let i = 0; i < object.revokeSharingPermissions.length; ++i) { if (typeof object.revokeSharingPermissions[i] !== "object") throw TypeError(".record.v3.sharing.Request.revokeSharingPermissions: object expected"); - message.revokeSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.revokeSharingPermissions[i], long + 1); + message.revokeSharingPermissions[i] = $root.record.v3.sharing.Permissions.fromObject(object.revokeSharingPermissions[i]); } } if (object.echo != null) @@ -254224,13 +237245,9 @@ export const record = $root.record = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Request.toObject = function toObject(message, options, q) { + Request.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.createSharingPermissions = []; @@ -254242,17 +237259,17 @@ export const record = $root.record = (() => { if (message.createSharingPermissions && message.createSharingPermissions.length) { object.createSharingPermissions = []; for (let j = 0; j < message.createSharingPermissions.length; ++j) - object.createSharingPermissions[j] = $root.record.v3.sharing.Permissions.toObject(message.createSharingPermissions[j], options, q + 1); + object.createSharingPermissions[j] = $root.record.v3.sharing.Permissions.toObject(message.createSharingPermissions[j], options); } if (message.updateSharingPermissions && message.updateSharingPermissions.length) { object.updateSharingPermissions = []; for (let j = 0; j < message.updateSharingPermissions.length; ++j) - object.updateSharingPermissions[j] = $root.record.v3.sharing.Permissions.toObject(message.updateSharingPermissions[j], options, q + 1); + object.updateSharingPermissions[j] = $root.record.v3.sharing.Permissions.toObject(message.updateSharingPermissions[j], options); } if (message.revokeSharingPermissions && message.revokeSharingPermissions.length) { object.revokeSharingPermissions = []; for (let j = 0; j < message.revokeSharingPermissions.length; ++j) - object.revokeSharingPermissions[j] = $root.record.v3.sharing.Permissions.toObject(message.revokeSharingPermissions[j], options, q + 1); + object.revokeSharingPermissions[j] = $root.record.v3.sharing.Permissions.toObject(message.revokeSharingPermissions[j], options); } if (message.echo != null && message.hasOwnProperty("echo")) object.echo = message.echo; @@ -254313,7 +237330,7 @@ export const record = $root.record = (() => { function Permissions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -254379,13 +237396,9 @@ export const record = $root.record = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Permissions.encode = function encode(message, writer, q) { + Permissions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recipientUid != null && Object.hasOwnProperty.call(message, "recipientUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recipientUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -254395,7 +237408,7 @@ export const record = $root.record = (() => { if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useEccKey); if (message.rules != null && Object.hasOwnProperty.call(message, "rules")) - $root.Folder.RecordAccessData.encode(message.rules, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.Folder.RecordAccessData.encode(message.rules, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -254423,18 +237436,12 @@ export const record = $root.record = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Permissions.decode = function decode(reader, length, error, long) { + Permissions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.Permissions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recipientUid = reader.bytes(); @@ -254453,11 +237460,11 @@ export const record = $root.record = (() => { break; } case 6: { - message.rules = $root.Folder.RecordAccessData.decode(reader, reader.uint32(), undefined, long + 1); + message.rules = $root.Folder.RecordAccessData.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -254488,13 +237495,9 @@ export const record = $root.record = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Permissions.verify = function verify(message, long) { + Permissions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recipientUid != null && message.hasOwnProperty("recipientUid")) if (!(message.recipientUid && typeof message.recipientUid.length === "number" || $util.isString(message.recipientUid))) return "recipientUid: buffer expected"; @@ -254508,7 +237511,7 @@ export const record = $root.record = (() => { if (typeof message.useEccKey !== "boolean") return "useEccKey: boolean expected"; if (message.rules != null && message.hasOwnProperty("rules")) { - let error = $root.Folder.RecordAccessData.verify(message.rules, long + 1); + let error = $root.Folder.RecordAccessData.verify(message.rules); if (error) return "rules." + error; } @@ -254523,13 +237526,9 @@ export const record = $root.record = (() => { * @param {Object.} object Plain object * @returns {record.v3.sharing.Permissions} Permissions */ - Permissions.fromObject = function fromObject(object, long) { + Permissions.fromObject = function fromObject(object) { if (object instanceof $root.record.v3.sharing.Permissions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.record.v3.sharing.Permissions(); if (object.recipientUid != null) if (typeof object.recipientUid === "string") @@ -254551,7 +237550,7 @@ export const record = $root.record = (() => { if (object.rules != null) { if (typeof object.rules !== "object") throw TypeError(".record.v3.sharing.Permissions.rules: object expected"); - message.rules = $root.Folder.RecordAccessData.fromObject(object.rules, long + 1); + message.rules = $root.Folder.RecordAccessData.fromObject(object.rules); } return message; }; @@ -254565,13 +237564,9 @@ export const record = $root.record = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Permissions.toObject = function toObject(message, options, q) { + Permissions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -254607,7 +237602,7 @@ export const record = $root.record = (() => { if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) object.useEccKey = message.useEccKey; if (message.rules != null && message.hasOwnProperty("rules")) - object.rules = $root.Folder.RecordAccessData.toObject(message.rules, options, q + 1); + object.rules = $root.Folder.RecordAccessData.toObject(message.rules, options); return object; }; @@ -254665,7 +237660,7 @@ export const record = $root.record = (() => { this.revokedSharingStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -254714,22 +237709,18 @@ export const record = $root.record = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Response.encode = function encode(message, writer, q) { + Response.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.createdSharingStatus != null && message.createdSharingStatus.length) for (let i = 0; i < message.createdSharingStatus.length; ++i) - $root.record.v3.sharing.Status.encode(message.createdSharingStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.record.v3.sharing.Status.encode(message.createdSharingStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updatedSharingStatus != null && message.updatedSharingStatus.length) for (let i = 0; i < message.updatedSharingStatus.length; ++i) - $root.record.v3.sharing.Status.encode(message.updatedSharingStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.record.v3.sharing.Status.encode(message.updatedSharingStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.revokedSharingStatus != null && message.revokedSharingStatus.length) for (let i = 0; i < message.revokedSharingStatus.length; ++i) - $root.record.v3.sharing.Status.encode(message.revokedSharingStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.record.v3.sharing.Status.encode(message.revokedSharingStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -254757,39 +237748,33 @@ export const record = $root.record = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Response.decode = function decode(reader, length, error, long) { + Response.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.Response(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.createdSharingStatus && message.createdSharingStatus.length)) message.createdSharingStatus = []; - message.createdSharingStatus.push($root.record.v3.sharing.Status.decode(reader, reader.uint32(), undefined, long + 1)); + message.createdSharingStatus.push($root.record.v3.sharing.Status.decode(reader, reader.uint32())); break; } case 2: { if (!(message.updatedSharingStatus && message.updatedSharingStatus.length)) message.updatedSharingStatus = []; - message.updatedSharingStatus.push($root.record.v3.sharing.Status.decode(reader, reader.uint32(), undefined, long + 1)); + message.updatedSharingStatus.push($root.record.v3.sharing.Status.decode(reader, reader.uint32())); break; } case 3: { if (!(message.revokedSharingStatus && message.revokedSharingStatus.length)) message.revokedSharingStatus = []; - message.revokedSharingStatus.push($root.record.v3.sharing.Status.decode(reader, reader.uint32(), undefined, long + 1)); + message.revokedSharingStatus.push($root.record.v3.sharing.Status.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -254820,18 +237805,14 @@ export const record = $root.record = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Response.verify = function verify(message, long) { + Response.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.createdSharingStatus != null && message.hasOwnProperty("createdSharingStatus")) { if (!Array.isArray(message.createdSharingStatus)) return "createdSharingStatus: array expected"; for (let i = 0; i < message.createdSharingStatus.length; ++i) { - let error = $root.record.v3.sharing.Status.verify(message.createdSharingStatus[i], long + 1); + let error = $root.record.v3.sharing.Status.verify(message.createdSharingStatus[i]); if (error) return "createdSharingStatus." + error; } @@ -254840,7 +237821,7 @@ export const record = $root.record = (() => { if (!Array.isArray(message.updatedSharingStatus)) return "updatedSharingStatus: array expected"; for (let i = 0; i < message.updatedSharingStatus.length; ++i) { - let error = $root.record.v3.sharing.Status.verify(message.updatedSharingStatus[i], long + 1); + let error = $root.record.v3.sharing.Status.verify(message.updatedSharingStatus[i]); if (error) return "updatedSharingStatus." + error; } @@ -254849,7 +237830,7 @@ export const record = $root.record = (() => { if (!Array.isArray(message.revokedSharingStatus)) return "revokedSharingStatus: array expected"; for (let i = 0; i < message.revokedSharingStatus.length; ++i) { - let error = $root.record.v3.sharing.Status.verify(message.revokedSharingStatus[i], long + 1); + let error = $root.record.v3.sharing.Status.verify(message.revokedSharingStatus[i]); if (error) return "revokedSharingStatus." + error; } @@ -254865,13 +237846,9 @@ export const record = $root.record = (() => { * @param {Object.} object Plain object * @returns {record.v3.sharing.Response} Response */ - Response.fromObject = function fromObject(object, long) { + Response.fromObject = function fromObject(object) { if (object instanceof $root.record.v3.sharing.Response) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.record.v3.sharing.Response(); if (object.createdSharingStatus) { if (!Array.isArray(object.createdSharingStatus)) @@ -254880,7 +237857,7 @@ export const record = $root.record = (() => { for (let i = 0; i < object.createdSharingStatus.length; ++i) { if (typeof object.createdSharingStatus[i] !== "object") throw TypeError(".record.v3.sharing.Response.createdSharingStatus: object expected"); - message.createdSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.createdSharingStatus[i], long + 1); + message.createdSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.createdSharingStatus[i]); } } if (object.updatedSharingStatus) { @@ -254890,7 +237867,7 @@ export const record = $root.record = (() => { for (let i = 0; i < object.updatedSharingStatus.length; ++i) { if (typeof object.updatedSharingStatus[i] !== "object") throw TypeError(".record.v3.sharing.Response.updatedSharingStatus: object expected"); - message.updatedSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.updatedSharingStatus[i], long + 1); + message.updatedSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.updatedSharingStatus[i]); } } if (object.revokedSharingStatus) { @@ -254900,7 +237877,7 @@ export const record = $root.record = (() => { for (let i = 0; i < object.revokedSharingStatus.length; ++i) { if (typeof object.revokedSharingStatus[i] !== "object") throw TypeError(".record.v3.sharing.Response.revokedSharingStatus: object expected"); - message.revokedSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.revokedSharingStatus[i], long + 1); + message.revokedSharingStatus[i] = $root.record.v3.sharing.Status.fromObject(object.revokedSharingStatus[i]); } } return message; @@ -254915,13 +237892,9 @@ export const record = $root.record = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Response.toObject = function toObject(message, options, q) { + Response.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.createdSharingStatus = []; @@ -254931,17 +237904,17 @@ export const record = $root.record = (() => { if (message.createdSharingStatus && message.createdSharingStatus.length) { object.createdSharingStatus = []; for (let j = 0; j < message.createdSharingStatus.length; ++j) - object.createdSharingStatus[j] = $root.record.v3.sharing.Status.toObject(message.createdSharingStatus[j], options, q + 1); + object.createdSharingStatus[j] = $root.record.v3.sharing.Status.toObject(message.createdSharingStatus[j], options); } if (message.updatedSharingStatus && message.updatedSharingStatus.length) { object.updatedSharingStatus = []; for (let j = 0; j < message.updatedSharingStatus.length; ++j) - object.updatedSharingStatus[j] = $root.record.v3.sharing.Status.toObject(message.updatedSharingStatus[j], options, q + 1); + object.updatedSharingStatus[j] = $root.record.v3.sharing.Status.toObject(message.updatedSharingStatus[j], options); } if (message.revokedSharingStatus && message.revokedSharingStatus.length) { object.revokedSharingStatus = []; for (let j = 0; j < message.revokedSharingStatus.length; ++j) - object.revokedSharingStatus[j] = $root.record.v3.sharing.Status.toObject(message.revokedSharingStatus[j], options, q + 1); + object.revokedSharingStatus[j] = $root.record.v3.sharing.Status.toObject(message.revokedSharingStatus[j], options); } return object; }; @@ -254998,7 +237971,7 @@ export const record = $root.record = (() => { function Status(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -255055,13 +238028,9 @@ export const record = $root.record = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Status.encode = function encode(message, writer, q) { + Status.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -255097,18 +238066,12 @@ export const record = $root.record = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.decode = function decode(reader, length, error, long) { + Status.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.Status(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -255127,7 +238090,7 @@ export const record = $root.record = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -255158,13 +238121,9 @@ export const record = $root.record = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Status.verify = function verify(message, long) { + Status.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -255198,13 +238157,9 @@ export const record = $root.record = (() => { * @param {Object.} object Plain object * @returns {record.v3.sharing.Status} Status */ - Status.fromObject = function fromObject(object, long) { + Status.fromObject = function fromObject(object) { if (object instanceof $root.record.v3.sharing.Status) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.record.v3.sharing.Status(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -255266,13 +238221,9 @@ export const record = $root.record = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Status.toObject = function toObject(message, options, q) { + Status.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -255377,7 +238328,7 @@ export const record = $root.record = (() => { function RevokedAccess(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -255418,13 +238369,9 @@ export const record = $root.record = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RevokedAccess.encode = function encode(message, writer, q) { + RevokedAccess.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.actorUid != null && Object.hasOwnProperty.call(message, "actorUid")) @@ -255456,18 +238403,12 @@ export const record = $root.record = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RevokedAccess.decode = function decode(reader, length, error, long) { + RevokedAccess.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.RevokedAccess(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -255478,7 +238419,7 @@ export const record = $root.record = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -255509,13 +238450,9 @@ export const record = $root.record = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RevokedAccess.verify = function verify(message, long) { + RevokedAccess.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -255533,13 +238470,9 @@ export const record = $root.record = (() => { * @param {Object.} object Plain object * @returns {record.v3.sharing.RevokedAccess} RevokedAccess */ - RevokedAccess.fromObject = function fromObject(object, long) { + RevokedAccess.fromObject = function fromObject(object) { if (object instanceof $root.record.v3.sharing.RevokedAccess) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.record.v3.sharing.RevokedAccess(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -255563,13 +238496,9 @@ export const record = $root.record = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RevokedAccess.toObject = function toObject(message, options, q) { + RevokedAccess.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -255652,7 +238581,7 @@ export const record = $root.record = (() => { function RecordSharingState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -255709,13 +238638,9 @@ export const record = $root.record = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecordSharingState.encode = function encode(message, writer, q) { + RecordSharingState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.isDirectlyShared != null && Object.hasOwnProperty.call(message, "isDirectlyShared")) @@ -255751,18 +238676,12 @@ export const record = $root.record = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecordSharingState.decode = function decode(reader, length, error, long) { + RecordSharingState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.sharing.RecordSharingState(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -255781,7 +238700,7 @@ export const record = $root.record = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -255812,13 +238731,9 @@ export const record = $root.record = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecordSharingState.verify = function verify(message, long) { + RecordSharingState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -255842,13 +238757,9 @@ export const record = $root.record = (() => { * @param {Object.} object Plain object * @returns {record.v3.sharing.RecordSharingState} RecordSharingState */ - RecordSharingState.fromObject = function fromObject(object, long) { + RecordSharingState.fromObject = function fromObject(object) { if (object instanceof $root.record.v3.sharing.RecordSharingState) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.record.v3.sharing.RecordSharingState(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -255873,13 +238784,9 @@ export const record = $root.record = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecordSharingState.toObject = function toObject(message, options, q) { + RecordSharingState.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -255936,6 +238843,949 @@ export const record = $root.record = (() => { return sharing; })(); + v3.RecordsAddRequest = (function() { + + /** + * Properties of a RecordsAddRequest. + * @memberof record.v3 + * @interface IRecordsAddRequest + * @property {Array.|null} [records] RecordsAddRequest records + * @property {number|Long|null} [clientTime] RecordsAddRequest clientTime + * @property {Records.RecordKeyType|null} [securityDataKeyType] RecordsAddRequest securityDataKeyType + */ + + /** + * Constructs a new RecordsAddRequest. + * @memberof record.v3 + * @classdesc Represents a RecordsAddRequest. + * @implements IRecordsAddRequest + * @constructor + * @param {record.v3.IRecordsAddRequest=} [properties] Properties to set + */ + function RecordsAddRequest(properties) { + this.records = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecordsAddRequest records. + * @member {Array.} records + * @memberof record.v3.RecordsAddRequest + * @instance + */ + RecordsAddRequest.prototype.records = $util.emptyArray; + + /** + * RecordsAddRequest clientTime. + * @member {number|Long} clientTime + * @memberof record.v3.RecordsAddRequest + * @instance + */ + RecordsAddRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordsAddRequest securityDataKeyType. + * @member {Records.RecordKeyType} securityDataKeyType + * @memberof record.v3.RecordsAddRequest + * @instance + */ + RecordsAddRequest.prototype.securityDataKeyType = 0; + + /** + * Creates a new RecordsAddRequest instance using the specified properties. + * @function create + * @memberof record.v3.RecordsAddRequest + * @static + * @param {record.v3.IRecordsAddRequest=} [properties] Properties to set + * @returns {record.v3.RecordsAddRequest} RecordsAddRequest instance + */ + RecordsAddRequest.create = function create(properties) { + return new RecordsAddRequest(properties); + }; + + /** + * Encodes the specified RecordsAddRequest message. Does not implicitly {@link record.v3.RecordsAddRequest.verify|verify} messages. + * @function encode + * @memberof record.v3.RecordsAddRequest + * @static + * @param {record.v3.IRecordsAddRequest} message RecordsAddRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordsAddRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.records != null && message.records.length) + for (let i = 0; i < message.records.length; ++i) + $root.record.v3.RecordAdd.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.securityDataKeyType); + return writer; + }; + + /** + * Encodes the specified RecordsAddRequest message, length delimited. Does not implicitly {@link record.v3.RecordsAddRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof record.v3.RecordsAddRequest + * @static + * @param {record.v3.IRecordsAddRequest} message RecordsAddRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordsAddRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecordsAddRequest message from the specified reader or buffer. + * @function decode + * @memberof record.v3.RecordsAddRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.RecordsAddRequest} RecordsAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordsAddRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.RecordsAddRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.records && message.records.length)) + message.records = []; + message.records.push($root.record.v3.RecordAdd.decode(reader, reader.uint32())); + break; + } + case 2: { + message.clientTime = reader.int64(); + break; + } + case 3: { + message.securityDataKeyType = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecordsAddRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof record.v3.RecordsAddRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {record.v3.RecordsAddRequest} RecordsAddRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordsAddRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecordsAddRequest message. + * @function verify + * @memberof record.v3.RecordsAddRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecordsAddRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.records != null && message.hasOwnProperty("records")) { + if (!Array.isArray(message.records)) + return "records: array expected"; + for (let i = 0; i < message.records.length; ++i) { + let error = $root.record.v3.RecordAdd.verify(message.records[i]); + if (error) + return "records." + error; + } + } + if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) + return "clientTime: integer|Long expected"; + if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) + switch (message.securityDataKeyType) { + default: + return "securityDataKeyType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + return null; + }; + + /** + * Creates a RecordsAddRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.RecordsAddRequest + * @static + * @param {Object.} object Plain object + * @returns {record.v3.RecordsAddRequest} RecordsAddRequest + */ + RecordsAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.record.v3.RecordsAddRequest) + return object; + let message = new $root.record.v3.RecordsAddRequest(); + if (object.records) { + if (!Array.isArray(object.records)) + throw TypeError(".record.v3.RecordsAddRequest.records: array expected"); + message.records = []; + for (let i = 0; i < object.records.length; ++i) { + if (typeof object.records[i] !== "object") + throw TypeError(".record.v3.RecordsAddRequest.records: object expected"); + message.records[i] = $root.record.v3.RecordAdd.fromObject(object.records[i]); + } + } + if (object.clientTime != null) + if ($util.Long) + (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = false; + else if (typeof object.clientTime === "string") + message.clientTime = parseInt(object.clientTime, 10); + else if (typeof object.clientTime === "number") + message.clientTime = object.clientTime; + else if (typeof object.clientTime === "object") + message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); + switch (object.securityDataKeyType) { + default: + if (typeof object.securityDataKeyType === "number") { + message.securityDataKeyType = object.securityDataKeyType; + break; + } + break; + case "NO_KEY": + case 0: + message.securityDataKeyType = 0; + break; + case "ENCRYPTED_BY_DATA_KEY": + case 1: + message.securityDataKeyType = 1; + break; + case "ENCRYPTED_BY_PUBLIC_KEY": + case 2: + message.securityDataKeyType = 2; + break; + case "ENCRYPTED_BY_DATA_KEY_GCM": + case 3: + message.securityDataKeyType = 3; + break; + case "ENCRYPTED_BY_PUBLIC_KEY_ECC": + case 4: + message.securityDataKeyType = 4; + break; + case "ENCRYPTED_BY_ROOT_KEY_CBC": + case 5: + message.securityDataKeyType = 5; + break; + case "ENCRYPTED_BY_ROOT_KEY_GCM": + case 6: + message.securityDataKeyType = 6; + break; + } + return message; + }; + + /** + * Creates a plain object from a RecordsAddRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.RecordsAddRequest + * @static + * @param {record.v3.RecordsAddRequest} message RecordsAddRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordsAddRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.records = []; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientTime = options.longs === String ? "0" : 0; + object.securityDataKeyType = options.enums === String ? "NO_KEY" : 0; + } + if (message.records && message.records.length) { + object.records = []; + for (let j = 0; j < message.records.length; ++j) + object.records[j] = $root.record.v3.RecordAdd.toObject(message.records[j], options); + } + if (message.clientTime != null && message.hasOwnProperty("clientTime")) + if (typeof message.clientTime === "number") + object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; + else + object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; + if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) + object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; + return object; + }; + + /** + * Converts this RecordsAddRequest to JSON. + * @function toJSON + * @memberof record.v3.RecordsAddRequest + * @instance + * @returns {Object.} JSON object + */ + RecordsAddRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordsAddRequest + * @function getTypeUrl + * @memberof record.v3.RecordsAddRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordsAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.RecordsAddRequest"; + }; + + return RecordsAddRequest; + })(); + + v3.RecordAdd = (function() { + + /** + * Properties of a RecordAdd. + * @memberof record.v3 + * @interface IRecordAdd + * @property {Uint8Array|null} [recordUid] RecordAdd recordUid + * @property {Uint8Array|null} [recordKey] RecordAdd recordKey + * @property {Folder.EncryptedKeyType|null} [recordKeyType] RecordAdd recordKeyType + * @property {Folder.FolderKeyEncryptionType|null} [recordKeyEncryptedBy] Record creates in root folder is encrypted by user key. + * Record creates in non-root folder is encrypted by folder key. + * @property {number|Long|null} [clientModifiedTime] RecordAdd clientModifiedTime + * @property {Uint8Array|null} [data] RecordAdd data + * @property {Uint8Array|null} [nonSharedData] RecordAdd nonSharedData + * @property {Uint8Array|null} [folderUid] RecordAdd folderUid + * @property {Array.|null} [recordLinks] RecordAdd recordLinks + * @property {Records.IRecordAudit|null} [audit] RecordAdd audit + * @property {Records.ISecurityData|null} [securityData] RecordAdd securityData + * @property {Records.ISecurityScoreData|null} [securityScoreData] RecordAdd securityScoreData + */ + + /** + * Constructs a new RecordAdd. + * @memberof record.v3 + * @classdesc Represents a RecordAdd. + * @implements IRecordAdd + * @constructor + * @param {record.v3.IRecordAdd=} [properties] Properties to set + */ + function RecordAdd(properties) { + this.recordLinks = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecordAdd recordUid. + * @member {Uint8Array} recordUid + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.recordUid = $util.newBuffer([]); + + /** + * RecordAdd recordKey. + * @member {Uint8Array} recordKey + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.recordKey = $util.newBuffer([]); + + /** + * RecordAdd recordKeyType. + * @member {Folder.EncryptedKeyType} recordKeyType + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.recordKeyType = 0; + + /** + * Record creates in root folder is encrypted by user key. + * Record creates in non-root folder is encrypted by folder key. + * @member {Folder.FolderKeyEncryptionType} recordKeyEncryptedBy + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.recordKeyEncryptedBy = 0; + + /** + * RecordAdd clientModifiedTime. + * @member {number|Long} clientModifiedTime + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * RecordAdd data. + * @member {Uint8Array} data + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.data = $util.newBuffer([]); + + /** + * RecordAdd nonSharedData. + * @member {Uint8Array} nonSharedData + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.nonSharedData = $util.newBuffer([]); + + /** + * RecordAdd folderUid. + * @member {Uint8Array} folderUid + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.folderUid = $util.newBuffer([]); + + /** + * RecordAdd recordLinks. + * @member {Array.} recordLinks + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.recordLinks = $util.emptyArray; + + /** + * RecordAdd audit. + * @member {Records.IRecordAudit|null|undefined} audit + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.audit = null; + + /** + * RecordAdd securityData. + * @member {Records.ISecurityData|null|undefined} securityData + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.securityData = null; + + /** + * RecordAdd securityScoreData. + * @member {Records.ISecurityScoreData|null|undefined} securityScoreData + * @memberof record.v3.RecordAdd + * @instance + */ + RecordAdd.prototype.securityScoreData = null; + + /** + * Creates a new RecordAdd instance using the specified properties. + * @function create + * @memberof record.v3.RecordAdd + * @static + * @param {record.v3.IRecordAdd=} [properties] Properties to set + * @returns {record.v3.RecordAdd} RecordAdd instance + */ + RecordAdd.create = function create(properties) { + return new RecordAdd(properties); + }; + + /** + * Encodes the specified RecordAdd message. Does not implicitly {@link record.v3.RecordAdd.verify|verify} messages. + * @function encode + * @memberof record.v3.RecordAdd + * @static + * @param {record.v3.IRecordAdd} message RecordAdd message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordAdd.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.recordKeyType); + if (message.recordKeyEncryptedBy != null && Object.hasOwnProperty.call(message, "recordKeyEncryptedBy")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.recordKeyEncryptedBy); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.clientModifiedTime); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.nonSharedData); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.folderUid); + if (message.recordLinks != null && message.recordLinks.length) + for (let i = 0; i < message.recordLinks.length; ++i) + $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) + $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) + $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RecordAdd message, length delimited. Does not implicitly {@link record.v3.RecordAdd.verify|verify} messages. + * @function encodeDelimited + * @memberof record.v3.RecordAdd + * @static + * @param {record.v3.IRecordAdd} message RecordAdd message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordAdd.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecordAdd message from the specified reader or buffer. + * @function decode + * @memberof record.v3.RecordAdd + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.RecordAdd} RecordAdd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordAdd.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.RecordAdd(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.recordKey = reader.bytes(); + break; + } + case 3: { + message.recordKeyType = reader.int32(); + break; + } + case 4: { + message.recordKeyEncryptedBy = reader.int32(); + break; + } + case 5: { + message.clientModifiedTime = reader.int64(); + break; + } + case 6: { + message.data = reader.bytes(); + break; + } + case 7: { + message.nonSharedData = reader.bytes(); + break; + } + case 8: { + message.folderUid = reader.bytes(); + break; + } + case 9: { + if (!(message.recordLinks && message.recordLinks.length)) + message.recordLinks = []; + message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32())); + break; + } + case 10: { + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); + break; + } + case 11: { + message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32()); + break; + } + case 12: { + message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecordAdd message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof record.v3.RecordAdd + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {record.v3.RecordAdd} RecordAdd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordAdd.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecordAdd message. + * @function verify + * @memberof record.v3.RecordAdd + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecordAdd.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) + return "recordKey: buffer expected"; + if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) + switch (message.recordKeyType) { + default: + return "recordKeyType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.recordKeyEncryptedBy != null && message.hasOwnProperty("recordKeyEncryptedBy")) + switch (message.recordKeyEncryptedBy) { + default: + return "recordKeyEncryptedBy: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (!$util.isInteger(message.clientModifiedTime) && !(message.clientModifiedTime && $util.isInteger(message.clientModifiedTime.low) && $util.isInteger(message.clientModifiedTime.high))) + return "clientModifiedTime: integer|Long expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) + if (!(message.nonSharedData && typeof message.nonSharedData.length === "number" || $util.isString(message.nonSharedData))) + return "nonSharedData: buffer expected"; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) + return "folderUid: buffer expected"; + if (message.recordLinks != null && message.hasOwnProperty("recordLinks")) { + if (!Array.isArray(message.recordLinks)) + return "recordLinks: array expected"; + for (let i = 0; i < message.recordLinks.length; ++i) { + let error = $root.Records.RecordLink.verify(message.recordLinks[i]); + if (error) + return "recordLinks." + error; + } + } + if (message.audit != null && message.hasOwnProperty("audit")) { + let error = $root.Records.RecordAudit.verify(message.audit); + if (error) + return "audit." + error; + } + if (message.securityData != null && message.hasOwnProperty("securityData")) { + let error = $root.Records.SecurityData.verify(message.securityData); + if (error) + return "securityData." + error; + } + if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { + let error = $root.Records.SecurityScoreData.verify(message.securityScoreData); + if (error) + return "securityScoreData." + error; + } + return null; + }; + + /** + * Creates a RecordAdd message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.RecordAdd + * @static + * @param {Object.} object Plain object + * @returns {record.v3.RecordAdd} RecordAdd + */ + RecordAdd.fromObject = function fromObject(object) { + if (object instanceof $root.record.v3.RecordAdd) + return object; + let message = new $root.record.v3.RecordAdd(); + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; + if (object.recordKey != null) + if (typeof object.recordKey === "string") + $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); + else if (object.recordKey.length >= 0) + message.recordKey = object.recordKey; + switch (object.recordKeyType) { + default: + if (typeof object.recordKeyType === "number") { + message.recordKeyType = object.recordKeyType; + break; + } + break; + case "no_key": + case 0: + message.recordKeyType = 0; + break; + case "encrypted_by_data_key": + case 1: + message.recordKeyType = 1; + break; + case "encrypted_by_public_key": + case 2: + message.recordKeyType = 2; + break; + case "encrypted_by_data_key_gcm": + case 3: + message.recordKeyType = 3; + break; + case "encrypted_by_public_key_ecc": + case 4: + message.recordKeyType = 4; + break; + } + switch (object.recordKeyEncryptedBy) { + default: + if (typeof object.recordKeyEncryptedBy === "number") { + message.recordKeyEncryptedBy = object.recordKeyEncryptedBy; + break; + } + break; + case "ENCRYPTED_BY_USER_KEY": + case 0: + message.recordKeyEncryptedBy = 0; + break; + case "ENCRYPTED_BY_PARENT_KEY": + case 1: + message.recordKeyEncryptedBy = 1; + break; + case "ENCRYPTED_BY_TEAM_KEY": + case 2: + message.recordKeyEncryptedBy = 2; + break; + } + if (object.clientModifiedTime != null) + if ($util.Long) + (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; + else if (typeof object.clientModifiedTime === "string") + message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); + else if (typeof object.clientModifiedTime === "number") + message.clientModifiedTime = object.clientModifiedTime; + else if (typeof object.clientModifiedTime === "object") + message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length >= 0) + message.data = object.data; + if (object.nonSharedData != null) + if (typeof object.nonSharedData === "string") + $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); + else if (object.nonSharedData.length >= 0) + message.nonSharedData = object.nonSharedData; + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.recordLinks) { + if (!Array.isArray(object.recordLinks)) + throw TypeError(".record.v3.RecordAdd.recordLinks: array expected"); + message.recordLinks = []; + for (let i = 0; i < object.recordLinks.length; ++i) { + if (typeof object.recordLinks[i] !== "object") + throw TypeError(".record.v3.RecordAdd.recordLinks: object expected"); + message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i]); + } + } + if (object.audit != null) { + if (typeof object.audit !== "object") + throw TypeError(".record.v3.RecordAdd.audit: object expected"); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); + } + if (object.securityData != null) { + if (typeof object.securityData !== "object") + throw TypeError(".record.v3.RecordAdd.securityData: object expected"); + message.securityData = $root.Records.SecurityData.fromObject(object.securityData); + } + if (object.securityScoreData != null) { + if (typeof object.securityScoreData !== "object") + throw TypeError(".record.v3.RecordAdd.securityScoreData: object expected"); + message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData); + } + return message; + }; + + /** + * Creates a plain object from a RecordAdd message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.RecordAdd + * @static + * @param {record.v3.RecordAdd} message RecordAdd + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordAdd.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.recordLinks = []; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.recordKey = ""; + else { + object.recordKey = []; + if (options.bytes !== Array) + object.recordKey = $util.newBuffer(object.recordKey); + } + object.recordKeyType = options.enums === String ? "no_key" : 0; + object.recordKeyEncryptedBy = options.enums === String ? "ENCRYPTED_BY_USER_KEY" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.clientModifiedTime = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if (options.bytes === String) + object.nonSharedData = ""; + else { + object.nonSharedData = []; + if (options.bytes !== Array) + object.nonSharedData = $util.newBuffer(object.nonSharedData); + } + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + object.audit = null; + object.securityData = null; + object.securityScoreData = null; + } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty("recordKey")) + object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) + object.recordKeyType = options.enums === String ? $root.Folder.EncryptedKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Folder.EncryptedKeyType[message.recordKeyType] : message.recordKeyType; + if (message.recordKeyEncryptedBy != null && message.hasOwnProperty("recordKeyEncryptedBy")) + object.recordKeyEncryptedBy = options.enums === String ? $root.Folder.FolderKeyEncryptionType[message.recordKeyEncryptedBy] === undefined ? message.recordKeyEncryptedBy : $root.Folder.FolderKeyEncryptionType[message.recordKeyEncryptedBy] : message.recordKeyEncryptedBy; + if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) + if (typeof message.clientModifiedTime === "number") + object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + else + object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) + object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; + if (message.folderUid != null && message.hasOwnProperty("folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.recordLinks && message.recordLinks.length) { + object.recordLinks = []; + for (let j = 0; j < message.recordLinks.length; ++j) + object.recordLinks[j] = $root.Records.RecordLink.toObject(message.recordLinks[j], options); + } + if (message.audit != null && message.hasOwnProperty("audit")) + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); + if (message.securityData != null && message.hasOwnProperty("securityData")) + object.securityData = $root.Records.SecurityData.toObject(message.securityData, options); + if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) + object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options); + return object; + }; + + /** + * Converts this RecordAdd to JSON. + * @function toJSON + * @memberof record.v3.RecordAdd + * @instance + * @returns {Object.} JSON object + */ + RecordAdd.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordAdd + * @function getTypeUrl + * @memberof record.v3.RecordAdd + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordAdd.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.RecordAdd"; + }; + + return RecordAdd; + })(); + return v3; })(); @@ -255974,7 +239824,7 @@ export const Upsell = $root.Upsell = (() => { function UpsellRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -256031,13 +239881,9 @@ export const Upsell = $root.Upsell = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsellRequest.encode = function encode(message, writer, q) { + UpsellRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.email != null && Object.hasOwnProperty.call(message, "email")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) @@ -256073,18 +239919,12 @@ export const Upsell = $root.Upsell = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsellRequest.decode = function decode(reader, length, error, long) { + UpsellRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.email = reader.string(); @@ -256103,7 +239943,7 @@ export const Upsell = $root.Upsell = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -256134,13 +239974,9 @@ export const Upsell = $root.Upsell = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpsellRequest.verify = function verify(message, long) { + UpsellRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.email != null && message.hasOwnProperty("email")) if (!$util.isString(message.email)) return "email: string expected"; @@ -256164,13 +240000,9 @@ export const Upsell = $root.Upsell = (() => { * @param {Object.} object Plain object * @returns {Upsell.UpsellRequest} UpsellRequest */ - UpsellRequest.fromObject = function fromObject(object, long) { + UpsellRequest.fromObject = function fromObject(object) { if (object instanceof $root.Upsell.UpsellRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Upsell.UpsellRequest(); if (object.email != null) message.email = String(object.email); @@ -256192,13 +240024,9 @@ export const Upsell = $root.Upsell = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsellRequest.toObject = function toObject(message, options, q) { + UpsellRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.email = ""; @@ -256267,7 +240095,7 @@ export const Upsell = $root.Upsell = (() => { this.UpsellBanner = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -256300,16 +240128,12 @@ export const Upsell = $root.Upsell = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsellResponse.encode = function encode(message, writer, q) { + UpsellResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.UpsellBanner != null && message.UpsellBanner.length) for (let i = 0; i < message.UpsellBanner.length; ++i) - $root.Upsell.UpsellBanner.encode(message.UpsellBanner[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Upsell.UpsellBanner.encode(message.UpsellBanner[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -256337,27 +240161,21 @@ export const Upsell = $root.Upsell = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsellResponse.decode = function decode(reader, length, error, long) { + UpsellResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.UpsellBanner && message.UpsellBanner.length)) message.UpsellBanner = []; - message.UpsellBanner.push($root.Upsell.UpsellBanner.decode(reader, reader.uint32(), undefined, long + 1)); + message.UpsellBanner.push($root.Upsell.UpsellBanner.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -256388,18 +240206,14 @@ export const Upsell = $root.Upsell = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpsellResponse.verify = function verify(message, long) { + UpsellResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.UpsellBanner != null && message.hasOwnProperty("UpsellBanner")) { if (!Array.isArray(message.UpsellBanner)) return "UpsellBanner: array expected"; for (let i = 0; i < message.UpsellBanner.length; ++i) { - let error = $root.Upsell.UpsellBanner.verify(message.UpsellBanner[i], long + 1); + let error = $root.Upsell.UpsellBanner.verify(message.UpsellBanner[i]); if (error) return "UpsellBanner." + error; } @@ -256415,13 +240229,9 @@ export const Upsell = $root.Upsell = (() => { * @param {Object.} object Plain object * @returns {Upsell.UpsellResponse} UpsellResponse */ - UpsellResponse.fromObject = function fromObject(object, long) { + UpsellResponse.fromObject = function fromObject(object) { if (object instanceof $root.Upsell.UpsellResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Upsell.UpsellResponse(); if (object.UpsellBanner) { if (!Array.isArray(object.UpsellBanner)) @@ -256430,7 +240240,7 @@ export const Upsell = $root.Upsell = (() => { for (let i = 0; i < object.UpsellBanner.length; ++i) { if (typeof object.UpsellBanner[i] !== "object") throw TypeError(".Upsell.UpsellResponse.UpsellBanner: object expected"); - message.UpsellBanner[i] = $root.Upsell.UpsellBanner.fromObject(object.UpsellBanner[i], long + 1); + message.UpsellBanner[i] = $root.Upsell.UpsellBanner.fromObject(object.UpsellBanner[i]); } } return message; @@ -256445,20 +240255,16 @@ export const Upsell = $root.Upsell = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsellResponse.toObject = function toObject(message, options, q) { + UpsellResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.UpsellBanner = []; if (message.UpsellBanner && message.UpsellBanner.length) { object.UpsellBanner = []; for (let j = 0; j < message.UpsellBanner.length; ++j) - object.UpsellBanner[j] = $root.Upsell.UpsellBanner.toObject(message.UpsellBanner[j], options, q + 1); + object.UpsellBanner[j] = $root.Upsell.UpsellBanner.toObject(message.UpsellBanner[j], options); } return object; }; @@ -256518,7 +240324,7 @@ export const Upsell = $root.Upsell = (() => { function UpsellBanner(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -256599,13 +240405,9 @@ export const Upsell = $root.Upsell = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsellBanner.encode = function encode(message, writer, q) { + UpsellBanner.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.bannerId != null && Object.hasOwnProperty.call(message, "bannerId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bannerId); if (message.bannerOkAction != null && Object.hasOwnProperty.call(message, "bannerOkAction")) @@ -256647,18 +240449,12 @@ export const Upsell = $root.Upsell = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsellBanner.decode = function decode(reader, length, error, long) { + UpsellBanner.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellBanner(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.bannerId = reader.int32(); @@ -256689,7 +240485,7 @@ export const Upsell = $root.Upsell = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -256720,13 +240516,9 @@ export const Upsell = $root.Upsell = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpsellBanner.verify = function verify(message, long) { + UpsellBanner.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.bannerId != null && message.hasOwnProperty("bannerId")) if (!$util.isInteger(message.bannerId)) return "bannerId: integer expected"; @@ -256759,13 +240551,9 @@ export const Upsell = $root.Upsell = (() => { * @param {Object.} object Plain object * @returns {Upsell.UpsellBanner} UpsellBanner */ - UpsellBanner.fromObject = function fromObject(object, long) { + UpsellBanner.fromObject = function fromObject(object) { if (object instanceof $root.Upsell.UpsellBanner) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Upsell.UpsellBanner(); if (object.bannerId != null) message.bannerId = object.bannerId | 0; @@ -256793,13 +240581,9 @@ export const Upsell = $root.Upsell = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsellBanner.toObject = function toObject(message, options, q) { + UpsellBanner.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.bannerId = 0; @@ -256954,7 +240738,7 @@ export const BI = $root.BI = (() => { function ValidateSessionTokenRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -257003,13 +240787,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateSessionTokenRequest.encode = function encode(message, writer, q) { + ValidateSessionTokenRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSessionToken); if (message.returnMcEnterpiseIds != null && Object.hasOwnProperty.call(message, "returnMcEnterpiseIds")) @@ -257043,18 +240823,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateSessionTokenRequest.decode = function decode(reader, length, error, long) { + ValidateSessionTokenRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ValidateSessionTokenRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedSessionToken = reader.bytes(); @@ -257069,7 +240843,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -257100,13 +240874,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateSessionTokenRequest.verify = function verify(message, long) { + ValidateSessionTokenRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) return "encryptedSessionToken: buffer expected"; @@ -257127,13 +240897,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.ValidateSessionTokenRequest} ValidateSessionTokenRequest */ - ValidateSessionTokenRequest.fromObject = function fromObject(object, long) { + ValidateSessionTokenRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.ValidateSessionTokenRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.ValidateSessionTokenRequest(); if (object.encryptedSessionToken != null) if (typeof object.encryptedSessionToken === "string") @@ -257156,13 +240922,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateSessionTokenRequest.toObject = function toObject(message, options, q) { + ValidateSessionTokenRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -257242,7 +241004,7 @@ export const BI = $root.BI = (() => { this.deletedMcEnterpriseIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -257331,13 +241093,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateSessionTokenResponse.encode = function encode(message, writer, q) { + ValidateSessionTokenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) @@ -257389,18 +241147,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateSessionTokenResponse.decode = function decode(reader, length, error, long) { + ValidateSessionTokenResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ValidateSessionTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -257449,7 +241201,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -257480,13 +241232,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateSessionTokenResponse.verify = function verify(message, long) { + ValidateSessionTokenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -257538,13 +241286,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.ValidateSessionTokenResponse} ValidateSessionTokenResponse */ - ValidateSessionTokenResponse.fromObject = function fromObject(object, long) { + ValidateSessionTokenResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.ValidateSessionTokenResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.ValidateSessionTokenResponse(); if (object.username != null) message.username = String(object.username); @@ -257552,7 +241296,7 @@ export const BI = $root.BI = (() => { message.userId = object.userId | 0; if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -257617,13 +241361,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateSessionTokenResponse.toObject = function toObject(message, options, q) { + ValidateSessionTokenResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.mcEnterpriseIds = []; @@ -257634,9 +241374,9 @@ export const BI = $root.BI = (() => { object.userId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.status = options.enums === String ? "VALID" : 0; object.statusMessage = ""; object.hasMSPPermission = false; @@ -257646,9 +241386,7 @@ export const BI = $root.BI = (() => { if (message.userId != null && message.hasOwnProperty("userId")) object.userId = message.userId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -257739,7 +241477,7 @@ export const BI = $root.BI = (() => { function SubscriptionStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -257764,13 +241502,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionStatusRequest.encode = function encode(message, writer, q) { + SubscriptionStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -257798,21 +241532,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SubscriptionStatusRequest.decode = function decode(reader, length, error, long) { + SubscriptionStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -257843,13 +241571,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SubscriptionStatusRequest.verify = function verify(message, long) { + SubscriptionStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -257861,13 +241585,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SubscriptionStatusRequest} SubscriptionStatusRequest */ - SubscriptionStatusRequest.fromObject = function fromObject(object, long) { + SubscriptionStatusRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.SubscriptionStatusRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.SubscriptionStatusRequest(); }; @@ -257948,7 +241668,7 @@ export const BI = $root.BI = (() => { this.licenseStats = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -258093,17 +241813,13 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionStatusResponse.encode = function encode(message, writer, q) { + SubscriptionStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.autoRenewal != null && Object.hasOwnProperty.call(message, "autoRenewal")) - $root.BI.AutoRenewal.encode(message.autoRenewal, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.AutoRenewal.encode(message.autoRenewal, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.currentPaymentMethod != null && Object.hasOwnProperty.call(message, "currentPaymentMethod")) - $root.BI.PaymentMethod.encode(message.currentPaymentMethod, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.PaymentMethod.encode(message.currentPaymentMethod, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.checkoutLink != null && Object.hasOwnProperty.call(message, "checkoutLink")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.checkoutLink); if (message.licenseCreateDate != null && Object.hasOwnProperty.call(message, "licenseCreateDate")) @@ -258114,7 +241830,7 @@ export const BI = $root.BI = (() => { writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isLegacyMsp); if (message.licenseStats != null && message.licenseStats.length) for (let i = 0; i < message.licenseStats.length; ++i) - $root.BI.LicenseStats.encode(message.licenseStats[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.BI.LicenseStats.encode(message.licenseStats[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.gradientStatus != null && Object.hasOwnProperty.call(message, "gradientStatus")) writer.uint32(/* id 9, wireType 0 =*/72).int32(message.gradientStatus); if (message.hideTrialBanner != null && Object.hasOwnProperty.call(message, "hideTrialBanner")) @@ -258126,11 +241842,11 @@ export const BI = $root.BI = (() => { if (message.isGradientMappingPending != null && Object.hasOwnProperty.call(message, "isGradientMappingPending")) writer.uint32(/* id 13, wireType 0 =*/104).bool(message.isGradientMappingPending); if (message.nhi != null && Object.hasOwnProperty.call(message, "nhi")) - $root.BI.NhiBilling.encode(message.nhi, writer.uint32(/* id 14, wireType 2 =*/114).fork(), q + 1).ldelim(); + $root.BI.NhiBilling.encode(message.nhi, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.freeKsmApiCallsCount != null && Object.hasOwnProperty.call(message, "freeKsmApiCallsCount")) writer.uint32(/* id 15, wireType 0 =*/120).int32(message.freeKsmApiCallsCount); if (message.ksm != null && Object.hasOwnProperty.call(message, "ksm")) - $root.BI.KsmBilling.encode(message.ksm, writer.uint32(/* id 16, wireType 2 =*/130).fork(), q + 1).ldelim(); + $root.BI.KsmBilling.encode(message.ksm, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); return writer; }; @@ -258158,25 +241874,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SubscriptionStatusResponse.decode = function decode(reader, length, error, long) { + SubscriptionStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.autoRenewal = $root.BI.AutoRenewal.decode(reader, reader.uint32(), undefined, long + 1); + message.autoRenewal = $root.BI.AutoRenewal.decode(reader, reader.uint32()); break; } case 2: { - message.currentPaymentMethod = $root.BI.PaymentMethod.decode(reader, reader.uint32(), undefined, long + 1); + message.currentPaymentMethod = $root.BI.PaymentMethod.decode(reader, reader.uint32()); break; } case 3: { @@ -258198,7 +241908,7 @@ export const BI = $root.BI = (() => { case 8: { if (!(message.licenseStats && message.licenseStats.length)) message.licenseStats = []; - message.licenseStats.push($root.BI.LicenseStats.decode(reader, reader.uint32(), undefined, long + 1)); + message.licenseStats.push($root.BI.LicenseStats.decode(reader, reader.uint32())); break; } case 9: { @@ -258222,7 +241932,7 @@ export const BI = $root.BI = (() => { break; } case 14: { - message.nhi = $root.BI.NhiBilling.decode(reader, reader.uint32(), undefined, long + 1); + message.nhi = $root.BI.NhiBilling.decode(reader, reader.uint32()); break; } case 15: { @@ -258230,11 +241940,11 @@ export const BI = $root.BI = (() => { break; } case 16: { - message.ksm = $root.BI.KsmBilling.decode(reader, reader.uint32(), undefined, long + 1); + message.ksm = $root.BI.KsmBilling.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -258265,20 +241975,16 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SubscriptionStatusResponse.verify = function verify(message, long) { + SubscriptionStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.autoRenewal != null && message.hasOwnProperty("autoRenewal")) { - let error = $root.BI.AutoRenewal.verify(message.autoRenewal, long + 1); + let error = $root.BI.AutoRenewal.verify(message.autoRenewal); if (error) return "autoRenewal." + error; } if (message.currentPaymentMethod != null && message.hasOwnProperty("currentPaymentMethod")) { - let error = $root.BI.PaymentMethod.verify(message.currentPaymentMethod, long + 1); + let error = $root.BI.PaymentMethod.verify(message.currentPaymentMethod); if (error) return "currentPaymentMethod." + error; } @@ -258298,7 +242004,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.licenseStats)) return "licenseStats: array expected"; for (let i = 0; i < message.licenseStats.length; ++i) { - let error = $root.BI.LicenseStats.verify(message.licenseStats[i], long + 1); + let error = $root.BI.LicenseStats.verify(message.licenseStats[i]); if (error) return "licenseStats." + error; } @@ -258326,7 +242032,7 @@ export const BI = $root.BI = (() => { if (typeof message.isGradientMappingPending !== "boolean") return "isGradientMappingPending: boolean expected"; if (message.nhi != null && message.hasOwnProperty("nhi")) { - let error = $root.BI.NhiBilling.verify(message.nhi, long + 1); + let error = $root.BI.NhiBilling.verify(message.nhi); if (error) return "nhi." + error; } @@ -258334,7 +242040,7 @@ export const BI = $root.BI = (() => { if (!$util.isInteger(message.freeKsmApiCallsCount)) return "freeKsmApiCallsCount: integer expected"; if (message.ksm != null && message.hasOwnProperty("ksm")) { - let error = $root.BI.KsmBilling.verify(message.ksm, long + 1); + let error = $root.BI.KsmBilling.verify(message.ksm); if (error) return "ksm." + error; } @@ -258349,29 +242055,25 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SubscriptionStatusResponse} SubscriptionStatusResponse */ - SubscriptionStatusResponse.fromObject = function fromObject(object, long) { + SubscriptionStatusResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.SubscriptionStatusResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SubscriptionStatusResponse(); if (object.autoRenewal != null) { if (typeof object.autoRenewal !== "object") throw TypeError(".BI.SubscriptionStatusResponse.autoRenewal: object expected"); - message.autoRenewal = $root.BI.AutoRenewal.fromObject(object.autoRenewal, long + 1); + message.autoRenewal = $root.BI.AutoRenewal.fromObject(object.autoRenewal); } if (object.currentPaymentMethod != null) { if (typeof object.currentPaymentMethod !== "object") throw TypeError(".BI.SubscriptionStatusResponse.currentPaymentMethod: object expected"); - message.currentPaymentMethod = $root.BI.PaymentMethod.fromObject(object.currentPaymentMethod, long + 1); + message.currentPaymentMethod = $root.BI.PaymentMethod.fromObject(object.currentPaymentMethod); } if (object.checkoutLink != null) message.checkoutLink = String(object.checkoutLink); if (object.licenseCreateDate != null) if ($util.Long) - message.licenseCreateDate = $util.Long.fromValue(object.licenseCreateDate, false); + (message.licenseCreateDate = $util.Long.fromValue(object.licenseCreateDate)).unsigned = false; else if (typeof object.licenseCreateDate === "string") message.licenseCreateDate = parseInt(object.licenseCreateDate, 10); else if (typeof object.licenseCreateDate === "number") @@ -258389,7 +242091,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.licenseStats.length; ++i) { if (typeof object.licenseStats[i] !== "object") throw TypeError(".BI.SubscriptionStatusResponse.licenseStats: object expected"); - message.licenseStats[i] = $root.BI.LicenseStats.fromObject(object.licenseStats[i], long + 1); + message.licenseStats[i] = $root.BI.LicenseStats.fromObject(object.licenseStats[i]); } } switch (object.gradientStatus) { @@ -258427,14 +242129,14 @@ export const BI = $root.BI = (() => { if (object.nhi != null) { if (typeof object.nhi !== "object") throw TypeError(".BI.SubscriptionStatusResponse.nhi: object expected"); - message.nhi = $root.BI.NhiBilling.fromObject(object.nhi, long + 1); + message.nhi = $root.BI.NhiBilling.fromObject(object.nhi); } if (object.freeKsmApiCallsCount != null) message.freeKsmApiCallsCount = object.freeKsmApiCallsCount | 0; if (object.ksm != null) { if (typeof object.ksm !== "object") throw TypeError(".BI.SubscriptionStatusResponse.ksm: object expected"); - message.ksm = $root.BI.KsmBilling.fromObject(object.ksm, long + 1); + message.ksm = $root.BI.KsmBilling.fromObject(object.ksm); } return message; }; @@ -258448,13 +242150,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionStatusResponse.toObject = function toObject(message, options, q) { + SubscriptionStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.licenseStats = []; @@ -258464,9 +242162,9 @@ export const BI = $root.BI = (() => { object.checkoutLink = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.licenseCreateDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.licenseCreateDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.licenseCreateDate = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.licenseCreateDate = options.longs === String ? "0" : 0; object.isDistributor = false; object.isLegacyMsp = false; object.gradientStatus = options.enums === String ? "NOTCONNECTED" : 0; @@ -258479,15 +242177,13 @@ export const BI = $root.BI = (() => { object.ksm = null; } if (message.autoRenewal != null && message.hasOwnProperty("autoRenewal")) - object.autoRenewal = $root.BI.AutoRenewal.toObject(message.autoRenewal, options, q + 1); + object.autoRenewal = $root.BI.AutoRenewal.toObject(message.autoRenewal, options); if (message.currentPaymentMethod != null && message.hasOwnProperty("currentPaymentMethod")) - object.currentPaymentMethod = $root.BI.PaymentMethod.toObject(message.currentPaymentMethod, options, q + 1); + object.currentPaymentMethod = $root.BI.PaymentMethod.toObject(message.currentPaymentMethod, options); if (message.checkoutLink != null && message.hasOwnProperty("checkoutLink")) object.checkoutLink = message.checkoutLink; if (message.licenseCreateDate != null && message.hasOwnProperty("licenseCreateDate")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.licenseCreateDate = typeof message.licenseCreateDate === "number" ? BigInt(message.licenseCreateDate) : $util.Long.fromBits(message.licenseCreateDate.low >>> 0, message.licenseCreateDate.high >>> 0, false).toBigInt(); - else if (typeof message.licenseCreateDate === "number") + if (typeof message.licenseCreateDate === "number") object.licenseCreateDate = options.longs === String ? String(message.licenseCreateDate) : message.licenseCreateDate; else object.licenseCreateDate = options.longs === String ? $util.Long.prototype.toString.call(message.licenseCreateDate) : options.longs === Number ? new $util.LongBits(message.licenseCreateDate.low >>> 0, message.licenseCreateDate.high >>> 0).toNumber() : message.licenseCreateDate; @@ -258498,7 +242194,7 @@ export const BI = $root.BI = (() => { if (message.licenseStats && message.licenseStats.length) { object.licenseStats = []; for (let j = 0; j < message.licenseStats.length; ++j) - object.licenseStats[j] = $root.BI.LicenseStats.toObject(message.licenseStats[j], options, q + 1); + object.licenseStats[j] = $root.BI.LicenseStats.toObject(message.licenseStats[j], options); } if (message.gradientStatus != null && message.hasOwnProperty("gradientStatus")) object.gradientStatus = options.enums === String ? $root.BI.GradientIntegrationStatus[message.gradientStatus] === undefined ? message.gradientStatus : $root.BI.GradientIntegrationStatus[message.gradientStatus] : message.gradientStatus; @@ -258511,11 +242207,11 @@ export const BI = $root.BI = (() => { if (message.isGradientMappingPending != null && message.hasOwnProperty("isGradientMappingPending")) object.isGradientMappingPending = message.isGradientMappingPending; if (message.nhi != null && message.hasOwnProperty("nhi")) - object.nhi = $root.BI.NhiBilling.toObject(message.nhi, options, q + 1); + object.nhi = $root.BI.NhiBilling.toObject(message.nhi, options); if (message.freeKsmApiCallsCount != null && message.hasOwnProperty("freeKsmApiCallsCount")) object.freeKsmApiCallsCount = message.freeKsmApiCallsCount; if (message.ksm != null && message.hasOwnProperty("ksm")) - object.ksm = $root.BI.KsmBilling.toObject(message.ksm, options, q + 1); + object.ksm = $root.BI.KsmBilling.toObject(message.ksm, options); return object; }; @@ -258572,7 +242268,7 @@ export const BI = $root.BI = (() => { function KsmBilling(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -258637,13 +242333,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KsmBilling.encode = function encode(message, writer, q) { + KsmBilling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.billingStartTimestamp != null && Object.hasOwnProperty.call(message, "billingStartTimestamp")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.billingStartTimestamp); if (message.billingEndTimestamp != null && Object.hasOwnProperty.call(message, "billingEndTimestamp")) @@ -258681,381 +242373,349 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KsmBilling.decode = function decode(reader, length, error, long) { + KsmBilling.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.KsmBilling(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.billingStartTimestamp = reader.int64(); - break; - } - case 2: { - message.billingEndTimestamp = reader.int64(); - break; - } - case 3: { - message.currentTierId = reader.int32(); - break; - } - case 4: { - message.enterpriseBlocks = reader.int32(); - break; - } - case 5: { - message.currentTierCeiling = reader.int32(); - break; - } - default: - reader.skipType(tag & 7, long); - break; - } - } - return message; - }; - - /** - * Decodes a KsmBilling message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof BI.KsmBilling - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {BI.KsmBilling} KsmBilling - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KsmBilling.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KsmBilling message. - * @function verify - * @memberof BI.KsmBilling - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KsmBilling.verify = function verify(message, long) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.billingStartTimestamp != null && message.hasOwnProperty("billingStartTimestamp")) - if (!$util.isInteger(message.billingStartTimestamp) && !(message.billingStartTimestamp && $util.isInteger(message.billingStartTimestamp.low) && $util.isInteger(message.billingStartTimestamp.high))) - return "billingStartTimestamp: integer|Long expected"; - if (message.billingEndTimestamp != null && message.hasOwnProperty("billingEndTimestamp")) - if (!$util.isInteger(message.billingEndTimestamp) && !(message.billingEndTimestamp && $util.isInteger(message.billingEndTimestamp.low) && $util.isInteger(message.billingEndTimestamp.high))) - return "billingEndTimestamp: integer|Long expected"; - if (message.currentTierId != null && message.hasOwnProperty("currentTierId")) - if (!$util.isInteger(message.currentTierId)) - return "currentTierId: integer expected"; - if (message.enterpriseBlocks != null && message.hasOwnProperty("enterpriseBlocks")) - if (!$util.isInteger(message.enterpriseBlocks)) - return "enterpriseBlocks: integer expected"; - if (message.currentTierCeiling != null && message.hasOwnProperty("currentTierCeiling")) - if (!$util.isInteger(message.currentTierCeiling)) - return "currentTierCeiling: integer expected"; - return null; - }; - - /** - * Creates a KsmBilling message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.KsmBilling - * @static - * @param {Object.} object Plain object - * @returns {BI.KsmBilling} KsmBilling - */ - KsmBilling.fromObject = function fromObject(object, long) { - if (object instanceof $root.BI.KsmBilling) - return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let message = new $root.BI.KsmBilling(); - if (object.billingStartTimestamp != null) - if ($util.Long) - message.billingStartTimestamp = $util.Long.fromValue(object.billingStartTimestamp, false); - else if (typeof object.billingStartTimestamp === "string") - message.billingStartTimestamp = parseInt(object.billingStartTimestamp, 10); - else if (typeof object.billingStartTimestamp === "number") - message.billingStartTimestamp = object.billingStartTimestamp; - else if (typeof object.billingStartTimestamp === "object") - message.billingStartTimestamp = new $util.LongBits(object.billingStartTimestamp.low >>> 0, object.billingStartTimestamp.high >>> 0).toNumber(); - if (object.billingEndTimestamp != null) - if ($util.Long) - message.billingEndTimestamp = $util.Long.fromValue(object.billingEndTimestamp, false); - else if (typeof object.billingEndTimestamp === "string") - message.billingEndTimestamp = parseInt(object.billingEndTimestamp, 10); - else if (typeof object.billingEndTimestamp === "number") - message.billingEndTimestamp = object.billingEndTimestamp; - else if (typeof object.billingEndTimestamp === "object") - message.billingEndTimestamp = new $util.LongBits(object.billingEndTimestamp.low >>> 0, object.billingEndTimestamp.high >>> 0).toNumber(); - if (object.currentTierId != null) - message.currentTierId = object.currentTierId | 0; - if (object.enterpriseBlocks != null) - message.enterpriseBlocks = object.enterpriseBlocks | 0; - if (object.currentTierCeiling != null) - message.currentTierCeiling = object.currentTierCeiling | 0; - return message; - }; - - /** - * Creates a plain object from a KsmBilling message. Also converts values to other types if specified. - * @function toObject - * @memberof BI.KsmBilling - * @static - * @param {BI.KsmBilling} message KsmBilling - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KsmBilling.toObject = function toObject(message, options, q) { - if (!options) - options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.billingStartTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; - } else - object.billingStartTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.billingEndTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; - } else - object.billingEndTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; - object.currentTierId = 0; - object.enterpriseBlocks = 0; - object.currentTierCeiling = 0; - } - if (message.billingStartTimestamp != null && message.hasOwnProperty("billingStartTimestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.billingStartTimestamp = typeof message.billingStartTimestamp === "number" ? BigInt(message.billingStartTimestamp) : $util.Long.fromBits(message.billingStartTimestamp.low >>> 0, message.billingStartTimestamp.high >>> 0, false).toBigInt(); - else if (typeof message.billingStartTimestamp === "number") - object.billingStartTimestamp = options.longs === String ? String(message.billingStartTimestamp) : message.billingStartTimestamp; - else - object.billingStartTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.billingStartTimestamp) : options.longs === Number ? new $util.LongBits(message.billingStartTimestamp.low >>> 0, message.billingStartTimestamp.high >>> 0).toNumber() : message.billingStartTimestamp; - if (message.billingEndTimestamp != null && message.hasOwnProperty("billingEndTimestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.billingEndTimestamp = typeof message.billingEndTimestamp === "number" ? BigInt(message.billingEndTimestamp) : $util.Long.fromBits(message.billingEndTimestamp.low >>> 0, message.billingEndTimestamp.high >>> 0, false).toBigInt(); - else if (typeof message.billingEndTimestamp === "number") - object.billingEndTimestamp = options.longs === String ? String(message.billingEndTimestamp) : message.billingEndTimestamp; - else - object.billingEndTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.billingEndTimestamp) : options.longs === Number ? new $util.LongBits(message.billingEndTimestamp.low >>> 0, message.billingEndTimestamp.high >>> 0).toNumber() : message.billingEndTimestamp; - if (message.currentTierId != null && message.hasOwnProperty("currentTierId")) - object.currentTierId = message.currentTierId; - if (message.enterpriseBlocks != null && message.hasOwnProperty("enterpriseBlocks")) - object.enterpriseBlocks = message.enterpriseBlocks; - if (message.currentTierCeiling != null && message.hasOwnProperty("currentTierCeiling")) - object.currentTierCeiling = message.currentTierCeiling; - return object; - }; - - /** - * Converts this KsmBilling to JSON. - * @function toJSON - * @memberof BI.KsmBilling - * @instance - * @returns {Object.} JSON object - */ - KsmBilling.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for KsmBilling - * @function getTypeUrl - * @memberof BI.KsmBilling - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - KsmBilling.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/BI.KsmBilling"; - }; - - return KsmBilling; - })(); - - BI.NhiBilling = (function() { - - /** - * Properties of a NhiBilling. - * @memberof BI - * @interface INhiBilling - * @property {number|Long|null} [billingStartTimestamp] NhiBilling billingStartTimestamp - * @property {number|Long|null} [billingEndTimestamp] NhiBilling billingEndTimestamp - * @property {number|null} [currentTierId] NhiBilling currentTierId - * @property {number|null} [enterpriseBlocks] NhiBilling enterpriseBlocks - * @property {number|null} [currentTierCeiling] NhiBilling currentTierCeiling - * @property {Array.|null} [billingPeriods] NhiBilling billingPeriods - */ - - /** - * Constructs a new NhiBilling. - * @memberof BI - * @classdesc Represents a NhiBilling. - * @implements INhiBilling - * @constructor - * @param {BI.INhiBilling=} [properties] Properties to set - */ - function NhiBilling(properties) { - this.billingPeriods = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") - this[keys[i]] = properties[keys[i]]; - } - - /** - * NhiBilling billingStartTimestamp. - * @member {number|Long} billingStartTimestamp - * @memberof BI.NhiBilling - * @instance - */ - NhiBilling.prototype.billingStartTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * NhiBilling billingEndTimestamp. - * @member {number|Long} billingEndTimestamp - * @memberof BI.NhiBilling - * @instance - */ - NhiBilling.prototype.billingEndTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * NhiBilling currentTierId. - * @member {number} currentTierId - * @memberof BI.NhiBilling - * @instance - */ - NhiBilling.prototype.currentTierId = 0; - - /** - * NhiBilling enterpriseBlocks. - * @member {number} enterpriseBlocks - * @memberof BI.NhiBilling - * @instance - */ - NhiBilling.prototype.enterpriseBlocks = 0; - - /** - * NhiBilling currentTierCeiling. - * @member {number} currentTierCeiling - * @memberof BI.NhiBilling - * @instance - */ - NhiBilling.prototype.currentTierCeiling = 0; - - /** - * NhiBilling billingPeriods. - * @member {Array.} billingPeriods - * @memberof BI.NhiBilling - * @instance - */ - NhiBilling.prototype.billingPeriods = $util.emptyArray; - - /** - * Creates a new NhiBilling instance using the specified properties. - * @function create - * @memberof BI.NhiBilling - * @static - * @param {BI.INhiBilling=} [properties] Properties to set - * @returns {BI.NhiBilling} NhiBilling instance - */ - NhiBilling.create = function create(properties) { - return new NhiBilling(properties); - }; - - /** - * Encodes the specified NhiBilling message. Does not implicitly {@link BI.NhiBilling.verify|verify} messages. - * @function encode - * @memberof BI.NhiBilling - * @static - * @param {BI.INhiBilling} message NhiBilling message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiBilling.encode = function encode(message, writer, q) { - if (!writer) - writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - if (message.billingStartTimestamp != null && Object.hasOwnProperty.call(message, "billingStartTimestamp")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.billingStartTimestamp); - if (message.billingEndTimestamp != null && Object.hasOwnProperty.call(message, "billingEndTimestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.billingEndTimestamp); - if (message.currentTierId != null && Object.hasOwnProperty.call(message, "currentTierId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.currentTierId); - if (message.enterpriseBlocks != null && Object.hasOwnProperty.call(message, "enterpriseBlocks")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.enterpriseBlocks); - if (message.currentTierCeiling != null && Object.hasOwnProperty.call(message, "currentTierCeiling")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.currentTierCeiling); - if (message.billingPeriods != null && message.billingPeriods.length) - for (let i = 0; i < message.billingPeriods.length; ++i) - $root.BI.NhiBillingPeriod.encode(message.billingPeriods[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); - return writer; - }; - - /** - * Encodes the specified NhiBilling message, length delimited. Does not implicitly {@link BI.NhiBilling.verify|verify} messages. - * @function encodeDelimited - * @memberof BI.NhiBilling - * @static - * @param {BI.INhiBilling} message NhiBilling message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NhiBilling.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NhiBilling message from the specified reader or buffer. - * @function decode - * @memberof BI.NhiBilling - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {BI.NhiBilling} NhiBilling - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NhiBilling.decode = function decode(reader, length, error, long) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NhiBilling(); - while (reader.pos < end) { - let tag = reader.uint32(); - if (tag === error) + switch (tag >>> 3) { + case 1: { + message.billingStartTimestamp = reader.int64(); + break; + } + case 2: { + message.billingEndTimestamp = reader.int64(); + break; + } + case 3: { + message.currentTierId = reader.int32(); + break; + } + case 4: { + message.enterpriseBlocks = reader.int32(); + break; + } + case 5: { + message.currentTierCeiling = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); break; + } + } + return message; + }; + + /** + * Decodes a KsmBilling message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof BI.KsmBilling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {BI.KsmBilling} KsmBilling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KsmBilling.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a KsmBilling message. + * @function verify + * @memberof BI.KsmBilling + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KsmBilling.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.billingStartTimestamp != null && message.hasOwnProperty("billingStartTimestamp")) + if (!$util.isInteger(message.billingStartTimestamp) && !(message.billingStartTimestamp && $util.isInteger(message.billingStartTimestamp.low) && $util.isInteger(message.billingStartTimestamp.high))) + return "billingStartTimestamp: integer|Long expected"; + if (message.billingEndTimestamp != null && message.hasOwnProperty("billingEndTimestamp")) + if (!$util.isInteger(message.billingEndTimestamp) && !(message.billingEndTimestamp && $util.isInteger(message.billingEndTimestamp.low) && $util.isInteger(message.billingEndTimestamp.high))) + return "billingEndTimestamp: integer|Long expected"; + if (message.currentTierId != null && message.hasOwnProperty("currentTierId")) + if (!$util.isInteger(message.currentTierId)) + return "currentTierId: integer expected"; + if (message.enterpriseBlocks != null && message.hasOwnProperty("enterpriseBlocks")) + if (!$util.isInteger(message.enterpriseBlocks)) + return "enterpriseBlocks: integer expected"; + if (message.currentTierCeiling != null && message.hasOwnProperty("currentTierCeiling")) + if (!$util.isInteger(message.currentTierCeiling)) + return "currentTierCeiling: integer expected"; + return null; + }; + + /** + * Creates a KsmBilling message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.KsmBilling + * @static + * @param {Object.} object Plain object + * @returns {BI.KsmBilling} KsmBilling + */ + KsmBilling.fromObject = function fromObject(object) { + if (object instanceof $root.BI.KsmBilling) + return object; + let message = new $root.BI.KsmBilling(); + if (object.billingStartTimestamp != null) + if ($util.Long) + (message.billingStartTimestamp = $util.Long.fromValue(object.billingStartTimestamp)).unsigned = false; + else if (typeof object.billingStartTimestamp === "string") + message.billingStartTimestamp = parseInt(object.billingStartTimestamp, 10); + else if (typeof object.billingStartTimestamp === "number") + message.billingStartTimestamp = object.billingStartTimestamp; + else if (typeof object.billingStartTimestamp === "object") + message.billingStartTimestamp = new $util.LongBits(object.billingStartTimestamp.low >>> 0, object.billingStartTimestamp.high >>> 0).toNumber(); + if (object.billingEndTimestamp != null) + if ($util.Long) + (message.billingEndTimestamp = $util.Long.fromValue(object.billingEndTimestamp)).unsigned = false; + else if (typeof object.billingEndTimestamp === "string") + message.billingEndTimestamp = parseInt(object.billingEndTimestamp, 10); + else if (typeof object.billingEndTimestamp === "number") + message.billingEndTimestamp = object.billingEndTimestamp; + else if (typeof object.billingEndTimestamp === "object") + message.billingEndTimestamp = new $util.LongBits(object.billingEndTimestamp.low >>> 0, object.billingEndTimestamp.high >>> 0).toNumber(); + if (object.currentTierId != null) + message.currentTierId = object.currentTierId | 0; + if (object.enterpriseBlocks != null) + message.enterpriseBlocks = object.enterpriseBlocks | 0; + if (object.currentTierCeiling != null) + message.currentTierCeiling = object.currentTierCeiling | 0; + return message; + }; + + /** + * Creates a plain object from a KsmBilling message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.KsmBilling + * @static + * @param {BI.KsmBilling} message KsmBilling + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KsmBilling.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.billingStartTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.billingStartTimestamp = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.billingEndTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.billingEndTimestamp = options.longs === String ? "0" : 0; + object.currentTierId = 0; + object.enterpriseBlocks = 0; + object.currentTierCeiling = 0; + } + if (message.billingStartTimestamp != null && message.hasOwnProperty("billingStartTimestamp")) + if (typeof message.billingStartTimestamp === "number") + object.billingStartTimestamp = options.longs === String ? String(message.billingStartTimestamp) : message.billingStartTimestamp; + else + object.billingStartTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.billingStartTimestamp) : options.longs === Number ? new $util.LongBits(message.billingStartTimestamp.low >>> 0, message.billingStartTimestamp.high >>> 0).toNumber() : message.billingStartTimestamp; + if (message.billingEndTimestamp != null && message.hasOwnProperty("billingEndTimestamp")) + if (typeof message.billingEndTimestamp === "number") + object.billingEndTimestamp = options.longs === String ? String(message.billingEndTimestamp) : message.billingEndTimestamp; + else + object.billingEndTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.billingEndTimestamp) : options.longs === Number ? new $util.LongBits(message.billingEndTimestamp.low >>> 0, message.billingEndTimestamp.high >>> 0).toNumber() : message.billingEndTimestamp; + if (message.currentTierId != null && message.hasOwnProperty("currentTierId")) + object.currentTierId = message.currentTierId; + if (message.enterpriseBlocks != null && message.hasOwnProperty("enterpriseBlocks")) + object.enterpriseBlocks = message.enterpriseBlocks; + if (message.currentTierCeiling != null && message.hasOwnProperty("currentTierCeiling")) + object.currentTierCeiling = message.currentTierCeiling; + return object; + }; + + /** + * Converts this KsmBilling to JSON. + * @function toJSON + * @memberof BI.KsmBilling + * @instance + * @returns {Object.} JSON object + */ + KsmBilling.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KsmBilling + * @function getTypeUrl + * @memberof BI.KsmBilling + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KsmBilling.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.KsmBilling"; + }; + + return KsmBilling; + })(); + + BI.NhiBilling = (function() { + + /** + * Properties of a NhiBilling. + * @memberof BI + * @interface INhiBilling + * @property {number|Long|null} [billingStartTimestamp] NhiBilling billingStartTimestamp + * @property {number|Long|null} [billingEndTimestamp] NhiBilling billingEndTimestamp + * @property {number|null} [currentTierId] NhiBilling currentTierId + * @property {number|null} [enterpriseBlocks] NhiBilling enterpriseBlocks + * @property {number|null} [currentTierCeiling] NhiBilling currentTierCeiling + * @property {Array.|null} [billingPeriods] NhiBilling billingPeriods + */ + + /** + * Constructs a new NhiBilling. + * @memberof BI + * @classdesc Represents a NhiBilling. + * @implements INhiBilling + * @constructor + * @param {BI.INhiBilling=} [properties] Properties to set + */ + function NhiBilling(properties) { + this.billingPeriods = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NhiBilling billingStartTimestamp. + * @member {number|Long} billingStartTimestamp + * @memberof BI.NhiBilling + * @instance + */ + NhiBilling.prototype.billingStartTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * NhiBilling billingEndTimestamp. + * @member {number|Long} billingEndTimestamp + * @memberof BI.NhiBilling + * @instance + */ + NhiBilling.prototype.billingEndTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * NhiBilling currentTierId. + * @member {number} currentTierId + * @memberof BI.NhiBilling + * @instance + */ + NhiBilling.prototype.currentTierId = 0; + + /** + * NhiBilling enterpriseBlocks. + * @member {number} enterpriseBlocks + * @memberof BI.NhiBilling + * @instance + */ + NhiBilling.prototype.enterpriseBlocks = 0; + + /** + * NhiBilling currentTierCeiling. + * @member {number} currentTierCeiling + * @memberof BI.NhiBilling + * @instance + */ + NhiBilling.prototype.currentTierCeiling = 0; + + /** + * NhiBilling billingPeriods. + * @member {Array.} billingPeriods + * @memberof BI.NhiBilling + * @instance + */ + NhiBilling.prototype.billingPeriods = $util.emptyArray; + + /** + * Creates a new NhiBilling instance using the specified properties. + * @function create + * @memberof BI.NhiBilling + * @static + * @param {BI.INhiBilling=} [properties] Properties to set + * @returns {BI.NhiBilling} NhiBilling instance + */ + NhiBilling.create = function create(properties) { + return new NhiBilling(properties); + }; + + /** + * Encodes the specified NhiBilling message. Does not implicitly {@link BI.NhiBilling.verify|verify} messages. + * @function encode + * @memberof BI.NhiBilling + * @static + * @param {BI.INhiBilling} message NhiBilling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NhiBilling.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.billingStartTimestamp != null && Object.hasOwnProperty.call(message, "billingStartTimestamp")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.billingStartTimestamp); + if (message.billingEndTimestamp != null && Object.hasOwnProperty.call(message, "billingEndTimestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.billingEndTimestamp); + if (message.currentTierId != null && Object.hasOwnProperty.call(message, "currentTierId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.currentTierId); + if (message.enterpriseBlocks != null && Object.hasOwnProperty.call(message, "enterpriseBlocks")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.enterpriseBlocks); + if (message.currentTierCeiling != null && Object.hasOwnProperty.call(message, "currentTierCeiling")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.currentTierCeiling); + if (message.billingPeriods != null && message.billingPeriods.length) + for (let i = 0; i < message.billingPeriods.length; ++i) + $root.BI.NhiBillingPeriod.encode(message.billingPeriods[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NhiBilling message, length delimited. Does not implicitly {@link BI.NhiBilling.verify|verify} messages. + * @function encodeDelimited + * @memberof BI.NhiBilling + * @static + * @param {BI.INhiBilling} message NhiBilling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NhiBilling.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NhiBilling message from the specified reader or buffer. + * @function decode + * @memberof BI.NhiBilling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {BI.NhiBilling} NhiBilling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NhiBilling.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NhiBilling(); + while (reader.pos < end) { + let tag = reader.uint32(); switch (tag >>> 3) { case 1: { message.billingStartTimestamp = reader.int64(); @@ -259080,11 +242740,11 @@ export const BI = $root.BI = (() => { case 6: { if (!(message.billingPeriods && message.billingPeriods.length)) message.billingPeriods = []; - message.billingPeriods.push($root.BI.NhiBillingPeriod.decode(reader, reader.uint32(), undefined, long + 1)); + message.billingPeriods.push($root.BI.NhiBillingPeriod.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -259115,13 +242775,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NhiBilling.verify = function verify(message, long) { + NhiBilling.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.billingStartTimestamp != null && message.hasOwnProperty("billingStartTimestamp")) if (!$util.isInteger(message.billingStartTimestamp) && !(message.billingStartTimestamp && $util.isInteger(message.billingStartTimestamp.low) && $util.isInteger(message.billingStartTimestamp.high))) return "billingStartTimestamp: integer|Long expected"; @@ -259141,7 +242797,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.billingPeriods)) return "billingPeriods: array expected"; for (let i = 0; i < message.billingPeriods.length; ++i) { - let error = $root.BI.NhiBillingPeriod.verify(message.billingPeriods[i], long + 1); + let error = $root.BI.NhiBillingPeriod.verify(message.billingPeriods[i]); if (error) return "billingPeriods." + error; } @@ -259157,17 +242813,13 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NhiBilling} NhiBilling */ - NhiBilling.fromObject = function fromObject(object, long) { + NhiBilling.fromObject = function fromObject(object) { if (object instanceof $root.BI.NhiBilling) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.NhiBilling(); if (object.billingStartTimestamp != null) if ($util.Long) - message.billingStartTimestamp = $util.Long.fromValue(object.billingStartTimestamp, false); + (message.billingStartTimestamp = $util.Long.fromValue(object.billingStartTimestamp)).unsigned = false; else if (typeof object.billingStartTimestamp === "string") message.billingStartTimestamp = parseInt(object.billingStartTimestamp, 10); else if (typeof object.billingStartTimestamp === "number") @@ -259176,7 +242828,7 @@ export const BI = $root.BI = (() => { message.billingStartTimestamp = new $util.LongBits(object.billingStartTimestamp.low >>> 0, object.billingStartTimestamp.high >>> 0).toNumber(); if (object.billingEndTimestamp != null) if ($util.Long) - message.billingEndTimestamp = $util.Long.fromValue(object.billingEndTimestamp, false); + (message.billingEndTimestamp = $util.Long.fromValue(object.billingEndTimestamp)).unsigned = false; else if (typeof object.billingEndTimestamp === "string") message.billingEndTimestamp = parseInt(object.billingEndTimestamp, 10); else if (typeof object.billingEndTimestamp === "number") @@ -259196,7 +242848,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.billingPeriods.length; ++i) { if (typeof object.billingPeriods[i] !== "object") throw TypeError(".BI.NhiBilling.billingPeriods: object expected"); - message.billingPeriods[i] = $root.BI.NhiBillingPeriod.fromObject(object.billingPeriods[i], long + 1); + message.billingPeriods[i] = $root.BI.NhiBillingPeriod.fromObject(object.billingPeriods[i]); } } return message; @@ -259211,42 +242863,34 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NhiBilling.toObject = function toObject(message, options, q) { + NhiBilling.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.billingPeriods = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.billingStartTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.billingStartTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.billingStartTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.billingStartTimestamp = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.billingEndTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.billingEndTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.billingEndTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.billingEndTimestamp = options.longs === String ? "0" : 0; object.currentTierId = 0; object.enterpriseBlocks = 0; object.currentTierCeiling = 0; } if (message.billingStartTimestamp != null && message.hasOwnProperty("billingStartTimestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.billingStartTimestamp = typeof message.billingStartTimestamp === "number" ? BigInt(message.billingStartTimestamp) : $util.Long.fromBits(message.billingStartTimestamp.low >>> 0, message.billingStartTimestamp.high >>> 0, false).toBigInt(); - else if (typeof message.billingStartTimestamp === "number") + if (typeof message.billingStartTimestamp === "number") object.billingStartTimestamp = options.longs === String ? String(message.billingStartTimestamp) : message.billingStartTimestamp; else object.billingStartTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.billingStartTimestamp) : options.longs === Number ? new $util.LongBits(message.billingStartTimestamp.low >>> 0, message.billingStartTimestamp.high >>> 0).toNumber() : message.billingStartTimestamp; if (message.billingEndTimestamp != null && message.hasOwnProperty("billingEndTimestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.billingEndTimestamp = typeof message.billingEndTimestamp === "number" ? BigInt(message.billingEndTimestamp) : $util.Long.fromBits(message.billingEndTimestamp.low >>> 0, message.billingEndTimestamp.high >>> 0, false).toBigInt(); - else if (typeof message.billingEndTimestamp === "number") + if (typeof message.billingEndTimestamp === "number") object.billingEndTimestamp = options.longs === String ? String(message.billingEndTimestamp) : message.billingEndTimestamp; else object.billingEndTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.billingEndTimestamp) : options.longs === Number ? new $util.LongBits(message.billingEndTimestamp.low >>> 0, message.billingEndTimestamp.high >>> 0).toNumber() : message.billingEndTimestamp; @@ -259259,7 +242903,7 @@ export const BI = $root.BI = (() => { if (message.billingPeriods && message.billingPeriods.length) { object.billingPeriods = []; for (let j = 0; j < message.billingPeriods.length; ++j) - object.billingPeriods[j] = $root.BI.NhiBillingPeriod.toObject(message.billingPeriods[j], options, q + 1); + object.billingPeriods[j] = $root.BI.NhiBillingPeriod.toObject(message.billingPeriods[j], options); } return object; }; @@ -259314,7 +242958,7 @@ export const BI = $root.BI = (() => { function NhiBillingPeriod(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -259355,13 +242999,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NhiBillingPeriod.encode = function encode(message, writer, q) { + NhiBillingPeriod.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.startTimestamp != null && Object.hasOwnProperty.call(message, "startTimestamp")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.startTimestamp); if (message.endTimestamp != null && Object.hasOwnProperty.call(message, "endTimestamp")) @@ -259393,18 +243033,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NhiBillingPeriod.decode = function decode(reader, length, error, long) { + NhiBillingPeriod.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NhiBillingPeriod(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.startTimestamp = reader.int64(); @@ -259415,7 +243049,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -259446,13 +243080,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NhiBillingPeriod.verify = function verify(message, long) { + NhiBillingPeriod.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.startTimestamp != null && message.hasOwnProperty("startTimestamp")) if (!$util.isInteger(message.startTimestamp) && !(message.startTimestamp && $util.isInteger(message.startTimestamp.low) && $util.isInteger(message.startTimestamp.high))) return "startTimestamp: integer|Long expected"; @@ -259470,17 +243100,13 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NhiBillingPeriod} NhiBillingPeriod */ - NhiBillingPeriod.fromObject = function fromObject(object, long) { + NhiBillingPeriod.fromObject = function fromObject(object) { if (object instanceof $root.BI.NhiBillingPeriod) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.NhiBillingPeriod(); if (object.startTimestamp != null) if ($util.Long) - message.startTimestamp = $util.Long.fromValue(object.startTimestamp, false); + (message.startTimestamp = $util.Long.fromValue(object.startTimestamp)).unsigned = false; else if (typeof object.startTimestamp === "string") message.startTimestamp = parseInt(object.startTimestamp, 10); else if (typeof object.startTimestamp === "number") @@ -259489,7 +243115,7 @@ export const BI = $root.BI = (() => { message.startTimestamp = new $util.LongBits(object.startTimestamp.low >>> 0, object.startTimestamp.high >>> 0).toNumber(); if (object.endTimestamp != null) if ($util.Long) - message.endTimestamp = $util.Long.fromValue(object.endTimestamp, false); + (message.endTimestamp = $util.Long.fromValue(object.endTimestamp)).unsigned = false; else if (typeof object.endTimestamp === "string") message.endTimestamp = parseInt(object.endTimestamp, 10); else if (typeof object.endTimestamp === "number") @@ -259508,37 +243134,29 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NhiBillingPeriod.toObject = function toObject(message, options, q) { + NhiBillingPeriod.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.startTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.startTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.startTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.startTimestamp = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.endTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.endTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.endTimestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.endTimestamp = options.longs === String ? "0" : 0; } if (message.startTimestamp != null && message.hasOwnProperty("startTimestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.startTimestamp = typeof message.startTimestamp === "number" ? BigInt(message.startTimestamp) : $util.Long.fromBits(message.startTimestamp.low >>> 0, message.startTimestamp.high >>> 0, false).toBigInt(); - else if (typeof message.startTimestamp === "number") + if (typeof message.startTimestamp === "number") object.startTimestamp = options.longs === String ? String(message.startTimestamp) : message.startTimestamp; else object.startTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.startTimestamp) : options.longs === Number ? new $util.LongBits(message.startTimestamp.low >>> 0, message.startTimestamp.high >>> 0).toNumber() : message.startTimestamp; if (message.endTimestamp != null && message.hasOwnProperty("endTimestamp")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.endTimestamp = typeof message.endTimestamp === "number" ? BigInt(message.endTimestamp) : $util.Long.fromBits(message.endTimestamp.low >>> 0, message.endTimestamp.high >>> 0, false).toBigInt(); - else if (typeof message.endTimestamp === "number") + if (typeof message.endTimestamp === "number") object.endTimestamp = options.longs === String ? String(message.endTimestamp) : message.endTimestamp; else object.endTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.endTimestamp) : options.longs === Number ? new $util.LongBits(message.endTimestamp.low >>> 0, message.endTimestamp.high >>> 0).toNumber() : message.endTimestamp; @@ -259596,7 +243214,7 @@ export const BI = $root.BI = (() => { function LicenseStats(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -259645,13 +243263,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LicenseStats.encode = function encode(message, writer, q) { + LicenseStats.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); if (message.available != null && Object.hasOwnProperty.call(message, "available")) @@ -259685,18 +243299,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LicenseStats.decode = function decode(reader, length, error, long) { + LicenseStats.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.LicenseStats(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.type = reader.int32(); @@ -259711,7 +243319,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -259742,13 +243350,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LicenseStats.verify = function verify(message, long) { + LicenseStats.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.type != null && message.hasOwnProperty("type")) switch (message.type) { default: @@ -259781,13 +243385,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.LicenseStats} LicenseStats */ - LicenseStats.fromObject = function fromObject(object, long) { + LicenseStats.fromObject = function fromObject(object) { if (object instanceof $root.BI.LicenseStats) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.LicenseStats(); switch (object.type) { default: @@ -259849,13 +243449,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LicenseStats.toObject = function toObject(message, options, q) { + LicenseStats.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.type = options.enums === String ? "LICENSE_STAT_UNKNOWN" : 0; @@ -259950,7 +243546,7 @@ export const BI = $root.BI = (() => { function AutoRenewal(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -259999,13 +243595,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoRenewal.encode = function encode(message, writer, q) { + AutoRenewal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nextOn != null && Object.hasOwnProperty.call(message, "nextOn")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nextOn); if (message.daysLeft != null && Object.hasOwnProperty.call(message, "daysLeft")) @@ -260039,18 +243631,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoRenewal.decode = function decode(reader, length, error, long) { + AutoRenewal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AutoRenewal(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nextOn = reader.int64(); @@ -260065,7 +243651,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -260096,13 +243682,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutoRenewal.verify = function verify(message, long) { + AutoRenewal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.nextOn != null && message.hasOwnProperty("nextOn")) if (!$util.isInteger(message.nextOn) && !(message.nextOn && $util.isInteger(message.nextOn.low) && $util.isInteger(message.nextOn.high))) return "nextOn: integer|Long expected"; @@ -260123,17 +243705,13 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.AutoRenewal} AutoRenewal */ - AutoRenewal.fromObject = function fromObject(object, long) { + AutoRenewal.fromObject = function fromObject(object) { if (object instanceof $root.BI.AutoRenewal) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.AutoRenewal(); if (object.nextOn != null) if ($util.Long) - message.nextOn = $util.Long.fromValue(object.nextOn, false); + (message.nextOn = $util.Long.fromValue(object.nextOn)).unsigned = false; else if (typeof object.nextOn === "string") message.nextOn = parseInt(object.nextOn, 10); else if (typeof object.nextOn === "number") @@ -260156,27 +243734,21 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutoRenewal.toObject = function toObject(message, options, q) { + AutoRenewal.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nextOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nextOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nextOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nextOn = options.longs === String ? "0" : 0; object.daysLeft = 0; object.isTrial = false; } if (message.nextOn != null && message.hasOwnProperty("nextOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nextOn = typeof message.nextOn === "number" ? BigInt(message.nextOn) : $util.Long.fromBits(message.nextOn.low >>> 0, message.nextOn.high >>> 0, false).toBigInt(); - else if (typeof message.nextOn === "number") + if (typeof message.nextOn === "number") object.nextOn = options.longs === String ? String(message.nextOn) : message.nextOn; else object.nextOn = options.longs === String ? $util.Long.prototype.toString.call(message.nextOn) : options.longs === Number ? new $util.LongBits(message.nextOn.low >>> 0, message.nextOn.high >>> 0).toNumber() : message.nextOn; @@ -260242,7 +243814,7 @@ export const BI = $root.BI = (() => { function PaymentMethod(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -260323,27 +243895,23 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PaymentMethod.encode = function encode(message, writer, q) { + PaymentMethod.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); if (message.card != null && Object.hasOwnProperty.call(message, "card")) - $root.BI.PaymentMethod.Card.encode(message.card, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.PaymentMethod.Card.encode(message.card, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.sepa != null && Object.hasOwnProperty.call(message, "sepa")) - $root.BI.PaymentMethod.Sepa.encode(message.sepa, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BI.PaymentMethod.Sepa.encode(message.sepa, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.paypal != null && Object.hasOwnProperty.call(message, "paypal")) - $root.BI.PaymentMethod.Paypal.encode(message.paypal, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.BI.PaymentMethod.Paypal.encode(message.paypal, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.failedBilling != null && Object.hasOwnProperty.call(message, "failedBilling")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.failedBilling); if (message.vendor != null && Object.hasOwnProperty.call(message, "vendor")) - $root.BI.PaymentMethod.Vendor.encode(message.vendor, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.BI.PaymentMethod.Vendor.encode(message.vendor, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.purchaseOrder != null && Object.hasOwnProperty.call(message, "purchaseOrder")) - $root.BI.PaymentMethod.PurchaseOrder.encode(message.purchaseOrder, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.BI.PaymentMethod.PurchaseOrder.encode(message.purchaseOrder, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -260371,33 +243939,27 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PaymentMethod.decode = function decode(reader, length, error, long) { + PaymentMethod.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.type = reader.int32(); break; } case 2: { - message.card = $root.BI.PaymentMethod.Card.decode(reader, reader.uint32(), undefined, long + 1); + message.card = $root.BI.PaymentMethod.Card.decode(reader, reader.uint32()); break; } case 3: { - message.sepa = $root.BI.PaymentMethod.Sepa.decode(reader, reader.uint32(), undefined, long + 1); + message.sepa = $root.BI.PaymentMethod.Sepa.decode(reader, reader.uint32()); break; } case 4: { - message.paypal = $root.BI.PaymentMethod.Paypal.decode(reader, reader.uint32(), undefined, long + 1); + message.paypal = $root.BI.PaymentMethod.Paypal.decode(reader, reader.uint32()); break; } case 5: { @@ -260405,15 +243967,15 @@ export const BI = $root.BI = (() => { break; } case 6: { - message.vendor = $root.BI.PaymentMethod.Vendor.decode(reader, reader.uint32(), undefined, long + 1); + message.vendor = $root.BI.PaymentMethod.Vendor.decode(reader, reader.uint32()); break; } case 7: { - message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.decode(reader, reader.uint32(), undefined, long + 1); + message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -260444,13 +244006,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PaymentMethod.verify = function verify(message, long) { + PaymentMethod.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.type != null && message.hasOwnProperty("type")) switch (message.type) { default: @@ -260464,17 +244022,17 @@ export const BI = $root.BI = (() => { break; } if (message.card != null && message.hasOwnProperty("card")) { - let error = $root.BI.PaymentMethod.Card.verify(message.card, long + 1); + let error = $root.BI.PaymentMethod.Card.verify(message.card); if (error) return "card." + error; } if (message.sepa != null && message.hasOwnProperty("sepa")) { - let error = $root.BI.PaymentMethod.Sepa.verify(message.sepa, long + 1); + let error = $root.BI.PaymentMethod.Sepa.verify(message.sepa); if (error) return "sepa." + error; } if (message.paypal != null && message.hasOwnProperty("paypal")) { - let error = $root.BI.PaymentMethod.Paypal.verify(message.paypal, long + 1); + let error = $root.BI.PaymentMethod.Paypal.verify(message.paypal); if (error) return "paypal." + error; } @@ -260482,12 +244040,12 @@ export const BI = $root.BI = (() => { if (typeof message.failedBilling !== "boolean") return "failedBilling: boolean expected"; if (message.vendor != null && message.hasOwnProperty("vendor")) { - let error = $root.BI.PaymentMethod.Vendor.verify(message.vendor, long + 1); + let error = $root.BI.PaymentMethod.Vendor.verify(message.vendor); if (error) return "vendor." + error; } if (message.purchaseOrder != null && message.hasOwnProperty("purchaseOrder")) { - let error = $root.BI.PaymentMethod.PurchaseOrder.verify(message.purchaseOrder, long + 1); + let error = $root.BI.PaymentMethod.PurchaseOrder.verify(message.purchaseOrder); if (error) return "purchaseOrder." + error; } @@ -260502,13 +244060,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.PaymentMethod} PaymentMethod */ - PaymentMethod.fromObject = function fromObject(object, long) { + PaymentMethod.fromObject = function fromObject(object) { if (object instanceof $root.BI.PaymentMethod) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.PaymentMethod(); switch (object.type) { default: @@ -260545,29 +244099,29 @@ export const BI = $root.BI = (() => { if (object.card != null) { if (typeof object.card !== "object") throw TypeError(".BI.PaymentMethod.card: object expected"); - message.card = $root.BI.PaymentMethod.Card.fromObject(object.card, long + 1); + message.card = $root.BI.PaymentMethod.Card.fromObject(object.card); } if (object.sepa != null) { if (typeof object.sepa !== "object") throw TypeError(".BI.PaymentMethod.sepa: object expected"); - message.sepa = $root.BI.PaymentMethod.Sepa.fromObject(object.sepa, long + 1); + message.sepa = $root.BI.PaymentMethod.Sepa.fromObject(object.sepa); } if (object.paypal != null) { if (typeof object.paypal !== "object") throw TypeError(".BI.PaymentMethod.paypal: object expected"); - message.paypal = $root.BI.PaymentMethod.Paypal.fromObject(object.paypal, long + 1); + message.paypal = $root.BI.PaymentMethod.Paypal.fromObject(object.paypal); } if (object.failedBilling != null) message.failedBilling = Boolean(object.failedBilling); if (object.vendor != null) { if (typeof object.vendor !== "object") throw TypeError(".BI.PaymentMethod.vendor: object expected"); - message.vendor = $root.BI.PaymentMethod.Vendor.fromObject(object.vendor, long + 1); + message.vendor = $root.BI.PaymentMethod.Vendor.fromObject(object.vendor); } if (object.purchaseOrder != null) { if (typeof object.purchaseOrder !== "object") throw TypeError(".BI.PaymentMethod.purchaseOrder: object expected"); - message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.fromObject(object.purchaseOrder, long + 1); + message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.fromObject(object.purchaseOrder); } return message; }; @@ -260581,13 +244135,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PaymentMethod.toObject = function toObject(message, options, q) { + PaymentMethod.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.type = options.enums === String ? "CARD" : 0; @@ -260601,17 +244151,17 @@ export const BI = $root.BI = (() => { if (message.type != null && message.hasOwnProperty("type")) object.type = options.enums === String ? $root.BI.PaymentMethod.Type[message.type] === undefined ? message.type : $root.BI.PaymentMethod.Type[message.type] : message.type; if (message.card != null && message.hasOwnProperty("card")) - object.card = $root.BI.PaymentMethod.Card.toObject(message.card, options, q + 1); + object.card = $root.BI.PaymentMethod.Card.toObject(message.card, options); if (message.sepa != null && message.hasOwnProperty("sepa")) - object.sepa = $root.BI.PaymentMethod.Sepa.toObject(message.sepa, options, q + 1); + object.sepa = $root.BI.PaymentMethod.Sepa.toObject(message.sepa, options); if (message.paypal != null && message.hasOwnProperty("paypal")) - object.paypal = $root.BI.PaymentMethod.Paypal.toObject(message.paypal, options, q + 1); + object.paypal = $root.BI.PaymentMethod.Paypal.toObject(message.paypal, options); if (message.failedBilling != null && message.hasOwnProperty("failedBilling")) object.failedBilling = message.failedBilling; if (message.vendor != null && message.hasOwnProperty("vendor")) - object.vendor = $root.BI.PaymentMethod.Vendor.toObject(message.vendor, options, q + 1); + object.vendor = $root.BI.PaymentMethod.Vendor.toObject(message.vendor, options); if (message.purchaseOrder != null && message.hasOwnProperty("purchaseOrder")) - object.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.toObject(message.purchaseOrder, options, q + 1); + object.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.toObject(message.purchaseOrder, options); return object; }; @@ -260684,7 +244234,7 @@ export const BI = $root.BI = (() => { function Card(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -260725,13 +244275,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Card.encode = function encode(message, writer, q) { + Card.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.last4 != null && Object.hasOwnProperty.call(message, "last4")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.last4); if (message.brand != null && Object.hasOwnProperty.call(message, "brand")) @@ -260763,18 +244309,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Card.decode = function decode(reader, length, error, long) { + Card.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Card(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.last4 = reader.string(); @@ -260785,7 +244325,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -260816,13 +244356,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Card.verify = function verify(message, long) { + Card.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.last4 != null && message.hasOwnProperty("last4")) if (!$util.isString(message.last4)) return "last4: string expected"; @@ -260840,13 +244376,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.PaymentMethod.Card} Card */ - Card.fromObject = function fromObject(object, long) { + Card.fromObject = function fromObject(object) { if (object instanceof $root.BI.PaymentMethod.Card) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.PaymentMethod.Card(); if (object.last4 != null) message.last4 = String(object.last4); @@ -260864,13 +244396,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Card.toObject = function toObject(message, options, q) { + Card.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.last4 = ""; @@ -260933,7 +244461,7 @@ export const BI = $root.BI = (() => { function Sepa(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -260974,13 +244502,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Sepa.encode = function encode(message, writer, q) { + Sepa.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.last4 != null && Object.hasOwnProperty.call(message, "last4")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.last4); if (message.country != null && Object.hasOwnProperty.call(message, "country")) @@ -261012,18 +244536,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Sepa.decode = function decode(reader, length, error, long) { + Sepa.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Sepa(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.last4 = reader.string(); @@ -261034,7 +244552,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -261065,13 +244583,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Sepa.verify = function verify(message, long) { + Sepa.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.last4 != null && message.hasOwnProperty("last4")) if (!$util.isString(message.last4)) return "last4: string expected"; @@ -261089,13 +244603,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.PaymentMethod.Sepa} Sepa */ - Sepa.fromObject = function fromObject(object, long) { + Sepa.fromObject = function fromObject(object) { if (object instanceof $root.BI.PaymentMethod.Sepa) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.PaymentMethod.Sepa(); if (object.last4 != null) message.last4 = String(object.last4); @@ -261113,13 +244623,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Sepa.toObject = function toObject(message, options, q) { + Sepa.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.last4 = ""; @@ -261180,7 +244686,7 @@ export const BI = $root.BI = (() => { function Paypal(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -261205,13 +244711,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Paypal.encode = function encode(message, writer, q) { + Paypal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -261239,21 +244741,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Paypal.decode = function decode(reader, length, error, long) { + Paypal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Paypal(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -261284,13 +244780,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Paypal.verify = function verify(message, long) { + Paypal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -261302,13 +244794,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.PaymentMethod.Paypal} Paypal */ - Paypal.fromObject = function fromObject(object, long) { + Paypal.fromObject = function fromObject(object) { if (object instanceof $root.BI.PaymentMethod.Paypal) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.PaymentMethod.Paypal(); }; @@ -261374,7 +244862,7 @@ export const BI = $root.BI = (() => { function Vendor(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -261407,13 +244895,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Vendor.encode = function encode(message, writer, q) { + Vendor.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; @@ -261443,25 +244927,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Vendor.decode = function decode(reader, length, error, long) { + Vendor.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Vendor(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -261492,13 +244970,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Vendor.verify = function verify(message, long) { + Vendor.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -261513,13 +244987,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.PaymentMethod.Vendor} Vendor */ - Vendor.fromObject = function fromObject(object, long) { + Vendor.fromObject = function fromObject(object) { if (object instanceof $root.BI.PaymentMethod.Vendor) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.PaymentMethod.Vendor(); if (object.name != null) message.name = String(object.name); @@ -261535,13 +245005,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Vendor.toObject = function toObject(message, options, q) { + Vendor.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.name = ""; @@ -261599,7 +245065,7 @@ export const BI = $root.BI = (() => { function PurchaseOrder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -261632,13 +245098,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurchaseOrder.encode = function encode(message, writer, q) { + PurchaseOrder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; @@ -261668,25 +245130,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurchaseOrder.decode = function decode(reader, length, error, long) { + PurchaseOrder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.PurchaseOrder(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -261717,13 +245173,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurchaseOrder.verify = function verify(message, long) { + PurchaseOrder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -261738,13 +245190,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.PaymentMethod.PurchaseOrder} PurchaseOrder */ - PurchaseOrder.fromObject = function fromObject(object, long) { + PurchaseOrder.fromObject = function fromObject(object) { if (object instanceof $root.BI.PaymentMethod.PurchaseOrder) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.PaymentMethod.PurchaseOrder(); if (object.name != null) message.name = String(object.name); @@ -261760,13 +245208,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurchaseOrder.toObject = function toObject(message, options, q) { + PurchaseOrder.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.name = ""; @@ -261826,7 +245270,7 @@ export const BI = $root.BI = (() => { function SubscriptionMspPricingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -261851,13 +245295,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMspPricingRequest.encode = function encode(message, writer, q) { + SubscriptionMspPricingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -261885,21 +245325,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SubscriptionMspPricingRequest.decode = function decode(reader, length, error, long) { + SubscriptionMspPricingRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMspPricingRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -261930,13 +245364,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SubscriptionMspPricingRequest.verify = function verify(message, long) { + SubscriptionMspPricingRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -261948,13 +245378,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SubscriptionMspPricingRequest} SubscriptionMspPricingRequest */ - SubscriptionMspPricingRequest.fromObject = function fromObject(object, long) { + SubscriptionMspPricingRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.SubscriptionMspPricingRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.SubscriptionMspPricingRequest(); }; @@ -262023,7 +245449,7 @@ export const BI = $root.BI = (() => { this.filePlans = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -262064,19 +245490,15 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMspPricingResponse.encode = function encode(message, writer, q) { + SubscriptionMspPricingResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.addons != null && message.addons.length) for (let i = 0; i < message.addons.length; ++i) - $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.filePlans != null && message.filePlans.length) for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -262104,33 +245526,27 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SubscriptionMspPricingResponse.decode = function decode(reader, length, error, long) { + SubscriptionMspPricingResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMspPricingResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 2: { if (!(message.addons && message.addons.length)) message.addons = []; - message.addons.push($root.BI.Addon.decode(reader, reader.uint32(), undefined, long + 1)); + message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); break; } case 3: { if (!(message.filePlans && message.filePlans.length)) message.filePlans = []; - message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32(), undefined, long + 1)); + message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -262161,18 +245577,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SubscriptionMspPricingResponse.verify = function verify(message, long) { + SubscriptionMspPricingResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.addons != null && message.hasOwnProperty("addons")) { if (!Array.isArray(message.addons)) return "addons: array expected"; for (let i = 0; i < message.addons.length; ++i) { - let error = $root.BI.Addon.verify(message.addons[i], long + 1); + let error = $root.BI.Addon.verify(message.addons[i]); if (error) return "addons." + error; } @@ -262181,7 +245593,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.filePlans)) return "filePlans: array expected"; for (let i = 0; i < message.filePlans.length; ++i) { - let error = $root.BI.FilePlan.verify(message.filePlans[i], long + 1); + let error = $root.BI.FilePlan.verify(message.filePlans[i]); if (error) return "filePlans." + error; } @@ -262197,13 +245609,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SubscriptionMspPricingResponse} SubscriptionMspPricingResponse */ - SubscriptionMspPricingResponse.fromObject = function fromObject(object, long) { + SubscriptionMspPricingResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.SubscriptionMspPricingResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SubscriptionMspPricingResponse(); if (object.addons) { if (!Array.isArray(object.addons)) @@ -262212,7 +245620,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.addons.length; ++i) { if (typeof object.addons[i] !== "object") throw TypeError(".BI.SubscriptionMspPricingResponse.addons: object expected"); - message.addons[i] = $root.BI.Addon.fromObject(object.addons[i], long + 1); + message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); } } if (object.filePlans) { @@ -262222,7 +245630,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.filePlans.length; ++i) { if (typeof object.filePlans[i] !== "object") throw TypeError(".BI.SubscriptionMspPricingResponse.filePlans: object expected"); - message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i], long + 1); + message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); } } return message; @@ -262237,13 +245645,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionMspPricingResponse.toObject = function toObject(message, options, q) { + SubscriptionMspPricingResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.addons = []; @@ -262252,12 +245656,12 @@ export const BI = $root.BI = (() => { if (message.addons && message.addons.length) { object.addons = []; for (let j = 0; j < message.addons.length; ++j) - object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options, q + 1); + object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options); } if (message.filePlans && message.filePlans.length) { object.filePlans = []; for (let j = 0; j < message.filePlans.length; ++j) - object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options, q + 1); + object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options); } return object; }; @@ -262310,7 +245714,7 @@ export const BI = $root.BI = (() => { function SubscriptionMcPricingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -262335,13 +245739,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMcPricingRequest.encode = function encode(message, writer, q) { + SubscriptionMcPricingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -262369,21 +245769,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SubscriptionMcPricingRequest.decode = function decode(reader, length, error, long) { + SubscriptionMcPricingRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMcPricingRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -262414,13 +245808,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SubscriptionMcPricingRequest.verify = function verify(message, long) { + SubscriptionMcPricingRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -262432,13 +245822,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SubscriptionMcPricingRequest} SubscriptionMcPricingRequest */ - SubscriptionMcPricingRequest.fromObject = function fromObject(object, long) { + SubscriptionMcPricingRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.SubscriptionMcPricingRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.SubscriptionMcPricingRequest(); }; @@ -262509,7 +245895,7 @@ export const BI = $root.BI = (() => { this.filePlans = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -262558,22 +245944,18 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionMcPricingResponse.encode = function encode(message, writer, q) { + SubscriptionMcPricingResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.basePlans != null && message.basePlans.length) for (let i = 0; i < message.basePlans.length; ++i) - $root.BI.BasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.BasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.addons != null && message.addons.length) for (let i = 0; i < message.addons.length; ++i) - $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.filePlans != null && message.filePlans.length) for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -262601,39 +245983,33 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SubscriptionMcPricingResponse.decode = function decode(reader, length, error, long) { + SubscriptionMcPricingResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMcPricingResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.basePlans && message.basePlans.length)) message.basePlans = []; - message.basePlans.push($root.BI.BasePlan.decode(reader, reader.uint32(), undefined, long + 1)); + message.basePlans.push($root.BI.BasePlan.decode(reader, reader.uint32())); break; } case 2: { if (!(message.addons && message.addons.length)) message.addons = []; - message.addons.push($root.BI.Addon.decode(reader, reader.uint32(), undefined, long + 1)); + message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); break; } case 3: { if (!(message.filePlans && message.filePlans.length)) message.filePlans = []; - message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32(), undefined, long + 1)); + message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -262664,18 +246040,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SubscriptionMcPricingResponse.verify = function verify(message, long) { + SubscriptionMcPricingResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.basePlans != null && message.hasOwnProperty("basePlans")) { if (!Array.isArray(message.basePlans)) return "basePlans: array expected"; for (let i = 0; i < message.basePlans.length; ++i) { - let error = $root.BI.BasePlan.verify(message.basePlans[i], long + 1); + let error = $root.BI.BasePlan.verify(message.basePlans[i]); if (error) return "basePlans." + error; } @@ -262684,7 +246056,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.addons)) return "addons: array expected"; for (let i = 0; i < message.addons.length; ++i) { - let error = $root.BI.Addon.verify(message.addons[i], long + 1); + let error = $root.BI.Addon.verify(message.addons[i]); if (error) return "addons." + error; } @@ -262693,7 +246065,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.filePlans)) return "filePlans: array expected"; for (let i = 0; i < message.filePlans.length; ++i) { - let error = $root.BI.FilePlan.verify(message.filePlans[i], long + 1); + let error = $root.BI.FilePlan.verify(message.filePlans[i]); if (error) return "filePlans." + error; } @@ -262709,13 +246081,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SubscriptionMcPricingResponse} SubscriptionMcPricingResponse */ - SubscriptionMcPricingResponse.fromObject = function fromObject(object, long) { + SubscriptionMcPricingResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.SubscriptionMcPricingResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SubscriptionMcPricingResponse(); if (object.basePlans) { if (!Array.isArray(object.basePlans)) @@ -262724,7 +246092,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.basePlans.length; ++i) { if (typeof object.basePlans[i] !== "object") throw TypeError(".BI.SubscriptionMcPricingResponse.basePlans: object expected"); - message.basePlans[i] = $root.BI.BasePlan.fromObject(object.basePlans[i], long + 1); + message.basePlans[i] = $root.BI.BasePlan.fromObject(object.basePlans[i]); } } if (object.addons) { @@ -262734,7 +246102,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.addons.length; ++i) { if (typeof object.addons[i] !== "object") throw TypeError(".BI.SubscriptionMcPricingResponse.addons: object expected"); - message.addons[i] = $root.BI.Addon.fromObject(object.addons[i], long + 1); + message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); } } if (object.filePlans) { @@ -262744,7 +246112,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.filePlans.length; ++i) { if (typeof object.filePlans[i] !== "object") throw TypeError(".BI.SubscriptionMcPricingResponse.filePlans: object expected"); - message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i], long + 1); + message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); } } return message; @@ -262759,13 +246127,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionMcPricingResponse.toObject = function toObject(message, options, q) { + SubscriptionMcPricingResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.basePlans = []; @@ -262775,17 +246139,17 @@ export const BI = $root.BI = (() => { if (message.basePlans && message.basePlans.length) { object.basePlans = []; for (let j = 0; j < message.basePlans.length; ++j) - object.basePlans[j] = $root.BI.BasePlan.toObject(message.basePlans[j], options, q + 1); + object.basePlans[j] = $root.BI.BasePlan.toObject(message.basePlans[j], options); } if (message.addons && message.addons.length) { object.addons = []; for (let j = 0; j < message.addons.length; ++j) - object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options, q + 1); + object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options); } if (message.filePlans && message.filePlans.length) { object.filePlans = []; for (let j = 0; j < message.filePlans.length; ++j) - object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options, q + 1); + object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options); } return object; }; @@ -262840,7 +246204,7 @@ export const BI = $root.BI = (() => { function BasePlan(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -262881,17 +246245,13 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BasePlan.encode = function encode(message, writer, q) { + BasePlan.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -262919,29 +246279,23 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BasePlan.decode = function decode(reader, length, error, long) { + BasePlan.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.BasePlan(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int32(); break; } case 2: { - message.cost = $root.BI.Cost.decode(reader, reader.uint32(), undefined, long + 1); + message.cost = $root.BI.Cost.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -262972,18 +246326,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BasePlan.verify = function verify(message, long) { + BasePlan.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id)) return "id: integer expected"; if (message.cost != null && message.hasOwnProperty("cost")) { - let error = $root.BI.Cost.verify(message.cost, long + 1); + let error = $root.BI.Cost.verify(message.cost); if (error) return "cost." + error; } @@ -262998,20 +246348,16 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.BasePlan} BasePlan */ - BasePlan.fromObject = function fromObject(object, long) { + BasePlan.fromObject = function fromObject(object) { if (object instanceof $root.BI.BasePlan) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.BasePlan(); if (object.id != null) message.id = object.id | 0; if (object.cost != null) { if (typeof object.cost !== "object") throw TypeError(".BI.BasePlan.cost: object expected"); - message.cost = $root.BI.Cost.fromObject(object.cost, long + 1); + message.cost = $root.BI.Cost.fromObject(object.cost); } return message; }; @@ -263025,13 +246371,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BasePlan.toObject = function toObject(message, options, q) { + BasePlan.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id = 0; @@ -263040,7 +246382,7 @@ export const BI = $root.BI = (() => { if (message.id != null && message.hasOwnProperty("id")) object.id = message.id; if (message.cost != null && message.hasOwnProperty("cost")) - object.cost = $root.BI.Cost.toObject(message.cost, options, q + 1); + object.cost = $root.BI.Cost.toObject(message.cost, options); return object; }; @@ -263095,7 +246437,7 @@ export const BI = $root.BI = (() => { function Addon(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -263144,17 +246486,13 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Addon.encode = function encode(message, writer, q) { + Addon.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.amountConsumed != null && Object.hasOwnProperty.call(message, "amountConsumed")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.amountConsumed); return writer; @@ -263184,25 +246522,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Addon.decode = function decode(reader, length, error, long) { + Addon.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Addon(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int32(); break; } case 2: { - message.cost = $root.BI.Cost.decode(reader, reader.uint32(), undefined, long + 1); + message.cost = $root.BI.Cost.decode(reader, reader.uint32()); break; } case 3: { @@ -263210,7 +246542,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -263241,18 +246573,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Addon.verify = function verify(message, long) { + Addon.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id)) return "id: integer expected"; if (message.cost != null && message.hasOwnProperty("cost")) { - let error = $root.BI.Cost.verify(message.cost, long + 1); + let error = $root.BI.Cost.verify(message.cost); if (error) return "cost." + error; } @@ -263270,24 +246598,20 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.Addon} Addon */ - Addon.fromObject = function fromObject(object, long) { + Addon.fromObject = function fromObject(object) { if (object instanceof $root.BI.Addon) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.Addon(); if (object.id != null) message.id = object.id | 0; if (object.cost != null) { if (typeof object.cost !== "object") throw TypeError(".BI.Addon.cost: object expected"); - message.cost = $root.BI.Cost.fromObject(object.cost, long + 1); + message.cost = $root.BI.Cost.fromObject(object.cost); } if (object.amountConsumed != null) if ($util.Long) - message.amountConsumed = $util.Long.fromValue(object.amountConsumed, false); + (message.amountConsumed = $util.Long.fromValue(object.amountConsumed)).unsigned = false; else if (typeof object.amountConsumed === "string") message.amountConsumed = parseInt(object.amountConsumed, 10); else if (typeof object.amountConsumed === "number") @@ -263306,31 +246630,25 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Addon.toObject = function toObject(message, options, q) { + Addon.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id = 0; object.cost = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.amountConsumed = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.amountConsumed = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.amountConsumed = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.amountConsumed = options.longs === String ? "0" : 0; } if (message.id != null && message.hasOwnProperty("id")) object.id = message.id; if (message.cost != null && message.hasOwnProperty("cost")) - object.cost = $root.BI.Cost.toObject(message.cost, options, q + 1); + object.cost = $root.BI.Cost.toObject(message.cost, options); if (message.amountConsumed != null && message.hasOwnProperty("amountConsumed")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.amountConsumed = typeof message.amountConsumed === "number" ? BigInt(message.amountConsumed) : $util.Long.fromBits(message.amountConsumed.low >>> 0, message.amountConsumed.high >>> 0, false).toBigInt(); - else if (typeof message.amountConsumed === "number") + if (typeof message.amountConsumed === "number") object.amountConsumed = options.longs === String ? String(message.amountConsumed) : message.amountConsumed; else object.amountConsumed = options.longs === String ? $util.Long.prototype.toString.call(message.amountConsumed) : options.longs === Number ? new $util.LongBits(message.amountConsumed.low >>> 0, message.amountConsumed.high >>> 0).toNumber() : message.amountConsumed; @@ -263387,7 +246705,7 @@ export const BI = $root.BI = (() => { function FilePlan(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -263428,17 +246746,13 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilePlan.encode = function encode(message, writer, q) { + FilePlan.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -263466,29 +246780,23 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilePlan.decode = function decode(reader, length, error, long) { + FilePlan.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.FilePlan(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int32(); break; } case 2: { - message.cost = $root.BI.Cost.decode(reader, reader.uint32(), undefined, long + 1); + message.cost = $root.BI.Cost.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -263519,18 +246827,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FilePlan.verify = function verify(message, long) { + FilePlan.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id)) return "id: integer expected"; if (message.cost != null && message.hasOwnProperty("cost")) { - let error = $root.BI.Cost.verify(message.cost, long + 1); + let error = $root.BI.Cost.verify(message.cost); if (error) return "cost." + error; } @@ -263545,20 +246849,16 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.FilePlan} FilePlan */ - FilePlan.fromObject = function fromObject(object, long) { + FilePlan.fromObject = function fromObject(object) { if (object instanceof $root.BI.FilePlan) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.FilePlan(); if (object.id != null) message.id = object.id | 0; if (object.cost != null) { if (typeof object.cost !== "object") throw TypeError(".BI.FilePlan.cost: object expected"); - message.cost = $root.BI.Cost.fromObject(object.cost, long + 1); + message.cost = $root.BI.Cost.fromObject(object.cost); } return message; }; @@ -263572,13 +246872,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilePlan.toObject = function toObject(message, options, q) { + FilePlan.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id = 0; @@ -263587,7 +246883,7 @@ export const BI = $root.BI = (() => { if (message.id != null && message.hasOwnProperty("id")) object.id = message.id; if (message.cost != null && message.hasOwnProperty("cost")) - object.cost = $root.BI.Cost.toObject(message.cost, options, q + 1); + object.cost = $root.BI.Cost.toObject(message.cost, options); return object; }; @@ -263643,7 +246939,7 @@ export const BI = $root.BI = (() => { function Cost(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -263700,13 +246996,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Cost.encode = function encode(message, writer, q) { + Cost.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) writer.uint32(/* id 3, wireType 1 =*/25).double(message.amount); if (message.amountPer != null && Object.hasOwnProperty.call(message, "amountPer")) @@ -263742,18 +247034,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cost.decode = function decode(reader, length, error, long) { + Cost.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Cost(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 3: { message.amount = reader.double(); @@ -263772,7 +247058,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -263803,13 +247089,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Cost.verify = function verify(message, long) { + Cost.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.amount != null && message.hasOwnProperty("amount")) if (typeof message.amount !== "number") return "amount: number expected"; @@ -263855,13 +247137,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.Cost} Cost */ - Cost.fromObject = function fromObject(object, long) { + Cost.fromObject = function fromObject(object) { if (object instanceof $root.BI.Cost) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.Cost(); if (object.amount != null) message.amount = Number(object.amount); @@ -263959,13 +247237,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Cost.toObject = function toObject(message, options, q) { + Cost.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.amount = 0; @@ -264063,7 +247337,7 @@ export const BI = $root.BI = (() => { function InvoiceSearchRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -264112,13 +247386,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceSearchRequest.encode = function encode(message, writer, q) { + InvoiceSearchRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.size != null && Object.hasOwnProperty.call(message, "size")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.size); if (message.startingAfterId != null && Object.hasOwnProperty.call(message, "startingAfterId")) @@ -264152,18 +247422,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InvoiceSearchRequest.decode = function decode(reader, length, error, long) { + InvoiceSearchRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceSearchRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.size = reader.int32(); @@ -264178,7 +247442,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -264209,13 +247473,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InvoiceSearchRequest.verify = function verify(message, long) { + InvoiceSearchRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.size != null && message.hasOwnProperty("size")) if (!$util.isInteger(message.size)) return "size: integer expected"; @@ -264236,13 +247496,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.InvoiceSearchRequest} InvoiceSearchRequest */ - InvoiceSearchRequest.fromObject = function fromObject(object, long) { + InvoiceSearchRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.InvoiceSearchRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.InvoiceSearchRequest(); if (object.size != null) message.size = object.size | 0; @@ -264262,13 +247518,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InvoiceSearchRequest.toObject = function toObject(message, options, q) { + InvoiceSearchRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.size = 0; @@ -264334,7 +247586,7 @@ export const BI = $root.BI = (() => { this.invoices = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -264367,16 +247619,12 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceSearchResponse.encode = function encode(message, writer, q) { + InvoiceSearchResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.invoices != null && message.invoices.length) for (let i = 0; i < message.invoices.length; ++i) - $root.BI.Invoice.encode(message.invoices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.Invoice.encode(message.invoices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -264404,27 +247652,21 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InvoiceSearchResponse.decode = function decode(reader, length, error, long) { + InvoiceSearchResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceSearchResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.invoices && message.invoices.length)) message.invoices = []; - message.invoices.push($root.BI.Invoice.decode(reader, reader.uint32(), undefined, long + 1)); + message.invoices.push($root.BI.Invoice.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -264455,18 +247697,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InvoiceSearchResponse.verify = function verify(message, long) { + InvoiceSearchResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.invoices != null && message.hasOwnProperty("invoices")) { if (!Array.isArray(message.invoices)) return "invoices: array expected"; for (let i = 0; i < message.invoices.length; ++i) { - let error = $root.BI.Invoice.verify(message.invoices[i], long + 1); + let error = $root.BI.Invoice.verify(message.invoices[i]); if (error) return "invoices." + error; } @@ -264482,13 +247720,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.InvoiceSearchResponse} InvoiceSearchResponse */ - InvoiceSearchResponse.fromObject = function fromObject(object, long) { + InvoiceSearchResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.InvoiceSearchResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.InvoiceSearchResponse(); if (object.invoices) { if (!Array.isArray(object.invoices)) @@ -264497,7 +247731,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.invoices.length; ++i) { if (typeof object.invoices[i] !== "object") throw TypeError(".BI.InvoiceSearchResponse.invoices: object expected"); - message.invoices[i] = $root.BI.Invoice.fromObject(object.invoices[i], long + 1); + message.invoices[i] = $root.BI.Invoice.fromObject(object.invoices[i]); } } return message; @@ -264512,20 +247746,16 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InvoiceSearchResponse.toObject = function toObject(message, options, q) { + InvoiceSearchResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.invoices = []; if (message.invoices && message.invoices.length) { object.invoices = []; for (let j = 0; j < message.invoices.length; ++j) - object.invoices[j] = $root.BI.Invoice.toObject(message.invoices[j], options, q + 1); + object.invoices[j] = $root.BI.Invoice.toObject(message.invoices[j], options); } return object; }; @@ -264584,7 +247814,7 @@ export const BI = $root.BI = (() => { function Invoice(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -264657,13 +247887,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Invoice.encode = function encode(message, writer, q) { + Invoice.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) @@ -264673,7 +247899,7 @@ export const BI = $root.BI = (() => { if (message.licenseCount != null && Object.hasOwnProperty.call(message, "licenseCount")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.licenseCount); if (message.totalCost != null && Object.hasOwnProperty.call(message, "totalCost")) - $root.BI.Invoice.Cost.encode(message.totalCost, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.BI.Invoice.Cost.encode(message.totalCost, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.invoiceType != null && Object.hasOwnProperty.call(message, "invoiceType")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.invoiceType); return writer; @@ -264703,18 +247929,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Invoice.decode = function decode(reader, length, error, long) { + Invoice.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Invoice(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int32(); @@ -264733,7 +247953,7 @@ export const BI = $root.BI = (() => { break; } case 5: { - message.totalCost = $root.BI.Invoice.Cost.decode(reader, reader.uint32(), undefined, long + 1); + message.totalCost = $root.BI.Invoice.Cost.decode(reader, reader.uint32()); break; } case 6: { @@ -264741,7 +247961,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -264772,13 +247992,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Invoice.verify = function verify(message, long) { + Invoice.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id)) return "id: integer expected"; @@ -264792,7 +248008,7 @@ export const BI = $root.BI = (() => { if (!$util.isInteger(message.licenseCount)) return "licenseCount: integer expected"; if (message.totalCost != null && message.hasOwnProperty("totalCost")) { - let error = $root.BI.Invoice.Cost.verify(message.totalCost, long + 1); + let error = $root.BI.Invoice.Cost.verify(message.totalCost); if (error) return "totalCost." + error; } @@ -264820,13 +248036,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.Invoice} Invoice */ - Invoice.fromObject = function fromObject(object, long) { + Invoice.fromObject = function fromObject(object) { if (object instanceof $root.BI.Invoice) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.Invoice(); if (object.id != null) message.id = object.id | 0; @@ -264834,7 +248046,7 @@ export const BI = $root.BI = (() => { message.invoiceNumber = String(object.invoiceNumber); if (object.invoiceDate != null) if ($util.Long) - message.invoiceDate = $util.Long.fromValue(object.invoiceDate, false); + (message.invoiceDate = $util.Long.fromValue(object.invoiceDate)).unsigned = false; else if (typeof object.invoiceDate === "string") message.invoiceDate = parseInt(object.invoiceDate, 10); else if (typeof object.invoiceDate === "number") @@ -264846,7 +248058,7 @@ export const BI = $root.BI = (() => { if (object.totalCost != null) { if (typeof object.totalCost !== "object") throw TypeError(".BI.Invoice.totalCost: object expected"); - message.totalCost = $root.BI.Invoice.Cost.fromObject(object.totalCost, long + 1); + message.totalCost = $root.BI.Invoice.Cost.fromObject(object.totalCost); } switch (object.invoiceType) { default: @@ -264896,22 +248108,18 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Invoice.toObject = function toObject(message, options, q) { + Invoice.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id = 0; object.invoiceNumber = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.invoiceDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.invoiceDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.invoiceDate = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.invoiceDate = options.longs === String ? "0" : 0; object.licenseCount = 0; object.totalCost = null; object.invoiceType = options.enums === String ? "UNKNOWN" : 0; @@ -264921,16 +248129,14 @@ export const BI = $root.BI = (() => { if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) object.invoiceNumber = message.invoiceNumber; if (message.invoiceDate != null && message.hasOwnProperty("invoiceDate")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.invoiceDate = typeof message.invoiceDate === "number" ? BigInt(message.invoiceDate) : $util.Long.fromBits(message.invoiceDate.low >>> 0, message.invoiceDate.high >>> 0, false).toBigInt(); - else if (typeof message.invoiceDate === "number") + if (typeof message.invoiceDate === "number") object.invoiceDate = options.longs === String ? String(message.invoiceDate) : message.invoiceDate; else object.invoiceDate = options.longs === String ? $util.Long.prototype.toString.call(message.invoiceDate) : options.longs === Number ? new $util.LongBits(message.invoiceDate.low >>> 0, message.invoiceDate.high >>> 0).toNumber() : message.invoiceDate; if (message.licenseCount != null && message.hasOwnProperty("licenseCount")) object.licenseCount = message.licenseCount; if (message.totalCost != null && message.hasOwnProperty("totalCost")) - object.totalCost = $root.BI.Invoice.Cost.toObject(message.totalCost, options, q + 1); + object.totalCost = $root.BI.Invoice.Cost.toObject(message.totalCost, options); if (message.invoiceType != null && message.hasOwnProperty("invoiceType")) object.invoiceType = options.enums === String ? $root.BI.Invoice.Type[message.invoiceType] === undefined ? message.invoiceType : $root.BI.Invoice.Type[message.invoiceType] : message.invoiceType; return object; @@ -264983,7 +248189,7 @@ export const BI = $root.BI = (() => { function Cost(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -265024,13 +248230,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Cost.encode = function encode(message, writer, q) { + Cost.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) writer.uint32(/* id 1, wireType 1 =*/9).double(message.amount); if (message.currency != null && Object.hasOwnProperty.call(message, "currency")) @@ -265062,18 +248264,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cost.decode = function decode(reader, length, error, long) { + Cost.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Invoice.Cost(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.amount = reader.double(); @@ -265084,7 +248280,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -265115,13 +248311,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Cost.verify = function verify(message, long) { + Cost.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.amount != null && message.hasOwnProperty("amount")) if (typeof message.amount !== "number") return "amount: number expected"; @@ -265149,13 +248341,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.Invoice.Cost} Cost */ - Cost.fromObject = function fromObject(object, long) { + Cost.fromObject = function fromObject(object) { if (object instanceof $root.BI.Invoice.Cost) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.Invoice.Cost(); if (object.amount != null) message.amount = Number(object.amount); @@ -265207,13 +248395,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Cost.toObject = function toObject(message, options, q) { + Cost.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.amount = 0; @@ -265301,7 +248485,7 @@ export const BI = $root.BI = (() => { function VaultInvoicesListRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -265326,13 +248510,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoicesListRequest.encode = function encode(message, writer, q) { + VaultInvoicesListRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -265360,21 +248540,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VaultInvoicesListRequest.decode = function decode(reader, length, error, long) { + VaultInvoicesListRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoicesListRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -265405,13 +248579,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VaultInvoicesListRequest.verify = function verify(message, long) { + VaultInvoicesListRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -265423,13 +248593,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.VaultInvoicesListRequest} VaultInvoicesListRequest */ - VaultInvoicesListRequest.fromObject = function fromObject(object, long) { + VaultInvoicesListRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.VaultInvoicesListRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.VaultInvoicesListRequest(); }; @@ -265496,7 +248662,7 @@ export const BI = $root.BI = (() => { this.invoices = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -265529,16 +248695,12 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoicesListResponse.encode = function encode(message, writer, q) { + VaultInvoicesListResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.invoices != null && message.invoices.length) for (let i = 0; i < message.invoices.length; ++i) - $root.BI.VaultInvoice.encode(message.invoices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.VaultInvoice.encode(message.invoices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -265566,27 +248728,21 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VaultInvoicesListResponse.decode = function decode(reader, length, error, long) { + VaultInvoicesListResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoicesListResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.invoices && message.invoices.length)) message.invoices = []; - message.invoices.push($root.BI.VaultInvoice.decode(reader, reader.uint32(), undefined, long + 1)); + message.invoices.push($root.BI.VaultInvoice.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -265617,18 +248773,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VaultInvoicesListResponse.verify = function verify(message, long) { + VaultInvoicesListResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.invoices != null && message.hasOwnProperty("invoices")) { if (!Array.isArray(message.invoices)) return "invoices: array expected"; for (let i = 0; i < message.invoices.length; ++i) { - let error = $root.BI.VaultInvoice.verify(message.invoices[i], long + 1); + let error = $root.BI.VaultInvoice.verify(message.invoices[i]); if (error) return "invoices." + error; } @@ -265644,13 +248796,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.VaultInvoicesListResponse} VaultInvoicesListResponse */ - VaultInvoicesListResponse.fromObject = function fromObject(object, long) { + VaultInvoicesListResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.VaultInvoicesListResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.VaultInvoicesListResponse(); if (object.invoices) { if (!Array.isArray(object.invoices)) @@ -265659,7 +248807,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.invoices.length; ++i) { if (typeof object.invoices[i] !== "object") throw TypeError(".BI.VaultInvoicesListResponse.invoices: object expected"); - message.invoices[i] = $root.BI.VaultInvoice.fromObject(object.invoices[i], long + 1); + message.invoices[i] = $root.BI.VaultInvoice.fromObject(object.invoices[i]); } } return message; @@ -265674,20 +248822,16 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VaultInvoicesListResponse.toObject = function toObject(message, options, q) { + VaultInvoicesListResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.invoices = []; if (message.invoices && message.invoices.length) { object.invoices = []; for (let j = 0; j < message.invoices.length; ++j) - object.invoices[j] = $root.BI.VaultInvoice.toObject(message.invoices[j], options, q + 1); + object.invoices[j] = $root.BI.VaultInvoice.toObject(message.invoices[j], options); } return object; }; @@ -265745,7 +248889,7 @@ export const BI = $root.BI = (() => { function VaultInvoice(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -265810,13 +248954,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoice.encode = function encode(message, writer, q) { + VaultInvoice.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) @@ -265824,7 +248964,7 @@ export const BI = $root.BI = (() => { if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.dateCreated); if (message.total != null && Object.hasOwnProperty.call(message, "total")) - $root.BI.Invoice.Cost.encode(message.total, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.BI.Invoice.Cost.encode(message.total, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.purchaseType != null && Object.hasOwnProperty.call(message, "purchaseType")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.purchaseType); return writer; @@ -265854,18 +248994,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VaultInvoice.decode = function decode(reader, length, error, long) { + VaultInvoice.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoice(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int32(); @@ -265880,7 +249014,7 @@ export const BI = $root.BI = (() => { break; } case 4: { - message.total = $root.BI.Invoice.Cost.decode(reader, reader.uint32(), undefined, long + 1); + message.total = $root.BI.Invoice.Cost.decode(reader, reader.uint32()); break; } case 5: { @@ -265888,7 +249022,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -265919,13 +249053,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VaultInvoice.verify = function verify(message, long) { + VaultInvoice.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id)) return "id: integer expected"; @@ -265936,7 +249066,7 @@ export const BI = $root.BI = (() => { if (!$util.isInteger(message.dateCreated) && !(message.dateCreated && $util.isInteger(message.dateCreated.low) && $util.isInteger(message.dateCreated.high))) return "dateCreated: integer|Long expected"; if (message.total != null && message.hasOwnProperty("total")) { - let error = $root.BI.Invoice.Cost.verify(message.total, long + 1); + let error = $root.BI.Invoice.Cost.verify(message.total); if (error) return "total." + error; } @@ -265964,13 +249094,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.VaultInvoice} VaultInvoice */ - VaultInvoice.fromObject = function fromObject(object, long) { + VaultInvoice.fromObject = function fromObject(object) { if (object instanceof $root.BI.VaultInvoice) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.VaultInvoice(); if (object.id != null) message.id = object.id | 0; @@ -265978,7 +249104,7 @@ export const BI = $root.BI = (() => { message.invoiceNumber = String(object.invoiceNumber); if (object.dateCreated != null) if ($util.Long) - message.dateCreated = $util.Long.fromValue(object.dateCreated, false); + (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; else if (typeof object.dateCreated === "string") message.dateCreated = parseInt(object.dateCreated, 10); else if (typeof object.dateCreated === "number") @@ -265988,7 +249114,7 @@ export const BI = $root.BI = (() => { if (object.total != null) { if (typeof object.total !== "object") throw TypeError(".BI.VaultInvoice.total: object expected"); - message.total = $root.BI.Invoice.Cost.fromObject(object.total, long + 1); + message.total = $root.BI.Invoice.Cost.fromObject(object.total); } switch (object.purchaseType) { default: @@ -266038,22 +249164,18 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VaultInvoice.toObject = function toObject(message, options, q) { + VaultInvoice.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id = 0; object.invoiceNumber = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.dateCreated = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.dateCreated = options.longs === String ? "0" : 0; object.total = null; object.purchaseType = options.enums === String ? "UNKNOWN" : 0; } @@ -266062,14 +249184,12 @@ export const BI = $root.BI = (() => { if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) object.invoiceNumber = message.invoiceNumber; if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.dateCreated = typeof message.dateCreated === "number" ? BigInt(message.dateCreated) : $util.Long.fromBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0, false).toBigInt(); - else if (typeof message.dateCreated === "number") + if (typeof message.dateCreated === "number") object.dateCreated = options.longs === String ? String(message.dateCreated) : message.dateCreated; else object.dateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.dateCreated) : options.longs === Number ? new $util.LongBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0).toNumber() : message.dateCreated; if (message.total != null && message.hasOwnProperty("total")) - object.total = $root.BI.Invoice.Cost.toObject(message.total, options, q + 1); + object.total = $root.BI.Invoice.Cost.toObject(message.total, options); if (message.purchaseType != null && message.hasOwnProperty("purchaseType")) object.purchaseType = options.enums === String ? $root.BI.Invoice.Type[message.purchaseType] === undefined ? message.purchaseType : $root.BI.Invoice.Type[message.purchaseType] : message.purchaseType; return object; @@ -266124,7 +249244,7 @@ export const BI = $root.BI = (() => { function InvoiceDownloadRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -266157,13 +249277,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceDownloadRequest.encode = function encode(message, writer, q) { + InvoiceDownloadRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.invoiceNumber); return writer; @@ -266193,25 +249309,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InvoiceDownloadRequest.decode = function decode(reader, length, error, long) { + InvoiceDownloadRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceDownloadRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.invoiceNumber = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -266242,13 +249352,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InvoiceDownloadRequest.verify = function verify(message, long) { + InvoiceDownloadRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) if (!$util.isString(message.invoiceNumber)) return "invoiceNumber: string expected"; @@ -266263,13 +249369,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.InvoiceDownloadRequest} InvoiceDownloadRequest */ - InvoiceDownloadRequest.fromObject = function fromObject(object, long) { + InvoiceDownloadRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.InvoiceDownloadRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.InvoiceDownloadRequest(); if (object.invoiceNumber != null) message.invoiceNumber = String(object.invoiceNumber); @@ -266285,13 +249387,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InvoiceDownloadRequest.toObject = function toObject(message, options, q) { + InvoiceDownloadRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.invoiceNumber = ""; @@ -266350,7 +249448,7 @@ export const BI = $root.BI = (() => { function InvoiceDownloadResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -266391,13 +249489,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InvoiceDownloadResponse.encode = function encode(message, writer, q) { + InvoiceDownloadResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.link != null && Object.hasOwnProperty.call(message, "link")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) @@ -266429,18 +249523,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InvoiceDownloadResponse.decode = function decode(reader, length, error, long) { + InvoiceDownloadResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceDownloadResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.link = reader.string(); @@ -266451,7 +249539,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -266482,13 +249570,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InvoiceDownloadResponse.verify = function verify(message, long) { + InvoiceDownloadResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.link != null && message.hasOwnProperty("link")) if (!$util.isString(message.link)) return "link: string expected"; @@ -266506,13 +249590,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.InvoiceDownloadResponse} InvoiceDownloadResponse */ - InvoiceDownloadResponse.fromObject = function fromObject(object, long) { + InvoiceDownloadResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.InvoiceDownloadResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.InvoiceDownloadResponse(); if (object.link != null) message.link = String(object.link); @@ -266530,13 +249610,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InvoiceDownloadResponse.toObject = function toObject(message, options, q) { + InvoiceDownloadResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.link = ""; @@ -266598,7 +249674,7 @@ export const BI = $root.BI = (() => { function VaultInvoiceDownloadLinkRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -266631,13 +249707,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoiceDownloadLinkRequest.encode = function encode(message, writer, q) { + VaultInvoiceDownloadLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.invoiceNumber); return writer; @@ -266667,25 +249739,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VaultInvoiceDownloadLinkRequest.decode = function decode(reader, length, error, long) { + VaultInvoiceDownloadLinkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoiceDownloadLinkRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.invoiceNumber = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -266716,13 +249782,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VaultInvoiceDownloadLinkRequest.verify = function verify(message, long) { + VaultInvoiceDownloadLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) if (!$util.isString(message.invoiceNumber)) return "invoiceNumber: string expected"; @@ -266737,13 +249799,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.VaultInvoiceDownloadLinkRequest} VaultInvoiceDownloadLinkRequest */ - VaultInvoiceDownloadLinkRequest.fromObject = function fromObject(object, long) { + VaultInvoiceDownloadLinkRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.VaultInvoiceDownloadLinkRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.VaultInvoiceDownloadLinkRequest(); if (object.invoiceNumber != null) message.invoiceNumber = String(object.invoiceNumber); @@ -266759,13 +249817,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VaultInvoiceDownloadLinkRequest.toObject = function toObject(message, options, q) { + VaultInvoiceDownloadLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.invoiceNumber = ""; @@ -266824,7 +249878,7 @@ export const BI = $root.BI = (() => { function VaultInvoiceDownloadLinkResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -266865,13 +249919,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VaultInvoiceDownloadLinkResponse.encode = function encode(message, writer, q) { + VaultInvoiceDownloadLinkResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.link != null && Object.hasOwnProperty.call(message, "link")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) @@ -266903,18 +249953,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VaultInvoiceDownloadLinkResponse.decode = function decode(reader, length, error, long) { + VaultInvoiceDownloadLinkResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoiceDownloadLinkResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.link = reader.string(); @@ -266925,7 +249969,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -266956,13 +250000,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VaultInvoiceDownloadLinkResponse.verify = function verify(message, long) { + VaultInvoiceDownloadLinkResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.link != null && message.hasOwnProperty("link")) if (!$util.isString(message.link)) return "link: string expected"; @@ -266980,13 +250020,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.VaultInvoiceDownloadLinkResponse} VaultInvoiceDownloadLinkResponse */ - VaultInvoiceDownloadLinkResponse.fromObject = function fromObject(object, long) { + VaultInvoiceDownloadLinkResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.VaultInvoiceDownloadLinkResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.VaultInvoiceDownloadLinkResponse(); if (object.link != null) message.link = String(object.link); @@ -267004,13 +250040,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VaultInvoiceDownloadLinkResponse.toObject = function toObject(message, options, q) { + VaultInvoiceDownloadLinkResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.link = ""; @@ -267073,7 +250105,7 @@ export const BI = $root.BI = (() => { function ReportingDailySnapshotRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -267114,13 +250146,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReportingDailySnapshotRequest.encode = function encode(message, writer, q) { + ReportingDailySnapshotRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.month != null && Object.hasOwnProperty.call(message, "month")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.month); if (message.year != null && Object.hasOwnProperty.call(message, "year")) @@ -267152,18 +250180,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReportingDailySnapshotRequest.decode = function decode(reader, length, error, long) { + ReportingDailySnapshotRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ReportingDailySnapshotRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.month = reader.int32(); @@ -267174,7 +250196,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -267205,13 +250227,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReportingDailySnapshotRequest.verify = function verify(message, long) { + ReportingDailySnapshotRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.month != null && message.hasOwnProperty("month")) if (!$util.isInteger(message.month)) return "month: integer expected"; @@ -267229,13 +250247,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.ReportingDailySnapshotRequest} ReportingDailySnapshotRequest */ - ReportingDailySnapshotRequest.fromObject = function fromObject(object, long) { + ReportingDailySnapshotRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.ReportingDailySnapshotRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.ReportingDailySnapshotRequest(); if (object.month != null) message.month = object.month | 0; @@ -267253,13 +250267,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReportingDailySnapshotRequest.toObject = function toObject(message, options, q) { + ReportingDailySnapshotRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.month = 0; @@ -267324,7 +250334,7 @@ export const BI = $root.BI = (() => { this.mcEnterprises = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -267365,19 +250375,15 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReportingDailySnapshotResponse.encode = function encode(message, writer, q) { + ReportingDailySnapshotResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.BI.SnapshotRecord.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.SnapshotRecord.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.mcEnterprises != null && message.mcEnterprises.length) for (let i = 0; i < message.mcEnterprises.length; ++i) - $root.BI.SnapshotMcEnterprise.encode(message.mcEnterprises[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.SnapshotMcEnterprise.encode(message.mcEnterprises[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -267405,33 +250411,27 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReportingDailySnapshotResponse.decode = function decode(reader, length, error, long) { + ReportingDailySnapshotResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ReportingDailySnapshotResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.records && message.records.length)) message.records = []; - message.records.push($root.BI.SnapshotRecord.decode(reader, reader.uint32(), undefined, long + 1)); + message.records.push($root.BI.SnapshotRecord.decode(reader, reader.uint32())); break; } case 2: { if (!(message.mcEnterprises && message.mcEnterprises.length)) message.mcEnterprises = []; - message.mcEnterprises.push($root.BI.SnapshotMcEnterprise.decode(reader, reader.uint32(), undefined, long + 1)); + message.mcEnterprises.push($root.BI.SnapshotMcEnterprise.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -267462,18 +250462,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReportingDailySnapshotResponse.verify = function verify(message, long) { + ReportingDailySnapshotResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.records != null && message.hasOwnProperty("records")) { if (!Array.isArray(message.records)) return "records: array expected"; for (let i = 0; i < message.records.length; ++i) { - let error = $root.BI.SnapshotRecord.verify(message.records[i], long + 1); + let error = $root.BI.SnapshotRecord.verify(message.records[i]); if (error) return "records." + error; } @@ -267482,7 +250478,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.mcEnterprises)) return "mcEnterprises: array expected"; for (let i = 0; i < message.mcEnterprises.length; ++i) { - let error = $root.BI.SnapshotMcEnterprise.verify(message.mcEnterprises[i], long + 1); + let error = $root.BI.SnapshotMcEnterprise.verify(message.mcEnterprises[i]); if (error) return "mcEnterprises." + error; } @@ -267498,13 +250494,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.ReportingDailySnapshotResponse} ReportingDailySnapshotResponse */ - ReportingDailySnapshotResponse.fromObject = function fromObject(object, long) { + ReportingDailySnapshotResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.ReportingDailySnapshotResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.ReportingDailySnapshotResponse(); if (object.records) { if (!Array.isArray(object.records)) @@ -267513,7 +250505,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.records.length; ++i) { if (typeof object.records[i] !== "object") throw TypeError(".BI.ReportingDailySnapshotResponse.records: object expected"); - message.records[i] = $root.BI.SnapshotRecord.fromObject(object.records[i], long + 1); + message.records[i] = $root.BI.SnapshotRecord.fromObject(object.records[i]); } } if (object.mcEnterprises) { @@ -267523,7 +250515,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.mcEnterprises.length; ++i) { if (typeof object.mcEnterprises[i] !== "object") throw TypeError(".BI.ReportingDailySnapshotResponse.mcEnterprises: object expected"); - message.mcEnterprises[i] = $root.BI.SnapshotMcEnterprise.fromObject(object.mcEnterprises[i], long + 1); + message.mcEnterprises[i] = $root.BI.SnapshotMcEnterprise.fromObject(object.mcEnterprises[i]); } } return message; @@ -267538,13 +250530,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReportingDailySnapshotResponse.toObject = function toObject(message, options, q) { + ReportingDailySnapshotResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.records = []; @@ -267553,12 +250541,12 @@ export const BI = $root.BI = (() => { if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = $root.BI.SnapshotRecord.toObject(message.records[j], options, q + 1); + object.records[j] = $root.BI.SnapshotRecord.toObject(message.records[j], options); } if (message.mcEnterprises && message.mcEnterprises.length) { object.mcEnterprises = []; for (let j = 0; j < message.mcEnterprises.length; ++j) - object.mcEnterprises[j] = $root.BI.SnapshotMcEnterprise.toObject(message.mcEnterprises[j], options, q + 1); + object.mcEnterprises[j] = $root.BI.SnapshotMcEnterprise.toObject(message.mcEnterprises[j], options); } return object; }; @@ -267618,7 +250606,7 @@ export const BI = $root.BI = (() => { this.addons = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -267691,13 +250679,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SnapshotRecord.encode = function encode(message, writer, q) { + SnapshotRecord.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.date != null && Object.hasOwnProperty.call(message, "date")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.date); if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) @@ -267710,7 +250694,7 @@ export const BI = $root.BI = (() => { writer.uint32(/* id 6, wireType 0 =*/48).int32(message.maxBasePlanId); if (message.addons != null && message.addons.length) for (let i = 0; i < message.addons.length; ++i) - $root.BI.SnapshotRecord.Addon.encode(message.addons[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.BI.SnapshotRecord.Addon.encode(message.addons[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -267738,18 +250722,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SnapshotRecord.decode = function decode(reader, length, error, long) { + SnapshotRecord.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotRecord(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.date = reader.int64(); @@ -267774,11 +250752,11 @@ export const BI = $root.BI = (() => { case 7: { if (!(message.addons && message.addons.length)) message.addons = []; - message.addons.push($root.BI.SnapshotRecord.Addon.decode(reader, reader.uint32(), undefined, long + 1)); + message.addons.push($root.BI.SnapshotRecord.Addon.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -267809,13 +250787,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SnapshotRecord.verify = function verify(message, long) { + SnapshotRecord.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.date != null && message.hasOwnProperty("date")) if (!$util.isInteger(message.date) && !(message.date && $util.isInteger(message.date.low) && $util.isInteger(message.date.high))) return "date: integer|Long expected"; @@ -267835,7 +250809,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.addons)) return "addons: array expected"; for (let i = 0; i < message.addons.length; ++i) { - let error = $root.BI.SnapshotRecord.Addon.verify(message.addons[i], long + 1); + let error = $root.BI.SnapshotRecord.Addon.verify(message.addons[i]); if (error) return "addons." + error; } @@ -267851,17 +250825,13 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SnapshotRecord} SnapshotRecord */ - SnapshotRecord.fromObject = function fromObject(object, long) { + SnapshotRecord.fromObject = function fromObject(object) { if (object instanceof $root.BI.SnapshotRecord) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SnapshotRecord(); if (object.date != null) if ($util.Long) - message.date = $util.Long.fromValue(object.date, false); + (message.date = $util.Long.fromValue(object.date)).unsigned = false; else if (typeof object.date === "string") message.date = parseInt(object.date, 10); else if (typeof object.date === "number") @@ -267883,7 +250853,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.addons.length; ++i) { if (typeof object.addons[i] !== "object") throw TypeError(".BI.SnapshotRecord.addons: object expected"); - message.addons[i] = $root.BI.SnapshotRecord.Addon.fromObject(object.addons[i], long + 1); + message.addons[i] = $root.BI.SnapshotRecord.Addon.fromObject(object.addons[i]); } } return message; @@ -267898,31 +250868,25 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SnapshotRecord.toObject = function toObject(message, options, q) { + SnapshotRecord.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.addons = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.date = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.date = options.longs === String ? "0" : 0; object.mcEnterpriseId = 0; object.maxLicenseCount = 0; object.maxFilePlanTypeId = 0; object.maxBasePlanId = 0; } if (message.date != null && message.hasOwnProperty("date")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.date = typeof message.date === "number" ? BigInt(message.date) : $util.Long.fromBits(message.date.low >>> 0, message.date.high >>> 0, false).toBigInt(); - else if (typeof message.date === "number") + if (typeof message.date === "number") object.date = options.longs === String ? String(message.date) : message.date; else object.date = options.longs === String ? $util.Long.prototype.toString.call(message.date) : options.longs === Number ? new $util.LongBits(message.date.low >>> 0, message.date.high >>> 0).toNumber() : message.date; @@ -267937,7 +250901,7 @@ export const BI = $root.BI = (() => { if (message.addons && message.addons.length) { object.addons = []; for (let j = 0; j < message.addons.length; ++j) - object.addons[j] = $root.BI.SnapshotRecord.Addon.toObject(message.addons[j], options, q + 1); + object.addons[j] = $root.BI.SnapshotRecord.Addon.toObject(message.addons[j], options); } return object; }; @@ -267989,7 +250953,7 @@ export const BI = $root.BI = (() => { function Addon(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -268030,13 +250994,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Addon.encode = function encode(message, writer, q) { + Addon.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.maxAddonId != null && Object.hasOwnProperty.call(message, "maxAddonId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxAddonId); if (message.units != null && Object.hasOwnProperty.call(message, "units")) @@ -268068,18 +251028,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Addon.decode = function decode(reader, length, error, long) { + Addon.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotRecord.Addon(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.maxAddonId = reader.int32(); @@ -268090,7 +251044,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -268121,13 +251075,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Addon.verify = function verify(message, long) { + Addon.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.maxAddonId != null && message.hasOwnProperty("maxAddonId")) if (!$util.isInteger(message.maxAddonId)) return "maxAddonId: integer expected"; @@ -268145,19 +251095,15 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SnapshotRecord.Addon} Addon */ - Addon.fromObject = function fromObject(object, long) { + Addon.fromObject = function fromObject(object) { if (object instanceof $root.BI.SnapshotRecord.Addon) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SnapshotRecord.Addon(); if (object.maxAddonId != null) message.maxAddonId = object.maxAddonId | 0; if (object.units != null) if ($util.Long) - message.units = $util.Long.fromValue(object.units, false); + (message.units = $util.Long.fromValue(object.units)).unsigned = false; else if (typeof object.units === "string") message.units = parseInt(object.units, 10); else if (typeof object.units === "number") @@ -268176,28 +251122,22 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Addon.toObject = function toObject(message, options, q) { + Addon.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.maxAddonId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.units = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.units = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.units = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.units = options.longs === String ? "0" : 0; } if (message.maxAddonId != null && message.hasOwnProperty("maxAddonId")) object.maxAddonId = message.maxAddonId; if (message.units != null && message.hasOwnProperty("units")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.units = typeof message.units === "number" ? BigInt(message.units) : $util.Long.fromBits(message.units.low >>> 0, message.units.high >>> 0, false).toBigInt(); - else if (typeof message.units === "number") + if (typeof message.units === "number") object.units = options.longs === String ? String(message.units) : message.units; else object.units = options.longs === String ? $util.Long.prototype.toString.call(message.units) : options.longs === Number ? new $util.LongBits(message.units.low >>> 0, message.units.high >>> 0).toNumber() : message.units; @@ -268257,7 +251197,7 @@ export const BI = $root.BI = (() => { function SnapshotMcEnterprise(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -268298,13 +251238,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SnapshotMcEnterprise.encode = function encode(message, writer, q) { + SnapshotMcEnterprise.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -268336,18 +251272,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SnapshotMcEnterprise.decode = function decode(reader, length, error, long) { + SnapshotMcEnterprise.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotMcEnterprise(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int32(); @@ -268358,7 +251288,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -268389,13 +251319,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SnapshotMcEnterprise.verify = function verify(message, long) { + SnapshotMcEnterprise.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id)) return "id: integer expected"; @@ -268413,13 +251339,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SnapshotMcEnterprise} SnapshotMcEnterprise */ - SnapshotMcEnterprise.fromObject = function fromObject(object, long) { + SnapshotMcEnterprise.fromObject = function fromObject(object) { if (object instanceof $root.BI.SnapshotMcEnterprise) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SnapshotMcEnterprise(); if (object.id != null) message.id = object.id | 0; @@ -268437,13 +251359,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SnapshotMcEnterprise.toObject = function toObject(message, options, q) { + SnapshotMcEnterprise.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id = 0; @@ -268504,7 +251422,7 @@ export const BI = $root.BI = (() => { function MappingAddonsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -268529,13 +251447,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MappingAddonsRequest.encode = function encode(message, writer, q) { + MappingAddonsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -268563,21 +251477,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MappingAddonsRequest.decode = function decode(reader, length, error, long) { + MappingAddonsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingAddonsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -268608,13 +251516,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MappingAddonsRequest.verify = function verify(message, long) { + MappingAddonsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -268626,13 +251530,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.MappingAddonsRequest} MappingAddonsRequest */ - MappingAddonsRequest.fromObject = function fromObject(object, long) { + MappingAddonsRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.MappingAddonsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.MappingAddonsRequest(); }; @@ -268701,7 +251601,7 @@ export const BI = $root.BI = (() => { this.filePlans = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -268742,19 +251642,15 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MappingAddonsResponse.encode = function encode(message, writer, q) { + MappingAddonsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.addons != null && message.addons.length) for (let i = 0; i < message.addons.length; ++i) - $root.BI.MappingItem.encode(message.addons[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.MappingItem.encode(message.addons[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.filePlans != null && message.filePlans.length) for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.MappingItem.encode(message.filePlans[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.MappingItem.encode(message.filePlans[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -268782,33 +251678,27 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MappingAddonsResponse.decode = function decode(reader, length, error, long) { + MappingAddonsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingAddonsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.addons && message.addons.length)) message.addons = []; - message.addons.push($root.BI.MappingItem.decode(reader, reader.uint32(), undefined, long + 1)); + message.addons.push($root.BI.MappingItem.decode(reader, reader.uint32())); break; } case 2: { if (!(message.filePlans && message.filePlans.length)) message.filePlans = []; - message.filePlans.push($root.BI.MappingItem.decode(reader, reader.uint32(), undefined, long + 1)); + message.filePlans.push($root.BI.MappingItem.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -268839,18 +251729,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MappingAddonsResponse.verify = function verify(message, long) { + MappingAddonsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.addons != null && message.hasOwnProperty("addons")) { if (!Array.isArray(message.addons)) return "addons: array expected"; for (let i = 0; i < message.addons.length; ++i) { - let error = $root.BI.MappingItem.verify(message.addons[i], long + 1); + let error = $root.BI.MappingItem.verify(message.addons[i]); if (error) return "addons." + error; } @@ -268859,7 +251745,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.filePlans)) return "filePlans: array expected"; for (let i = 0; i < message.filePlans.length; ++i) { - let error = $root.BI.MappingItem.verify(message.filePlans[i], long + 1); + let error = $root.BI.MappingItem.verify(message.filePlans[i]); if (error) return "filePlans." + error; } @@ -268875,13 +251761,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.MappingAddonsResponse} MappingAddonsResponse */ - MappingAddonsResponse.fromObject = function fromObject(object, long) { + MappingAddonsResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.MappingAddonsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.MappingAddonsResponse(); if (object.addons) { if (!Array.isArray(object.addons)) @@ -268890,7 +251772,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.addons.length; ++i) { if (typeof object.addons[i] !== "object") throw TypeError(".BI.MappingAddonsResponse.addons: object expected"); - message.addons[i] = $root.BI.MappingItem.fromObject(object.addons[i], long + 1); + message.addons[i] = $root.BI.MappingItem.fromObject(object.addons[i]); } } if (object.filePlans) { @@ -268900,7 +251782,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.filePlans.length; ++i) { if (typeof object.filePlans[i] !== "object") throw TypeError(".BI.MappingAddonsResponse.filePlans: object expected"); - message.filePlans[i] = $root.BI.MappingItem.fromObject(object.filePlans[i], long + 1); + message.filePlans[i] = $root.BI.MappingItem.fromObject(object.filePlans[i]); } } return message; @@ -268915,13 +251797,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MappingAddonsResponse.toObject = function toObject(message, options, q) { + MappingAddonsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.addons = []; @@ -268930,12 +251808,12 @@ export const BI = $root.BI = (() => { if (message.addons && message.addons.length) { object.addons = []; for (let j = 0; j < message.addons.length; ++j) - object.addons[j] = $root.BI.MappingItem.toObject(message.addons[j], options, q + 1); + object.addons[j] = $root.BI.MappingItem.toObject(message.addons[j], options); } if (message.filePlans && message.filePlans.length) { object.filePlans = []; for (let j = 0; j < message.filePlans.length; ++j) - object.filePlans[j] = $root.BI.MappingItem.toObject(message.filePlans[j], options, q + 1); + object.filePlans[j] = $root.BI.MappingItem.toObject(message.filePlans[j], options); } return object; }; @@ -268990,7 +251868,7 @@ export const BI = $root.BI = (() => { function MappingItem(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -269031,13 +251909,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MappingItem.encode = function encode(message, writer, q) { + MappingItem.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -269069,18 +251943,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MappingItem.decode = function decode(reader, length, error, long) { + MappingItem.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingItem(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.int32(); @@ -269091,7 +251959,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -269122,13 +251990,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MappingItem.verify = function verify(message, long) { + MappingItem.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isInteger(message.id)) return "id: integer expected"; @@ -269146,13 +252010,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.MappingItem} MappingItem */ - MappingItem.fromObject = function fromObject(object, long) { + MappingItem.fromObject = function fromObject(object) { if (object instanceof $root.BI.MappingItem) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.MappingItem(); if (object.id != null) message.id = object.id | 0; @@ -269170,13 +252030,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MappingItem.toObject = function toObject(message, options, q) { + MappingItem.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id = 0; @@ -269238,7 +252094,7 @@ export const BI = $root.BI = (() => { function GradientValidateKeyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -269271,13 +252127,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GradientValidateKeyRequest.encode = function encode(message, writer, q) { + GradientValidateKeyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.gradientKey != null && Object.hasOwnProperty.call(message, "gradientKey")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.gradientKey); return writer; @@ -269307,25 +252159,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GradientValidateKeyRequest.decode = function decode(reader, length, error, long) { + GradientValidateKeyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientValidateKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.gradientKey = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -269356,13 +252202,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GradientValidateKeyRequest.verify = function verify(message, long) { + GradientValidateKeyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) if (!$util.isString(message.gradientKey)) return "gradientKey: string expected"; @@ -269377,13 +252219,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.GradientValidateKeyRequest} GradientValidateKeyRequest */ - GradientValidateKeyRequest.fromObject = function fromObject(object, long) { + GradientValidateKeyRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.GradientValidateKeyRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.GradientValidateKeyRequest(); if (object.gradientKey != null) message.gradientKey = String(object.gradientKey); @@ -269399,13 +252237,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GradientValidateKeyRequest.toObject = function toObject(message, options, q) { + GradientValidateKeyRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.gradientKey = ""; @@ -269464,7 +252298,7 @@ export const BI = $root.BI = (() => { function GradientValidateKeyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -269505,13 +252339,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GradientValidateKeyResponse.encode = function encode(message, writer, q) { + GradientValidateKeyResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -269543,18 +252373,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GradientValidateKeyResponse.decode = function decode(reader, length, error, long) { + GradientValidateKeyResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientValidateKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.success = reader.bool(); @@ -269565,7 +252389,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -269596,13 +252420,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GradientValidateKeyResponse.verify = function verify(message, long) { + GradientValidateKeyResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.success != null && message.hasOwnProperty("success")) if (typeof message.success !== "boolean") return "success: boolean expected"; @@ -269620,13 +252440,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.GradientValidateKeyResponse} GradientValidateKeyResponse */ - GradientValidateKeyResponse.fromObject = function fromObject(object, long) { + GradientValidateKeyResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.GradientValidateKeyResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.GradientValidateKeyResponse(); if (object.success != null) message.success = Boolean(object.success); @@ -269644,13 +252460,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GradientValidateKeyResponse.toObject = function toObject(message, options, q) { + GradientValidateKeyResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.success = false; @@ -269713,7 +252525,7 @@ export const BI = $root.BI = (() => { function GradientSaveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -269754,13 +252566,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GradientSaveRequest.encode = function encode(message, writer, q) { + GradientSaveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.gradientKey != null && Object.hasOwnProperty.call(message, "gradientKey")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.gradientKey); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) @@ -269792,18 +252600,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GradientSaveRequest.decode = function decode(reader, length, error, long) { + GradientSaveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSaveRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.gradientKey = reader.string(); @@ -269814,7 +252616,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -269845,13 +252647,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GradientSaveRequest.verify = function verify(message, long) { + GradientSaveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) if (!$util.isString(message.gradientKey)) return "gradientKey: string expected"; @@ -269869,19 +252667,15 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.GradientSaveRequest} GradientSaveRequest */ - GradientSaveRequest.fromObject = function fromObject(object, long) { + GradientSaveRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.GradientSaveRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.GradientSaveRequest(); if (object.gradientKey != null) message.gradientKey = String(object.gradientKey); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -269900,28 +252694,22 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GradientSaveRequest.toObject = function toObject(message, options, q) { + GradientSaveRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.gradientKey = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; } if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) object.gradientKey = message.gradientKey; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -269979,7 +252767,7 @@ export const BI = $root.BI = (() => { function GradientSaveResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -270028,13 +252816,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GradientSaveResponse.encode = function encode(message, writer, q) { + GradientSaveResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -270068,18 +252852,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GradientSaveResponse.decode = function decode(reader, length, error, long) { + GradientSaveResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSaveResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.success = reader.bool(); @@ -270094,7 +252872,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -270125,13 +252903,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GradientSaveResponse.verify = function verify(message, long) { + GradientSaveResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.success != null && message.hasOwnProperty("success")) if (typeof message.success !== "boolean") return "success: boolean expected"; @@ -270159,13 +252933,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.GradientSaveResponse} GradientSaveResponse */ - GradientSaveResponse.fromObject = function fromObject(object, long) { + GradientSaveResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.GradientSaveResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.GradientSaveResponse(); if (object.success != null) message.success = Boolean(object.success); @@ -270207,13 +252977,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GradientSaveResponse.toObject = function toObject(message, options, q) { + GradientSaveResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.success = false; @@ -270278,7 +253044,7 @@ export const BI = $root.BI = (() => { function GradientRemoveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -270311,13 +253077,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GradientRemoveRequest.encode = function encode(message, writer, q) { + GradientRemoveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); return writer; @@ -270347,25 +253109,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GradientRemoveRequest.decode = function decode(reader, length, error, long) { + GradientRemoveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientRemoveRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -270396,13 +253152,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GradientRemoveRequest.verify = function verify(message, long) { + GradientRemoveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -270417,17 +253169,13 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.GradientRemoveRequest} GradientRemoveRequest */ - GradientRemoveRequest.fromObject = function fromObject(object, long) { + GradientRemoveRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.GradientRemoveRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.GradientRemoveRequest(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -270446,24 +253194,18 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GradientRemoveRequest.toObject = function toObject(message, options, q) { + GradientRemoveRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -270520,7 +253262,7 @@ export const BI = $root.BI = (() => { function GradientRemoveResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -270561,13 +253303,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GradientRemoveResponse.encode = function encode(message, writer, q) { + GradientRemoveResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -270599,18 +253337,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GradientRemoveResponse.decode = function decode(reader, length, error, long) { + GradientRemoveResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientRemoveResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.success = reader.bool(); @@ -270621,7 +253353,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -270652,13 +253384,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GradientRemoveResponse.verify = function verify(message, long) { + GradientRemoveResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.success != null && message.hasOwnProperty("success")) if (typeof message.success !== "boolean") return "success: boolean expected"; @@ -270676,13 +253404,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.GradientRemoveResponse} GradientRemoveResponse */ - GradientRemoveResponse.fromObject = function fromObject(object, long) { + GradientRemoveResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.GradientRemoveResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.GradientRemoveResponse(); if (object.success != null) message.success = Boolean(object.success); @@ -270700,13 +253424,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GradientRemoveResponse.toObject = function toObject(message, options, q) { + GradientRemoveResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.success = false; @@ -270768,7 +253488,7 @@ export const BI = $root.BI = (() => { function GradientSyncRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -270801,13 +253521,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GradientSyncRequest.encode = function encode(message, writer, q) { + GradientSyncRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); return writer; @@ -270837,25 +253553,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GradientSyncRequest.decode = function decode(reader, length, error, long) { + GradientSyncRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSyncRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -270886,13 +253596,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GradientSyncRequest.verify = function verify(message, long) { + GradientSyncRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -270907,17 +253613,13 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.GradientSyncRequest} GradientSyncRequest */ - GradientSyncRequest.fromObject = function fromObject(object, long) { + GradientSyncRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.GradientSyncRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.GradientSyncRequest(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -270936,24 +253638,18 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GradientSyncRequest.toObject = function toObject(message, options, q) { + GradientSyncRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -271011,7 +253707,7 @@ export const BI = $root.BI = (() => { function GradientSyncResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -271060,13 +253756,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GradientSyncResponse.encode = function encode(message, writer, q) { + GradientSyncResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -271100,18 +253792,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GradientSyncResponse.decode = function decode(reader, length, error, long) { + GradientSyncResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSyncResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.success = reader.bool(); @@ -271126,7 +253812,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -271157,13 +253843,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GradientSyncResponse.verify = function verify(message, long) { + GradientSyncResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.success != null && message.hasOwnProperty("success")) if (typeof message.success !== "boolean") return "success: boolean expected"; @@ -271191,13 +253873,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.GradientSyncResponse} GradientSyncResponse */ - GradientSyncResponse.fromObject = function fromObject(object, long) { + GradientSyncResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.GradientSyncResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.GradientSyncResponse(); if (object.success != null) message.success = Boolean(object.success); @@ -271239,13 +253917,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GradientSyncResponse.toObject = function toObject(message, options, q) { + GradientSyncResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.success = false; @@ -271329,7 +254003,7 @@ export const BI = $root.BI = (() => { function NetPromoterScoreSurveySubmissionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -271370,13 +254044,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetPromoterScoreSurveySubmissionRequest.encode = function encode(message, writer, q) { + NetPromoterScoreSurveySubmissionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.surveyScore != null && Object.hasOwnProperty.call(message, "surveyScore")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.surveyScore); if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) @@ -271408,18 +254078,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetPromoterScoreSurveySubmissionRequest.decode = function decode(reader, length, error, long) { + NetPromoterScoreSurveySubmissionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScoreSurveySubmissionRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.surveyScore = reader.int32(); @@ -271430,7 +254094,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -271461,13 +254125,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetPromoterScoreSurveySubmissionRequest.verify = function verify(message, long) { + NetPromoterScoreSurveySubmissionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.surveyScore != null && message.hasOwnProperty("surveyScore")) if (!$util.isInteger(message.surveyScore)) return "surveyScore: integer expected"; @@ -271485,13 +254145,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NetPromoterScoreSurveySubmissionRequest} NetPromoterScoreSurveySubmissionRequest */ - NetPromoterScoreSurveySubmissionRequest.fromObject = function fromObject(object, long) { + NetPromoterScoreSurveySubmissionRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.NetPromoterScoreSurveySubmissionRequest(); if (object.surveyScore != null) message.surveyScore = object.surveyScore | 0; @@ -271509,13 +254165,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetPromoterScoreSurveySubmissionRequest.toObject = function toObject(message, options, q) { + NetPromoterScoreSurveySubmissionRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.surveyScore = 0; @@ -271576,7 +254228,7 @@ export const BI = $root.BI = (() => { function NetPromoterScoreSurveySubmissionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -271601,13 +254253,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetPromoterScoreSurveySubmissionResponse.encode = function encode(message, writer, q) { + NetPromoterScoreSurveySubmissionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -271635,21 +254283,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetPromoterScoreSurveySubmissionResponse.decode = function decode(reader, length, error, long) { + NetPromoterScoreSurveySubmissionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScoreSurveySubmissionResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -271680,13 +254322,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetPromoterScoreSurveySubmissionResponse.verify = function verify(message, long) { + NetPromoterScoreSurveySubmissionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -271698,13 +254336,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NetPromoterScoreSurveySubmissionResponse} NetPromoterScoreSurveySubmissionResponse */ - NetPromoterScoreSurveySubmissionResponse.fromObject = function fromObject(object, long) { + NetPromoterScoreSurveySubmissionResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.NetPromoterScoreSurveySubmissionResponse(); }; @@ -271769,7 +254403,7 @@ export const BI = $root.BI = (() => { function NetPromoterScorePopupScheduleRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -271794,13 +254428,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetPromoterScorePopupScheduleRequest.encode = function encode(message, writer, q) { + NetPromoterScorePopupScheduleRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -271828,21 +254458,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetPromoterScorePopupScheduleRequest.decode = function decode(reader, length, error, long) { + NetPromoterScorePopupScheduleRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupScheduleRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -271873,13 +254497,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetPromoterScorePopupScheduleRequest.verify = function verify(message, long) { + NetPromoterScorePopupScheduleRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -271891,13 +254511,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NetPromoterScorePopupScheduleRequest} NetPromoterScorePopupScheduleRequest */ - NetPromoterScorePopupScheduleRequest.fromObject = function fromObject(object, long) { + NetPromoterScorePopupScheduleRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.NetPromoterScorePopupScheduleRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.NetPromoterScorePopupScheduleRequest(); }; @@ -271963,7 +254579,7 @@ export const BI = $root.BI = (() => { function NetPromoterScorePopupScheduleResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -271996,13 +254612,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetPromoterScorePopupScheduleResponse.encode = function encode(message, writer, q) { + NetPromoterScorePopupScheduleResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.showPopup != null && Object.hasOwnProperty.call(message, "showPopup")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.showPopup); return writer; @@ -272032,25 +254644,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetPromoterScorePopupScheduleResponse.decode = function decode(reader, length, error, long) { + NetPromoterScorePopupScheduleResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupScheduleResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.showPopup = reader.bool(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -272081,13 +254687,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetPromoterScorePopupScheduleResponse.verify = function verify(message, long) { + NetPromoterScorePopupScheduleResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.showPopup != null && message.hasOwnProperty("showPopup")) if (typeof message.showPopup !== "boolean") return "showPopup: boolean expected"; @@ -272102,13 +254704,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NetPromoterScorePopupScheduleResponse} NetPromoterScorePopupScheduleResponse */ - NetPromoterScorePopupScheduleResponse.fromObject = function fromObject(object, long) { + NetPromoterScorePopupScheduleResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.NetPromoterScorePopupScheduleResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.NetPromoterScorePopupScheduleResponse(); if (object.showPopup != null) message.showPopup = Boolean(object.showPopup); @@ -272124,13 +254722,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetPromoterScorePopupScheduleResponse.toObject = function toObject(message, options, q) { + NetPromoterScorePopupScheduleResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.showPopup = false; @@ -272187,7 +254781,7 @@ export const BI = $root.BI = (() => { function NetPromoterScorePopupDismissalRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -272212,13 +254806,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetPromoterScorePopupDismissalRequest.encode = function encode(message, writer, q) { + NetPromoterScorePopupDismissalRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -272246,21 +254836,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetPromoterScorePopupDismissalRequest.decode = function decode(reader, length, error, long) { + NetPromoterScorePopupDismissalRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupDismissalRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -272291,13 +254875,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetPromoterScorePopupDismissalRequest.verify = function verify(message, long) { + NetPromoterScorePopupDismissalRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -272309,13 +254889,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NetPromoterScorePopupDismissalRequest} NetPromoterScorePopupDismissalRequest */ - NetPromoterScorePopupDismissalRequest.fromObject = function fromObject(object, long) { + NetPromoterScorePopupDismissalRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.NetPromoterScorePopupDismissalRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.NetPromoterScorePopupDismissalRequest(); }; @@ -272380,7 +254956,7 @@ export const BI = $root.BI = (() => { function NetPromoterScorePopupDismissalResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -272405,13 +254981,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetPromoterScorePopupDismissalResponse.encode = function encode(message, writer, q) { + NetPromoterScorePopupDismissalResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -272439,21 +255011,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetPromoterScorePopupDismissalResponse.decode = function decode(reader, length, error, long) { + NetPromoterScorePopupDismissalResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupDismissalResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -272484,13 +255050,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetPromoterScorePopupDismissalResponse.verify = function verify(message, long) { + NetPromoterScorePopupDismissalResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -272502,13 +255064,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NetPromoterScorePopupDismissalResponse} NetPromoterScorePopupDismissalResponse */ - NetPromoterScorePopupDismissalResponse.fromObject = function fromObject(object, long) { + NetPromoterScorePopupDismissalResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.NetPromoterScorePopupDismissalResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.NetPromoterScorePopupDismissalResponse(); }; @@ -272574,7 +255132,7 @@ export const BI = $root.BI = (() => { function KCMLicenseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -272607,13 +255165,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KCMLicenseRequest.encode = function encode(message, writer, q) { + KCMLicenseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); return writer; @@ -272643,25 +255197,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KCMLicenseRequest.decode = function decode(reader, length, error, long) { + KCMLicenseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.KCMLicenseRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -272692,13 +255240,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KCMLicenseRequest.verify = function verify(message, long) { + KCMLicenseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -272713,17 +255257,13 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.KCMLicenseRequest} KCMLicenseRequest */ - KCMLicenseRequest.fromObject = function fromObject(object, long) { + KCMLicenseRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.KCMLicenseRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.KCMLicenseRequest(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -272742,24 +255282,18 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KCMLicenseRequest.toObject = function toObject(message, options, q) { + KCMLicenseRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -272815,7 +255349,7 @@ export const BI = $root.BI = (() => { function KCMLicenseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -272848,13 +255382,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KCMLicenseResponse.encode = function encode(message, writer, q) { + KCMLicenseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); return writer; @@ -272884,25 +255414,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KCMLicenseResponse.decode = function decode(reader, length, error, long) { + KCMLicenseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.KCMLicenseResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.message = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -272933,13 +255457,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KCMLicenseResponse.verify = function verify(message, long) { + KCMLicenseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.message != null && message.hasOwnProperty("message")) if (!$util.isString(message.message)) return "message: string expected"; @@ -272954,13 +255474,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.KCMLicenseResponse} KCMLicenseResponse */ - KCMLicenseResponse.fromObject = function fromObject(object, long) { + KCMLicenseResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.KCMLicenseResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.KCMLicenseResponse(); if (object.message != null) message.message = String(object.message); @@ -272976,13 +255492,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KCMLicenseResponse.toObject = function toObject(message, options, q) { + KCMLicenseResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.message = ""; @@ -273069,7 +255581,7 @@ export const BI = $root.BI = (() => { function EventRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -273126,13 +255638,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventRequest.encode = function encode(message, writer, q) { + EventRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.eventType); if (message.eventValue != null && Object.hasOwnProperty.call(message, "eventValue")) @@ -273140,7 +255648,7 @@ export const BI = $root.BI = (() => { if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.eventTime); if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) - $root.google.protobuf.Struct.encode(message.attributes, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.google.protobuf.Struct.encode(message.attributes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -273168,18 +255676,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventRequest.decode = function decode(reader, length, error, long) { + EventRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.eventType = reader.int32(); @@ -273194,11 +255696,11 @@ export const BI = $root.BI = (() => { break; } case 4: { - message.attributes = $root.google.protobuf.Struct.decode(reader, reader.uint32(), undefined, long + 1); + message.attributes = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -273229,13 +255731,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventRequest.verify = function verify(message, long) { + EventRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.eventType != null && message.hasOwnProperty("eventType")) switch (message.eventType) { default: @@ -273257,7 +255755,7 @@ export const BI = $root.BI = (() => { if (!$util.isInteger(message.eventTime) && !(message.eventTime && $util.isInteger(message.eventTime.low) && $util.isInteger(message.eventTime.high))) return "eventTime: integer|Long expected"; if (message.attributes != null && message.hasOwnProperty("attributes")) { - let error = $root.google.protobuf.Struct.verify(message.attributes, long + 1); + let error = $root.google.protobuf.Struct.verify(message.attributes); if (error) return "attributes." + error; } @@ -273272,13 +255770,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.EventRequest} EventRequest */ - EventRequest.fromObject = function fromObject(object, long) { + EventRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.EventRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.EventRequest(); switch (object.eventType) { default: @@ -273324,7 +255818,7 @@ export const BI = $root.BI = (() => { message.eventValue = String(object.eventValue); if (object.eventTime != null) if ($util.Long) - message.eventTime = $util.Long.fromValue(object.eventTime, false); + (message.eventTime = $util.Long.fromValue(object.eventTime)).unsigned = false; else if (typeof object.eventTime === "string") message.eventTime = parseInt(object.eventTime, 10); else if (typeof object.eventTime === "number") @@ -273334,7 +255828,7 @@ export const BI = $root.BI = (() => { if (object.attributes != null) { if (typeof object.attributes !== "object") throw TypeError(".BI.EventRequest.attributes: object expected"); - message.attributes = $root.google.protobuf.Struct.fromObject(object.attributes, long + 1); + message.attributes = $root.google.protobuf.Struct.fromObject(object.attributes); } return message; }; @@ -273348,22 +255842,18 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventRequest.toObject = function toObject(message, options, q) { + EventRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.eventType = options.enums === String ? "UNKNOWN_TRACKING_EVENT_TYPE" : 0; object.eventValue = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.eventTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.eventTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.eventTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.eventTime = options.longs === String ? "0" : 0; object.attributes = null; } if (message.eventType != null && message.hasOwnProperty("eventType")) @@ -273371,14 +255861,12 @@ export const BI = $root.BI = (() => { if (message.eventValue != null && message.hasOwnProperty("eventValue")) object.eventValue = message.eventValue; if (message.eventTime != null && message.hasOwnProperty("eventTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.eventTime = typeof message.eventTime === "number" ? BigInt(message.eventTime) : $util.Long.fromBits(message.eventTime.low >>> 0, message.eventTime.high >>> 0, false).toBigInt(); - else if (typeof message.eventTime === "number") + if (typeof message.eventTime === "number") object.eventTime = options.longs === String ? String(message.eventTime) : message.eventTime; else object.eventTime = options.longs === String ? $util.Long.prototype.toString.call(message.eventTime) : options.longs === Number ? new $util.LongBits(message.eventTime.low >>> 0, message.eventTime.high >>> 0).toNumber() : message.eventTime; if (message.attributes != null && message.hasOwnProperty("attributes")) - object.attributes = $root.google.protobuf.Struct.toObject(message.attributes, options, q + 1); + object.attributes = $root.google.protobuf.Struct.toObject(message.attributes, options); return object; }; @@ -273432,7 +255920,7 @@ export const BI = $root.BI = (() => { this.event = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -273465,16 +255953,12 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventsRequest.encode = function encode(message, writer, q) { + EventsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.event != null && message.event.length) for (let i = 0; i < message.event.length; ++i) - $root.BI.EventRequest.encode(message.event[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.EventRequest.encode(message.event[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -273502,27 +255986,21 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventsRequest.decode = function decode(reader, length, error, long) { + EventsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.event && message.event.length)) message.event = []; - message.event.push($root.BI.EventRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.event.push($root.BI.EventRequest.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -273553,18 +256031,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventsRequest.verify = function verify(message, long) { + EventsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.event != null && message.hasOwnProperty("event")) { if (!Array.isArray(message.event)) return "event: array expected"; for (let i = 0; i < message.event.length; ++i) { - let error = $root.BI.EventRequest.verify(message.event[i], long + 1); + let error = $root.BI.EventRequest.verify(message.event[i]); if (error) return "event." + error; } @@ -273580,13 +256054,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.EventsRequest} EventsRequest */ - EventsRequest.fromObject = function fromObject(object, long) { + EventsRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.EventsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.EventsRequest(); if (object.event) { if (!Array.isArray(object.event)) @@ -273595,7 +256065,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.event.length; ++i) { if (typeof object.event[i] !== "object") throw TypeError(".BI.EventsRequest.event: object expected"); - message.event[i] = $root.BI.EventRequest.fromObject(object.event[i], long + 1); + message.event[i] = $root.BI.EventRequest.fromObject(object.event[i]); } } return message; @@ -273610,20 +256080,16 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventsRequest.toObject = function toObject(message, options, q) { + EventsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.event = []; if (message.event && message.event.length) { object.event = []; for (let j = 0; j < message.event.length; ++j) - object.event[j] = $root.BI.EventRequest.toObject(message.event[j], options, q + 1); + object.event[j] = $root.BI.EventRequest.toObject(message.event[j], options); } return object; }; @@ -273678,7 +256144,7 @@ export const BI = $root.BI = (() => { function EventResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -273719,13 +256185,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventResponse.encode = function encode(message, writer, q) { + EventResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.index != null && Object.hasOwnProperty.call(message, "index")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.index); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -273757,18 +256219,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventResponse.decode = function decode(reader, length, error, long) { + EventResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.index = reader.int32(); @@ -273779,7 +256235,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -273810,13 +256266,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventResponse.verify = function verify(message, long) { + EventResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.index != null && message.hasOwnProperty("index")) if (!$util.isInteger(message.index)) return "index: integer expected"; @@ -273834,13 +256286,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.EventResponse} EventResponse */ - EventResponse.fromObject = function fromObject(object, long) { + EventResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.EventResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.EventResponse(); if (object.index != null) message.index = object.index | 0; @@ -273858,13 +256306,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventResponse.toObject = function toObject(message, options, q) { + EventResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.index = 0; @@ -273927,7 +256371,7 @@ export const BI = $root.BI = (() => { this.response = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -273960,16 +256404,12 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventsResponse.encode = function encode(message, writer, q) { + EventsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.response != null && message.response.length) for (let i = 0; i < message.response.length; ++i) - $root.BI.EventResponse.encode(message.response[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.EventResponse.encode(message.response[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -273997,27 +256437,21 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventsResponse.decode = function decode(reader, length, error, long) { + EventsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.response && message.response.length)) message.response = []; - message.response.push($root.BI.EventResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.response.push($root.BI.EventResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -274048,18 +256482,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventsResponse.verify = function verify(message, long) { + EventsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.response != null && message.hasOwnProperty("response")) { if (!Array.isArray(message.response)) return "response: array expected"; for (let i = 0; i < message.response.length; ++i) { - let error = $root.BI.EventResponse.verify(message.response[i], long + 1); + let error = $root.BI.EventResponse.verify(message.response[i]); if (error) return "response." + error; } @@ -274075,13 +256505,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.EventsResponse} EventsResponse */ - EventsResponse.fromObject = function fromObject(object, long) { + EventsResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.EventsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.EventsResponse(); if (object.response) { if (!Array.isArray(object.response)) @@ -274090,7 +256516,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.response.length; ++i) { if (typeof object.response[i] !== "object") throw TypeError(".BI.EventsResponse.response: object expected"); - message.response[i] = $root.BI.EventResponse.fromObject(object.response[i], long + 1); + message.response[i] = $root.BI.EventResponse.fromObject(object.response[i]); } } return message; @@ -274105,20 +256531,16 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventsResponse.toObject = function toObject(message, options, q) { + EventsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.response = []; if (message.response && message.response.length) { object.response = []; for (let j = 0; j < message.response.length; ++j) - object.response[j] = $root.BI.EventResponse.toObject(message.response[j], options, q + 1); + object.response[j] = $root.BI.EventResponse.toObject(message.response[j], options); } return object; }; @@ -274180,7 +256602,7 @@ export const BI = $root.BI = (() => { function CustomerCaptureRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -274277,13 +256699,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomerCaptureRequest.encode = function encode(message, writer, q) { + CustomerCaptureRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.pageUrl != null && Object.hasOwnProperty.call(message, "pageUrl")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.pageUrl); if (message.tree != null && Object.hasOwnProperty.call(message, "tree")) @@ -274329,18 +256747,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomerCaptureRequest.decode = function decode(reader, length, error, long) { + CustomerCaptureRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.CustomerCaptureRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.pageUrl = reader.string(); @@ -274379,7 +256791,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -274410,13 +256822,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomerCaptureRequest.verify = function verify(message, long) { + CustomerCaptureRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.pageUrl != null && message.hasOwnProperty("pageUrl")) if (!$util.isString(message.pageUrl)) return "pageUrl: string expected"; @@ -274455,13 +256863,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.CustomerCaptureRequest} CustomerCaptureRequest */ - CustomerCaptureRequest.fromObject = function fromObject(object, long) { + CustomerCaptureRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.CustomerCaptureRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.CustomerCaptureRequest(); if (object.pageUrl != null) message.pageUrl = String(object.pageUrl); @@ -274493,13 +256897,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomerCaptureRequest.toObject = function toObject(message, options, q) { + CustomerCaptureRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.pageUrl = ""; @@ -274581,7 +256981,7 @@ export const BI = $root.BI = (() => { function CustomerCaptureResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -274606,13 +257006,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomerCaptureResponse.encode = function encode(message, writer, q) { + CustomerCaptureResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -274640,21 +257036,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomerCaptureResponse.decode = function decode(reader, length, error, long) { + CustomerCaptureResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.CustomerCaptureResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -274685,13 +257075,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomerCaptureResponse.verify = function verify(message, long) { + CustomerCaptureResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -274703,13 +257089,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.CustomerCaptureResponse} CustomerCaptureResponse */ - CustomerCaptureResponse.fromObject = function fromObject(object, long) { + CustomerCaptureResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.CustomerCaptureResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.CustomerCaptureResponse(); }; @@ -274812,7 +257194,7 @@ export const BI = $root.BI = (() => { this.extras = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -274861,13 +257243,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Error.encode = function encode(message, writer, q) { + Error.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.code != null && Object.hasOwnProperty.call(message, "code")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -274902,18 +257280,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Error.decode = function decode(reader, length, error, long) { + Error.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Error(), key, value; while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.code = reader.string(); @@ -274939,17 +257311,15 @@ export const BI = $root.BI = (() => { value = reader.string(); break; default: - reader.skipType(tag2 & 7, long); + reader.skipType(tag2 & 7); break; } } - if (key === "__proto__") - $util.makeProp(message.extras, key); message.extras[key] = value; break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -274980,13 +257350,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Error.verify = function verify(message, long) { + Error.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.code != null && message.hasOwnProperty("code")) if (!$util.isString(message.code)) return "code: string expected"; @@ -275012,13 +257378,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.Error} Error */ - Error.fromObject = function fromObject(object, long) { + Error.fromObject = function fromObject(object) { if (object instanceof $root.BI.Error) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.Error(); if (object.code != null) message.code = String(object.code); @@ -275028,11 +257390,8 @@ export const BI = $root.BI = (() => { if (typeof object.extras !== "object") throw TypeError(".BI.Error.extras: object expected"); message.extras = {}; - for (let keys = Object.keys(object.extras), i = 0; i < keys.length; ++i) { - if (keys[i] === "__proto__") - $util.makeProp(message.extras, keys[i]); + for (let keys = Object.keys(object.extras), i = 0; i < keys.length; ++i) message.extras[keys[i]] = String(object.extras[keys[i]]); - } } return message; }; @@ -275046,13 +257405,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Error.toObject = function toObject(message, options, q) { + Error.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.objects || options.defaults) object.extras = {}; @@ -275067,11 +257422,8 @@ export const BI = $root.BI = (() => { let keys2; if (message.extras && (keys2 = Object.keys(message.extras)).length) { object.extras = {}; - for (let j = 0; j < keys2.length; ++j) { - if (keys2[j] === "__proto__") - $util.makeProp(object.extras, keys2[j]); + for (let j = 0; j < keys2.length; ++j) object.extras[keys2[j]] = message.extras[keys2[j]]; - } } return object; }; @@ -275130,7 +257482,7 @@ export const BI = $root.BI = (() => { function QuotePurchase(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -275203,13 +257555,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuotePurchase.encode = function encode(message, writer, q) { + QuotePurchase.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.quoteTotal != null && Object.hasOwnProperty.call(message, "quoteTotal")) writer.uint32(/* id 1, wireType 1 =*/9).double(message.quoteTotal); if (message.includedTax != null && Object.hasOwnProperty.call(message, "includedTax")) @@ -275249,18 +257597,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuotePurchase.decode = function decode(reader, length, error, long) { + QuotePurchase.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.QuotePurchase(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.quoteTotal = reader.double(); @@ -275287,7 +257629,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -275318,13 +257660,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuotePurchase.verify = function verify(message, long) { + QuotePurchase.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.quoteTotal != null && message.hasOwnProperty("quoteTotal")) if (typeof message.quoteTotal !== "number") return "quoteTotal: number expected"; @@ -275354,13 +257692,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.QuotePurchase} QuotePurchase */ - QuotePurchase.fromObject = function fromObject(object, long) { + QuotePurchase.fromObject = function fromObject(object) { if (object instanceof $root.BI.QuotePurchase) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.QuotePurchase(); if (object.quoteTotal != null) message.quoteTotal = Number(object.quoteTotal); @@ -275386,13 +257720,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuotePurchase.toObject = function toObject(message, options, q) { + QuotePurchase.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.quoteTotal = 0; @@ -275467,7 +257797,7 @@ export const BI = $root.BI = (() => { function PurchaseOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -275490,13 +257820,23 @@ export const BI = $root.BI = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * PurchaseOptions _inConsole. + * @member {"inConsole"|undefined} _inConsole + * @memberof BI.PurchaseOptions + * @instance + */ Object.defineProperty(PurchaseOptions.prototype, "_inConsole", { get: $util.oneOfGetter($oneOfFields = ["inConsole"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PurchaseOptions _externalCheckout. + * @member {"externalCheckout"|undefined} _externalCheckout + * @memberof BI.PurchaseOptions + * @instance + */ Object.defineProperty(PurchaseOptions.prototype, "_externalCheckout", { get: $util.oneOfGetter($oneOfFields = ["externalCheckout"]), set: $util.oneOfSetter($oneOfFields) @@ -275523,13 +257863,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurchaseOptions.encode = function encode(message, writer, q) { + PurchaseOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.inConsole != null && Object.hasOwnProperty.call(message, "inConsole")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.inConsole); if (message.externalCheckout != null && Object.hasOwnProperty.call(message, "externalCheckout")) @@ -275561,18 +257897,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurchaseOptions.decode = function decode(reader, length, error, long) { + PurchaseOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PurchaseOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.inConsole = reader.bool(); @@ -275583,7 +257913,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -275614,13 +257944,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurchaseOptions.verify = function verify(message, long) { + PurchaseOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.inConsole != null && message.hasOwnProperty("inConsole")) { properties._inConsole = 1; @@ -275643,13 +257969,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.PurchaseOptions} PurchaseOptions */ - PurchaseOptions.fromObject = function fromObject(object, long) { + PurchaseOptions.fromObject = function fromObject(object) { if (object instanceof $root.BI.PurchaseOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.PurchaseOptions(); if (object.inConsole != null) message.inConsole = Boolean(object.inConsole); @@ -275667,13 +257989,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurchaseOptions.toObject = function toObject(message, options, q) { + PurchaseOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (message.inConsole != null && message.hasOwnProperty("inConsole")) { object.inConsole = message.inConsole; @@ -275749,7 +258067,7 @@ export const BI = $root.BI = (() => { function AddonPurchaseOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -275860,79 +258178,144 @@ export const BI = $root.BI = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _storage. + * @member {"storage"|undefined} _storage + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_storage", { get: $util.oneOfGetter($oneOfFields = ["storage"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _audit. + * @member {"audit"|undefined} _audit + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_audit", { get: $util.oneOfGetter($oneOfFields = ["audit"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _breachwatch. + * @member {"breachwatch"|undefined} _breachwatch + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_breachwatch", { get: $util.oneOfGetter($oneOfFields = ["breachwatch"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _chat. + * @member {"chat"|undefined} _chat + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_chat", { get: $util.oneOfGetter($oneOfFields = ["chat"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _compliance. + * @member {"compliance"|undefined} _compliance + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_compliance", { get: $util.oneOfGetter($oneOfFields = ["compliance"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _professionalServicesSilver. + * @member {"professionalServicesSilver"|undefined} _professionalServicesSilver + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_professionalServicesSilver", { get: $util.oneOfGetter($oneOfFields = ["professionalServicesSilver"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _professionalServicesPlatinum. + * @member {"professionalServicesPlatinum"|undefined} _professionalServicesPlatinum + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_professionalServicesPlatinum", { get: $util.oneOfGetter($oneOfFields = ["professionalServicesPlatinum"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _pam. + * @member {"pam"|undefined} _pam + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_pam", { get: $util.oneOfGetter($oneOfFields = ["pam"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _epm. + * @member {"epm"|undefined} _epm + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_epm", { get: $util.oneOfGetter($oneOfFields = ["epm"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _secretsManager. + * @member {"secretsManager"|undefined} _secretsManager + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_secretsManager", { get: $util.oneOfGetter($oneOfFields = ["secretsManager"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _connectionManager. + * @member {"connectionManager"|undefined} _connectionManager + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_connectionManager", { get: $util.oneOfGetter($oneOfFields = ["connectionManager"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _remoteBrowserIsolation. + * @member {"remoteBrowserIsolation"|undefined} _remoteBrowserIsolation + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_remoteBrowserIsolation", { get: $util.oneOfGetter($oneOfFields = ["remoteBrowserIsolation"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * AddonPurchaseOptions _nhiTier. + * @member {"nhiTier"|undefined} _nhiTier + * @memberof BI.AddonPurchaseOptions + * @instance + */ Object.defineProperty(AddonPurchaseOptions.prototype, "_nhiTier", { get: $util.oneOfGetter($oneOfFields = ["nhiTier"]), set: $util.oneOfSetter($oneOfFields) @@ -275959,39 +258342,35 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddonPurchaseOptions.encode = function encode(message, writer, q) { + AddonPurchaseOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.storage != null && Object.hasOwnProperty.call(message, "storage")) - $root.BI.PurchaseOptions.encode(message.storage, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.storage, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.BI.PurchaseOptions.encode(message.audit, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.audit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.breachwatch != null && Object.hasOwnProperty.call(message, "breachwatch")) - $root.BI.PurchaseOptions.encode(message.breachwatch, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.breachwatch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.chat != null && Object.hasOwnProperty.call(message, "chat")) - $root.BI.PurchaseOptions.encode(message.chat, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.chat, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.compliance != null && Object.hasOwnProperty.call(message, "compliance")) - $root.BI.PurchaseOptions.encode(message.compliance, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.compliance, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.professionalServicesSilver != null && Object.hasOwnProperty.call(message, "professionalServicesSilver")) - $root.BI.PurchaseOptions.encode(message.professionalServicesSilver, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.professionalServicesSilver, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.professionalServicesPlatinum != null && Object.hasOwnProperty.call(message, "professionalServicesPlatinum")) - $root.BI.PurchaseOptions.encode(message.professionalServicesPlatinum, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.professionalServicesPlatinum, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.pam != null && Object.hasOwnProperty.call(message, "pam")) - $root.BI.PurchaseOptions.encode(message.pam, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.pam, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.epm != null && Object.hasOwnProperty.call(message, "epm")) - $root.BI.PurchaseOptions.encode(message.epm, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.epm, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.secretsManager != null && Object.hasOwnProperty.call(message, "secretsManager")) - $root.BI.PurchaseOptions.encode(message.secretsManager, writer.uint32(/* id 10, wireType 2 =*/82).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.secretsManager, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.connectionManager != null && Object.hasOwnProperty.call(message, "connectionManager")) - $root.BI.PurchaseOptions.encode(message.connectionManager, writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.connectionManager, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.remoteBrowserIsolation != null && Object.hasOwnProperty.call(message, "remoteBrowserIsolation")) - $root.BI.PurchaseOptions.encode(message.remoteBrowserIsolation, writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.remoteBrowserIsolation, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.nhiTier != null && Object.hasOwnProperty.call(message, "nhiTier")) - $root.BI.PurchaseOptions.encode(message.nhiTier, writer.uint32(/* id 13, wireType 2 =*/106).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.nhiTier, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; @@ -276019,73 +258398,67 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddonPurchaseOptions.decode = function decode(reader, length, error, long) { + AddonPurchaseOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AddonPurchaseOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.storage = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.storage = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 2: { - message.audit = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.audit = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 3: { - message.breachwatch = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.breachwatch = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 4: { - message.chat = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.chat = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 5: { - message.compliance = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.compliance = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 6: { - message.professionalServicesSilver = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.professionalServicesSilver = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 7: { - message.professionalServicesPlatinum = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.professionalServicesPlatinum = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 8: { - message.pam = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.pam = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 9: { - message.epm = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.epm = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 10: { - message.secretsManager = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.secretsManager = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 11: { - message.connectionManager = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.connectionManager = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 12: { - message.remoteBrowserIsolation = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.remoteBrowserIsolation = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 13: { - message.nhiTier = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.nhiTier = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -276116,18 +258489,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddonPurchaseOptions.verify = function verify(message, long) { + AddonPurchaseOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.storage != null && message.hasOwnProperty("storage")) { properties._storage = 1; { - let error = $root.BI.PurchaseOptions.verify(message.storage, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.storage); if (error) return "storage." + error; } @@ -276135,7 +258504,7 @@ export const BI = $root.BI = (() => { if (message.audit != null && message.hasOwnProperty("audit")) { properties._audit = 1; { - let error = $root.BI.PurchaseOptions.verify(message.audit, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.audit); if (error) return "audit." + error; } @@ -276143,7 +258512,7 @@ export const BI = $root.BI = (() => { if (message.breachwatch != null && message.hasOwnProperty("breachwatch")) { properties._breachwatch = 1; { - let error = $root.BI.PurchaseOptions.verify(message.breachwatch, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.breachwatch); if (error) return "breachwatch." + error; } @@ -276151,7 +258520,7 @@ export const BI = $root.BI = (() => { if (message.chat != null && message.hasOwnProperty("chat")) { properties._chat = 1; { - let error = $root.BI.PurchaseOptions.verify(message.chat, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.chat); if (error) return "chat." + error; } @@ -276159,7 +258528,7 @@ export const BI = $root.BI = (() => { if (message.compliance != null && message.hasOwnProperty("compliance")) { properties._compliance = 1; { - let error = $root.BI.PurchaseOptions.verify(message.compliance, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.compliance); if (error) return "compliance." + error; } @@ -276167,7 +258536,7 @@ export const BI = $root.BI = (() => { if (message.professionalServicesSilver != null && message.hasOwnProperty("professionalServicesSilver")) { properties._professionalServicesSilver = 1; { - let error = $root.BI.PurchaseOptions.verify(message.professionalServicesSilver, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.professionalServicesSilver); if (error) return "professionalServicesSilver." + error; } @@ -276175,7 +258544,7 @@ export const BI = $root.BI = (() => { if (message.professionalServicesPlatinum != null && message.hasOwnProperty("professionalServicesPlatinum")) { properties._professionalServicesPlatinum = 1; { - let error = $root.BI.PurchaseOptions.verify(message.professionalServicesPlatinum, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.professionalServicesPlatinum); if (error) return "professionalServicesPlatinum." + error; } @@ -276183,7 +258552,7 @@ export const BI = $root.BI = (() => { if (message.pam != null && message.hasOwnProperty("pam")) { properties._pam = 1; { - let error = $root.BI.PurchaseOptions.verify(message.pam, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.pam); if (error) return "pam." + error; } @@ -276191,7 +258560,7 @@ export const BI = $root.BI = (() => { if (message.epm != null && message.hasOwnProperty("epm")) { properties._epm = 1; { - let error = $root.BI.PurchaseOptions.verify(message.epm, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.epm); if (error) return "epm." + error; } @@ -276199,7 +258568,7 @@ export const BI = $root.BI = (() => { if (message.secretsManager != null && message.hasOwnProperty("secretsManager")) { properties._secretsManager = 1; { - let error = $root.BI.PurchaseOptions.verify(message.secretsManager, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.secretsManager); if (error) return "secretsManager." + error; } @@ -276207,7 +258576,7 @@ export const BI = $root.BI = (() => { if (message.connectionManager != null && message.hasOwnProperty("connectionManager")) { properties._connectionManager = 1; { - let error = $root.BI.PurchaseOptions.verify(message.connectionManager, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.connectionManager); if (error) return "connectionManager." + error; } @@ -276215,7 +258584,7 @@ export const BI = $root.BI = (() => { if (message.remoteBrowserIsolation != null && message.hasOwnProperty("remoteBrowserIsolation")) { properties._remoteBrowserIsolation = 1; { - let error = $root.BI.PurchaseOptions.verify(message.remoteBrowserIsolation, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.remoteBrowserIsolation); if (error) return "remoteBrowserIsolation." + error; } @@ -276223,7 +258592,7 @@ export const BI = $root.BI = (() => { if (message.nhiTier != null && message.hasOwnProperty("nhiTier")) { properties._nhiTier = 1; { - let error = $root.BI.PurchaseOptions.verify(message.nhiTier, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.nhiTier); if (error) return "nhiTier." + error; } @@ -276239,78 +258608,74 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.AddonPurchaseOptions} AddonPurchaseOptions */ - AddonPurchaseOptions.fromObject = function fromObject(object, long) { + AddonPurchaseOptions.fromObject = function fromObject(object) { if (object instanceof $root.BI.AddonPurchaseOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.AddonPurchaseOptions(); if (object.storage != null) { if (typeof object.storage !== "object") throw TypeError(".BI.AddonPurchaseOptions.storage: object expected"); - message.storage = $root.BI.PurchaseOptions.fromObject(object.storage, long + 1); + message.storage = $root.BI.PurchaseOptions.fromObject(object.storage); } if (object.audit != null) { if (typeof object.audit !== "object") throw TypeError(".BI.AddonPurchaseOptions.audit: object expected"); - message.audit = $root.BI.PurchaseOptions.fromObject(object.audit, long + 1); + message.audit = $root.BI.PurchaseOptions.fromObject(object.audit); } if (object.breachwatch != null) { if (typeof object.breachwatch !== "object") throw TypeError(".BI.AddonPurchaseOptions.breachwatch: object expected"); - message.breachwatch = $root.BI.PurchaseOptions.fromObject(object.breachwatch, long + 1); + message.breachwatch = $root.BI.PurchaseOptions.fromObject(object.breachwatch); } if (object.chat != null) { if (typeof object.chat !== "object") throw TypeError(".BI.AddonPurchaseOptions.chat: object expected"); - message.chat = $root.BI.PurchaseOptions.fromObject(object.chat, long + 1); + message.chat = $root.BI.PurchaseOptions.fromObject(object.chat); } if (object.compliance != null) { if (typeof object.compliance !== "object") throw TypeError(".BI.AddonPurchaseOptions.compliance: object expected"); - message.compliance = $root.BI.PurchaseOptions.fromObject(object.compliance, long + 1); + message.compliance = $root.BI.PurchaseOptions.fromObject(object.compliance); } if (object.professionalServicesSilver != null) { if (typeof object.professionalServicesSilver !== "object") throw TypeError(".BI.AddonPurchaseOptions.professionalServicesSilver: object expected"); - message.professionalServicesSilver = $root.BI.PurchaseOptions.fromObject(object.professionalServicesSilver, long + 1); + message.professionalServicesSilver = $root.BI.PurchaseOptions.fromObject(object.professionalServicesSilver); } if (object.professionalServicesPlatinum != null) { if (typeof object.professionalServicesPlatinum !== "object") throw TypeError(".BI.AddonPurchaseOptions.professionalServicesPlatinum: object expected"); - message.professionalServicesPlatinum = $root.BI.PurchaseOptions.fromObject(object.professionalServicesPlatinum, long + 1); + message.professionalServicesPlatinum = $root.BI.PurchaseOptions.fromObject(object.professionalServicesPlatinum); } if (object.pam != null) { if (typeof object.pam !== "object") throw TypeError(".BI.AddonPurchaseOptions.pam: object expected"); - message.pam = $root.BI.PurchaseOptions.fromObject(object.pam, long + 1); + message.pam = $root.BI.PurchaseOptions.fromObject(object.pam); } if (object.epm != null) { if (typeof object.epm !== "object") throw TypeError(".BI.AddonPurchaseOptions.epm: object expected"); - message.epm = $root.BI.PurchaseOptions.fromObject(object.epm, long + 1); + message.epm = $root.BI.PurchaseOptions.fromObject(object.epm); } if (object.secretsManager != null) { if (typeof object.secretsManager !== "object") throw TypeError(".BI.AddonPurchaseOptions.secretsManager: object expected"); - message.secretsManager = $root.BI.PurchaseOptions.fromObject(object.secretsManager, long + 1); + message.secretsManager = $root.BI.PurchaseOptions.fromObject(object.secretsManager); } if (object.connectionManager != null) { if (typeof object.connectionManager !== "object") throw TypeError(".BI.AddonPurchaseOptions.connectionManager: object expected"); - message.connectionManager = $root.BI.PurchaseOptions.fromObject(object.connectionManager, long + 1); + message.connectionManager = $root.BI.PurchaseOptions.fromObject(object.connectionManager); } if (object.remoteBrowserIsolation != null) { if (typeof object.remoteBrowserIsolation !== "object") throw TypeError(".BI.AddonPurchaseOptions.remoteBrowserIsolation: object expected"); - message.remoteBrowserIsolation = $root.BI.PurchaseOptions.fromObject(object.remoteBrowserIsolation, long + 1); + message.remoteBrowserIsolation = $root.BI.PurchaseOptions.fromObject(object.remoteBrowserIsolation); } if (object.nhiTier != null) { if (typeof object.nhiTier !== "object") throw TypeError(".BI.AddonPurchaseOptions.nhiTier: object expected"); - message.nhiTier = $root.BI.PurchaseOptions.fromObject(object.nhiTier, long + 1); + message.nhiTier = $root.BI.PurchaseOptions.fromObject(object.nhiTier); } return message; }; @@ -276324,76 +258689,72 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddonPurchaseOptions.toObject = function toObject(message, options, q) { + AddonPurchaseOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (message.storage != null && message.hasOwnProperty("storage")) { - object.storage = $root.BI.PurchaseOptions.toObject(message.storage, options, q + 1); + object.storage = $root.BI.PurchaseOptions.toObject(message.storage, options); if (options.oneofs) object._storage = "storage"; } if (message.audit != null && message.hasOwnProperty("audit")) { - object.audit = $root.BI.PurchaseOptions.toObject(message.audit, options, q + 1); + object.audit = $root.BI.PurchaseOptions.toObject(message.audit, options); if (options.oneofs) object._audit = "audit"; } if (message.breachwatch != null && message.hasOwnProperty("breachwatch")) { - object.breachwatch = $root.BI.PurchaseOptions.toObject(message.breachwatch, options, q + 1); + object.breachwatch = $root.BI.PurchaseOptions.toObject(message.breachwatch, options); if (options.oneofs) object._breachwatch = "breachwatch"; } if (message.chat != null && message.hasOwnProperty("chat")) { - object.chat = $root.BI.PurchaseOptions.toObject(message.chat, options, q + 1); + object.chat = $root.BI.PurchaseOptions.toObject(message.chat, options); if (options.oneofs) object._chat = "chat"; } if (message.compliance != null && message.hasOwnProperty("compliance")) { - object.compliance = $root.BI.PurchaseOptions.toObject(message.compliance, options, q + 1); + object.compliance = $root.BI.PurchaseOptions.toObject(message.compliance, options); if (options.oneofs) object._compliance = "compliance"; } if (message.professionalServicesSilver != null && message.hasOwnProperty("professionalServicesSilver")) { - object.professionalServicesSilver = $root.BI.PurchaseOptions.toObject(message.professionalServicesSilver, options, q + 1); + object.professionalServicesSilver = $root.BI.PurchaseOptions.toObject(message.professionalServicesSilver, options); if (options.oneofs) object._professionalServicesSilver = "professionalServicesSilver"; } if (message.professionalServicesPlatinum != null && message.hasOwnProperty("professionalServicesPlatinum")) { - object.professionalServicesPlatinum = $root.BI.PurchaseOptions.toObject(message.professionalServicesPlatinum, options, q + 1); + object.professionalServicesPlatinum = $root.BI.PurchaseOptions.toObject(message.professionalServicesPlatinum, options); if (options.oneofs) object._professionalServicesPlatinum = "professionalServicesPlatinum"; } if (message.pam != null && message.hasOwnProperty("pam")) { - object.pam = $root.BI.PurchaseOptions.toObject(message.pam, options, q + 1); + object.pam = $root.BI.PurchaseOptions.toObject(message.pam, options); if (options.oneofs) object._pam = "pam"; } if (message.epm != null && message.hasOwnProperty("epm")) { - object.epm = $root.BI.PurchaseOptions.toObject(message.epm, options, q + 1); + object.epm = $root.BI.PurchaseOptions.toObject(message.epm, options); if (options.oneofs) object._epm = "epm"; } if (message.secretsManager != null && message.hasOwnProperty("secretsManager")) { - object.secretsManager = $root.BI.PurchaseOptions.toObject(message.secretsManager, options, q + 1); + object.secretsManager = $root.BI.PurchaseOptions.toObject(message.secretsManager, options); if (options.oneofs) object._secretsManager = "secretsManager"; } if (message.connectionManager != null && message.hasOwnProperty("connectionManager")) { - object.connectionManager = $root.BI.PurchaseOptions.toObject(message.connectionManager, options, q + 1); + object.connectionManager = $root.BI.PurchaseOptions.toObject(message.connectionManager, options); if (options.oneofs) object._connectionManager = "connectionManager"; } if (message.remoteBrowserIsolation != null && message.hasOwnProperty("remoteBrowserIsolation")) { - object.remoteBrowserIsolation = $root.BI.PurchaseOptions.toObject(message.remoteBrowserIsolation, options, q + 1); + object.remoteBrowserIsolation = $root.BI.PurchaseOptions.toObject(message.remoteBrowserIsolation, options); if (options.oneofs) object._remoteBrowserIsolation = "remoteBrowserIsolation"; } if (message.nhiTier != null && message.hasOwnProperty("nhiTier")) { - object.nhiTier = $root.BI.PurchaseOptions.toObject(message.nhiTier, options, q + 1); + object.nhiTier = $root.BI.PurchaseOptions.toObject(message.nhiTier, options); if (options.oneofs) object._nhiTier = "nhiTier"; } @@ -276451,7 +258812,7 @@ export const BI = $root.BI = (() => { function AvailablePurchaseOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -276500,19 +258861,15 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AvailablePurchaseOptions.encode = function encode(message, writer, q) { + AvailablePurchaseOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.basePlan != null && Object.hasOwnProperty.call(message, "basePlan")) - $root.BI.PurchaseOptions.encode(message.basePlan, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.basePlan, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.users != null && Object.hasOwnProperty.call(message, "users")) - $root.BI.PurchaseOptions.encode(message.users, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.PurchaseOptions.encode(message.users, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.addons != null && Object.hasOwnProperty.call(message, "addons")) - $root.BI.AddonPurchaseOptions.encode(message.addons, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BI.AddonPurchaseOptions.encode(message.addons, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -276540,33 +258897,27 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AvailablePurchaseOptions.decode = function decode(reader, length, error, long) { + AvailablePurchaseOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AvailablePurchaseOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { - message.basePlan = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.basePlan = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 2: { - message.users = $root.BI.PurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.users = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } case 3: { - message.addons = $root.BI.AddonPurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.addons = $root.BI.AddonPurchaseOptions.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -276597,25 +258948,21 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AvailablePurchaseOptions.verify = function verify(message, long) { + AvailablePurchaseOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.basePlan != null && message.hasOwnProperty("basePlan")) { - let error = $root.BI.PurchaseOptions.verify(message.basePlan, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.basePlan); if (error) return "basePlan." + error; } if (message.users != null && message.hasOwnProperty("users")) { - let error = $root.BI.PurchaseOptions.verify(message.users, long + 1); + let error = $root.BI.PurchaseOptions.verify(message.users); if (error) return "users." + error; } if (message.addons != null && message.hasOwnProperty("addons")) { - let error = $root.BI.AddonPurchaseOptions.verify(message.addons, long + 1); + let error = $root.BI.AddonPurchaseOptions.verify(message.addons); if (error) return "addons." + error; } @@ -276630,28 +258977,24 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.AvailablePurchaseOptions} AvailablePurchaseOptions */ - AvailablePurchaseOptions.fromObject = function fromObject(object, long) { + AvailablePurchaseOptions.fromObject = function fromObject(object) { if (object instanceof $root.BI.AvailablePurchaseOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.AvailablePurchaseOptions(); if (object.basePlan != null) { if (typeof object.basePlan !== "object") throw TypeError(".BI.AvailablePurchaseOptions.basePlan: object expected"); - message.basePlan = $root.BI.PurchaseOptions.fromObject(object.basePlan, long + 1); + message.basePlan = $root.BI.PurchaseOptions.fromObject(object.basePlan); } if (object.users != null) { if (typeof object.users !== "object") throw TypeError(".BI.AvailablePurchaseOptions.users: object expected"); - message.users = $root.BI.PurchaseOptions.fromObject(object.users, long + 1); + message.users = $root.BI.PurchaseOptions.fromObject(object.users); } if (object.addons != null) { if (typeof object.addons !== "object") throw TypeError(".BI.AvailablePurchaseOptions.addons: object expected"); - message.addons = $root.BI.AddonPurchaseOptions.fromObject(object.addons, long + 1); + message.addons = $root.BI.AddonPurchaseOptions.fromObject(object.addons); } return message; }; @@ -276665,13 +259008,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AvailablePurchaseOptions.toObject = function toObject(message, options, q) { + AvailablePurchaseOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.basePlan = null; @@ -276679,11 +259018,11 @@ export const BI = $root.BI = (() => { object.addons = null; } if (message.basePlan != null && message.hasOwnProperty("basePlan")) - object.basePlan = $root.BI.PurchaseOptions.toObject(message.basePlan, options, q + 1); + object.basePlan = $root.BI.PurchaseOptions.toObject(message.basePlan, options); if (message.users != null && message.hasOwnProperty("users")) - object.users = $root.BI.PurchaseOptions.toObject(message.users, options, q + 1); + object.users = $root.BI.PurchaseOptions.toObject(message.users, options); if (message.addons != null && message.hasOwnProperty("addons")) - object.addons = $root.BI.AddonPurchaseOptions.toObject(message.addons, options, q + 1); + object.addons = $root.BI.AddonPurchaseOptions.toObject(message.addons, options); return object; }; @@ -276735,7 +259074,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -276760,13 +259099,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseStatusRequest.encode = function encode(message, writer, q) { + UpgradeLicenseStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -276794,21 +259129,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpgradeLicenseStatusRequest.decode = function decode(reader, length, error, long) { + UpgradeLicenseStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -276839,13 +259168,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpgradeLicenseStatusRequest.verify = function verify(message, long) { + UpgradeLicenseStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -276857,13 +259182,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.UpgradeLicenseStatusRequest} UpgradeLicenseStatusRequest */ - UpgradeLicenseStatusRequest.fromObject = function fromObject(object, long) { + UpgradeLicenseStatusRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.UpgradeLicenseStatusRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.UpgradeLicenseStatusRequest(); }; @@ -276931,7 +259252,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseStatusResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -276980,19 +259301,15 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseStatusResponse.encode = function encode(message, writer, q) { + UpgradeLicenseStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.allowPurchaseFromConsole != null && Object.hasOwnProperty.call(message, "allowPurchaseFromConsole")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.allowPurchaseFromConsole); if (message.purchaseOptions != null && Object.hasOwnProperty.call(message, "purchaseOptions")) - $root.BI.AvailablePurchaseOptions.encode(message.purchaseOptions, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.AvailablePurchaseOptions.encode(message.purchaseOptions, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -277020,33 +259337,27 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpgradeLicenseStatusResponse.decode = function decode(reader, length, error, long) { + UpgradeLicenseStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.allowPurchaseFromConsole = reader.bool(); break; } case 2: { - message.purchaseOptions = $root.BI.AvailablePurchaseOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.purchaseOptions = $root.BI.AvailablePurchaseOptions.decode(reader, reader.uint32()); break; } case 3: { - message.error = $root.BI.Error.decode(reader, reader.uint32(), undefined, long + 1); + message.error = $root.BI.Error.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -277077,23 +259388,19 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpgradeLicenseStatusResponse.verify = function verify(message, long) { + UpgradeLicenseStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.allowPurchaseFromConsole != null && message.hasOwnProperty("allowPurchaseFromConsole")) if (typeof message.allowPurchaseFromConsole !== "boolean") return "allowPurchaseFromConsole: boolean expected"; if (message.purchaseOptions != null && message.hasOwnProperty("purchaseOptions")) { - let error = $root.BI.AvailablePurchaseOptions.verify(message.purchaseOptions, long + 1); + let error = $root.BI.AvailablePurchaseOptions.verify(message.purchaseOptions); if (error) return "purchaseOptions." + error; } if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.BI.Error.verify(message.error, long + 1); + let error = $root.BI.Error.verify(message.error); if (error) return "error." + error; } @@ -277108,25 +259415,21 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.UpgradeLicenseStatusResponse} UpgradeLicenseStatusResponse */ - UpgradeLicenseStatusResponse.fromObject = function fromObject(object, long) { + UpgradeLicenseStatusResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.UpgradeLicenseStatusResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.UpgradeLicenseStatusResponse(); if (object.allowPurchaseFromConsole != null) message.allowPurchaseFromConsole = Boolean(object.allowPurchaseFromConsole); if (object.purchaseOptions != null) { if (typeof object.purchaseOptions !== "object") throw TypeError(".BI.UpgradeLicenseStatusResponse.purchaseOptions: object expected"); - message.purchaseOptions = $root.BI.AvailablePurchaseOptions.fromObject(object.purchaseOptions, long + 1); + message.purchaseOptions = $root.BI.AvailablePurchaseOptions.fromObject(object.purchaseOptions); } if (object.error != null) { if (typeof object.error !== "object") throw TypeError(".BI.UpgradeLicenseStatusResponse.error: object expected"); - message.error = $root.BI.Error.fromObject(object.error, long + 1); + message.error = $root.BI.Error.fromObject(object.error); } return message; }; @@ -277140,13 +259443,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseStatusResponse.toObject = function toObject(message, options, q) { + UpgradeLicenseStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.allowPurchaseFromConsole = false; @@ -277156,9 +259455,9 @@ export const BI = $root.BI = (() => { if (message.allowPurchaseFromConsole != null && message.hasOwnProperty("allowPurchaseFromConsole")) object.allowPurchaseFromConsole = message.allowPurchaseFromConsole; if (message.purchaseOptions != null && message.hasOwnProperty("purchaseOptions")) - object.purchaseOptions = $root.BI.AvailablePurchaseOptions.toObject(message.purchaseOptions, options, q + 1); + object.purchaseOptions = $root.BI.AvailablePurchaseOptions.toObject(message.purchaseOptions, options); if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.BI.Error.toObject(message.error, options, q + 1); + object.error = $root.BI.Error.toObject(message.error, options); return object; }; @@ -277213,7 +259512,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseQuotePurchaseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -277262,13 +259561,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseQuotePurchaseRequest.encode = function encode(message, writer, q) { + UpgradeLicenseQuotePurchaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.productType != null && Object.hasOwnProperty.call(message, "productType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.productType); if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) @@ -277302,18 +259597,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpgradeLicenseQuotePurchaseRequest.decode = function decode(reader, length, error, long) { + UpgradeLicenseQuotePurchaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseQuotePurchaseRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.productType = reader.int32(); @@ -277328,7 +259617,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -277359,13 +259648,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpgradeLicenseQuotePurchaseRequest.verify = function verify(message, long) { + UpgradeLicenseQuotePurchaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.productType != null && message.hasOwnProperty("productType")) switch (message.productType) { default: @@ -277401,13 +259686,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.UpgradeLicenseQuotePurchaseRequest} UpgradeLicenseQuotePurchaseRequest */ - UpgradeLicenseQuotePurchaseRequest.fromObject = function fromObject(object, long) { + UpgradeLicenseQuotePurchaseRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.UpgradeLicenseQuotePurchaseRequest(); switch (object.productType) { default: @@ -277481,13 +259762,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseQuotePurchaseRequest.toObject = function toObject(message, options, q) { + UpgradeLicenseQuotePurchaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.productType = options.enums === String ? "upgradeToEnterprise" : 0; @@ -277555,7 +259832,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseQuotePurchaseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -277612,21 +259889,17 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseQuotePurchaseResponse.encode = function encode(message, writer, q) { + UpgradeLicenseQuotePurchaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) - $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.viewSummaryLink != null && Object.hasOwnProperty.call(message, "viewSummaryLink")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.viewSummaryLink); if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.BI.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.BI.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -277654,25 +259927,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpgradeLicenseQuotePurchaseResponse.decode = function decode(reader, length, error, long) { + UpgradeLicenseQuotePurchaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseQuotePurchaseResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.success = reader.bool(); break; } case 2: { - message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32(), undefined, long + 1); + message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); break; } case 3: { @@ -277680,11 +259947,11 @@ export const BI = $root.BI = (() => { break; } case 4: { - message.error = $root.BI.Error.decode(reader, reader.uint32(), undefined, long + 1); + message.error = $root.BI.Error.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -277715,18 +259982,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpgradeLicenseQuotePurchaseResponse.verify = function verify(message, long) { + UpgradeLicenseQuotePurchaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.success != null && message.hasOwnProperty("success")) if (typeof message.success !== "boolean") return "success: boolean expected"; if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) { - let error = $root.BI.QuotePurchase.verify(message.quotePurchase, long + 1); + let error = $root.BI.QuotePurchase.verify(message.quotePurchase); if (error) return "quotePurchase." + error; } @@ -277734,7 +259997,7 @@ export const BI = $root.BI = (() => { if (!$util.isString(message.viewSummaryLink)) return "viewSummaryLink: string expected"; if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.BI.Error.verify(message.error, long + 1); + let error = $root.BI.Error.verify(message.error); if (error) return "error." + error; } @@ -277749,27 +260012,23 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.UpgradeLicenseQuotePurchaseResponse} UpgradeLicenseQuotePurchaseResponse */ - UpgradeLicenseQuotePurchaseResponse.fromObject = function fromObject(object, long) { + UpgradeLicenseQuotePurchaseResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.UpgradeLicenseQuotePurchaseResponse(); if (object.success != null) message.success = Boolean(object.success); if (object.quotePurchase != null) { if (typeof object.quotePurchase !== "object") throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse.quotePurchase: object expected"); - message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase, long + 1); + message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); } if (object.viewSummaryLink != null) message.viewSummaryLink = String(object.viewSummaryLink); if (object.error != null) { if (typeof object.error !== "object") throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse.error: object expected"); - message.error = $root.BI.Error.fromObject(object.error, long + 1); + message.error = $root.BI.Error.fromObject(object.error); } return message; }; @@ -277783,13 +260042,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseQuotePurchaseResponse.toObject = function toObject(message, options, q) { + UpgradeLicenseQuotePurchaseResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.success = false; @@ -277800,11 +260055,11 @@ export const BI = $root.BI = (() => { if (message.success != null && message.hasOwnProperty("success")) object.success = message.success; if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) - object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options, q + 1); + object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); if (message.viewSummaryLink != null && message.hasOwnProperty("viewSummaryLink")) object.viewSummaryLink = message.viewSummaryLink; if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.BI.Error.toObject(message.error, options, q + 1); + object.error = $root.BI.Error.toObject(message.error, options); return object; }; @@ -277860,7 +260115,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseCompletePurchaseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -277917,19 +260172,15 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseCompletePurchaseRequest.encode = function encode(message, writer, q) { + UpgradeLicenseCompletePurchaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.productType != null && Object.hasOwnProperty.call(message, "productType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.productType); if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.quantity); if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) - $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tier); return writer; @@ -277959,18 +260210,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpgradeLicenseCompletePurchaseRequest.decode = function decode(reader, length, error, long) { + UpgradeLicenseCompletePurchaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseCompletePurchaseRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.productType = reader.int32(); @@ -277981,7 +260226,7 @@ export const BI = $root.BI = (() => { break; } case 3: { - message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32(), undefined, long + 1); + message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); break; } case 4: { @@ -277989,7 +260234,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -278020,13 +260265,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpgradeLicenseCompletePurchaseRequest.verify = function verify(message, long) { + UpgradeLicenseCompletePurchaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.productType != null && message.hasOwnProperty("productType")) switch (message.productType) { default: @@ -278049,7 +260290,7 @@ export const BI = $root.BI = (() => { if (!$util.isInteger(message.quantity)) return "quantity: integer expected"; if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) { - let error = $root.BI.QuotePurchase.verify(message.quotePurchase, long + 1); + let error = $root.BI.QuotePurchase.verify(message.quotePurchase); if (error) return "quotePurchase." + error; } @@ -278067,13 +260308,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.UpgradeLicenseCompletePurchaseRequest} UpgradeLicenseCompletePurchaseRequest */ - UpgradeLicenseCompletePurchaseRequest.fromObject = function fromObject(object, long) { + UpgradeLicenseCompletePurchaseRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.UpgradeLicenseCompletePurchaseRequest(); switch (object.productType) { default: @@ -278136,7 +260373,7 @@ export const BI = $root.BI = (() => { if (object.quotePurchase != null) { if (typeof object.quotePurchase !== "object") throw TypeError(".BI.UpgradeLicenseCompletePurchaseRequest.quotePurchase: object expected"); - message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase, long + 1); + message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); } if (object.tier != null) message.tier = object.tier | 0; @@ -278152,13 +260389,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseCompletePurchaseRequest.toObject = function toObject(message, options, q) { + UpgradeLicenseCompletePurchaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.productType = options.enums === String ? "upgradeToEnterprise" : 0; @@ -278171,7 +260404,7 @@ export const BI = $root.BI = (() => { if (message.quantity != null && message.hasOwnProperty("quantity")) object.quantity = message.quantity; if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) - object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options, q + 1); + object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); if (message.tier != null && message.hasOwnProperty("tier")) object.tier = message.tier; return object; @@ -278229,7 +260462,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseCompletePurchaseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -278286,21 +260519,17 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeLicenseCompletePurchaseResponse.encode = function encode(message, writer, q) { + UpgradeLicenseCompletePurchaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.success != null && Object.hasOwnProperty.call(message, "success")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.invoiceNumber); if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) - $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -278328,18 +260557,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpgradeLicenseCompletePurchaseResponse.decode = function decode(reader, length, error, long) { + UpgradeLicenseCompletePurchaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseCompletePurchaseResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.success = reader.bool(); @@ -278350,15 +260573,15 @@ export const BI = $root.BI = (() => { break; } case 3: { - message.error = $root.BI.Error.decode(reader, reader.uint32(), undefined, long + 1); + message.error = $root.BI.Error.decode(reader, reader.uint32()); break; } case 4: { - message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32(), undefined, long + 1); + message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -278389,13 +260612,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpgradeLicenseCompletePurchaseResponse.verify = function verify(message, long) { + UpgradeLicenseCompletePurchaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.success != null && message.hasOwnProperty("success")) if (typeof message.success !== "boolean") return "success: boolean expected"; @@ -278403,12 +260622,12 @@ export const BI = $root.BI = (() => { if (!$util.isString(message.invoiceNumber)) return "invoiceNumber: string expected"; if (message.error != null && message.hasOwnProperty("error")) { - let error = $root.BI.Error.verify(message.error, long + 1); + let error = $root.BI.Error.verify(message.error); if (error) return "error." + error; } if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) { - let error = $root.BI.QuotePurchase.verify(message.quotePurchase, long + 1); + let error = $root.BI.QuotePurchase.verify(message.quotePurchase); if (error) return "quotePurchase." + error; } @@ -278423,13 +260642,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.UpgradeLicenseCompletePurchaseResponse} UpgradeLicenseCompletePurchaseResponse */ - UpgradeLicenseCompletePurchaseResponse.fromObject = function fromObject(object, long) { + UpgradeLicenseCompletePurchaseResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.UpgradeLicenseCompletePurchaseResponse(); if (object.success != null) message.success = Boolean(object.success); @@ -278438,12 +260653,12 @@ export const BI = $root.BI = (() => { if (object.error != null) { if (typeof object.error !== "object") throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse.error: object expected"); - message.error = $root.BI.Error.fromObject(object.error, long + 1); + message.error = $root.BI.Error.fromObject(object.error); } if (object.quotePurchase != null) { if (typeof object.quotePurchase !== "object") throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse.quotePurchase: object expected"); - message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase, long + 1); + message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); } return message; }; @@ -278457,13 +260672,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeLicenseCompletePurchaseResponse.toObject = function toObject(message, options, q) { + UpgradeLicenseCompletePurchaseResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.success = false; @@ -278476,9 +260687,9 @@ export const BI = $root.BI = (() => { if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) object.invoiceNumber = message.invoiceNumber; if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.BI.Error.toObject(message.error, options, q + 1); + object.error = $root.BI.Error.toObject(message.error, options); if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) - object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options, q + 1); + object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); return object; }; @@ -278532,7 +260743,7 @@ export const BI = $root.BI = (() => { function EnterpriseBasePlan(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -278573,17 +260784,13 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnterpriseBasePlan.encode = function encode(message, writer, q) { + EnterpriseBasePlan.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.baseplanVersion != null && Object.hasOwnProperty.call(message, "baseplanVersion")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.baseplanVersion); if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -278611,29 +260818,23 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnterpriseBasePlan.decode = function decode(reader, length, error, long) { + EnterpriseBasePlan.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EnterpriseBasePlan(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.baseplanVersion = reader.int32(); break; } case 2: { - message.cost = $root.BI.Cost.decode(reader, reader.uint32(), undefined, long + 1); + message.cost = $root.BI.Cost.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -278664,13 +260865,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnterpriseBasePlan.verify = function verify(message, long) { + EnterpriseBasePlan.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.baseplanVersion != null && message.hasOwnProperty("baseplanVersion")) switch (message.baseplanVersion) { default: @@ -278682,7 +260879,7 @@ export const BI = $root.BI = (() => { break; } if (message.cost != null && message.hasOwnProperty("cost")) { - let error = $root.BI.Cost.verify(message.cost, long + 1); + let error = $root.BI.Cost.verify(message.cost); if (error) return "cost." + error; } @@ -278697,13 +260894,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan */ - EnterpriseBasePlan.fromObject = function fromObject(object, long) { + EnterpriseBasePlan.fromObject = function fromObject(object) { if (object instanceof $root.BI.EnterpriseBasePlan) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.EnterpriseBasePlan(); switch (object.baseplanVersion) { default: @@ -278732,7 +260925,7 @@ export const BI = $root.BI = (() => { if (object.cost != null) { if (typeof object.cost !== "object") throw TypeError(".BI.EnterpriseBasePlan.cost: object expected"); - message.cost = $root.BI.Cost.fromObject(object.cost, long + 1); + message.cost = $root.BI.Cost.fromObject(object.cost); } return message; }; @@ -278746,13 +260939,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnterpriseBasePlan.toObject = function toObject(message, options, q) { + EnterpriseBasePlan.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.baseplanVersion = options.enums === String ? "UNKNOWN" : 0; @@ -278761,7 +260950,7 @@ export const BI = $root.BI = (() => { if (message.baseplanVersion != null && message.hasOwnProperty("baseplanVersion")) object.baseplanVersion = options.enums === String ? $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] === undefined ? message.baseplanVersion : $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] : message.baseplanVersion; if (message.cost != null && message.hasOwnProperty("cost")) - object.cost = $root.BI.Cost.toObject(message.cost, options, q + 1); + object.cost = $root.BI.Cost.toObject(message.cost, options); return object; }; @@ -278831,7 +261020,7 @@ export const BI = $root.BI = (() => { function SubscriptionEnterprisePricingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -278856,13 +261045,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionEnterprisePricingRequest.encode = function encode(message, writer, q) { + SubscriptionEnterprisePricingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); return writer; }; @@ -278890,21 +261075,15 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SubscriptionEnterprisePricingRequest.decode = function decode(reader, length, error, long) { + SubscriptionEnterprisePricingRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionEnterprisePricingRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -278935,13 +261114,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SubscriptionEnterprisePricingRequest.verify = function verify(message, long) { + SubscriptionEnterprisePricingRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; return null; }; @@ -278953,13 +261128,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest */ - SubscriptionEnterprisePricingRequest.fromObject = function fromObject(object, long) { + SubscriptionEnterprisePricingRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.SubscriptionEnterprisePricingRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); return new $root.BI.SubscriptionEnterprisePricingRequest(); }; @@ -279029,7 +261200,7 @@ export const BI = $root.BI = (() => { function NhiTierPlan(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -279094,19 +261265,15 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NhiTierPlan.encode = function encode(message, writer, q) { + NhiTierPlan.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.tierId != null && Object.hasOwnProperty.call(message, "tierId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tierId); if (message.nhiCeiling != null && Object.hasOwnProperty.call(message, "nhiCeiling")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nhiCeiling); if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.productId != null && Object.hasOwnProperty.call(message, "productId")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.productId); if (message.nhiFloor != null && Object.hasOwnProperty.call(message, "nhiFloor")) @@ -279138,18 +261305,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NhiTierPlan.decode = function decode(reader, length, error, long) { + NhiTierPlan.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NhiTierPlan(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.tierId = reader.int32(); @@ -279160,7 +261321,7 @@ export const BI = $root.BI = (() => { break; } case 3: { - message.cost = $root.BI.Cost.decode(reader, reader.uint32(), undefined, long + 1); + message.cost = $root.BI.Cost.decode(reader, reader.uint32()); break; } case 4: { @@ -279172,7 +261333,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -279203,13 +261364,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NhiTierPlan.verify = function verify(message, long) { + NhiTierPlan.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.tierId != null && message.hasOwnProperty("tierId")) if (!$util.isInteger(message.tierId)) return "tierId: integer expected"; @@ -279217,7 +261374,7 @@ export const BI = $root.BI = (() => { if (!$util.isInteger(message.nhiCeiling)) return "nhiCeiling: integer expected"; if (message.cost != null && message.hasOwnProperty("cost")) { - let error = $root.BI.Cost.verify(message.cost, long + 1); + let error = $root.BI.Cost.verify(message.cost); if (error) return "cost." + error; } @@ -279238,13 +261395,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NhiTierPlan} NhiTierPlan */ - NhiTierPlan.fromObject = function fromObject(object, long) { + NhiTierPlan.fromObject = function fromObject(object) { if (object instanceof $root.BI.NhiTierPlan) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.NhiTierPlan(); if (object.tierId != null) message.tierId = object.tierId | 0; @@ -279253,7 +261406,7 @@ export const BI = $root.BI = (() => { if (object.cost != null) { if (typeof object.cost !== "object") throw TypeError(".BI.NhiTierPlan.cost: object expected"); - message.cost = $root.BI.Cost.fromObject(object.cost, long + 1); + message.cost = $root.BI.Cost.fromObject(object.cost); } if (object.productId != null) message.productId = object.productId | 0; @@ -279271,13 +261424,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NhiTierPlan.toObject = function toObject(message, options, q) { + NhiTierPlan.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.tierId = 0; @@ -279291,7 +261440,7 @@ export const BI = $root.BI = (() => { if (message.nhiCeiling != null && message.hasOwnProperty("nhiCeiling")) object.nhiCeiling = message.nhiCeiling; if (message.cost != null && message.hasOwnProperty("cost")) - object.cost = $root.BI.Cost.toObject(message.cost, options, q + 1); + object.cost = $root.BI.Cost.toObject(message.cost, options); if (message.productId != null && message.hasOwnProperty("productId")) object.productId = message.productId; if (message.nhiFloor != null && message.hasOwnProperty("nhiFloor")) @@ -279355,7 +261504,7 @@ export const BI = $root.BI = (() => { this.nhiTierPlans = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -279412,25 +261561,21 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SubscriptionEnterprisePricingResponse.encode = function encode(message, writer, q) { + SubscriptionEnterprisePricingResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.basePlans != null && message.basePlans.length) for (let i = 0; i < message.basePlans.length; ++i) - $root.BI.EnterpriseBasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.EnterpriseBasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.addons != null && message.addons.length) for (let i = 0; i < message.addons.length; ++i) - $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.filePlans != null && message.filePlans.length) for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.nhiTierPlans != null && message.nhiTierPlans.length) for (let i = 0; i < message.nhiTierPlans.length; ++i) - $root.BI.NhiTierPlan.encode(message.nhiTierPlans[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.BI.NhiTierPlan.encode(message.nhiTierPlans[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -279458,45 +261603,39 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SubscriptionEnterprisePricingResponse.decode = function decode(reader, length, error, long) { + SubscriptionEnterprisePricingResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionEnterprisePricingResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.basePlans && message.basePlans.length)) message.basePlans = []; - message.basePlans.push($root.BI.EnterpriseBasePlan.decode(reader, reader.uint32(), undefined, long + 1)); + message.basePlans.push($root.BI.EnterpriseBasePlan.decode(reader, reader.uint32())); break; } case 2: { if (!(message.addons && message.addons.length)) message.addons = []; - message.addons.push($root.BI.Addon.decode(reader, reader.uint32(), undefined, long + 1)); + message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); break; } case 3: { if (!(message.filePlans && message.filePlans.length)) message.filePlans = []; - message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32(), undefined, long + 1)); + message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); break; } case 4: { if (!(message.nhiTierPlans && message.nhiTierPlans.length)) message.nhiTierPlans = []; - message.nhiTierPlans.push($root.BI.NhiTierPlan.decode(reader, reader.uint32(), undefined, long + 1)); + message.nhiTierPlans.push($root.BI.NhiTierPlan.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -279527,18 +261666,14 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SubscriptionEnterprisePricingResponse.verify = function verify(message, long) { + SubscriptionEnterprisePricingResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.basePlans != null && message.hasOwnProperty("basePlans")) { if (!Array.isArray(message.basePlans)) return "basePlans: array expected"; for (let i = 0; i < message.basePlans.length; ++i) { - let error = $root.BI.EnterpriseBasePlan.verify(message.basePlans[i], long + 1); + let error = $root.BI.EnterpriseBasePlan.verify(message.basePlans[i]); if (error) return "basePlans." + error; } @@ -279547,7 +261682,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.addons)) return "addons: array expected"; for (let i = 0; i < message.addons.length; ++i) { - let error = $root.BI.Addon.verify(message.addons[i], long + 1); + let error = $root.BI.Addon.verify(message.addons[i]); if (error) return "addons." + error; } @@ -279556,7 +261691,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.filePlans)) return "filePlans: array expected"; for (let i = 0; i < message.filePlans.length; ++i) { - let error = $root.BI.FilePlan.verify(message.filePlans[i], long + 1); + let error = $root.BI.FilePlan.verify(message.filePlans[i]); if (error) return "filePlans." + error; } @@ -279565,7 +261700,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.nhiTierPlans)) return "nhiTierPlans: array expected"; for (let i = 0; i < message.nhiTierPlans.length; ++i) { - let error = $root.BI.NhiTierPlan.verify(message.nhiTierPlans[i], long + 1); + let error = $root.BI.NhiTierPlan.verify(message.nhiTierPlans[i]); if (error) return "nhiTierPlans." + error; } @@ -279581,13 +261716,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse */ - SubscriptionEnterprisePricingResponse.fromObject = function fromObject(object, long) { + SubscriptionEnterprisePricingResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.SubscriptionEnterprisePricingResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SubscriptionEnterprisePricingResponse(); if (object.basePlans) { if (!Array.isArray(object.basePlans)) @@ -279596,7 +261727,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.basePlans.length; ++i) { if (typeof object.basePlans[i] !== "object") throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: object expected"); - message.basePlans[i] = $root.BI.EnterpriseBasePlan.fromObject(object.basePlans[i], long + 1); + message.basePlans[i] = $root.BI.EnterpriseBasePlan.fromObject(object.basePlans[i]); } } if (object.addons) { @@ -279606,7 +261737,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.addons.length; ++i) { if (typeof object.addons[i] !== "object") throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: object expected"); - message.addons[i] = $root.BI.Addon.fromObject(object.addons[i], long + 1); + message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); } } if (object.filePlans) { @@ -279616,7 +261747,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.filePlans.length; ++i) { if (typeof object.filePlans[i] !== "object") throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: object expected"); - message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i], long + 1); + message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); } } if (object.nhiTierPlans) { @@ -279626,7 +261757,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.nhiTierPlans.length; ++i) { if (typeof object.nhiTierPlans[i] !== "object") throw TypeError(".BI.SubscriptionEnterprisePricingResponse.nhiTierPlans: object expected"); - message.nhiTierPlans[i] = $root.BI.NhiTierPlan.fromObject(object.nhiTierPlans[i], long + 1); + message.nhiTierPlans[i] = $root.BI.NhiTierPlan.fromObject(object.nhiTierPlans[i]); } } return message; @@ -279641,13 +261772,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SubscriptionEnterprisePricingResponse.toObject = function toObject(message, options, q) { + SubscriptionEnterprisePricingResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.basePlans = []; @@ -279658,22 +261785,22 @@ export const BI = $root.BI = (() => { if (message.basePlans && message.basePlans.length) { object.basePlans = []; for (let j = 0; j < message.basePlans.length; ++j) - object.basePlans[j] = $root.BI.EnterpriseBasePlan.toObject(message.basePlans[j], options, q + 1); + object.basePlans[j] = $root.BI.EnterpriseBasePlan.toObject(message.basePlans[j], options); } if (message.addons && message.addons.length) { object.addons = []; for (let j = 0; j < message.addons.length; ++j) - object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options, q + 1); + object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options); } if (message.filePlans && message.filePlans.length) { object.filePlans = []; for (let j = 0; j < message.filePlans.length; ++j) - object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options, q + 1); + object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options); } if (message.nhiTierPlans && message.nhiTierPlans.length) { object.nhiTierPlans = []; for (let j = 0; j < message.nhiTierPlans.length; ++j) - object.nhiTierPlans[j] = $root.BI.NhiTierPlan.toObject(message.nhiTierPlans[j], options, q + 1); + object.nhiTierPlans[j] = $root.BI.NhiTierPlan.toObject(message.nhiTierPlans[j], options); } return object; }; @@ -279756,7 +261883,7 @@ export const BI = $root.BI = (() => { function SingularDeviceIdentifier(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -279797,13 +261924,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularDeviceIdentifier.encode = function encode(message, writer, q) { + SingularDeviceIdentifier.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.id != null && Object.hasOwnProperty.call(message, "id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); if (message.idType != null && Object.hasOwnProperty.call(message, "idType")) @@ -279835,18 +261958,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SingularDeviceIdentifier.decode = function decode(reader, length, error, long) { + SingularDeviceIdentifier.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularDeviceIdentifier(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.id = reader.string(); @@ -279857,7 +261974,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -279888,13 +262005,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SingularDeviceIdentifier.verify = function verify(message, long) { + SingularDeviceIdentifier.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.id != null && message.hasOwnProperty("id")) if (!$util.isString(message.id)) return "id: string expected"; @@ -279924,13 +262037,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier */ - SingularDeviceIdentifier.fromObject = function fromObject(object, long) { + SingularDeviceIdentifier.fromObject = function fromObject(object) { if (object instanceof $root.BI.SingularDeviceIdentifier) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SingularDeviceIdentifier(); if (object.id != null) message.id = String(object.id); @@ -279990,13 +262099,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SingularDeviceIdentifier.toObject = function toObject(message, options, q) { + SingularDeviceIdentifier.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.id = ""; @@ -280065,7 +262170,7 @@ export const BI = $root.BI = (() => { function SingularSharedData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -280154,13 +262259,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularSharedData.encode = function encode(message, writer, q) { + SingularSharedData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.platform != null && Object.hasOwnProperty.call(message, "platform")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.platform); if (message.osVersion != null && Object.hasOwnProperty.call(message, "osVersion")) @@ -280204,18 +262305,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SingularSharedData.decode = function decode(reader, length, error, long) { + SingularSharedData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularSharedData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.platform = reader.string(); @@ -280250,7 +262345,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -280281,13 +262376,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SingularSharedData.verify = function verify(message, long) { + SingularSharedData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.platform != null && message.hasOwnProperty("platform")) if (!$util.isString(message.platform)) return "platform: string expected"; @@ -280323,13 +262414,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SingularSharedData} SingularSharedData */ - SingularSharedData.fromObject = function fromObject(object, long) { + SingularSharedData.fromObject = function fromObject(object) { if (object instanceof $root.BI.SingularSharedData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SingularSharedData(); if (object.platform != null) message.platform = String(object.platform); @@ -280359,13 +262446,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SingularSharedData.toObject = function toObject(message, options, q) { + SingularSharedData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.platform = ""; @@ -280459,7 +262542,7 @@ export const BI = $root.BI = (() => { this.deviceIdentifiers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -280596,18 +262679,14 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularSessionRequest.encode = function encode(message, writer, q) { + SingularSessionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceIdentifiers != null && message.deviceIdentifiers.length) for (let i = 0; i < message.deviceIdentifiers.length; ++i) - $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) - $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.applicationVersion != null && Object.hasOwnProperty.call(message, "applicationVersion")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.applicationVersion); if (message.install != null && Object.hasOwnProperty.call(message, "install")) @@ -280659,27 +262738,21 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SingularSessionRequest.decode = function decode(reader, length, error, long) { + SingularSessionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularSessionRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.deviceIdentifiers && message.deviceIdentifiers.length)) message.deviceIdentifiers = []; - message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32(), undefined, long + 1)); + message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32())); break; } case 2: { - message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32(), undefined, long + 1); + message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32()); break; } case 3: { @@ -280731,7 +262804,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -280762,24 +262835,20 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SingularSessionRequest.verify = function verify(message, long) { + SingularSessionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceIdentifiers != null && message.hasOwnProperty("deviceIdentifiers")) { if (!Array.isArray(message.deviceIdentifiers)) return "deviceIdentifiers: array expected"; for (let i = 0; i < message.deviceIdentifiers.length; ++i) { - let error = $root.BI.SingularDeviceIdentifier.verify(message.deviceIdentifiers[i], long + 1); + let error = $root.BI.SingularDeviceIdentifier.verify(message.deviceIdentifiers[i]); if (error) return "deviceIdentifiers." + error; } } if (message.sharedData != null && message.hasOwnProperty("sharedData")) { - let error = $root.BI.SingularSharedData.verify(message.sharedData, long + 1); + let error = $root.BI.SingularSharedData.verify(message.sharedData); if (error) return "sharedData." + error; } @@ -280830,13 +262899,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SingularSessionRequest} SingularSessionRequest */ - SingularSessionRequest.fromObject = function fromObject(object, long) { + SingularSessionRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.SingularSessionRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SingularSessionRequest(); if (object.deviceIdentifiers) { if (!Array.isArray(object.deviceIdentifiers)) @@ -280845,13 +262910,13 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.deviceIdentifiers.length; ++i) { if (typeof object.deviceIdentifiers[i] !== "object") throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: object expected"); - message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i], long + 1); + message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i]); } } if (object.sharedData != null) { if (typeof object.sharedData !== "object") throw TypeError(".BI.SingularSessionRequest.sharedData: object expected"); - message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData, long + 1); + message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData); } if (object.applicationVersion != null) message.applicationVersion = String(object.applicationVersion); @@ -280859,7 +262924,7 @@ export const BI = $root.BI = (() => { message.install = Boolean(object.install); if (object.installTime != null) if ($util.Long) - message.installTime = $util.Long.fromValue(object.installTime, false); + (message.installTime = $util.Long.fromValue(object.installTime)).unsigned = false; else if (typeof object.installTime === "string") message.installTime = parseInt(object.installTime, 10); else if (typeof object.installTime === "number") @@ -280868,7 +262933,7 @@ export const BI = $root.BI = (() => { message.installTime = new $util.LongBits(object.installTime.low >>> 0, object.installTime.high >>> 0).toNumber(); if (object.updateTime != null) if ($util.Long) - message.updateTime = $util.Long.fromValue(object.updateTime, false); + (message.updateTime = $util.Long.fromValue(object.updateTime)).unsigned = false; else if (typeof object.updateTime === "string") message.updateTime = parseInt(object.updateTime, 10); else if (typeof object.updateTime === "number") @@ -280903,13 +262968,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SingularSessionRequest.toObject = function toObject(message, options, q) { + SingularSessionRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.deviceIdentifiers = []; @@ -280919,14 +262980,14 @@ export const BI = $root.BI = (() => { object.install = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.installTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.installTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.installTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.installTime = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.updateTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.updateTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.updateTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.updateTime = options.longs === String ? "0" : 0; object.installSource = ""; object.installReceipt = ""; object.openuri = ""; @@ -280939,25 +263000,21 @@ export const BI = $root.BI = (() => { if (message.deviceIdentifiers && message.deviceIdentifiers.length) { object.deviceIdentifiers = []; for (let j = 0; j < message.deviceIdentifiers.length; ++j) - object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options, q + 1); + object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options); } if (message.sharedData != null && message.hasOwnProperty("sharedData")) - object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options, q + 1); + object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options); if (message.applicationVersion != null && message.hasOwnProperty("applicationVersion")) object.applicationVersion = message.applicationVersion; if (message.install != null && message.hasOwnProperty("install")) object.install = message.install; if (message.installTime != null && message.hasOwnProperty("installTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.installTime = typeof message.installTime === "number" ? BigInt(message.installTime) : $util.Long.fromBits(message.installTime.low >>> 0, message.installTime.high >>> 0, false).toBigInt(); - else if (typeof message.installTime === "number") + if (typeof message.installTime === "number") object.installTime = options.longs === String ? String(message.installTime) : message.installTime; else object.installTime = options.longs === String ? $util.Long.prototype.toString.call(message.installTime) : options.longs === Number ? new $util.LongBits(message.installTime.low >>> 0, message.installTime.high >>> 0).toNumber() : message.installTime; if (message.updateTime != null && message.hasOwnProperty("updateTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.updateTime = typeof message.updateTime === "number" ? BigInt(message.updateTime) : $util.Long.fromBits(message.updateTime.low >>> 0, message.updateTime.high >>> 0, false).toBigInt(); - else if (typeof message.updateTime === "number") + if (typeof message.updateTime === "number") object.updateTime = options.longs === String ? String(message.updateTime) : message.updateTime; else object.updateTime = options.longs === String ? $util.Long.prototype.toString.call(message.updateTime) : options.longs === Number ? new $util.LongBits(message.updateTime.low >>> 0, message.updateTime.high >>> 0).toNumber() : message.updateTime; @@ -281032,7 +263089,7 @@ export const BI = $root.BI = (() => { this.deviceIdentifiers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -281081,18 +263138,14 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SingularEventRequest.encode = function encode(message, writer, q) { + SingularEventRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deviceIdentifiers != null && message.deviceIdentifiers.length) for (let i = 0; i < message.deviceIdentifiers.length; ++i) - $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) - $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.eventName); return writer; @@ -281122,27 +263175,21 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SingularEventRequest.decode = function decode(reader, length, error, long) { + SingularEventRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularEventRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.deviceIdentifiers && message.deviceIdentifiers.length)) message.deviceIdentifiers = []; - message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32(), undefined, long + 1)); + message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32())); break; } case 2: { - message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32(), undefined, long + 1); + message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32()); break; } case 3: { @@ -281150,7 +263197,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -281181,24 +263228,20 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SingularEventRequest.verify = function verify(message, long) { + SingularEventRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deviceIdentifiers != null && message.hasOwnProperty("deviceIdentifiers")) { if (!Array.isArray(message.deviceIdentifiers)) return "deviceIdentifiers: array expected"; for (let i = 0; i < message.deviceIdentifiers.length; ++i) { - let error = $root.BI.SingularDeviceIdentifier.verify(message.deviceIdentifiers[i], long + 1); + let error = $root.BI.SingularDeviceIdentifier.verify(message.deviceIdentifiers[i]); if (error) return "deviceIdentifiers." + error; } } if (message.sharedData != null && message.hasOwnProperty("sharedData")) { - let error = $root.BI.SingularSharedData.verify(message.sharedData, long + 1); + let error = $root.BI.SingularSharedData.verify(message.sharedData); if (error) return "sharedData." + error; } @@ -281216,13 +263259,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.SingularEventRequest} SingularEventRequest */ - SingularEventRequest.fromObject = function fromObject(object, long) { + SingularEventRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.SingularEventRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.SingularEventRequest(); if (object.deviceIdentifiers) { if (!Array.isArray(object.deviceIdentifiers)) @@ -281231,13 +263270,13 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.deviceIdentifiers.length; ++i) { if (typeof object.deviceIdentifiers[i] !== "object") throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: object expected"); - message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i], long + 1); + message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i]); } } if (object.sharedData != null) { if (typeof object.sharedData !== "object") throw TypeError(".BI.SingularEventRequest.sharedData: object expected"); - message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData, long + 1); + message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData); } if (object.eventName != null) message.eventName = String(object.eventName); @@ -281253,13 +263292,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SingularEventRequest.toObject = function toObject(message, options, q) { + SingularEventRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.deviceIdentifiers = []; @@ -281270,10 +263305,10 @@ export const BI = $root.BI = (() => { if (message.deviceIdentifiers && message.deviceIdentifiers.length) { object.deviceIdentifiers = []; for (let j = 0; j < message.deviceIdentifiers.length; ++j) - object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options, q + 1); + object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options); } if (message.sharedData != null && message.hasOwnProperty("sharedData")) - object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options, q + 1); + object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options); if (message.eventName != null && message.hasOwnProperty("eventName")) object.eventName = message.eventName; return object; @@ -281328,7 +263363,7 @@ export const BI = $root.BI = (() => { function ActivePamCountRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -281361,13 +263396,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActivePamCountRequest.encode = function encode(message, writer, q) { + ActivePamCountRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); return writer; @@ -281397,25 +263428,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ActivePamCountRequest.decode = function decode(reader, length, error, long) { + ActivePamCountRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ActivePamCountRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseId = reader.int32(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -281446,13 +263471,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ActivePamCountRequest.verify = function verify(message, long) { + ActivePamCountRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) if (!$util.isInteger(message.enterpriseId)) return "enterpriseId: integer expected"; @@ -281467,13 +263488,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.ActivePamCountRequest} ActivePamCountRequest */ - ActivePamCountRequest.fromObject = function fromObject(object, long) { + ActivePamCountRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.ActivePamCountRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.ActivePamCountRequest(); if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; @@ -281489,13 +263506,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ActivePamCountRequest.toObject = function toObject(message, options, q) { + ActivePamCountRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.enterpriseId = 0; @@ -281553,7 +263566,7 @@ export const BI = $root.BI = (() => { function ActivePamCountResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -281586,13 +263599,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActivePamCountResponse.encode = function encode(message, writer, q) { + ActivePamCountResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.pamCount != null && Object.hasOwnProperty.call(message, "pamCount")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pamCount); return writer; @@ -281622,25 +263631,19 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ActivePamCountResponse.decode = function decode(reader, length, error, long) { + ActivePamCountResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ActivePamCountResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.pamCount = reader.int32(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -281671,13 +263674,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ActivePamCountResponse.verify = function verify(message, long) { + ActivePamCountResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.pamCount != null && message.hasOwnProperty("pamCount")) if (!$util.isInteger(message.pamCount)) return "pamCount: integer expected"; @@ -281692,13 +263691,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.ActivePamCountResponse} ActivePamCountResponse */ - ActivePamCountResponse.fromObject = function fromObject(object, long) { + ActivePamCountResponse.fromObject = function fromObject(object) { if (object instanceof $root.BI.ActivePamCountResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.ActivePamCountResponse(); if (object.pamCount != null) message.pamCount = object.pamCount | 0; @@ -281714,13 +263709,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ActivePamCountResponse.toObject = function toObject(message, options, q) { + ActivePamCountResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.pamCount = 0; @@ -281780,7 +263771,7 @@ export const BI = $root.BI = (() => { function NhiEnterpriseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -281829,13 +263820,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NhiEnterpriseRequest.encode = function encode(message, writer, q) { + NhiEnterpriseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) @@ -281869,18 +263856,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NhiEnterpriseRequest.decode = function decode(reader, length, error, long) { + NhiEnterpriseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NhiEnterpriseRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseId = reader.int32(); @@ -281895,7 +263876,7 @@ export const BI = $root.BI = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -281926,13 +263907,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NhiEnterpriseRequest.verify = function verify(message, long) { + NhiEnterpriseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) if (!$util.isInteger(message.enterpriseId)) return "enterpriseId: integer expected"; @@ -281953,19 +263930,15 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NhiEnterpriseRequest} NhiEnterpriseRequest */ - NhiEnterpriseRequest.fromObject = function fromObject(object, long) { + NhiEnterpriseRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.NhiEnterpriseRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.NhiEnterpriseRequest(); if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; if (object.startTime != null) if ($util.Long) - message.startTime = $util.Long.fromValue(object.startTime, false); + (message.startTime = $util.Long.fromValue(object.startTime)).unsigned = false; else if (typeof object.startTime === "string") message.startTime = parseInt(object.startTime, 10); else if (typeof object.startTime === "number") @@ -281974,7 +263947,7 @@ export const BI = $root.BI = (() => { message.startTime = new $util.LongBits(object.startTime.low >>> 0, object.startTime.high >>> 0).toNumber(); if (object.endTime != null) if ($util.Long) - message.endTime = $util.Long.fromValue(object.endTime, false); + (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false; else if (typeof object.endTime === "string") message.endTime = parseInt(object.endTime, 10); else if (typeof object.endTime === "number") @@ -281993,40 +263966,32 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NhiEnterpriseRequest.toObject = function toObject(message, options, q) { + NhiEnterpriseRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.enterpriseId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.startTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.startTime = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.endTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.endTime = options.longs === String ? "0" : 0; } if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) object.enterpriseId = message.enterpriseId; if (message.startTime != null && message.hasOwnProperty("startTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.startTime = typeof message.startTime === "number" ? BigInt(message.startTime) : $util.Long.fromBits(message.startTime.low >>> 0, message.startTime.high >>> 0, false).toBigInt(); - else if (typeof message.startTime === "number") + if (typeof message.startTime === "number") object.startTime = options.longs === String ? String(message.startTime) : message.startTime; else object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime; if (message.endTime != null && message.hasOwnProperty("endTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.endTime = typeof message.endTime === "number" ? BigInt(message.endTime) : $util.Long.fromBits(message.endTime.low >>> 0, message.endTime.high >>> 0, false).toBigInt(); - else if (typeof message.endTime === "number") + if (typeof message.endTime === "number") object.endTime = options.longs === String ? String(message.endTime) : message.endTime; else object.endTime = options.longs === String ? $util.Long.prototype.toString.call(message.endTime) : options.longs === Number ? new $util.LongBits(message.endTime.low >>> 0, message.endTime.high >>> 0).toNumber() : message.endTime; @@ -282087,7 +264052,7 @@ export const BI = $root.BI = (() => { this.enterprises = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -282144,13 +264109,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NhiMetricsRequest.encode = function encode(message, writer, q) { + NhiMetricsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseIds != null && message.enterpriseIds.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.enterpriseIds.length; ++i) @@ -282163,7 +264124,7 @@ export const BI = $root.BI = (() => { writer.uint32(/* id 3, wireType 0 =*/24).int64(message.endTime); if (message.enterprises != null && message.enterprises.length) for (let i = 0; i < message.enterprises.length; ++i) - $root.BI.NhiEnterpriseRequest.encode(message.enterprises[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.BI.NhiEnterpriseRequest.encode(message.enterprises[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -282191,18 +264152,12 @@ export const BI = $root.BI = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NhiMetricsRequest.decode = function decode(reader, length, error, long) { + NhiMetricsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NhiMetricsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.enterpriseIds && message.enterpriseIds.length)) @@ -282226,11 +264181,11 @@ export const BI = $root.BI = (() => { case 4: { if (!(message.enterprises && message.enterprises.length)) message.enterprises = []; - message.enterprises.push($root.BI.NhiEnterpriseRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.enterprises.push($root.BI.NhiEnterpriseRequest.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -282261,13 +264216,9 @@ export const BI = $root.BI = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NhiMetricsRequest.verify = function verify(message, long) { + NhiMetricsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseIds != null && message.hasOwnProperty("enterpriseIds")) { if (!Array.isArray(message.enterpriseIds)) return "enterpriseIds: array expected"; @@ -282285,7 +264236,7 @@ export const BI = $root.BI = (() => { if (!Array.isArray(message.enterprises)) return "enterprises: array expected"; for (let i = 0; i < message.enterprises.length; ++i) { - let error = $root.BI.NhiEnterpriseRequest.verify(message.enterprises[i], long + 1); + let error = $root.BI.NhiEnterpriseRequest.verify(message.enterprises[i]); if (error) return "enterprises." + error; } @@ -282301,13 +264252,9 @@ export const BI = $root.BI = (() => { * @param {Object.} object Plain object * @returns {BI.NhiMetricsRequest} NhiMetricsRequest */ - NhiMetricsRequest.fromObject = function fromObject(object, long) { + NhiMetricsRequest.fromObject = function fromObject(object) { if (object instanceof $root.BI.NhiMetricsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.BI.NhiMetricsRequest(); if (object.enterpriseIds) { if (!Array.isArray(object.enterpriseIds)) @@ -282318,7 +264265,7 @@ export const BI = $root.BI = (() => { } if (object.startTime != null) if ($util.Long) - message.startTime = $util.Long.fromValue(object.startTime, false); + (message.startTime = $util.Long.fromValue(object.startTime)).unsigned = false; else if (typeof object.startTime === "string") message.startTime = parseInt(object.startTime, 10); else if (typeof object.startTime === "number") @@ -282327,7 +264274,7 @@ export const BI = $root.BI = (() => { message.startTime = new $util.LongBits(object.startTime.low >>> 0, object.startTime.high >>> 0).toNumber(); if (object.endTime != null) if ($util.Long) - message.endTime = $util.Long.fromValue(object.endTime, false); + (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false; else if (typeof object.endTime === "string") message.endTime = parseInt(object.endTime, 10); else if (typeof object.endTime === "number") @@ -282341,7 +264288,7 @@ export const BI = $root.BI = (() => { for (let i = 0; i < object.enterprises.length; ++i) { if (typeof object.enterprises[i] !== "object") throw TypeError(".BI.NhiMetricsRequest.enterprises: object expected"); - message.enterprises[i] = $root.BI.NhiEnterpriseRequest.fromObject(object.enterprises[i], long + 1); + message.enterprises[i] = $root.BI.NhiEnterpriseRequest.fromObject(object.enterprises[i]); } } return message; @@ -282356,13 +264303,9 @@ export const BI = $root.BI = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NhiMetricsRequest.toObject = function toObject(message, options, q) { + NhiMetricsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.enterpriseIds = []; @@ -282371,14 +264314,14 @@ export const BI = $root.BI = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.startTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.startTime = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.endTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.endTime = options.longs === String ? "0" : 0; } if (message.enterpriseIds && message.enterpriseIds.length) { object.enterpriseIds = []; @@ -282386,23 +264329,19 @@ export const BI = $root.BI = (() => { object.enterpriseIds[j] = message.enterpriseIds[j]; } if (message.startTime != null && message.hasOwnProperty("startTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.startTime = typeof message.startTime === "number" ? BigInt(message.startTime) : $util.Long.fromBits(message.startTime.low >>> 0, message.startTime.high >>> 0, false).toBigInt(); - else if (typeof message.startTime === "number") + if (typeof message.startTime === "number") object.startTime = options.longs === String ? String(message.startTime) : message.startTime; else object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime; if (message.endTime != null && message.hasOwnProperty("endTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.endTime = typeof message.endTime === "number" ? BigInt(message.endTime) : $util.Long.fromBits(message.endTime.low >>> 0, message.endTime.high >>> 0, false).toBigInt(); - else if (typeof message.endTime === "number") + if (typeof message.endTime === "number") object.endTime = options.longs === String ? String(message.endTime) : message.endTime; else object.endTime = options.longs === String ? $util.Long.prototype.toString.call(message.endTime) : options.longs === Number ? new $util.LongBits(message.endTime.low >>> 0, message.endTime.high >>> 0).toNumber() : message.endTime; if (message.enterprises && message.enterprises.length) { object.enterprises = []; for (let j = 0; j < message.enterprises.length; ++j) - object.enterprises[j] = $root.BI.NhiEnterpriseRequest.toObject(message.enterprises[j], options, q + 1); + object.enterprises[j] = $root.BI.NhiEnterpriseRequest.toObject(message.enterprises[j], options); } return object; }; @@ -282478,7 +264417,7 @@ export const google = $root.google = (() => { this.rules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -282511,16 +264450,12 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Http.encode = function encode(message, writer, q) { + Http.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.rules != null && message.rules.length) for (let i = 0; i < message.rules.length; ++i) - $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -282548,27 +264483,21 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Http.decode = function decode(reader, length, error, long) { + Http.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.rules && message.rules.length)) message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32(), undefined, long + 1)); + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -282599,18 +264528,14 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Http.verify = function verify(message, long) { + Http.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.rules != null && message.hasOwnProperty("rules")) { if (!Array.isArray(message.rules)) return "rules: array expected"; for (let i = 0; i < message.rules.length; ++i) { - let error = $root.google.api.HttpRule.verify(message.rules[i], long + 1); + let error = $root.google.api.HttpRule.verify(message.rules[i]); if (error) return "rules." + error; } @@ -282626,13 +264551,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.api.Http} Http */ - Http.fromObject = function fromObject(object, long) { + Http.fromObject = function fromObject(object) { if (object instanceof $root.google.api.Http) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.api.Http(); if (object.rules) { if (!Array.isArray(object.rules)) @@ -282641,7 +264562,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.rules.length; ++i) { if (typeof object.rules[i] !== "object") throw TypeError(".google.api.Http.rules: object expected"); - message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i], long + 1); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); } } return message; @@ -282656,20 +264577,16 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Http.toObject = function toObject(message, options, q) { + Http.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.rules = []; if (message.rules && message.rules.length) { object.rules = []; for (let j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options, q + 1); + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); } return object; }; @@ -282732,7 +264649,7 @@ export const google = $root.google = (() => { this.additionalBindings = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -282843,13 +264760,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpRule.encode = function encode(message, writer, q) { + HttpRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); if (message.get != null && Object.hasOwnProperty.call(message, "get")) @@ -282865,10 +264778,10 @@ export const google = $root.google = (() => { if (message.body != null && Object.hasOwnProperty.call(message, "body")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) - $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.additionalBindings != null && message.additionalBindings.length) for (let i = 0; i < message.additionalBindings.length; ++i) - $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim(); + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; @@ -282896,18 +264809,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpRule.decode = function decode(reader, length, error, long) { + HttpRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 2: { message.get = reader.string(); @@ -282930,7 +264837,7 @@ export const google = $root.google = (() => { break; } case 8: { - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32(), undefined, long + 1); + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); break; } case 1: { @@ -282944,11 +264851,11 @@ export const google = $root.google = (() => { case 11: { if (!(message.additionalBindings && message.additionalBindings.length)) message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32(), undefined, long + 1)); + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -282979,13 +264886,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HttpRule.verify = function verify(message, long) { + HttpRule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.get != null && message.hasOwnProperty("get")) { properties.pattern = 1; @@ -283025,7 +264928,7 @@ export const google = $root.google = (() => { return "pattern: multiple values"; properties.pattern = 1; { - let error = $root.google.api.CustomHttpPattern.verify(message.custom, long + 1); + let error = $root.google.api.CustomHttpPattern.verify(message.custom); if (error) return "custom." + error; } @@ -283040,7 +264943,7 @@ export const google = $root.google = (() => { if (!Array.isArray(message.additionalBindings)) return "additionalBindings: array expected"; for (let i = 0; i < message.additionalBindings.length; ++i) { - let error = $root.google.api.HttpRule.verify(message.additionalBindings[i], long + 1); + let error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); if (error) return "additionalBindings." + error; } @@ -283056,13 +264959,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.api.HttpRule} HttpRule */ - HttpRule.fromObject = function fromObject(object, long) { + HttpRule.fromObject = function fromObject(object) { if (object instanceof $root.google.api.HttpRule) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.api.HttpRule(); if (object.get != null) message.get = String(object.get); @@ -283077,7 +264976,7 @@ export const google = $root.google = (() => { if (object.custom != null) { if (typeof object.custom !== "object") throw TypeError(".google.api.HttpRule.custom: object expected"); - message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom, long + 1); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); } if (object.selector != null) message.selector = String(object.selector); @@ -283090,7 +264989,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.additionalBindings.length; ++i) { if (typeof object.additionalBindings[i] !== "object") throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); - message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i], long + 1); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); } } return message; @@ -283105,13 +265004,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HttpRule.toObject = function toObject(message, options, q) { + HttpRule.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.additionalBindings = []; @@ -283149,14 +265044,14 @@ export const google = $root.google = (() => { if (message.body != null && message.hasOwnProperty("body")) object.body = message.body; if (message.custom != null && message.hasOwnProperty("custom")) { - object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options, q + 1); + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); if (options.oneofs) object.pattern = "custom"; } if (message.additionalBindings && message.additionalBindings.length) { object.additionalBindings = []; for (let j = 0; j < message.additionalBindings.length; ++j) - object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options, q + 1); + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); } return object; }; @@ -283211,7 +265106,7 @@ export const google = $root.google = (() => { function CustomHttpPattern(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -283252,13 +265147,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encode = function encode(message, writer, q) { + CustomHttpPattern.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); if (message.path != null && Object.hasOwnProperty.call(message, "path")) @@ -283290,18 +265181,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decode = function decode(reader, length, error, long) { + CustomHttpPattern.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.kind = reader.string(); @@ -283312,7 +265197,7 @@ export const google = $root.google = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -283343,13 +265228,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomHttpPattern.verify = function verify(message, long) { + CustomHttpPattern.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.kind != null && message.hasOwnProperty("kind")) if (!$util.isString(message.kind)) return "kind: string expected"; @@ -283367,13 +265248,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.api.CustomHttpPattern} CustomHttpPattern */ - CustomHttpPattern.fromObject = function fromObject(object, long) { + CustomHttpPattern.fromObject = function fromObject(object) { if (object instanceof $root.google.api.CustomHttpPattern) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.api.CustomHttpPattern(); if (object.kind != null) message.kind = String(object.kind); @@ -283391,13 +265268,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomHttpPattern.toObject = function toObject(message, options, q) { + CustomHttpPattern.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.kind = ""; @@ -283472,7 +265345,7 @@ export const google = $root.google = (() => { this.file = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -283505,16 +265378,12 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorSet.encode = function encode(message, writer, q) { + FileDescriptorSet.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.file != null && message.file.length) for (let i = 0; i < message.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -283542,27 +265411,21 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorSet.decode = function decode(reader, length, error, long) { + FileDescriptorSet.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.file && message.file.length)) message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -283593,18 +265456,14 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileDescriptorSet.verify = function verify(message, long) { + FileDescriptorSet.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.file != null && message.hasOwnProperty("file")) { if (!Array.isArray(message.file)) return "file: array expected"; for (let i = 0; i < message.file.length; ++i) { - let error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i], long + 1); + let error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); if (error) return "file." + error; } @@ -283620,13 +265479,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet */ - FileDescriptorSet.fromObject = function fromObject(object, long) { + FileDescriptorSet.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.FileDescriptorSet) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.FileDescriptorSet(); if (object.file) { if (!Array.isArray(object.file)) @@ -283635,7 +265490,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.file.length; ++i) { if (typeof object.file[i] !== "object") throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); - message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i], long + 1); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); } } return message; @@ -283650,20 +265505,16 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileDescriptorSet.toObject = function toObject(message, options, q) { + FileDescriptorSet.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.file = []; if (message.file && message.file.length) { object.file = []; for (let j = 0; j < message.file.length; ++j) - object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options, q + 1); + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); } return object; }; @@ -283697,40 +265548,6 @@ export const google = $root.google = (() => { return FileDescriptorSet; })(); - /** - * Edition enum. - * @name google.protobuf.Edition - * @enum {number} - * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value - * @property {number} EDITION_LEGACY=900 EDITION_LEGACY value - * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value - * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value - * @property {number} EDITION_2023=1000 EDITION_2023 value - * @property {number} EDITION_2024=1001 EDITION_2024 value - * @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value - * @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value - * @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value - * @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value - * @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value - * @property {number} EDITION_MAX=2147483647 EDITION_MAX value - */ - protobuf.Edition = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EDITION_UNKNOWN"] = 0; - values[valuesById[900] = "EDITION_LEGACY"] = 900; - values[valuesById[998] = "EDITION_PROTO2"] = 998; - values[valuesById[999] = "EDITION_PROTO3"] = 999; - values[valuesById[1000] = "EDITION_2023"] = 1000; - values[valuesById[1001] = "EDITION_2024"] = 1001; - values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1; - values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2; - values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997; - values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998; - values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999; - values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647; - return values; - })(); - protobuf.FileDescriptorProto = (function() { /** @@ -283742,7 +265559,6 @@ export const google = $root.google = (() => { * @property {Array.|null} [dependency] FileDescriptorProto dependency * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency - * @property {Array.|null} [optionDependency] FileDescriptorProto optionDependency * @property {Array.|null} [messageType] FileDescriptorProto messageType * @property {Array.|null} [enumType] FileDescriptorProto enumType * @property {Array.|null} [service] FileDescriptorProto service @@ -283750,7 +265566,6 @@ export const google = $root.google = (() => { * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo * @property {string|null} [syntax] FileDescriptorProto syntax - * @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition */ /** @@ -283765,14 +265580,13 @@ export const google = $root.google = (() => { this.dependency = []; this.publicDependency = []; this.weakDependency = []; - this.optionDependency = []; this.messageType = []; this.enumType = []; this.service = []; this.extension = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -283816,14 +265630,6 @@ export const google = $root.google = (() => { */ FileDescriptorProto.prototype.weakDependency = $util.emptyArray; - /** - * FileDescriptorProto optionDependency. - * @member {Array.} optionDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.optionDependency = $util.emptyArray; - /** * FileDescriptorProto messageType. * @member {Array.} messageType @@ -283880,14 +265686,6 @@ export const google = $root.google = (() => { */ FileDescriptorProto.prototype.syntax = ""; - /** - * FileDescriptorProto edition. - * @member {google.protobuf.Edition} edition - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.edition = 0; - /** * Creates a new FileDescriptorProto instance using the specified properties. * @function create @@ -283909,13 +265707,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorProto.encode = function encode(message, writer, q) { + FileDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) @@ -283925,20 +265719,20 @@ export const google = $root.google = (() => { writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); if (message.messageType != null && message.messageType.length) for (let i = 0; i < message.messageType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.enumType != null && message.enumType.length) for (let i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.service != null && message.service.length) for (let i = 0; i < message.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.extension != null && message.extension.length) for (let i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) - $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.publicDependency != null && message.publicDependency.length) for (let i = 0; i < message.publicDependency.length; ++i) writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); @@ -283947,11 +265741,6 @@ export const google = $root.google = (() => { writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); - if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) - writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition); - if (message.optionDependency != null && message.optionDependency.length) - for (let i = 0; i < message.optionDependency.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]); return writer; }; @@ -283979,18 +265768,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorProto.decode = function decode(reader, length, error, long) { + FileDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -284028,54 +265811,44 @@ export const google = $root.google = (() => { message.weakDependency.push(reader.int32()); break; } - case 15: { - if (!(message.optionDependency && message.optionDependency.length)) - message.optionDependency = []; - message.optionDependency.push(reader.string()); - break; - } case 4: { if (!(message.messageType && message.messageType.length)) message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); break; } case 5: { if (!(message.enumType && message.enumType.length)) message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); break; } case 6: { if (!(message.service && message.service.length)) message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); break; } case 7: { if (!(message.extension && message.extension.length)) message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); break; } case 8: { - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); break; } case 9: { - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32(), undefined, long + 1); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); break; } case 12: { message.syntax = reader.string(); break; } - case 14: { - message.edition = reader.int32(); - break; - } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -284106,13 +265879,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileDescriptorProto.verify = function verify(message, long) { + FileDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -284140,18 +265909,11 @@ export const google = $root.google = (() => { if (!$util.isInteger(message.weakDependency[i])) return "weakDependency: integer[] expected"; } - if (message.optionDependency != null && message.hasOwnProperty("optionDependency")) { - if (!Array.isArray(message.optionDependency)) - return "optionDependency: array expected"; - for (let i = 0; i < message.optionDependency.length; ++i) - if (!$util.isString(message.optionDependency[i])) - return "optionDependency: string[] expected"; - } if (message.messageType != null && message.hasOwnProperty("messageType")) { if (!Array.isArray(message.messageType)) return "messageType: array expected"; for (let i = 0; i < message.messageType.length; ++i) { - let error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i], long + 1); + let error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); if (error) return "messageType." + error; } @@ -284160,7 +265922,7 @@ export const google = $root.google = (() => { if (!Array.isArray(message.enumType)) return "enumType: array expected"; for (let i = 0; i < message.enumType.length; ++i) { - let error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i], long + 1); + let error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); if (error) return "enumType." + error; } @@ -284169,7 +265931,7 @@ export const google = $root.google = (() => { if (!Array.isArray(message.service)) return "service: array expected"; for (let i = 0; i < message.service.length; ++i) { - let error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i], long + 1); + let error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); if (error) return "service." + error; } @@ -284178,42 +265940,24 @@ export const google = $root.google = (() => { if (!Array.isArray(message.extension)) return "extension: array expected"; for (let i = 0; i < message.extension.length; ++i) { - let error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i], long + 1); + let error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); if (error) return "extension." + error; } } if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.FileOptions.verify(message.options, long + 1); + let error = $root.google.protobuf.FileOptions.verify(message.options); if (error) return "options." + error; } if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { - let error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo, long + 1); + let error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); if (error) return "sourceCodeInfo." + error; } if (message.syntax != null && message.hasOwnProperty("syntax")) if (!$util.isString(message.syntax)) return "syntax: string expected"; - if (message.edition != null && message.hasOwnProperty("edition")) - switch (message.edition) { - default: - return "edition: enum value expected"; - case 0: - case 900: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } return null; }; @@ -284225,13 +265969,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto */ - FileDescriptorProto.fromObject = function fromObject(object, long) { + FileDescriptorProto.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.FileDescriptorProto) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.FileDescriptorProto(); if (object.name != null) message.name = String(object.name); @@ -284258,13 +265998,6 @@ export const google = $root.google = (() => { for (let i = 0; i < object.weakDependency.length; ++i) message.weakDependency[i] = object.weakDependency[i] | 0; } - if (object.optionDependency) { - if (!Array.isArray(object.optionDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected"); - message.optionDependency = []; - for (let i = 0; i < object.optionDependency.length; ++i) - message.optionDependency[i] = String(object.optionDependency[i]); - } if (object.messageType) { if (!Array.isArray(object.messageType)) throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); @@ -284272,7 +266005,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.messageType.length; ++i) { if (typeof object.messageType[i] !== "object") throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); - message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i], long + 1); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); } } if (object.enumType) { @@ -284282,7 +266015,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.enumType.length; ++i) { if (typeof object.enumType[i] !== "object") throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i], long + 1); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); } } if (object.service) { @@ -284292,7 +266025,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.service.length; ++i) { if (typeof object.service[i] !== "object") throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); - message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i], long + 1); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); } } if (object.extension) { @@ -284302,77 +266035,21 @@ export const google = $root.google = (() => { for (let i = 0; i < object.extension.length; ++i) { if (typeof object.extension[i] !== "object") throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i], long + 1); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); } } if (object.options != null) { if (typeof object.options !== "object") throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FileOptions.fromObject(object.options, long + 1); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); } if (object.sourceCodeInfo != null) { if (typeof object.sourceCodeInfo !== "object") throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo, long + 1); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); } if (object.syntax != null) message.syntax = String(object.syntax); - switch (object.edition) { - default: - if (typeof object.edition === "number") { - message.edition = object.edition; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.edition = 0; - break; - case "EDITION_LEGACY": - case 900: - message.edition = 900; - break; - case "EDITION_PROTO2": - case 998: - message.edition = 998; - break; - case "EDITION_PROTO3": - case 999: - message.edition = 999; - break; - case "EDITION_2023": - case 1000: - message.edition = 1000; - break; - case "EDITION_2024": - case 1001: - message.edition = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.edition = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.edition = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.edition = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.edition = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.edition = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.edition = 2147483647; - break; - } return message; }; @@ -284385,13 +266062,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileDescriptorProto.toObject = function toObject(message, options, q) { + FileDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.dependency = []; @@ -284401,7 +266074,6 @@ export const google = $root.google = (() => { object.extension = []; object.publicDependency = []; object.weakDependency = []; - object.optionDependency = []; } if (options.defaults) { object.name = ""; @@ -284409,7 +266081,6 @@ export const google = $root.google = (() => { object.options = null; object.sourceCodeInfo = null; object.syntax = ""; - object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -284423,27 +266094,27 @@ export const google = $root.google = (() => { if (message.messageType && message.messageType.length) { object.messageType = []; for (let j = 0; j < message.messageType.length; ++j) - object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options, q + 1); + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); } if (message.enumType && message.enumType.length) { object.enumType = []; for (let j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options, q + 1); + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); } if (message.service && message.service.length) { object.service = []; for (let j = 0; j < message.service.length; ++j) - object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options, q + 1); + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); } if (message.extension && message.extension.length) { object.extension = []; for (let j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options, q + 1); + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); } if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FileOptions.toObject(message.options, options, q + 1); + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) - object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options, q + 1); + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); if (message.publicDependency && message.publicDependency.length) { object.publicDependency = []; for (let j = 0; j < message.publicDependency.length; ++j) @@ -284456,13 +266127,6 @@ export const google = $root.google = (() => { } if (message.syntax != null && message.hasOwnProperty("syntax")) object.syntax = message.syntax; - if (message.edition != null && message.hasOwnProperty("edition")) - object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; - if (message.optionDependency && message.optionDependency.length) { - object.optionDependency = []; - for (let j = 0; j < message.optionDependency.length; ++j) - object.optionDependency[j] = message.optionDependency[j]; - } return object; }; @@ -284511,7 +266175,6 @@ export const google = $root.google = (() => { * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options * @property {Array.|null} [reservedRange] DescriptorProto reservedRange * @property {Array.|null} [reservedName] DescriptorProto reservedName - * @property {google.protobuf.SymbolVisibility|null} [visibility] DescriptorProto visibility */ /** @@ -284533,7 +266196,7 @@ export const google = $root.google = (() => { this.reservedName = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -284617,14 +266280,6 @@ export const google = $root.google = (() => { */ DescriptorProto.prototype.reservedName = $util.emptyArray; - /** - * DescriptorProto visibility. - * @member {google.protobuf.SymbolVisibility} visibility - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.visibility = 0; - /** * Creates a new DescriptorProto instance using the specified properties. * @function create @@ -284646,43 +266301,37 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptorProto.encode = function encode(message, writer, q) { + DescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.field != null && message.field.length) for (let i = 0; i < message.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.nestedType != null && message.nestedType.length) for (let i = 0; i < message.nestedType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.enumType != null && message.enumType.length) for (let i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.extensionRange != null && message.extensionRange.length) for (let i = 0; i < message.extensionRange.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.extension != null && message.extension.length) for (let i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.oneofDecl != null && message.oneofDecl.length) for (let i = 0; i < message.oneofDecl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.reservedRange != null && message.reservedRange.length) for (let i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.reservedName != null && message.reservedName.length) for (let i = 0; i < message.reservedName.length; ++i) writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); - if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.visibility); return writer; }; @@ -284710,18 +266359,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DescriptorProto.decode = function decode(reader, length, error, long) { + DescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -284730,47 +266373,47 @@ export const google = $root.google = (() => { case 2: { if (!(message.field && message.field.length)) message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); break; } case 6: { if (!(message.extension && message.extension.length)) message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); break; } case 3: { if (!(message.nestedType && message.nestedType.length)) message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); break; } case 4: { if (!(message.enumType && message.enumType.length)) message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); break; } case 5: { if (!(message.extensionRange && message.extensionRange.length)) message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32(), undefined, long + 1)); + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); break; } case 8: { if (!(message.oneofDecl && message.oneofDecl.length)) message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); break; } case 7: { - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); break; } case 9: { if (!(message.reservedRange && message.reservedRange.length)) message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32(), undefined, long + 1)); + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); break; } case 10: { @@ -284779,12 +266422,8 @@ export const google = $root.google = (() => { message.reservedName.push(reader.string()); break; } - case 11: { - message.visibility = reader.int32(); - break; - } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -284815,13 +266454,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DescriptorProto.verify = function verify(message, long) { + DescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -284829,7 +266464,7 @@ export const google = $root.google = (() => { if (!Array.isArray(message.field)) return "field: array expected"; for (let i = 0; i < message.field.length; ++i) { - let error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i], long + 1); + let error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); if (error) return "field." + error; } @@ -284838,7 +266473,7 @@ export const google = $root.google = (() => { if (!Array.isArray(message.extension)) return "extension: array expected"; for (let i = 0; i < message.extension.length; ++i) { - let error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i], long + 1); + let error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); if (error) return "extension." + error; } @@ -284847,7 +266482,7 @@ export const google = $root.google = (() => { if (!Array.isArray(message.nestedType)) return "nestedType: array expected"; for (let i = 0; i < message.nestedType.length; ++i) { - let error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i], long + 1); + let error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); if (error) return "nestedType." + error; } @@ -284856,7 +266491,7 @@ export const google = $root.google = (() => { if (!Array.isArray(message.enumType)) return "enumType: array expected"; for (let i = 0; i < message.enumType.length; ++i) { - let error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i], long + 1); + let error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); if (error) return "enumType." + error; } @@ -284865,7 +266500,7 @@ export const google = $root.google = (() => { if (!Array.isArray(message.extensionRange)) return "extensionRange: array expected"; for (let i = 0; i < message.extensionRange.length; ++i) { - let error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i], long + 1); + let error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); if (error) return "extensionRange." + error; } @@ -284874,13 +266509,13 @@ export const google = $root.google = (() => { if (!Array.isArray(message.oneofDecl)) return "oneofDecl: array expected"; for (let i = 0; i < message.oneofDecl.length; ++i) { - let error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i], long + 1); + let error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); if (error) return "oneofDecl." + error; } } if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.MessageOptions.verify(message.options, long + 1); + let error = $root.google.protobuf.MessageOptions.verify(message.options); if (error) return "options." + error; } @@ -284888,7 +266523,7 @@ export const google = $root.google = (() => { if (!Array.isArray(message.reservedRange)) return "reservedRange: array expected"; for (let i = 0; i < message.reservedRange.length; ++i) { - let error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i], long + 1); + let error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); if (error) return "reservedRange." + error; } @@ -284900,15 +266535,6 @@ export const google = $root.google = (() => { if (!$util.isString(message.reservedName[i])) return "reservedName: string[] expected"; } - if (message.visibility != null && message.hasOwnProperty("visibility")) - switch (message.visibility) { - default: - return "visibility: enum value expected"; - case 0: - case 1: - case 2: - break; - } return null; }; @@ -284920,13 +266546,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.DescriptorProto} DescriptorProto */ - DescriptorProto.fromObject = function fromObject(object, long) { + DescriptorProto.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.DescriptorProto) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.DescriptorProto(); if (object.name != null) message.name = String(object.name); @@ -284937,7 +266559,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.field.length; ++i) { if (typeof object.field[i] !== "object") throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); - message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i], long + 1); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); } } if (object.extension) { @@ -284947,7 +266569,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.extension.length; ++i) { if (typeof object.extension[i] !== "object") throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i], long + 1); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); } } if (object.nestedType) { @@ -284957,7 +266579,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.nestedType.length; ++i) { if (typeof object.nestedType[i] !== "object") throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); - message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i], long + 1); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); } } if (object.enumType) { @@ -284967,7 +266589,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.enumType.length; ++i) { if (typeof object.enumType[i] !== "object") throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i], long + 1); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); } } if (object.extensionRange) { @@ -284977,7 +266599,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.extensionRange.length; ++i) { if (typeof object.extensionRange[i] !== "object") throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); - message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i], long + 1); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); } } if (object.oneofDecl) { @@ -284987,13 +266609,13 @@ export const google = $root.google = (() => { for (let i = 0; i < object.oneofDecl.length; ++i) { if (typeof object.oneofDecl[i] !== "object") throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); - message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i], long + 1); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); } } if (object.options != null) { if (typeof object.options !== "object") throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MessageOptions.fromObject(object.options, long + 1); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); } if (object.reservedRange) { if (!Array.isArray(object.reservedRange)) @@ -285002,7 +266624,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.reservedRange.length; ++i) { if (typeof object.reservedRange[i] !== "object") throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i], long + 1); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); } } if (object.reservedName) { @@ -285012,26 +266634,6 @@ export const google = $root.google = (() => { for (let i = 0; i < object.reservedName.length; ++i) message.reservedName[i] = String(object.reservedName[i]); } - switch (object.visibility) { - default: - if (typeof object.visibility === "number") { - message.visibility = object.visibility; - break; - } - break; - case "VISIBILITY_UNSET": - case 0: - message.visibility = 0; - break; - case "VISIBILITY_LOCAL": - case 1: - message.visibility = 1; - break; - case "VISIBILITY_EXPORT": - case 2: - message.visibility = 2; - break; - } return message; }; @@ -285044,13 +266646,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DescriptorProto.toObject = function toObject(message, options, q) { + DescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.field = []; @@ -285065,54 +266663,51 @@ export const google = $root.google = (() => { if (options.defaults) { object.name = ""; object.options = null; - object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.field && message.field.length) { object.field = []; for (let j = 0; j < message.field.length; ++j) - object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options, q + 1); + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); } if (message.nestedType && message.nestedType.length) { object.nestedType = []; for (let j = 0; j < message.nestedType.length; ++j) - object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options, q + 1); + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); } if (message.enumType && message.enumType.length) { object.enumType = []; for (let j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options, q + 1); + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); } if (message.extensionRange && message.extensionRange.length) { object.extensionRange = []; for (let j = 0; j < message.extensionRange.length; ++j) - object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options, q + 1); + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); } if (message.extension && message.extension.length) { object.extension = []; for (let j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options, q + 1); + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); } if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options, q + 1); + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); if (message.oneofDecl && message.oneofDecl.length) { object.oneofDecl = []; for (let j = 0; j < message.oneofDecl.length; ++j) - object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options, q + 1); + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); } if (message.reservedRange && message.reservedRange.length) { object.reservedRange = []; for (let j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options, q + 1); + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); } if (message.reservedName && message.reservedName.length) { object.reservedName = []; for (let j = 0; j < message.reservedName.length; ++j) object.reservedName[j] = message.reservedName[j]; } - if (message.visibility != null && message.hasOwnProperty("visibility")) - object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility; return object; }; @@ -285150,7 +266745,6 @@ export const google = $root.google = (() => { * @interface IExtensionRange * @property {number|null} [start] ExtensionRange start * @property {number|null} [end] ExtensionRange end - * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options */ /** @@ -285164,7 +266758,7 @@ export const google = $root.google = (() => { function ExtensionRange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -285184,14 +266778,6 @@ export const google = $root.google = (() => { */ ExtensionRange.prototype.end = 0; - /** - * ExtensionRange options. - * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.options = null; - /** * Creates a new ExtensionRange instance using the specified properties. * @function create @@ -285213,19 +266799,13 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRange.encode = function encode(message, writer, q) { + ExtensionRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); return writer; }; @@ -285253,18 +266833,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRange.decode = function decode(reader, length, error, long) { + ExtensionRange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.start = reader.int32(); @@ -285274,12 +266848,8 @@ export const google = $root.google = (() => { message.end = reader.int32(); break; } - case 3: { - message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32(), undefined, long + 1); - break; - } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -285310,24 +266880,15 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExtensionRange.verify = function verify(message, long) { + ExtensionRange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.start != null && message.hasOwnProperty("start")) if (!$util.isInteger(message.start)) return "start: integer expected"; if (message.end != null && message.hasOwnProperty("end")) if (!$util.isInteger(message.end)) return "end: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options, long + 1); - if (error) - return "options." + error; - } return null; }; @@ -285339,23 +266900,14 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange */ - ExtensionRange.fromObject = function fromObject(object, long) { + ExtensionRange.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); if (object.start != null) message.start = object.start | 0; if (object.end != null) message.end = object.end | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); - message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options, long + 1); - } return message; }; @@ -285368,25 +266920,18 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExtensionRange.toObject = function toObject(message, options, q) { + ExtensionRange.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.start = 0; object.end = 0; - object.options = null; } if (message.start != null && message.hasOwnProperty("start")) object.start = message.start; if (message.end != null && message.hasOwnProperty("end")) object.end = message.end; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options, q + 1); return object; }; @@ -285440,7 +266985,7 @@ export const google = $root.google = (() => { function ReservedRange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -285481,13 +267026,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReservedRange.encode = function encode(message, writer, q) { + ReservedRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); if (message.end != null && Object.hasOwnProperty.call(message, "end")) @@ -285519,18 +267060,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReservedRange.decode = function decode(reader, length, error, long) { + ReservedRange.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.start = reader.int32(); @@ -285541,7 +267076,7 @@ export const google = $root.google = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -285572,13 +267107,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReservedRange.verify = function verify(message, long) { + ReservedRange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.start != null && message.hasOwnProperty("start")) if (!$util.isInteger(message.start)) return "start: integer expected"; @@ -285596,13 +267127,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange */ - ReservedRange.fromObject = function fromObject(object, long) { + ReservedRange.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.DescriptorProto.ReservedRange(); if (object.start != null) message.start = object.start | 0; @@ -285620,13 +267147,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReservedRange.toObject = function toObject(message, options, q) { + ReservedRange.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.start = 0; @@ -285671,701 +267194,6 @@ export const google = $root.google = (() => { return DescriptorProto; })(); - protobuf.ExtensionRangeOptions = (function() { - - /** - * Properties of an ExtensionRangeOptions. - * @memberof google.protobuf - * @interface IExtensionRangeOptions - * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption - * @property {Array.|null} [declaration] ExtensionRangeOptions declaration - * @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features - * @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification - */ - - /** - * Constructs a new ExtensionRangeOptions. - * @memberof google.protobuf - * @classdesc Represents an ExtensionRangeOptions. - * @implements IExtensionRangeOptions - * @constructor - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set - */ - function ExtensionRangeOptions(properties) { - this.uninterpretedOption = []; - this.declaration = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExtensionRangeOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - */ - ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * ExtensionRangeOptions declaration. - * @member {Array.} declaration - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - */ - ExtensionRangeOptions.prototype.declaration = $util.emptyArray; - - /** - * ExtensionRangeOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - */ - ExtensionRangeOptions.prototype.features = null; - - /** - * ExtensionRangeOptions verification. - * @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - */ - ExtensionRangeOptions.prototype.verification = 1; - - /** - * Creates a new ExtensionRangeOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance - */ - ExtensionRangeOptions.create = function create(properties) { - return new ExtensionRangeOptions(properties); - }; - - /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRangeOptions.encode = function encode(message, writer, q) { - if (!writer) - writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - if (message.declaration != null && message.declaration.length) - for (let i = 0; i < message.declaration.length; ++i) - $root.google.protobuf.ExtensionRangeOptions.Declaration.encode(message.declaration[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); - if (message.verification != null && Object.hasOwnProperty.call(message, "verification")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verification); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork(), q + 1).ldelim(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (let i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork(), q + 1).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRangeOptions.decode = function decode(reader, length, error, long) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); - while (reader.pos < end) { - let tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32(), undefined, long + 1)); - break; - } - case 2: { - if (!(message.declaration && message.declaration.length)) - message.declaration = []; - message.declaration.push($root.google.protobuf.ExtensionRangeOptions.Declaration.decode(reader, reader.uint32(), undefined, long + 1)); - break; - } - case 50: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } - case 3: { - message.verification = reader.int32(); - break; - } - default: - reader.skipType(tag & 7, long); - break; - } - } - return message; - }; - - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExtensionRangeOptions message. - * @function verify - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtensionRangeOptions.verify = function verify(message, long) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (let i = 0; i < message.uninterpretedOption.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i], long + 1); - if (error) - return "uninterpretedOption." + error; - } - } - if (message.declaration != null && message.hasOwnProperty("declaration")) { - if (!Array.isArray(message.declaration)) - return "declaration: array expected"; - for (let i = 0; i < message.declaration.length; ++i) { - let error = $root.google.protobuf.ExtensionRangeOptions.Declaration.verify(message.declaration[i], long + 1); - if (error) - return "declaration." + error; - } - } - if (message.features != null && message.hasOwnProperty("features")) { - let error = $root.google.protobuf.FeatureSet.verify(message.features, long + 1); - if (error) - return "features." + error; - } - if (message.verification != null && message.hasOwnProperty("verification")) - switch (message.verification) { - default: - return "verification: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions - */ - ExtensionRangeOptions.fromObject = function fromObject(object, long) { - if (object instanceof $root.google.protobuf.ExtensionRangeOptions) - return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let message = new $root.google.protobuf.ExtensionRangeOptions(); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (let i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); - } - } - if (object.declaration) { - if (!Array.isArray(object.declaration)) - throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected"); - message.declaration = []; - for (let i = 0; i < object.declaration.length; ++i) { - if (typeof object.declaration[i] !== "object") - throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected"); - message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i], long + 1); - } - } - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); - } - switch (object.verification) { - case "DECLARATION": - case 0: - message.verification = 0; - break; - default: - if (typeof object.verification === "number") { - message.verification = object.verification; - break; - } - break; - case "UNVERIFIED": - case 1: - message.verification = 1; - break; - } - return message; - }; - - /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExtensionRangeOptions.toObject = function toObject(message, options, q) { - if (!options) - options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - let object = {}; - if (options.arrays || options.defaults) { - object.declaration = []; - object.uninterpretedOption = []; - } - if (options.defaults) { - object.verification = options.enums === String ? "UNVERIFIED" : 1; - object.features = null; - } - if (message.declaration && message.declaration.length) { - object.declaration = []; - for (let j = 0; j < message.declaration.length; ++j) - object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options, q + 1); - } - if (message.verification != null && message.hasOwnProperty("verification")) - object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (let j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options, q + 1); - } - return object; - }; - - /** - * Converts this ExtensionRangeOptions to JSON. - * @function toJSON - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - * @returns {Object.} JSON object - */ - ExtensionRangeOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ExtensionRangeOptions - * @function getTypeUrl - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; - }; - - ExtensionRangeOptions.Declaration = (function() { - - /** - * Properties of a Declaration. - * @memberof google.protobuf.ExtensionRangeOptions - * @interface IDeclaration - * @property {number|null} [number] Declaration number - * @property {string|null} [fullName] Declaration fullName - * @property {string|null} [type] Declaration type - * @property {boolean|null} [reserved] Declaration reserved - * @property {boolean|null} [repeated] Declaration repeated - */ - - /** - * Constructs a new Declaration. - * @memberof google.protobuf.ExtensionRangeOptions - * @classdesc Represents a Declaration. - * @implements IDeclaration - * @constructor - * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set - */ - function Declaration(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") - this[keys[i]] = properties[keys[i]]; - } - - /** - * Declaration number. - * @member {number} number - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - */ - Declaration.prototype.number = 0; - - /** - * Declaration fullName. - * @member {string} fullName - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - */ - Declaration.prototype.fullName = ""; - - /** - * Declaration type. - * @member {string} type - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - */ - Declaration.prototype.type = ""; - - /** - * Declaration reserved. - * @member {boolean} reserved - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - */ - Declaration.prototype.reserved = false; - - /** - * Declaration repeated. - * @member {boolean} repeated - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - */ - Declaration.prototype.repeated = false; - - /** - * Creates a new Declaration instance using the specified properties. - * @function create - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set - * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration instance - */ - Declaration.create = function create(properties) { - return new Declaration(properties); - }; - - /** - * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Declaration.encode = function encode(message, writer, q) { - if (!writer) - writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.number); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); - if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reserved); - if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.repeated); - return writer; - }; - - /** - * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Declaration.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Declaration message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Declaration.decode = function decode(reader, length, error, long) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); - while (reader.pos < end) { - let tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.number = reader.int32(); - break; - } - case 2: { - message.fullName = reader.string(); - break; - } - case 3: { - message.type = reader.string(); - break; - } - case 5: { - message.reserved = reader.bool(); - break; - } - case 6: { - message.repeated = reader.bool(); - break; - } - default: - reader.skipType(tag & 7, long); - break; - } - } - return message; - }; - - /** - * Decodes a Declaration message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Declaration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Declaration message. - * @function verify - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Declaration.verify = function verify(message, long) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.reserved != null && message.hasOwnProperty("reserved")) - if (typeof message.reserved !== "boolean") - return "reserved: boolean expected"; - if (message.repeated != null && message.hasOwnProperty("repeated")) - if (typeof message.repeated !== "boolean") - return "repeated: boolean expected"; - return null; - }; - - /** - * Creates a Declaration message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration - */ - Declaration.fromObject = function fromObject(object, long) { - if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration) - return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); - if (object.number != null) - message.number = object.number | 0; - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.type != null) - message.type = String(object.type); - if (object.reserved != null) - message.reserved = Boolean(object.reserved); - if (object.repeated != null) - message.repeated = Boolean(object.repeated); - return message; - }; - - /** - * Creates a plain object from a Declaration message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Declaration.toObject = function toObject(message, options, q) { - if (!options) - options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - let object = {}; - if (options.defaults) { - object.number = 0; - object.fullName = ""; - object.type = ""; - object.reserved = false; - object.repeated = false; - } - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.reserved != null && message.hasOwnProperty("reserved")) - object.reserved = message.reserved; - if (message.repeated != null && message.hasOwnProperty("repeated")) - object.repeated = message.repeated; - return object; - }; - - /** - * Converts this Declaration to JSON. - * @function toJSON - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - * @returns {Object.} JSON object - */ - Declaration.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Declaration - * @function getTypeUrl - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration"; - }; - - return Declaration; - })(); - - /** - * VerificationState enum. - * @name google.protobuf.ExtensionRangeOptions.VerificationState - * @enum {number} - * @property {number} DECLARATION=0 DECLARATION value - * @property {number} UNVERIFIED=1 UNVERIFIED value - */ - ExtensionRangeOptions.VerificationState = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DECLARATION"] = 0; - values[valuesById[1] = "UNVERIFIED"] = 1; - return values; - })(); - - return ExtensionRangeOptions; - })(); - protobuf.FieldDescriptorProto = (function() { /** @@ -286382,7 +267210,6 @@ export const google = $root.google = (() => { * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex * @property {string|null} [jsonName] FieldDescriptorProto jsonName * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional */ /** @@ -286396,7 +267223,7 @@ export const google = $root.google = (() => { function FieldDescriptorProto(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -286480,14 +267307,6 @@ export const google = $root.google = (() => { */ FieldDescriptorProto.prototype.options = null; - /** - * FieldDescriptorProto proto3Optional. - * @member {boolean} proto3Optional - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.proto3Optional = false; - /** * Creates a new FieldDescriptorProto instance using the specified properties. * @function create @@ -286509,13 +267328,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.encode = function encode(message, writer, q) { + FieldDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) @@ -286531,13 +267346,11 @@ export const google = $root.google = (() => { if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim(); + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); - if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); return writer; }; @@ -286565,18 +267378,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldDescriptorProto.decode = function decode(reader, length, error, long) { + FieldDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -286615,15 +267422,11 @@ export const google = $root.google = (() => { break; } case 8: { - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32(), undefined, long + 1); - break; - } - case 17: { - message.proto3Optional = reader.bool(); + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -286654,13 +267457,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldDescriptorProto.verify = function verify(message, long) { + FieldDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -286672,8 +267471,8 @@ export const google = $root.google = (() => { default: return "label: enum value expected"; case 1: - case 3: case 2: + case 3: break; } if (message.type != null && message.hasOwnProperty("type")) @@ -286716,13 +267515,10 @@ export const google = $root.google = (() => { if (!$util.isString(message.jsonName)) return "jsonName: string expected"; if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.FieldOptions.verify(message.options, long + 1); + let error = $root.google.protobuf.FieldOptions.verify(message.options); if (error) return "options." + error; } - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - if (typeof message.proto3Optional !== "boolean") - return "proto3Optional: boolean expected"; return null; }; @@ -286734,13 +267530,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto */ - FieldDescriptorProto.fromObject = function fromObject(object, long) { + FieldDescriptorProto.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.FieldDescriptorProto) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.FieldDescriptorProto(); if (object.name != null) message.name = String(object.name); @@ -286757,14 +267549,14 @@ export const google = $root.google = (() => { case 1: message.label = 1; break; - case "LABEL_REPEATED": - case 3: - message.label = 3; - break; case "LABEL_REQUIRED": case 2: message.label = 2; break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; } switch (object.type) { default: @@ -286859,10 +267651,8 @@ export const google = $root.google = (() => { if (object.options != null) { if (typeof object.options !== "object") throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FieldOptions.fromObject(object.options, long + 1); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); } - if (object.proto3Optional != null) - message.proto3Optional = Boolean(object.proto3Optional); return message; }; @@ -286875,13 +267665,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldDescriptorProto.toObject = function toObject(message, options, q) { + FieldDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.name = ""; @@ -286894,7 +267680,6 @@ export const google = $root.google = (() => { object.options = null; object.oneofIndex = 0; object.jsonName = ""; - object.proto3Optional = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -286911,13 +267696,11 @@ export const google = $root.google = (() => { if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) object.defaultValue = message.defaultValue; if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options, q + 1); + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) object.oneofIndex = message.oneofIndex; if (message.jsonName != null && message.hasOwnProperty("jsonName")) object.jsonName = message.jsonName; - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - object.proto3Optional = message.proto3Optional; return object; }; @@ -286998,14 +267781,14 @@ export const google = $root.google = (() => { * @name google.protobuf.FieldDescriptorProto.Label * @enum {number} * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value */ FieldDescriptorProto.Label = (function() { const valuesById = {}, values = Object.create(valuesById); values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[3] = "LABEL_REPEATED"] = 3; values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; return values; })(); @@ -287033,7 +267816,7 @@ export const google = $root.google = (() => { function OneofDescriptorProto(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -287074,17 +267857,13 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofDescriptorProto.encode = function encode(message, writer, q) { + OneofDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -287112,29 +267891,23 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofDescriptorProto.decode = function decode(reader, length, error, long) { + OneofDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); break; } case 2: { - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -287165,18 +267938,14 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OneofDescriptorProto.verify = function verify(message, long) { + OneofDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.OneofOptions.verify(message.options, long + 1); + let error = $root.google.protobuf.OneofOptions.verify(message.options); if (error) return "options." + error; } @@ -287191,20 +267960,16 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto */ - OneofDescriptorProto.fromObject = function fromObject(object, long) { + OneofDescriptorProto.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.OneofDescriptorProto) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.OneofDescriptorProto(); if (object.name != null) message.name = String(object.name); if (object.options != null) { if (typeof object.options !== "object") throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.OneofOptions.fromObject(object.options, long + 1); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); } return message; }; @@ -287218,13 +267983,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneofDescriptorProto.toObject = function toObject(message, options, q) { + OneofDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.name = ""; @@ -287233,7 +267994,7 @@ export const google = $root.google = (() => { if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options, q + 1); + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); return object; }; @@ -287275,9 +268036,6 @@ export const google = $root.google = (() => { * @property {string|null} [name] EnumDescriptorProto name * @property {Array.|null} [value] EnumDescriptorProto value * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options - * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange - * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName - * @property {google.protobuf.SymbolVisibility|null} [visibility] EnumDescriptorProto visibility */ /** @@ -287290,11 +268048,9 @@ export const google = $root.google = (() => { */ function EnumDescriptorProto(properties) { this.value = []; - this.reservedRange = []; - this.reservedName = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -287322,30 +268078,6 @@ export const google = $root.google = (() => { */ EnumDescriptorProto.prototype.options = null; - /** - * EnumDescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; - - /** - * EnumDescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.reservedName = $util.emptyArray; - - /** - * EnumDescriptorProto visibility. - * @member {google.protobuf.SymbolVisibility} visibility - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.visibility = 0; - /** * Creates a new EnumDescriptorProto instance using the specified properties. * @function create @@ -287367,28 +268099,16 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encode = function encode(message, writer, q) { + EnumDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.value != null && message.value.length) for (let i = 0; i < message.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (let i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (let i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); - if (message.visibility != null && Object.hasOwnProperty.call(message, "visibility")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.visibility); + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -287416,18 +268136,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decode = function decode(reader, length, error, long) { + EnumDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -287436,31 +268150,15 @@ export const google = $root.google = (() => { case 2: { if (!(message.value && message.value.length)) message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); break; } case 3: { - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32(), undefined, long + 1); - break; - } - case 4: { - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32(), undefined, long + 1)); - break; - } - case 5: { - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; - } - case 6: { - message.visibility = reader.int32(); + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -287491,13 +268189,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumDescriptorProto.verify = function verify(message, long) { + EnumDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -287505,41 +268199,16 @@ export const google = $root.google = (() => { if (!Array.isArray(message.value)) return "value: array expected"; for (let i = 0; i < message.value.length; ++i) { - let error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i], long + 1); + let error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); if (error) return "value." + error; } } if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.EnumOptions.verify(message.options, long + 1); + let error = $root.google.protobuf.EnumOptions.verify(message.options); if (error) return "options." + error; } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (let i = 0; i < message.reservedRange.length; ++i) { - let error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i], long + 1); - if (error) - return "reservedRange." + error; - } - } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (let i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; - } - if (message.visibility != null && message.hasOwnProperty("visibility")) - switch (message.visibility) { - default: - return "visibility: enum value expected"; - case 0: - case 1: - case 2: - break; - } return null; }; @@ -287551,13 +268220,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto */ - EnumDescriptorProto.fromObject = function fromObject(object, long) { + EnumDescriptorProto.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.EnumDescriptorProto) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.EnumDescriptorProto(); if (object.name != null) message.name = String(object.name); @@ -287568,50 +268233,13 @@ export const google = $root.google = (() => { for (let i = 0; i < object.value.length; ++i) { if (typeof object.value[i] !== "object") throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); - message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i], long + 1); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); } } if (object.options != null) { if (typeof object.options !== "object") throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumOptions.fromObject(object.options, long + 1); - } - if (object.reservedRange) { - if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); - message.reservedRange = []; - for (let i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i], long + 1); - } - } - if (object.reservedName) { - if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); - message.reservedName = []; - for (let i = 0; i < object.reservedName.length; ++i) - message.reservedName[i] = String(object.reservedName[i]); - } - switch (object.visibility) { - default: - if (typeof object.visibility === "number") { - message.visibility = object.visibility; - break; - } - break; - case "VISIBILITY_UNSET": - case 0: - message.visibility = 0; - break; - case "VISIBILITY_LOCAL": - case 1: - message.visibility = 1; - break; - case "VISIBILITY_EXPORT": - case 2: - message.visibility = 2; - break; + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); } return message; }; @@ -287625,45 +268253,25 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumDescriptorProto.toObject = function toObject(message, options, q) { + EnumDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; - if (options.arrays || options.defaults) { + if (options.arrays || options.defaults) object.value = []; - object.reservedRange = []; - object.reservedName = []; - } if (options.defaults) { object.name = ""; object.options = null; - object.visibility = options.enums === String ? "VISIBILITY_UNSET" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.value && message.value.length) { object.value = []; for (let j = 0; j < message.value.length; ++j) - object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options, q + 1); + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); } if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options, q + 1); - if (message.reservedRange && message.reservedRange.length) { - object.reservedRange = []; - for (let j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options, q + 1); - } - if (message.reservedName && message.reservedName.length) { - object.reservedName = []; - for (let j = 0; j < message.reservedName.length; ++j) - object.reservedName[j] = message.reservedName[j]; - } - if (message.visibility != null && message.hasOwnProperty("visibility")) - object.visibility = options.enums === String ? $root.google.protobuf.SymbolVisibility[message.visibility] === undefined ? message.visibility : $root.google.protobuf.SymbolVisibility[message.visibility] : message.visibility; + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); return object; }; @@ -287693,255 +268301,6 @@ export const google = $root.google = (() => { return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; }; - EnumDescriptorProto.EnumReservedRange = (function() { - - /** - * Properties of an EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @interface IEnumReservedRange - * @property {number|null} [start] EnumReservedRange start - * @property {number|null} [end] EnumReservedRange end - */ - - /** - * Constructs a new EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @classdesc Represents an EnumReservedRange. - * @implements IEnumReservedRange - * @constructor - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - */ - function EnumReservedRange(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumReservedRange start. - * @member {number} start - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.start = 0; - - /** - * EnumReservedRange end. - * @member {number} end - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.end = 0; - - /** - * Creates a new EnumReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance - */ - EnumReservedRange.create = function create(properties) { - return new EnumReservedRange(properties); - }; - - /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encode = function encode(message, writer, q) { - if (!writer) - writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.decode = function decode(reader, length, error, long) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); - while (reader.pos < end) { - let tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.start = reader.int32(); - break; - } - case 2: { - message.end = reader.int32(); - break; - } - default: - reader.skipType(tag & 7, long); - break; - } - } - return message; - }; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumReservedRange message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumReservedRange.verify = function verify(message, long) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - /** - * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - */ - EnumReservedRange.fromObject = function fromObject(object, long) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) - return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; - - /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumReservedRange.toObject = function toObject(message, options, q) { - if (!options) - options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - let object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - return object; - }; - - /** - * Converts this EnumReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - * @returns {Object.} JSON object - */ - EnumReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EnumReservedRange - * @function getTypeUrl - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; - }; - - return EnumReservedRange; - })(); - return EnumDescriptorProto; })(); @@ -287967,7 +268326,7 @@ export const google = $root.google = (() => { function EnumValueDescriptorProto(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -288016,19 +268375,15 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueDescriptorProto.encode = function encode(message, writer, q) { + EnumValueDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.number != null && Object.hasOwnProperty.call(message, "number")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -288056,18 +268411,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueDescriptorProto.decode = function decode(reader, length, error, long) { + EnumValueDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -288078,11 +268427,11 @@ export const google = $root.google = (() => { break; } case 3: { - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -288113,13 +268462,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumValueDescriptorProto.verify = function verify(message, long) { + EnumValueDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -288127,7 +268472,7 @@ export const google = $root.google = (() => { if (!$util.isInteger(message.number)) return "number: integer expected"; if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.EnumValueOptions.verify(message.options, long + 1); + let error = $root.google.protobuf.EnumValueOptions.verify(message.options); if (error) return "options." + error; } @@ -288142,13 +268487,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto */ - EnumValueDescriptorProto.fromObject = function fromObject(object, long) { + EnumValueDescriptorProto.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.EnumValueDescriptorProto(); if (object.name != null) message.name = String(object.name); @@ -288157,7 +268498,7 @@ export const google = $root.google = (() => { if (object.options != null) { if (typeof object.options !== "object") throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options, long + 1); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); } return message; }; @@ -288171,13 +268512,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueDescriptorProto.toObject = function toObject(message, options, q) { + EnumValueDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.name = ""; @@ -288189,7 +268526,7 @@ export const google = $root.google = (() => { if (message.number != null && message.hasOwnProperty("number")) object.number = message.number; if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options, q + 1); + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); return object; }; @@ -288245,7 +268582,7 @@ export const google = $root.google = (() => { this.method = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -288294,20 +268631,16 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encode = function encode(message, writer, q) { + ServiceDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.method != null && message.method.length) for (let i = 0; i < message.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -288335,18 +268668,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decode = function decode(reader, length, error, long) { + ServiceDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -288355,15 +268682,15 @@ export const google = $root.google = (() => { case 2: { if (!(message.method && message.method.length)) message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1)); + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); break; } case 3: { - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -288394,13 +268721,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceDescriptorProto.verify = function verify(message, long) { + ServiceDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -288408,13 +268731,13 @@ export const google = $root.google = (() => { if (!Array.isArray(message.method)) return "method: array expected"; for (let i = 0; i < message.method.length; ++i) { - let error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i], long + 1); + let error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); if (error) return "method." + error; } } if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.ServiceOptions.verify(message.options, long + 1); + let error = $root.google.protobuf.ServiceOptions.verify(message.options); if (error) return "options." + error; } @@ -288429,13 +268752,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto */ - ServiceDescriptorProto.fromObject = function fromObject(object, long) { + ServiceDescriptorProto.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.ServiceDescriptorProto) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.ServiceDescriptorProto(); if (object.name != null) message.name = String(object.name); @@ -288446,13 +268765,13 @@ export const google = $root.google = (() => { for (let i = 0; i < object.method.length; ++i) { if (typeof object.method[i] !== "object") throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); - message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i], long + 1); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); } } if (object.options != null) { if (typeof object.options !== "object") throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options, long + 1); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); } return message; }; @@ -288466,13 +268785,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceDescriptorProto.toObject = function toObject(message, options, q) { + ServiceDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.method = []; @@ -288485,10 +268800,10 @@ export const google = $root.google = (() => { if (message.method && message.method.length) { object.method = []; for (let j = 0; j < message.method.length; ++j) - object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options, q + 1); + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); } if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options, q + 1); + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); return object; }; @@ -288546,7 +268861,7 @@ export const google = $root.google = (() => { function MethodDescriptorProto(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -288619,13 +268934,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encode = function encode(message, writer, q) { + MethodDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) @@ -288633,7 +268944,7 @@ export const google = $root.google = (() => { if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) @@ -288665,18 +268976,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decode = function decode(reader, length, error, long) { + MethodDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.name = reader.string(); @@ -288691,7 +268996,7 @@ export const google = $root.google = (() => { break; } case 4: { - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32(), undefined, long + 1); + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); break; } case 5: { @@ -288703,7 +269008,7 @@ export const google = $root.google = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -288734,13 +269039,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MethodDescriptorProto.verify = function verify(message, long) { + MethodDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -288751,7 +269052,7 @@ export const google = $root.google = (() => { if (!$util.isString(message.outputType)) return "outputType: string expected"; if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.MethodOptions.verify(message.options, long + 1); + let error = $root.google.protobuf.MethodOptions.verify(message.options); if (error) return "options." + error; } @@ -288772,13 +269073,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto */ - MethodDescriptorProto.fromObject = function fromObject(object, long) { + MethodDescriptorProto.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.MethodDescriptorProto) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.MethodDescriptorProto(); if (object.name != null) message.name = String(object.name); @@ -288789,7 +269086,7 @@ export const google = $root.google = (() => { if (object.options != null) { if (typeof object.options !== "object") throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MethodOptions.fromObject(object.options, long + 1); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); } if (object.clientStreaming != null) message.clientStreaming = Boolean(object.clientStreaming); @@ -288807,13 +269104,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MethodDescriptorProto.toObject = function toObject(message, options, q) { + MethodDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.name = ""; @@ -288830,7 +269123,7 @@ export const google = $root.google = (() => { if (message.outputType != null && message.hasOwnProperty("outputType")) object.outputType = message.outputType; if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options, q + 1); + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) object.clientStreaming = message.clientStreaming; if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) @@ -288887,12 +269180,6 @@ export const google = $root.google = (() => { * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix * @property {string|null} [csharpNamespace] FileOptions csharpNamespace - * @property {string|null} [swiftPrefix] FileOptions swiftPrefix - * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix - * @property {string|null} [phpNamespace] FileOptions phpNamespace - * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace - * @property {string|null} [rubyPackage] FileOptions rubyPackage - * @property {google.protobuf.IFeatureSet|null} [features] FileOptions features * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption */ @@ -288908,7 +269195,7 @@ export const google = $root.google = (() => { this.uninterpretedOption = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -289006,7 +269293,7 @@ export const google = $root.google = (() => { * @memberof google.protobuf.FileOptions * @instance */ - FileOptions.prototype.ccEnableArenas = true; + FileOptions.prototype.ccEnableArenas = false; /** * FileOptions objcClassPrefix. @@ -289024,54 +269311,6 @@ export const google = $root.google = (() => { */ FileOptions.prototype.csharpNamespace = ""; - /** - * FileOptions swiftPrefix. - * @member {string} swiftPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.swiftPrefix = ""; - - /** - * FileOptions phpClassPrefix. - * @member {string} phpClassPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpClassPrefix = ""; - - /** - * FileOptions phpNamespace. - * @member {string} phpNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpNamespace = ""; - - /** - * FileOptions phpMetadataNamespace. - * @member {string} phpMetadataNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpMetadataNamespace = ""; - - /** - * FileOptions rubyPackage. - * @member {string} rubyPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.rubyPackage = ""; - - /** - * FileOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.features = null; - /** * FileOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -289101,13 +269340,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileOptions.encode = function encode(message, writer, q) { + FileOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) @@ -289136,21 +269371,9 @@ export const google = $root.google = (() => { writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) - writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); - if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) - writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); - if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) - writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) - writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); - if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) - writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork(), q + 1).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (let i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork(), q + 1).ldelim(); + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; @@ -289178,18 +269401,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileOptions.decode = function decode(reader, length, error, long) { + FileOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.javaPackage = reader.string(); @@ -289247,38 +269464,14 @@ export const google = $root.google = (() => { message.csharpNamespace = reader.string(); break; } - case 39: { - message.swiftPrefix = reader.string(); - break; - } - case 40: { - message.phpClassPrefix = reader.string(); - break; - } - case 41: { - message.phpNamespace = reader.string(); - break; - } - case 44: { - message.phpMetadataNamespace = reader.string(); - break; - } - case 45: { - message.rubyPackage = reader.string(); - break; - } - case 50: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32(), undefined, long + 1)); + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -289309,13 +269502,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileOptions.verify = function verify(message, long) { + FileOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) if (!$util.isString(message.javaPackage)) return "javaPackage: string expected"; @@ -289364,31 +269553,11 @@ export const google = $root.google = (() => { if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) if (!$util.isString(message.csharpNamespace)) return "csharpNamespace: string expected"; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - if (!$util.isString(message.swiftPrefix)) - return "swiftPrefix: string expected"; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - if (!$util.isString(message.phpClassPrefix)) - return "phpClassPrefix: string expected"; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - if (!$util.isString(message.phpNamespace)) - return "phpNamespace: string expected"; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - if (!$util.isString(message.phpMetadataNamespace)) - return "phpMetadataNamespace: string expected"; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - if (!$util.isString(message.rubyPackage)) - return "rubyPackage: string expected"; - if (message.features != null && message.hasOwnProperty("features")) { - let error = $root.google.protobuf.FeatureSet.verify(message.features, long + 1); - if (error) - return "features." + error; - } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; for (let i = 0; i < message.uninterpretedOption.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i], long + 1); + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) return "uninterpretedOption." + error; } @@ -289404,13 +269573,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.FileOptions} FileOptions */ - FileOptions.fromObject = function fromObject(object, long) { + FileOptions.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.FileOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.FileOptions(); if (object.javaPackage != null) message.javaPackage = String(object.javaPackage); @@ -289458,21 +269623,6 @@ export const google = $root.google = (() => { message.objcClassPrefix = String(object.objcClassPrefix); if (object.csharpNamespace != null) message.csharpNamespace = String(object.csharpNamespace); - if (object.swiftPrefix != null) - message.swiftPrefix = String(object.swiftPrefix); - if (object.phpClassPrefix != null) - message.phpClassPrefix = String(object.phpClassPrefix); - if (object.phpNamespace != null) - message.phpNamespace = String(object.phpNamespace); - if (object.phpMetadataNamespace != null) - message.phpMetadataNamespace = String(object.phpMetadataNamespace); - if (object.rubyPackage != null) - message.rubyPackage = String(object.rubyPackage); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.FileOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); - } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); @@ -289480,7 +269630,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.uninterpretedOption.length; ++i) { if (typeof object.uninterpretedOption[i] !== "object") throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } return message; @@ -289495,13 +269645,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileOptions.toObject = function toObject(message, options, q) { + FileOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; @@ -289517,15 +269663,9 @@ export const google = $root.google = (() => { object.javaGenerateEqualsAndHash = false; object.deprecated = false; object.javaStringCheckUtf8 = false; - object.ccEnableArenas = true; + object.ccEnableArenas = false; object.objcClassPrefix = ""; object.csharpNamespace = ""; - object.swiftPrefix = ""; - object.phpClassPrefix = ""; - object.phpNamespace = ""; - object.phpMetadataNamespace = ""; - object.rubyPackage = ""; - object.features = null; } if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) object.javaPackage = message.javaPackage; @@ -289555,22 +269695,10 @@ export const google = $root.google = (() => { object.objcClassPrefix = message.objcClassPrefix; if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) object.csharpNamespace = message.csharpNamespace; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - object.swiftPrefix = message.swiftPrefix; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - object.phpClassPrefix = message.phpClassPrefix; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - object.phpNamespace = message.phpNamespace; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - object.phpMetadataNamespace = message.phpMetadataNamespace; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - object.rubyPackage = message.rubyPackage; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (let j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options, q + 1); + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } return object; }; @@ -289630,8 +269758,6 @@ export const google = $root.google = (() => { * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor * @property {boolean|null} [deprecated] MessageOptions deprecated * @property {boolean|null} [mapEntry] MessageOptions mapEntry - * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts - * @property {google.protobuf.IFeatureSet|null} [features] MessageOptions features * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption */ @@ -289647,7 +269773,7 @@ export const google = $root.google = (() => { this.uninterpretedOption = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -289683,22 +269809,6 @@ export const google = $root.google = (() => { */ MessageOptions.prototype.mapEntry = false; - /** - * MessageOptions deprecatedLegacyJsonFieldConflicts. - * @member {boolean} deprecatedLegacyJsonFieldConflicts - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; - - /** - * MessageOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.features = null; - /** * MessageOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -289728,13 +269838,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageOptions.encode = function encode(message, writer, q) { + MessageOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) @@ -289743,13 +269849,9 @@ export const google = $root.google = (() => { writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); - if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (let i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork(), q + 1).ldelim(); + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; @@ -289777,18 +269879,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.decode = function decode(reader, length, error, long) { + MessageOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.messageSetWireFormat = reader.bool(); @@ -289806,22 +269902,14 @@ export const google = $root.google = (() => { message.mapEntry = reader.bool(); break; } - case 11: { - message.deprecatedLegacyJsonFieldConflicts = reader.bool(); - break; - } - case 12: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32(), undefined, long + 1)); + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -289852,13 +269940,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageOptions.verify = function verify(message, long) { + MessageOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) if (typeof message.messageSetWireFormat !== "boolean") return "messageSetWireFormat: boolean expected"; @@ -289871,19 +269955,11 @@ export const google = $root.google = (() => { if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) if (typeof message.mapEntry !== "boolean") return "mapEntry: boolean expected"; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") - return "deprecatedLegacyJsonFieldConflicts: boolean expected"; - if (message.features != null && message.hasOwnProperty("features")) { - let error = $root.google.protobuf.FeatureSet.verify(message.features, long + 1); - if (error) - return "features." + error; - } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; for (let i = 0; i < message.uninterpretedOption.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i], long + 1); + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) return "uninterpretedOption." + error; } @@ -289899,13 +269975,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.MessageOptions} MessageOptions */ - MessageOptions.fromObject = function fromObject(object, long) { + MessageOptions.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.MessageOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.MessageOptions(); if (object.messageSetWireFormat != null) message.messageSetWireFormat = Boolean(object.messageSetWireFormat); @@ -289915,13 +269987,6 @@ export const google = $root.google = (() => { message.deprecated = Boolean(object.deprecated); if (object.mapEntry != null) message.mapEntry = Boolean(object.mapEntry); - if (object.deprecatedLegacyJsonFieldConflicts != null) - message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.MessageOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); - } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); @@ -289929,7 +269994,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.uninterpretedOption.length; ++i) { if (typeof object.uninterpretedOption[i] !== "object") throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } return message; @@ -289944,13 +270009,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageOptions.toObject = function toObject(message, options, q) { + MessageOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; @@ -289959,8 +270020,6 @@ export const google = $root.google = (() => { object.noStandardDescriptorAccessor = false; object.deprecated = false; object.mapEntry = false; - object.deprecatedLegacyJsonFieldConflicts = false; - object.features = null; } if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) object.messageSetWireFormat = message.messageSetWireFormat; @@ -289970,14 +270029,10 @@ export const google = $root.google = (() => { object.deprecated = message.deprecated; if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) object.mapEntry = message.mapEntry; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (let j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options, q + 1); + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } return object; }; @@ -290021,15 +270076,8 @@ export const google = $root.google = (() => { * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak - * @property {boolean|null} [debugRedact] FieldOptions debugRedact - * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention - * @property {Array.|null} [targets] FieldOptions targets - * @property {Array.|null} [editionDefaults] FieldOptions editionDefaults - * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features - * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] FieldOptions featureSupport * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption */ @@ -290042,12 +270090,10 @@ export const google = $root.google = (() => { * @param {google.protobuf.IFieldOptions=} [properties] Properties to set */ function FieldOptions(properties) { - this.targets = []; - this.editionDefaults = []; this.uninterpretedOption = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -290083,14 +270129,6 @@ export const google = $root.google = (() => { */ FieldOptions.prototype.lazy = false; - /** - * FieldOptions unverifiedLazy. - * @member {boolean} unverifiedLazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.unverifiedLazy = false; - /** * FieldOptions deprecated. * @member {boolean} deprecated @@ -290107,54 +270145,6 @@ export const google = $root.google = (() => { */ FieldOptions.prototype.weak = false; - /** - * FieldOptions debugRedact. - * @member {boolean} debugRedact - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.debugRedact = false; - - /** - * FieldOptions retention. - * @member {google.protobuf.FieldOptions.OptionRetention} retention - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.retention = 0; - - /** - * FieldOptions targets. - * @member {Array.} targets - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.targets = $util.emptyArray; - - /** - * FieldOptions editionDefaults. - * @member {Array.} editionDefaults - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.editionDefaults = $util.emptyArray; - - /** - * FieldOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.features = null; - - /** - * FieldOptions featureSupport. - * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.featureSupport = null; - /** * FieldOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -290184,13 +270174,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encode = function encode(message, writer, q) { + FieldOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) @@ -290203,25 +270189,9 @@ export const google = $root.google = (() => { writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); - if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact); - if (message.retention != null && Object.hasOwnProperty.call(message, "retention")) - writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention); - if (message.targets != null && message.targets.length) - for (let i = 0; i < message.targets.length; ++i) - writer.uint32(/* id 19, wireType 0 =*/152).int32(message.targets[i]); - if (message.editionDefaults != null && message.editionDefaults.length) - for (let i = 0; i < message.editionDefaults.length; ++i) - $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork(), q + 1).ldelim(); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork(), q + 1).ldelim(); - if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport")) - $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 22, wireType 2 =*/178).fork(), q + 1).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (let i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork(), q + 1).ldelim(); + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; @@ -290249,18 +270219,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.decode = function decode(reader, length, error, long) { + FieldOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.ctype = reader.int32(); @@ -290278,10 +270242,6 @@ export const google = $root.google = (() => { message.lazy = reader.bool(); break; } - case 15: { - message.unverifiedLazy = reader.bool(); - break; - } case 3: { message.deprecated = reader.bool(); break; @@ -290290,47 +270250,14 @@ export const google = $root.google = (() => { message.weak = reader.bool(); break; } - case 16: { - message.debugRedact = reader.bool(); - break; - } - case 17: { - message.retention = reader.int32(); - break; - } - case 19: { - if (!(message.targets && message.targets.length)) - message.targets = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.targets.push(reader.int32()); - } else - message.targets.push(reader.int32()); - break; - } - case 20: { - if (!(message.editionDefaults && message.editionDefaults.length)) - message.editionDefaults = []; - message.editionDefaults.push($root.google.protobuf.FieldOptions.EditionDefault.decode(reader, reader.uint32(), undefined, long + 1)); - break; - } - case 21: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } - case 22: { - message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32(), undefined, long + 1); - break; - } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32(), undefined, long + 1)); + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -290361,13 +270288,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldOptions.verify = function verify(message, long) { + FieldOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.ctype != null && message.hasOwnProperty("ctype")) switch (message.ctype) { default: @@ -290392,71 +270315,17 @@ export const google = $root.google = (() => { if (message.lazy != null && message.hasOwnProperty("lazy")) if (typeof message.lazy !== "boolean") return "lazy: boolean expected"; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - if (typeof message.unverifiedLazy !== "boolean") - return "unverifiedLazy: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; if (message.weak != null && message.hasOwnProperty("weak")) if (typeof message.weak !== "boolean") return "weak: boolean expected"; - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) - if (typeof message.debugRedact !== "boolean") - return "debugRedact: boolean expected"; - if (message.retention != null && message.hasOwnProperty("retention")) - switch (message.retention) { - default: - return "retention: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.targets != null && message.hasOwnProperty("targets")) { - if (!Array.isArray(message.targets)) - return "targets: array expected"; - for (let i = 0; i < message.targets.length; ++i) - switch (message.targets[i]) { - default: - return "targets: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - } - if (message.editionDefaults != null && message.hasOwnProperty("editionDefaults")) { - if (!Array.isArray(message.editionDefaults)) - return "editionDefaults: array expected"; - for (let i = 0; i < message.editionDefaults.length; ++i) { - let error = $root.google.protobuf.FieldOptions.EditionDefault.verify(message.editionDefaults[i], long + 1); - if (error) - return "editionDefaults." + error; - } - } - if (message.features != null && message.hasOwnProperty("features")) { - let error = $root.google.protobuf.FeatureSet.verify(message.features, long + 1); - if (error) - return "features." + error; - } - if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) { - let error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport, long + 1); - if (error) - return "featureSupport." + error; - } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; for (let i = 0; i < message.uninterpretedOption.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i], long + 1); + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) return "uninterpretedOption." + error; } @@ -290472,13 +270341,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.FieldOptions} FieldOptions */ - FieldOptions.fromObject = function fromObject(object, long) { + FieldOptions.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.FieldOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.FieldOptions(); switch (object.ctype) { default: @@ -290524,107 +270389,10 @@ export const google = $root.google = (() => { } if (object.lazy != null) message.lazy = Boolean(object.lazy); - if (object.unverifiedLazy != null) - message.unverifiedLazy = Boolean(object.unverifiedLazy); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.weak != null) message.weak = Boolean(object.weak); - if (object.debugRedact != null) - message.debugRedact = Boolean(object.debugRedact); - switch (object.retention) { - default: - if (typeof object.retention === "number") { - message.retention = object.retention; - break; - } - break; - case "RETENTION_UNKNOWN": - case 0: - message.retention = 0; - break; - case "RETENTION_RUNTIME": - case 1: - message.retention = 1; - break; - case "RETENTION_SOURCE": - case 2: - message.retention = 2; - break; - } - if (object.targets) { - if (!Array.isArray(object.targets)) - throw TypeError(".google.protobuf.FieldOptions.targets: array expected"); - message.targets = []; - for (let i = 0; i < object.targets.length; ++i) - switch (object.targets[i]) { - default: - if (typeof object.targets[i] === "number") { - message.targets[i] = object.targets[i]; - break; - } - case "TARGET_TYPE_UNKNOWN": - case 0: - message.targets[i] = 0; - break; - case "TARGET_TYPE_FILE": - case 1: - message.targets[i] = 1; - break; - case "TARGET_TYPE_EXTENSION_RANGE": - case 2: - message.targets[i] = 2; - break; - case "TARGET_TYPE_MESSAGE": - case 3: - message.targets[i] = 3; - break; - case "TARGET_TYPE_FIELD": - case 4: - message.targets[i] = 4; - break; - case "TARGET_TYPE_ONEOF": - case 5: - message.targets[i] = 5; - break; - case "TARGET_TYPE_ENUM": - case 6: - message.targets[i] = 6; - break; - case "TARGET_TYPE_ENUM_ENTRY": - case 7: - message.targets[i] = 7; - break; - case "TARGET_TYPE_SERVICE": - case 8: - message.targets[i] = 8; - break; - case "TARGET_TYPE_METHOD": - case 9: - message.targets[i] = 9; - break; - } - } - if (object.editionDefaults) { - if (!Array.isArray(object.editionDefaults)) - throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected"); - message.editionDefaults = []; - for (let i = 0; i < object.editionDefaults.length; ++i) { - if (typeof object.editionDefaults[i] !== "object") - throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected"); - message.editionDefaults[i] = $root.google.protobuf.FieldOptions.EditionDefault.fromObject(object.editionDefaults[i], long + 1); - } - } - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.FieldOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); - } - if (object.featureSupport != null) { - if (typeof object.featureSupport !== "object") - throw TypeError(".google.protobuf.FieldOptions.featureSupport: object expected"); - message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport, long + 1); - } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); @@ -290632,7 +270400,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.uninterpretedOption.length; ++i) { if (typeof object.uninterpretedOption[i] !== "object") throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } return message; @@ -290647,19 +270415,12 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldOptions.toObject = function toObject(message, options, q) { + FieldOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; - if (options.arrays || options.defaults) { - object.targets = []; - object.editionDefaults = []; + if (options.arrays || options.defaults) object.uninterpretedOption = []; - } if (options.defaults) { object.ctype = options.enums === String ? "STRING" : 0; object.packed = false; @@ -290667,11 +270428,6 @@ export const google = $root.google = (() => { object.lazy = false; object.jstype = options.enums === String ? "JS_NORMAL" : 0; object.weak = false; - object.unverifiedLazy = false; - object.debugRedact = false; - object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0; - object.features = null; - object.featureSupport = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; @@ -290685,30 +270441,10 @@ export const google = $root.google = (() => { object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - object.unverifiedLazy = message.unverifiedLazy; - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) - object.debugRedact = message.debugRedact; - if (message.retention != null && message.hasOwnProperty("retention")) - object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention; - if (message.targets && message.targets.length) { - object.targets = []; - for (let j = 0; j < message.targets.length; ++j) - object.targets[j] = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] === undefined ? message.targets[j] : $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] : message.targets[j]; - } - if (message.editionDefaults && message.editionDefaults.length) { - object.editionDefaults = []; - for (let j = 0; j < message.editionDefaults.length; ++j) - object.editionDefaults[j] = $root.google.protobuf.FieldOptions.EditionDefault.toObject(message.editionDefaults[j], options, q + 1); - } - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); - if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) - object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (let j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options, q + 1); + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } return object; }; @@ -290771,872 +270507,6 @@ export const google = $root.google = (() => { return values; })(); - /** - * OptionRetention enum. - * @name google.protobuf.FieldOptions.OptionRetention - * @enum {number} - * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value - * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value - * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value - */ - FieldOptions.OptionRetention = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RETENTION_UNKNOWN"] = 0; - values[valuesById[1] = "RETENTION_RUNTIME"] = 1; - values[valuesById[2] = "RETENTION_SOURCE"] = 2; - return values; - })(); - - /** - * OptionTargetType enum. - * @name google.protobuf.FieldOptions.OptionTargetType - * @enum {number} - * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value - * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value - * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value - * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value - * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value - * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value - * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value - * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value - * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value - * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value - */ - FieldOptions.OptionTargetType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0; - values[valuesById[1] = "TARGET_TYPE_FILE"] = 1; - values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2; - values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3; - values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4; - values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5; - values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6; - values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7; - values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8; - values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9; - return values; - })(); - - FieldOptions.EditionDefault = (function() { - - /** - * Properties of an EditionDefault. - * @memberof google.protobuf.FieldOptions - * @interface IEditionDefault - * @property {google.protobuf.Edition|null} [edition] EditionDefault edition - * @property {string|null} [value] EditionDefault value - */ - - /** - * Constructs a new EditionDefault. - * @memberof google.protobuf.FieldOptions - * @classdesc Represents an EditionDefault. - * @implements IEditionDefault - * @constructor - * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set - */ - function EditionDefault(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") - this[keys[i]] = properties[keys[i]]; - } - - /** - * EditionDefault edition. - * @member {google.protobuf.Edition} edition - * @memberof google.protobuf.FieldOptions.EditionDefault - * @instance - */ - EditionDefault.prototype.edition = 0; - - /** - * EditionDefault value. - * @member {string} value - * @memberof google.protobuf.FieldOptions.EditionDefault - * @instance - */ - EditionDefault.prototype.value = ""; - - /** - * Creates a new EditionDefault instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance - */ - EditionDefault.create = function create(properties) { - return new EditionDefault(properties); - }; - - /** - * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EditionDefault.encode = function encode(message, writer, q) { - if (!writer) - writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); - return writer; - }; - - /** - * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EditionDefault.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EditionDefault message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EditionDefault.decode = function decode(reader, length, error, long) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault(); - while (reader.pos < end) { - let tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 3: { - message.edition = reader.int32(); - break; - } - case 2: { - message.value = reader.string(); - break; - } - default: - reader.skipType(tag & 7, long); - break; - } - } - return message; - }; - - /** - * Decodes an EditionDefault message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EditionDefault.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EditionDefault message. - * @function verify - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EditionDefault.verify = function verify(message, long) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.edition != null && message.hasOwnProperty("edition")) - switch (message.edition) { - default: - return "edition: enum value expected"; - case 0: - case 900: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - /** - * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault - */ - EditionDefault.fromObject = function fromObject(object, long) { - if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault) - return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let message = new $root.google.protobuf.FieldOptions.EditionDefault(); - switch (object.edition) { - default: - if (typeof object.edition === "number") { - message.edition = object.edition; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.edition = 0; - break; - case "EDITION_LEGACY": - case 900: - message.edition = 900; - break; - case "EDITION_PROTO2": - case 998: - message.edition = 998; - break; - case "EDITION_PROTO3": - case 999: - message.edition = 999; - break; - case "EDITION_2023": - case 1000: - message.edition = 1000; - break; - case "EDITION_2024": - case 1001: - message.edition = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.edition = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.edition = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.edition = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.edition = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.edition = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.edition = 2147483647; - break; - } - if (object.value != null) - message.value = String(object.value); - return message; - }; - - /** - * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EditionDefault.toObject = function toObject(message, options, q) { - if (!options) - options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - let object = {}; - if (options.defaults) { - object.value = ""; - object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; - } - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.edition != null && message.hasOwnProperty("edition")) - object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; - return object; - }; - - /** - * Converts this EditionDefault to JSON. - * @function toJSON - * @memberof google.protobuf.FieldOptions.EditionDefault - * @instance - * @returns {Object.} JSON object - */ - EditionDefault.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EditionDefault - * @function getTypeUrl - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault"; - }; - - return EditionDefault; - })(); - - FieldOptions.FeatureSupport = (function() { - - /** - * Properties of a FeatureSupport. - * @memberof google.protobuf.FieldOptions - * @interface IFeatureSupport - * @property {google.protobuf.Edition|null} [editionIntroduced] FeatureSupport editionIntroduced - * @property {google.protobuf.Edition|null} [editionDeprecated] FeatureSupport editionDeprecated - * @property {string|null} [deprecationWarning] FeatureSupport deprecationWarning - * @property {google.protobuf.Edition|null} [editionRemoved] FeatureSupport editionRemoved - */ - - /** - * Constructs a new FeatureSupport. - * @memberof google.protobuf.FieldOptions - * @classdesc Represents a FeatureSupport. - * @implements IFeatureSupport - * @constructor - * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set - */ - function FeatureSupport(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureSupport editionIntroduced. - * @member {google.protobuf.Edition} editionIntroduced - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @instance - */ - FeatureSupport.prototype.editionIntroduced = 0; - - /** - * FeatureSupport editionDeprecated. - * @member {google.protobuf.Edition} editionDeprecated - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @instance - */ - FeatureSupport.prototype.editionDeprecated = 0; - - /** - * FeatureSupport deprecationWarning. - * @member {string} deprecationWarning - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @instance - */ - FeatureSupport.prototype.deprecationWarning = ""; - - /** - * FeatureSupport editionRemoved. - * @member {google.protobuf.Edition} editionRemoved - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @instance - */ - FeatureSupport.prototype.editionRemoved = 0; - - /** - * Creates a new FeatureSupport instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @static - * @param {google.protobuf.FieldOptions.IFeatureSupport=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport instance - */ - FeatureSupport.create = function create(properties) { - return new FeatureSupport(properties); - }; - - /** - * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @static - * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSupport.encode = function encode(message, writer, q) { - if (!writer) - writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - if (message.editionIntroduced != null && Object.hasOwnProperty.call(message, "editionIntroduced")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.editionIntroduced); - if (message.editionDeprecated != null && Object.hasOwnProperty.call(message, "editionDeprecated")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.editionDeprecated); - if (message.deprecationWarning != null && Object.hasOwnProperty.call(message, "deprecationWarning")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deprecationWarning); - if (message.editionRemoved != null && Object.hasOwnProperty.call(message, "editionRemoved")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.editionRemoved); - return writer; - }; - - /** - * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @static - * @param {google.protobuf.FieldOptions.IFeatureSupport} message FeatureSupport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSupport.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureSupport message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSupport.decode = function decode(reader, length, error, long) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.FeatureSupport(); - while (reader.pos < end) { - let tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.editionIntroduced = reader.int32(); - break; - } - case 2: { - message.editionDeprecated = reader.int32(); - break; - } - case 3: { - message.deprecationWarning = reader.string(); - break; - } - case 4: { - message.editionRemoved = reader.int32(); - break; - } - default: - reader.skipType(tag & 7, long); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureSupport message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSupport.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureSupport message. - * @function verify - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureSupport.verify = function verify(message, long) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced")) - switch (message.editionIntroduced) { - default: - return "editionIntroduced: enum value expected"; - case 0: - case 900: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated")) - switch (message.editionDeprecated) { - default: - return "editionDeprecated: enum value expected"; - case 0: - case 900: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning")) - if (!$util.isString(message.deprecationWarning)) - return "deprecationWarning: string expected"; - if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved")) - switch (message.editionRemoved) { - default: - return "editionRemoved: enum value expected"; - case 0: - case 900: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - return null; - }; - - /** - * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions.FeatureSupport} FeatureSupport - */ - FeatureSupport.fromObject = function fromObject(object, long) { - if (object instanceof $root.google.protobuf.FieldOptions.FeatureSupport) - return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let message = new $root.google.protobuf.FieldOptions.FeatureSupport(); - switch (object.editionIntroduced) { - default: - if (typeof object.editionIntroduced === "number") { - message.editionIntroduced = object.editionIntroduced; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.editionIntroduced = 0; - break; - case "EDITION_LEGACY": - case 900: - message.editionIntroduced = 900; - break; - case "EDITION_PROTO2": - case 998: - message.editionIntroduced = 998; - break; - case "EDITION_PROTO3": - case 999: - message.editionIntroduced = 999; - break; - case "EDITION_2023": - case 1000: - message.editionIntroduced = 1000; - break; - case "EDITION_2024": - case 1001: - message.editionIntroduced = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.editionIntroduced = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.editionIntroduced = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.editionIntroduced = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.editionIntroduced = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.editionIntroduced = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.editionIntroduced = 2147483647; - break; - } - switch (object.editionDeprecated) { - default: - if (typeof object.editionDeprecated === "number") { - message.editionDeprecated = object.editionDeprecated; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.editionDeprecated = 0; - break; - case "EDITION_LEGACY": - case 900: - message.editionDeprecated = 900; - break; - case "EDITION_PROTO2": - case 998: - message.editionDeprecated = 998; - break; - case "EDITION_PROTO3": - case 999: - message.editionDeprecated = 999; - break; - case "EDITION_2023": - case 1000: - message.editionDeprecated = 1000; - break; - case "EDITION_2024": - case 1001: - message.editionDeprecated = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.editionDeprecated = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.editionDeprecated = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.editionDeprecated = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.editionDeprecated = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.editionDeprecated = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.editionDeprecated = 2147483647; - break; - } - if (object.deprecationWarning != null) - message.deprecationWarning = String(object.deprecationWarning); - switch (object.editionRemoved) { - default: - if (typeof object.editionRemoved === "number") { - message.editionRemoved = object.editionRemoved; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.editionRemoved = 0; - break; - case "EDITION_LEGACY": - case 900: - message.editionRemoved = 900; - break; - case "EDITION_PROTO2": - case 998: - message.editionRemoved = 998; - break; - case "EDITION_PROTO3": - case 999: - message.editionRemoved = 999; - break; - case "EDITION_2023": - case 1000: - message.editionRemoved = 1000; - break; - case "EDITION_2024": - case 1001: - message.editionRemoved = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.editionRemoved = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.editionRemoved = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.editionRemoved = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.editionRemoved = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.editionRemoved = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.editionRemoved = 2147483647; - break; - } - return message; - }; - - /** - * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @static - * @param {google.protobuf.FieldOptions.FeatureSupport} message FeatureSupport - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureSupport.toObject = function toObject(message, options, q) { - if (!options) - options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - let object = {}; - if (options.defaults) { - object.editionIntroduced = options.enums === String ? "EDITION_UNKNOWN" : 0; - object.editionDeprecated = options.enums === String ? "EDITION_UNKNOWN" : 0; - object.deprecationWarning = ""; - object.editionRemoved = options.enums === String ? "EDITION_UNKNOWN" : 0; - } - if (message.editionIntroduced != null && message.hasOwnProperty("editionIntroduced")) - object.editionIntroduced = options.enums === String ? $root.google.protobuf.Edition[message.editionIntroduced] === undefined ? message.editionIntroduced : $root.google.protobuf.Edition[message.editionIntroduced] : message.editionIntroduced; - if (message.editionDeprecated != null && message.hasOwnProperty("editionDeprecated")) - object.editionDeprecated = options.enums === String ? $root.google.protobuf.Edition[message.editionDeprecated] === undefined ? message.editionDeprecated : $root.google.protobuf.Edition[message.editionDeprecated] : message.editionDeprecated; - if (message.deprecationWarning != null && message.hasOwnProperty("deprecationWarning")) - object.deprecationWarning = message.deprecationWarning; - if (message.editionRemoved != null && message.hasOwnProperty("editionRemoved")) - object.editionRemoved = options.enums === String ? $root.google.protobuf.Edition[message.editionRemoved] === undefined ? message.editionRemoved : $root.google.protobuf.Edition[message.editionRemoved] : message.editionRemoved; - return object; - }; - - /** - * Converts this FeatureSupport to JSON. - * @function toJSON - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @instance - * @returns {Object.} JSON object - */ - FeatureSupport.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureSupport - * @function getTypeUrl - * @memberof google.protobuf.FieldOptions.FeatureSupport - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FieldOptions.FeatureSupport"; - }; - - return FeatureSupport; - })(); - return FieldOptions; })(); @@ -291646,7 +270516,6 @@ export const google = $root.google = (() => { * Properties of an OneofOptions. * @memberof google.protobuf * @interface IOneofOptions - * @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption */ @@ -291662,18 +270531,10 @@ export const google = $root.google = (() => { this.uninterpretedOption = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - /** - * OneofOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.OneofOptions - * @instance - */ - OneofOptions.prototype.features = null; - /** * OneofOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -291703,18 +270564,12 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encode = function encode(message, writer, q) { + OneofOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (let i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork(), q + 1).ldelim(); + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; @@ -291742,31 +270597,21 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofOptions.decode = function decode(reader, length, error, long) { + OneofOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { - case 1: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32(), undefined, long + 1)); + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -291797,23 +270642,14 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OneofOptions.verify = function verify(message, long) { + OneofOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.features != null && message.hasOwnProperty("features")) { - let error = $root.google.protobuf.FeatureSet.verify(message.features, long + 1); - if (error) - return "features." + error; - } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; for (let i = 0; i < message.uninterpretedOption.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i], long + 1); + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) return "uninterpretedOption." + error; } @@ -291829,19 +270665,10 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.OneofOptions} OneofOptions */ - OneofOptions.fromObject = function fromObject(object, long) { + OneofOptions.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.OneofOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.OneofOptions(); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.OneofOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); - } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); @@ -291849,7 +270676,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.uninterpretedOption.length; ++i) { if (typeof object.uninterpretedOption[i] !== "object") throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } return message; @@ -291864,24 +270691,16 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneofOptions.toObject = function toObject(message, options, q) { + OneofOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; - if (options.defaults) - object.features = null; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (let j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options, q + 1); + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } return object; }; @@ -291923,8 +270742,6 @@ export const google = $root.google = (() => { * @interface IEnumOptions * @property {boolean|null} [allowAlias] EnumOptions allowAlias * @property {boolean|null} [deprecated] EnumOptions deprecated - * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts - * @property {google.protobuf.IFeatureSet|null} [features] EnumOptions features * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption */ @@ -291940,7 +270757,7 @@ export const google = $root.google = (() => { this.uninterpretedOption = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -291960,22 +270777,6 @@ export const google = $root.google = (() => { */ EnumOptions.prototype.deprecated = false; - /** - * EnumOptions deprecatedLegacyJsonFieldConflicts. - * @member {boolean} deprecatedLegacyJsonFieldConflicts - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; - - /** - * EnumOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.features = null; - /** * EnumOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -292005,24 +270806,16 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumOptions.encode = function encode(message, writer, q) { + EnumOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (let i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork(), q + 1).ldelim(); + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; @@ -292050,18 +270843,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumOptions.decode = function decode(reader, length, error, long) { + EnumOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 2: { message.allowAlias = reader.bool(); @@ -292071,22 +270858,14 @@ export const google = $root.google = (() => { message.deprecated = reader.bool(); break; } - case 6: { - message.deprecatedLegacyJsonFieldConflicts = reader.bool(); - break; - } - case 7: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32(), undefined, long + 1)); + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -292117,32 +270896,20 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumOptions.verify = function verify(message, long) { + EnumOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) if (typeof message.allowAlias !== "boolean") return "allowAlias: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") - return "deprecatedLegacyJsonFieldConflicts: boolean expected"; - if (message.features != null && message.hasOwnProperty("features")) { - let error = $root.google.protobuf.FeatureSet.verify(message.features, long + 1); - if (error) - return "features." + error; - } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; for (let i = 0; i < message.uninterpretedOption.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i], long + 1); + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) return "uninterpretedOption." + error; } @@ -292158,25 +270925,14 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.EnumOptions} EnumOptions */ - EnumOptions.fromObject = function fromObject(object, long) { + EnumOptions.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.EnumOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.EnumOptions(); if (object.allowAlias != null) message.allowAlias = Boolean(object.allowAlias); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); - if (object.deprecatedLegacyJsonFieldConflicts != null) - message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.EnumOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); - } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); @@ -292184,7 +270940,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.uninterpretedOption.length; ++i) { if (typeof object.uninterpretedOption[i] !== "object") throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } return message; @@ -292199,34 +270955,24 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumOptions.toObject = function toObject(message, options, q) { + EnumOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; if (options.defaults) { object.allowAlias = false; object.deprecated = false; - object.deprecatedLegacyJsonFieldConflicts = false; - object.features = null; } if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) object.allowAlias = message.allowAlias; if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (let j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options, q + 1); + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } return object; }; @@ -292267,9 +271013,6 @@ export const google = $root.google = (() => { * @memberof google.protobuf * @interface IEnumValueOptions * @property {boolean|null} [deprecated] EnumValueOptions deprecated - * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features - * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact - * @property {google.protobuf.FieldOptions.IFeatureSupport|null} [featureSupport] EnumValueOptions featureSupport * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption */ @@ -292285,7 +271028,7 @@ export const google = $root.google = (() => { this.uninterpretedOption = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -292297,30 +271040,6 @@ export const google = $root.google = (() => { */ EnumValueOptions.prototype.deprecated = false; - /** - * EnumValueOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.features = null; - - /** - * EnumValueOptions debugRedact. - * @member {boolean} debugRedact - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.debugRedact = false; - - /** - * EnumValueOptions featureSupport. - * @member {google.protobuf.FieldOptions.IFeatureSupport|null|undefined} featureSupport - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.featureSupport = null; - /** * EnumValueOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -292350,24 +271069,14 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueOptions.encode = function encode(message, writer, q) { + EnumValueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); - if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact); - if (message.featureSupport != null && Object.hasOwnProperty.call(message, "featureSupport")) - $root.google.protobuf.FieldOptions.FeatureSupport.encode(message.featureSupport, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (let i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork(), q + 1).ldelim(); + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; @@ -292395,43 +271104,25 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueOptions.decode = function decode(reader, length, error, long) { + EnumValueOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.deprecated = reader.bool(); break; } - case 2: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } - case 3: { - message.debugRedact = reader.bool(); - break; - } - case 4: { - message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.decode(reader, reader.uint32(), undefined, long + 1); - break; - } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32(), undefined, long + 1)); + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -292462,34 +271153,17 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumValueOptions.verify = function verify(message, long) { + EnumValueOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; - if (message.features != null && message.hasOwnProperty("features")) { - let error = $root.google.protobuf.FeatureSet.verify(message.features, long + 1); - if (error) - return "features." + error; - } - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) - if (typeof message.debugRedact !== "boolean") - return "debugRedact: boolean expected"; - if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) { - let error = $root.google.protobuf.FieldOptions.FeatureSupport.verify(message.featureSupport, long + 1); - if (error) - return "featureSupport." + error; - } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; for (let i = 0; i < message.uninterpretedOption.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i], long + 1); + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) return "uninterpretedOption." + error; } @@ -292505,28 +271179,12 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.EnumValueOptions} EnumValueOptions */ - EnumValueOptions.fromObject = function fromObject(object, long) { + EnumValueOptions.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.EnumValueOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.EnumValueOptions(); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.EnumValueOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); - } - if (object.debugRedact != null) - message.debugRedact = Boolean(object.debugRedact); - if (object.featureSupport != null) { - if (typeof object.featureSupport !== "object") - throw TypeError(".google.protobuf.EnumValueOptions.featureSupport: object expected"); - message.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.fromObject(object.featureSupport, long + 1); - } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); @@ -292534,7 +271192,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.uninterpretedOption.length; ++i) { if (typeof object.uninterpretedOption[i] !== "object") throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } return message; @@ -292549,34 +271207,20 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueOptions.toObject = function toObject(message, options, q) { + EnumValueOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; - if (options.defaults) { + if (options.defaults) object.deprecated = false; - object.features = null; - object.debugRedact = false; - object.featureSupport = null; - } if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) - object.debugRedact = message.debugRedact; - if (message.featureSupport != null && message.hasOwnProperty("featureSupport")) - object.featureSupport = $root.google.protobuf.FieldOptions.FeatureSupport.toObject(message.featureSupport, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (let j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options, q + 1); + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } return object; }; @@ -292616,7 +271260,6 @@ export const google = $root.google = (() => { * Properties of a ServiceOptions. * @memberof google.protobuf * @interface IServiceOptions - * @property {google.protobuf.IFeatureSet|null} [features] ServiceOptions features * @property {boolean|null} [deprecated] ServiceOptions deprecated * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption */ @@ -292633,18 +271276,10 @@ export const google = $root.google = (() => { this.uninterpretedOption = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - /** - * ServiceOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.features = null; - /** * ServiceOptions deprecated. * @member {boolean} deprecated @@ -292682,20 +271317,14 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceOptions.encode = function encode(message, writer, q) { + ServiceOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 34, wireType 2 =*/274).fork(), q + 1).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (let i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork(), q + 1).ldelim(); + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; @@ -292723,23 +271352,13 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceOptions.decode = function decode(reader, length, error, long) { + ServiceOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { - case 34: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } case 33: { message.deprecated = reader.bool(); break; @@ -292747,11 +271366,11 @@ export const google = $root.google = (() => { case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32(), undefined, long + 1)); + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -292782,18 +271401,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceOptions.verify = function verify(message, long) { + ServiceOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.features != null && message.hasOwnProperty("features")) { - let error = $root.google.protobuf.FeatureSet.verify(message.features, long + 1); - if (error) - return "features." + error; - } if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -292801,7 +271411,7 @@ export const google = $root.google = (() => { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; for (let i = 0; i < message.uninterpretedOption.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i], long + 1); + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) return "uninterpretedOption." + error; } @@ -292817,19 +271427,10 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.ServiceOptions} ServiceOptions */ - ServiceOptions.fromObject = function fromObject(object, long) { + ServiceOptions.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.ServiceOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.ServiceOptions(); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.ServiceOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); - } if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.uninterpretedOption) { @@ -292839,7 +271440,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.uninterpretedOption.length; ++i) { if (typeof object.uninterpretedOption[i] !== "object") throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } return message; @@ -292854,28 +271455,20 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceOptions.toObject = function toObject(message, options, q) { + ServiceOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; - if (options.defaults) { + if (options.defaults) object.deprecated = false; - object.features = null; - } if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (let j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options, q + 1); + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } return object; }; @@ -292916,8 +271509,6 @@ export const google = $root.google = (() => { * @memberof google.protobuf * @interface IMethodOptions * @property {boolean|null} [deprecated] MethodOptions deprecated - * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel - * @property {google.protobuf.IFeatureSet|null} [features] MethodOptions features * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http */ @@ -292934,7 +271525,7 @@ export const google = $root.google = (() => { this.uninterpretedOption = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -292946,22 +271537,6 @@ export const google = $root.google = (() => { */ MethodOptions.prototype.deprecated = false; - /** - * MethodOptions idempotencyLevel. - * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.idempotencyLevel = 0; - - /** - * MethodOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.features = null; - /** * MethodOptions uninterpretedOption. * @member {Array.} uninterpretedOption @@ -292999,24 +271574,16 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodOptions.encode = function encode(message, writer, q) { + MethodOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) - writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 35, wireType 2 =*/282).fork(), q + 1).ldelim(); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (let i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork(), q + 1).ldelim(); + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) - $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork(), q + 1).ldelim(); + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; }; @@ -293044,43 +271611,29 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodOptions.decode = function decode(reader, length, error, long) { + MethodOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 33: { message.deprecated = reader.bool(); break; } - case 34: { - message.idempotencyLevel = reader.int32(); - break; - } - case 35: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } case 999: { if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32(), undefined, long + 1)); + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; } case 72295728: { - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32(), undefined, long + 1); + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -293111,41 +271664,23 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MethodOptions.verify = function verify(message, long) { + MethodOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - switch (message.idempotencyLevel) { - default: - return "idempotencyLevel: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.features != null && message.hasOwnProperty("features")) { - let error = $root.google.protobuf.FeatureSet.verify(message.features, long + 1); - if (error) - return "features." + error; - } if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; for (let i = 0; i < message.uninterpretedOption.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i], long + 1); + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) return "uninterpretedOption." + error; } } if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { - let error = $root.google.api.HttpRule.verify(message[".google.api.http"], long + 1); + let error = $root.google.api.HttpRule.verify(message[".google.api.http"]); if (error) return ".google.api.http." + error; } @@ -293160,41 +271695,12 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.MethodOptions} MethodOptions */ - MethodOptions.fromObject = function fromObject(object, long) { + MethodOptions.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.MethodOptions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.MethodOptions(); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); - switch (object.idempotencyLevel) { - default: - if (typeof object.idempotencyLevel === "number") { - message.idempotencyLevel = object.idempotencyLevel; - break; - } - break; - case "IDEMPOTENCY_UNKNOWN": - case 0: - message.idempotencyLevel = 0; - break; - case "NO_SIDE_EFFECTS": - case 1: - message.idempotencyLevel = 1; - break; - case "IDEMPOTENT": - case 2: - message.idempotencyLevel = 2; - break; - } - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.MethodOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features, long + 1); - } if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); @@ -293202,13 +271708,13 @@ export const google = $root.google = (() => { for (let i = 0; i < object.uninterpretedOption.length; ++i) { if (typeof object.uninterpretedOption[i] !== "object") throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i], long + 1); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } if (object[".google.api.http"] != null) { if (typeof object[".google.api.http"] !== "object") throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); - message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"], long + 1); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); } return message; }; @@ -293222,35 +271728,25 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MethodOptions.toObject = function toObject(message, options, q) { + MethodOptions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; if (options.defaults) { object.deprecated = false; - object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; - object.features = null; object[".google.api.http"] = null; } if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options, q + 1); if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (let j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options, q + 1); + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) - object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options, q + 1); + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); return object; }; @@ -293280,22 +271776,6 @@ export const google = $root.google = (() => { return typeUrlPrefix + "/google.protobuf.MethodOptions"; }; - /** - * IdempotencyLevel enum. - * @name google.protobuf.MethodOptions.IdempotencyLevel - * @enum {number} - * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value - * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value - * @property {number} IDEMPOTENT=2 IDEMPOTENT value - */ - MethodOptions.IdempotencyLevel = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; - values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; - values[valuesById[2] = "IDEMPOTENT"] = 2; - return values; - })(); - return MethodOptions; })(); @@ -293326,7 +271806,7 @@ export const google = $root.google = (() => { this.name = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -293407,16 +271887,12 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encode = function encode(message, writer, q) { + UninterpretedOption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.name != null && message.name.length) for (let i = 0; i < message.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) @@ -293456,23 +271932,17 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decode = function decode(reader, length, error, long) { + UninterpretedOption.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 2: { if (!(message.name && message.name.length)) message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32(), undefined, long + 1)); + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); break; } case 3: { @@ -293500,7 +271970,7 @@ export const google = $root.google = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -293531,18 +272001,14 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UninterpretedOption.verify = function verify(message, long) { + UninterpretedOption.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.name != null && message.hasOwnProperty("name")) { if (!Array.isArray(message.name)) return "name: array expected"; for (let i = 0; i < message.name.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i], long + 1); + let error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); if (error) return "name." + error; } @@ -293576,13 +272042,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.UninterpretedOption} UninterpretedOption */ - UninterpretedOption.fromObject = function fromObject(object, long) { + UninterpretedOption.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.UninterpretedOption) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.UninterpretedOption(); if (object.name) { if (!Array.isArray(object.name)) @@ -293591,14 +272053,14 @@ export const google = $root.google = (() => { for (let i = 0; i < object.name.length; ++i) { if (typeof object.name[i] !== "object") throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); - message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i], long + 1); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); } } if (object.identifierValue != null) message.identifierValue = String(object.identifierValue); if (object.positiveIntValue != null) if ($util.Long) - message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue, true); + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; else if (typeof object.positiveIntValue === "string") message.positiveIntValue = parseInt(object.positiveIntValue, 10); else if (typeof object.positiveIntValue === "number") @@ -293607,7 +272069,7 @@ export const google = $root.google = (() => { message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); if (object.negativeIntValue != null) if ($util.Long) - message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue, false); + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; else if (typeof object.negativeIntValue === "string") message.negativeIntValue = parseInt(object.negativeIntValue, 10); else if (typeof object.negativeIntValue === "number") @@ -293635,13 +272097,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UninterpretedOption.toObject = function toObject(message, options, q) { + UninterpretedOption.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.name = []; @@ -293649,14 +272107,14 @@ export const google = $root.google = (() => { object.identifierValue = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.positiveIntValue = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.positiveIntValue = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.negativeIntValue = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.negativeIntValue = options.longs === String ? "0" : 0; object.doubleValue = 0; if (options.bytes === String) object.stringValue = ""; @@ -293670,21 +272128,17 @@ export const google = $root.google = (() => { if (message.name && message.name.length) { object.name = []; for (let j = 0; j < message.name.length; ++j) - object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options, q + 1); + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); } if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) object.identifierValue = message.identifierValue; if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.positiveIntValue = typeof message.positiveIntValue === "number" ? BigInt(message.positiveIntValue) : $util.Long.fromBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0, true).toBigInt(); - else if (typeof message.positiveIntValue === "number") + if (typeof message.positiveIntValue === "number") object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; else object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.negativeIntValue = typeof message.negativeIntValue === "number" ? BigInt(message.negativeIntValue) : $util.Long.fromBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0, false).toBigInt(); - else if (typeof message.negativeIntValue === "number") + if (typeof message.negativeIntValue === "number") object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; else object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; @@ -293744,7 +272198,7 @@ export const google = $root.google = (() => { function NamePart(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -293785,13 +272239,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NamePart.encode = function encode(message, writer, q) { + NamePart.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); return writer; @@ -293821,18 +272271,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NamePart.decode = function decode(reader, length, error, long) { + NamePart.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.namePart = reader.string(); @@ -293843,7 +272287,7 @@ export const google = $root.google = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -293878,13 +272322,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NamePart.verify = function verify(message, long) { + NamePart.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (!$util.isString(message.namePart)) return "namePart: string expected"; if (typeof message.isExtension !== "boolean") @@ -293900,13 +272340,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart */ - NamePart.fromObject = function fromObject(object, long) { + NamePart.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.UninterpretedOption.NamePart(); if (object.namePart != null) message.namePart = String(object.namePart); @@ -293924,13 +272360,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NamePart.toObject = function toObject(message, options, q) { + NamePart.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.namePart = ""; @@ -293975,1710 +272407,6 @@ export const google = $root.google = (() => { return UninterpretedOption; })(); - protobuf.FeatureSet = (function() { - - /** - * Properties of a FeatureSet. - * @memberof google.protobuf - * @interface IFeatureSet - * @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence - * @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType - * @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding - * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation - * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding - * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat - * @property {google.protobuf.FeatureSet.EnforceNamingStyle|null} [enforceNamingStyle] FeatureSet enforceNamingStyle - * @property {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null} [defaultSymbolVisibility] FeatureSet defaultSymbolVisibility - */ - - /** - * Constructs a new FeatureSet. - * @memberof google.protobuf - * @classdesc Represents a FeatureSet. - * @implements IFeatureSet - * @constructor - * @param {google.protobuf.IFeatureSet=} [properties] Properties to set - */ - function FeatureSet(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureSet fieldPresence. - * @member {google.protobuf.FeatureSet.FieldPresence} fieldPresence - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.fieldPresence = 0; - - /** - * FeatureSet enumType. - * @member {google.protobuf.FeatureSet.EnumType} enumType - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.enumType = 0; - - /** - * FeatureSet repeatedFieldEncoding. - * @member {google.protobuf.FeatureSet.RepeatedFieldEncoding} repeatedFieldEncoding - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.repeatedFieldEncoding = 0; - - /** - * FeatureSet utf8Validation. - * @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.utf8Validation = 0; - - /** - * FeatureSet messageEncoding. - * @member {google.protobuf.FeatureSet.MessageEncoding} messageEncoding - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.messageEncoding = 0; - - /** - * FeatureSet jsonFormat. - * @member {google.protobuf.FeatureSet.JsonFormat} jsonFormat - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.jsonFormat = 0; - - /** - * FeatureSet enforceNamingStyle. - * @member {google.protobuf.FeatureSet.EnforceNamingStyle} enforceNamingStyle - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.enforceNamingStyle = 0; - - /** - * FeatureSet defaultSymbolVisibility. - * @member {google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility} defaultSymbolVisibility - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.defaultSymbolVisibility = 0; - - /** - * Creates a new FeatureSet instance using the specified properties. - * @function create - * @memberof google.protobuf.FeatureSet - * @static - * @param {google.protobuf.IFeatureSet=} [properties] Properties to set - * @returns {google.protobuf.FeatureSet} FeatureSet instance - */ - FeatureSet.create = function create(properties) { - return new FeatureSet(properties); - }; - - /** - * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FeatureSet - * @static - * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSet.encode = function encode(message, writer, q) { - if (!writer) - writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "fieldPresence")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fieldPresence); - if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType); - if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding); - if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation); - if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding); - if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat); - if (message.enforceNamingStyle != null && Object.hasOwnProperty.call(message, "enforceNamingStyle")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enforceNamingStyle); - if (message.defaultSymbolVisibility != null && Object.hasOwnProperty.call(message, "defaultSymbolVisibility")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultSymbolVisibility); - return writer; - }; - - /** - * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FeatureSet - * @static - * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSet.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureSet message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FeatureSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FeatureSet} FeatureSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSet.decode = function decode(reader, length, error, long) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet(); - while (reader.pos < end) { - let tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.fieldPresence = reader.int32(); - break; - } - case 2: { - message.enumType = reader.int32(); - break; - } - case 3: { - message.repeatedFieldEncoding = reader.int32(); - break; - } - case 4: { - message.utf8Validation = reader.int32(); - break; - } - case 5: { - message.messageEncoding = reader.int32(); - break; - } - case 6: { - message.jsonFormat = reader.int32(); - break; - } - case 7: { - message.enforceNamingStyle = reader.int32(); - break; - } - case 8: { - message.defaultSymbolVisibility = reader.int32(); - break; - } - default: - reader.skipType(tag & 7, long); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureSet message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FeatureSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FeatureSet} FeatureSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSet.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureSet message. - * @function verify - * @memberof google.protobuf.FeatureSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureSet.verify = function verify(message, long) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) - switch (message.fieldPresence) { - default: - return "fieldPresence: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.enumType != null && message.hasOwnProperty("enumType")) - switch (message.enumType) { - default: - return "enumType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) - switch (message.repeatedFieldEncoding) { - default: - return "repeatedFieldEncoding: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) - switch (message.utf8Validation) { - default: - return "utf8Validation: enum value expected"; - case 0: - case 2: - case 3: - break; - } - if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) - switch (message.messageEncoding) { - default: - return "messageEncoding: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) - switch (message.jsonFormat) { - default: - return "jsonFormat: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle")) - switch (message.enforceNamingStyle) { - default: - return "enforceNamingStyle: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility")) - switch (message.defaultSymbolVisibility) { - default: - return "defaultSymbolVisibility: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - - /** - * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FeatureSet - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FeatureSet} FeatureSet - */ - FeatureSet.fromObject = function fromObject(object, long) { - if (object instanceof $root.google.protobuf.FeatureSet) - return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let message = new $root.google.protobuf.FeatureSet(); - switch (object.fieldPresence) { - default: - if (typeof object.fieldPresence === "number") { - message.fieldPresence = object.fieldPresence; - break; - } - break; - case "FIELD_PRESENCE_UNKNOWN": - case 0: - message.fieldPresence = 0; - break; - case "EXPLICIT": - case 1: - message.fieldPresence = 1; - break; - case "IMPLICIT": - case 2: - message.fieldPresence = 2; - break; - case "LEGACY_REQUIRED": - case 3: - message.fieldPresence = 3; - break; - } - switch (object.enumType) { - default: - if (typeof object.enumType === "number") { - message.enumType = object.enumType; - break; - } - break; - case "ENUM_TYPE_UNKNOWN": - case 0: - message.enumType = 0; - break; - case "OPEN": - case 1: - message.enumType = 1; - break; - case "CLOSED": - case 2: - message.enumType = 2; - break; - } - switch (object.repeatedFieldEncoding) { - default: - if (typeof object.repeatedFieldEncoding === "number") { - message.repeatedFieldEncoding = object.repeatedFieldEncoding; - break; - } - break; - case "REPEATED_FIELD_ENCODING_UNKNOWN": - case 0: - message.repeatedFieldEncoding = 0; - break; - case "PACKED": - case 1: - message.repeatedFieldEncoding = 1; - break; - case "EXPANDED": - case 2: - message.repeatedFieldEncoding = 2; - break; - } - switch (object.utf8Validation) { - default: - if (typeof object.utf8Validation === "number") { - message.utf8Validation = object.utf8Validation; - break; - } - break; - case "UTF8_VALIDATION_UNKNOWN": - case 0: - message.utf8Validation = 0; - break; - case "VERIFY": - case 2: - message.utf8Validation = 2; - break; - case "NONE": - case 3: - message.utf8Validation = 3; - break; - } - switch (object.messageEncoding) { - default: - if (typeof object.messageEncoding === "number") { - message.messageEncoding = object.messageEncoding; - break; - } - break; - case "MESSAGE_ENCODING_UNKNOWN": - case 0: - message.messageEncoding = 0; - break; - case "LENGTH_PREFIXED": - case 1: - message.messageEncoding = 1; - break; - case "DELIMITED": - case 2: - message.messageEncoding = 2; - break; - } - switch (object.jsonFormat) { - default: - if (typeof object.jsonFormat === "number") { - message.jsonFormat = object.jsonFormat; - break; - } - break; - case "JSON_FORMAT_UNKNOWN": - case 0: - message.jsonFormat = 0; - break; - case "ALLOW": - case 1: - message.jsonFormat = 1; - break; - case "LEGACY_BEST_EFFORT": - case 2: - message.jsonFormat = 2; - break; - } - switch (object.enforceNamingStyle) { - default: - if (typeof object.enforceNamingStyle === "number") { - message.enforceNamingStyle = object.enforceNamingStyle; - break; - } - break; - case "ENFORCE_NAMING_STYLE_UNKNOWN": - case 0: - message.enforceNamingStyle = 0; - break; - case "STYLE2024": - case 1: - message.enforceNamingStyle = 1; - break; - case "STYLE_LEGACY": - case 2: - message.enforceNamingStyle = 2; - break; - } - switch (object.defaultSymbolVisibility) { - default: - if (typeof object.defaultSymbolVisibility === "number") { - message.defaultSymbolVisibility = object.defaultSymbolVisibility; - break; - } - break; - case "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN": - case 0: - message.defaultSymbolVisibility = 0; - break; - case "EXPORT_ALL": - case 1: - message.defaultSymbolVisibility = 1; - break; - case "EXPORT_TOP_LEVEL": - case 2: - message.defaultSymbolVisibility = 2; - break; - case "LOCAL_ALL": - case 3: - message.defaultSymbolVisibility = 3; - break; - case "STRICT": - case 4: - message.defaultSymbolVisibility = 4; - break; - } - return message; - }; - - /** - * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FeatureSet - * @static - * @param {google.protobuf.FeatureSet} message FeatureSet - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureSet.toObject = function toObject(message, options, q) { - if (!options) - options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - let object = {}; - if (options.defaults) { - object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0; - object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0; - object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0; - object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0; - object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0; - object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0; - object.enforceNamingStyle = options.enums === String ? "ENFORCE_NAMING_STYLE_UNKNOWN" : 0; - object.defaultSymbolVisibility = options.enums === String ? "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN" : 0; - } - if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) - object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence; - if (message.enumType != null && message.hasOwnProperty("enumType")) - object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType; - if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) - object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding; - if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) - object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation; - if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) - object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding; - if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) - object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat; - if (message.enforceNamingStyle != null && message.hasOwnProperty("enforceNamingStyle")) - object.enforceNamingStyle = options.enums === String ? $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] === undefined ? message.enforceNamingStyle : $root.google.protobuf.FeatureSet.EnforceNamingStyle[message.enforceNamingStyle] : message.enforceNamingStyle; - if (message.defaultSymbolVisibility != null && message.hasOwnProperty("defaultSymbolVisibility")) - object.defaultSymbolVisibility = options.enums === String ? $root.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[message.defaultSymbolVisibility] === undefined ? message.defaultSymbolVisibility : $root.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility[message.defaultSymbolVisibility] : message.defaultSymbolVisibility; - return object; - }; - - /** - * Converts this FeatureSet to JSON. - * @function toJSON - * @memberof google.protobuf.FeatureSet - * @instance - * @returns {Object.} JSON object - */ - FeatureSet.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureSet - * @function getTypeUrl - * @memberof google.protobuf.FeatureSet - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FeatureSet"; - }; - - /** - * FieldPresence enum. - * @name google.protobuf.FeatureSet.FieldPresence - * @enum {number} - * @property {number} FIELD_PRESENCE_UNKNOWN=0 FIELD_PRESENCE_UNKNOWN value - * @property {number} EXPLICIT=1 EXPLICIT value - * @property {number} IMPLICIT=2 IMPLICIT value - * @property {number} LEGACY_REQUIRED=3 LEGACY_REQUIRED value - */ - FeatureSet.FieldPresence = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FIELD_PRESENCE_UNKNOWN"] = 0; - values[valuesById[1] = "EXPLICIT"] = 1; - values[valuesById[2] = "IMPLICIT"] = 2; - values[valuesById[3] = "LEGACY_REQUIRED"] = 3; - return values; - })(); - - /** - * EnumType enum. - * @name google.protobuf.FeatureSet.EnumType - * @enum {number} - * @property {number} ENUM_TYPE_UNKNOWN=0 ENUM_TYPE_UNKNOWN value - * @property {number} OPEN=1 OPEN value - * @property {number} CLOSED=2 CLOSED value - */ - FeatureSet.EnumType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENUM_TYPE_UNKNOWN"] = 0; - values[valuesById[1] = "OPEN"] = 1; - values[valuesById[2] = "CLOSED"] = 2; - return values; - })(); - - /** - * RepeatedFieldEncoding enum. - * @name google.protobuf.FeatureSet.RepeatedFieldEncoding - * @enum {number} - * @property {number} REPEATED_FIELD_ENCODING_UNKNOWN=0 REPEATED_FIELD_ENCODING_UNKNOWN value - * @property {number} PACKED=1 PACKED value - * @property {number} EXPANDED=2 EXPANDED value - */ - FeatureSet.RepeatedFieldEncoding = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REPEATED_FIELD_ENCODING_UNKNOWN"] = 0; - values[valuesById[1] = "PACKED"] = 1; - values[valuesById[2] = "EXPANDED"] = 2; - return values; - })(); - - /** - * Utf8Validation enum. - * @name google.protobuf.FeatureSet.Utf8Validation - * @enum {number} - * @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value - * @property {number} VERIFY=2 VERIFY value - * @property {number} NONE=3 NONE value - */ - FeatureSet.Utf8Validation = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0; - values[valuesById[2] = "VERIFY"] = 2; - values[valuesById[3] = "NONE"] = 3; - return values; - })(); - - /** - * MessageEncoding enum. - * @name google.protobuf.FeatureSet.MessageEncoding - * @enum {number} - * @property {number} MESSAGE_ENCODING_UNKNOWN=0 MESSAGE_ENCODING_UNKNOWN value - * @property {number} LENGTH_PREFIXED=1 LENGTH_PREFIXED value - * @property {number} DELIMITED=2 DELIMITED value - */ - FeatureSet.MessageEncoding = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MESSAGE_ENCODING_UNKNOWN"] = 0; - values[valuesById[1] = "LENGTH_PREFIXED"] = 1; - values[valuesById[2] = "DELIMITED"] = 2; - return values; - })(); - - /** - * JsonFormat enum. - * @name google.protobuf.FeatureSet.JsonFormat - * @enum {number} - * @property {number} JSON_FORMAT_UNKNOWN=0 JSON_FORMAT_UNKNOWN value - * @property {number} ALLOW=1 ALLOW value - * @property {number} LEGACY_BEST_EFFORT=2 LEGACY_BEST_EFFORT value - */ - FeatureSet.JsonFormat = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JSON_FORMAT_UNKNOWN"] = 0; - values[valuesById[1] = "ALLOW"] = 1; - values[valuesById[2] = "LEGACY_BEST_EFFORT"] = 2; - return values; - })(); - - /** - * EnforceNamingStyle enum. - * @name google.protobuf.FeatureSet.EnforceNamingStyle - * @enum {number} - * @property {number} ENFORCE_NAMING_STYLE_UNKNOWN=0 ENFORCE_NAMING_STYLE_UNKNOWN value - * @property {number} STYLE2024=1 STYLE2024 value - * @property {number} STYLE_LEGACY=2 STYLE_LEGACY value - */ - FeatureSet.EnforceNamingStyle = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENFORCE_NAMING_STYLE_UNKNOWN"] = 0; - values[valuesById[1] = "STYLE2024"] = 1; - values[valuesById[2] = "STYLE_LEGACY"] = 2; - return values; - })(); - - FeatureSet.VisibilityFeature = (function() { - - /** - * Properties of a VisibilityFeature. - * @memberof google.protobuf.FeatureSet - * @interface IVisibilityFeature - */ - - /** - * Constructs a new VisibilityFeature. - * @memberof google.protobuf.FeatureSet - * @classdesc Represents a VisibilityFeature. - * @implements IVisibilityFeature - * @constructor - * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set - */ - function VisibilityFeature(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new VisibilityFeature instance using the specified properties. - * @function create - * @memberof google.protobuf.FeatureSet.VisibilityFeature - * @static - * @param {google.protobuf.FeatureSet.IVisibilityFeature=} [properties] Properties to set - * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature instance - */ - VisibilityFeature.create = function create(properties) { - return new VisibilityFeature(properties); - }; - - /** - * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FeatureSet.VisibilityFeature - * @static - * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VisibilityFeature.encode = function encode(message, writer, q) { - if (!writer) - writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - return writer; - }; - - /** - * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FeatureSet.VisibilityFeature - * @static - * @param {google.protobuf.FeatureSet.IVisibilityFeature} message VisibilityFeature message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VisibilityFeature.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VisibilityFeature message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FeatureSet.VisibilityFeature - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VisibilityFeature.decode = function decode(reader, length, error, long) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet.VisibilityFeature(); - while (reader.pos < end) { - let tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - default: - reader.skipType(tag & 7, long); - break; - } - } - return message; - }; - - /** - * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FeatureSet.VisibilityFeature - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VisibilityFeature.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VisibilityFeature message. - * @function verify - * @memberof google.protobuf.FeatureSet.VisibilityFeature - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VisibilityFeature.verify = function verify(message, long) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - return null; - }; - - /** - * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FeatureSet.VisibilityFeature - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FeatureSet.VisibilityFeature} VisibilityFeature - */ - VisibilityFeature.fromObject = function fromObject(object, long) { - if (object instanceof $root.google.protobuf.FeatureSet.VisibilityFeature) - return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); - return new $root.google.protobuf.FeatureSet.VisibilityFeature(); - }; - - /** - * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FeatureSet.VisibilityFeature - * @static - * @param {google.protobuf.FeatureSet.VisibilityFeature} message VisibilityFeature - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VisibilityFeature.toObject = function toObject() { - return {}; - }; - - /** - * Converts this VisibilityFeature to JSON. - * @function toJSON - * @memberof google.protobuf.FeatureSet.VisibilityFeature - * @instance - * @returns {Object.} JSON object - */ - VisibilityFeature.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for VisibilityFeature - * @function getTypeUrl - * @memberof google.protobuf.FeatureSet.VisibilityFeature - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - VisibilityFeature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FeatureSet.VisibilityFeature"; - }; - - /** - * DefaultSymbolVisibility enum. - * @name google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility - * @enum {number} - * @property {number} DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0 DEFAULT_SYMBOL_VISIBILITY_UNKNOWN value - * @property {number} EXPORT_ALL=1 EXPORT_ALL value - * @property {number} EXPORT_TOP_LEVEL=2 EXPORT_TOP_LEVEL value - * @property {number} LOCAL_ALL=3 LOCAL_ALL value - * @property {number} STRICT=4 STRICT value - */ - VisibilityFeature.DefaultSymbolVisibility = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0; - values[valuesById[1] = "EXPORT_ALL"] = 1; - values[valuesById[2] = "EXPORT_TOP_LEVEL"] = 2; - values[valuesById[3] = "LOCAL_ALL"] = 3; - values[valuesById[4] = "STRICT"] = 4; - return values; - })(); - - return VisibilityFeature; - })(); - - return FeatureSet; - })(); - - protobuf.FeatureSetDefaults = (function() { - - /** - * Properties of a FeatureSetDefaults. - * @memberof google.protobuf - * @interface IFeatureSetDefaults - * @property {Array.|null} [defaults] FeatureSetDefaults defaults - * @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition - * @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition - */ - - /** - * Constructs a new FeatureSetDefaults. - * @memberof google.protobuf - * @classdesc Represents a FeatureSetDefaults. - * @implements IFeatureSetDefaults - * @constructor - * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set - */ - function FeatureSetDefaults(properties) { - this.defaults = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureSetDefaults defaults. - * @member {Array.} defaults - * @memberof google.protobuf.FeatureSetDefaults - * @instance - */ - FeatureSetDefaults.prototype.defaults = $util.emptyArray; - - /** - * FeatureSetDefaults minimumEdition. - * @member {google.protobuf.Edition} minimumEdition - * @memberof google.protobuf.FeatureSetDefaults - * @instance - */ - FeatureSetDefaults.prototype.minimumEdition = 0; - - /** - * FeatureSetDefaults maximumEdition. - * @member {google.protobuf.Edition} maximumEdition - * @memberof google.protobuf.FeatureSetDefaults - * @instance - */ - FeatureSetDefaults.prototype.maximumEdition = 0; - - /** - * Creates a new FeatureSetDefaults instance using the specified properties. - * @function create - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set - * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance - */ - FeatureSetDefaults.create = function create(properties) { - return new FeatureSetDefaults(properties); - }; - - /** - * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSetDefaults.encode = function encode(message, writer, q) { - if (!writer) - writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - if (message.defaults != null && message.defaults.length) - for (let i = 0; i < message.defaults.length; ++i) - $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); - if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition); - if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition); - return writer; - }; - - /** - * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureSetDefaults message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSetDefaults.decode = function decode(reader, length, error, long) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults(); - while (reader.pos < end) { - let tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - if (!(message.defaults && message.defaults.length)) - message.defaults = []; - message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32(), undefined, long + 1)); - break; - } - case 4: { - message.minimumEdition = reader.int32(); - break; - } - case 5: { - message.maximumEdition = reader.int32(); - break; - } - default: - reader.skipType(tag & 7, long); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureSetDefaults message. - * @function verify - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureSetDefaults.verify = function verify(message, long) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.defaults != null && message.hasOwnProperty("defaults")) { - if (!Array.isArray(message.defaults)) - return "defaults: array expected"; - for (let i = 0; i < message.defaults.length; ++i) { - let error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i], long + 1); - if (error) - return "defaults." + error; - } - } - if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) - switch (message.minimumEdition) { - default: - return "minimumEdition: enum value expected"; - case 0: - case 900: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) - switch (message.maximumEdition) { - default: - return "maximumEdition: enum value expected"; - case 0: - case 900: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - return null; - }; - - /** - * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults - */ - FeatureSetDefaults.fromObject = function fromObject(object, long) { - if (object instanceof $root.google.protobuf.FeatureSetDefaults) - return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let message = new $root.google.protobuf.FeatureSetDefaults(); - if (object.defaults) { - if (!Array.isArray(object.defaults)) - throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected"); - message.defaults = []; - for (let i = 0; i < object.defaults.length; ++i) { - if (typeof object.defaults[i] !== "object") - throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected"); - message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i], long + 1); - } - } - switch (object.minimumEdition) { - default: - if (typeof object.minimumEdition === "number") { - message.minimumEdition = object.minimumEdition; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.minimumEdition = 0; - break; - case "EDITION_LEGACY": - case 900: - message.minimumEdition = 900; - break; - case "EDITION_PROTO2": - case 998: - message.minimumEdition = 998; - break; - case "EDITION_PROTO3": - case 999: - message.minimumEdition = 999; - break; - case "EDITION_2023": - case 1000: - message.minimumEdition = 1000; - break; - case "EDITION_2024": - case 1001: - message.minimumEdition = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.minimumEdition = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.minimumEdition = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.minimumEdition = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.minimumEdition = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.minimumEdition = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.minimumEdition = 2147483647; - break; - } - switch (object.maximumEdition) { - default: - if (typeof object.maximumEdition === "number") { - message.maximumEdition = object.maximumEdition; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.maximumEdition = 0; - break; - case "EDITION_LEGACY": - case 900: - message.maximumEdition = 900; - break; - case "EDITION_PROTO2": - case 998: - message.maximumEdition = 998; - break; - case "EDITION_PROTO3": - case 999: - message.maximumEdition = 999; - break; - case "EDITION_2023": - case 1000: - message.maximumEdition = 1000; - break; - case "EDITION_2024": - case 1001: - message.maximumEdition = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.maximumEdition = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.maximumEdition = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.maximumEdition = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.maximumEdition = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.maximumEdition = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.maximumEdition = 2147483647; - break; - } - return message; - }; - - /** - * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureSetDefaults.toObject = function toObject(message, options, q) { - if (!options) - options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - let object = {}; - if (options.arrays || options.defaults) - object.defaults = []; - if (options.defaults) { - object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; - object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; - } - if (message.defaults && message.defaults.length) { - object.defaults = []; - for (let j = 0; j < message.defaults.length; ++j) - object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options, q + 1); - } - if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) - object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition; - if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) - object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition; - return object; - }; - - /** - * Converts this FeatureSetDefaults to JSON. - * @function toJSON - * @memberof google.protobuf.FeatureSetDefaults - * @instance - * @returns {Object.} JSON object - */ - FeatureSetDefaults.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureSetDefaults - * @function getTypeUrl - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults"; - }; - - FeatureSetDefaults.FeatureSetEditionDefault = (function() { - - /** - * Properties of a FeatureSetEditionDefault. - * @memberof google.protobuf.FeatureSetDefaults - * @interface IFeatureSetEditionDefault - * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition - * @property {google.protobuf.IFeatureSet|null} [overridableFeatures] FeatureSetEditionDefault overridableFeatures - * @property {google.protobuf.IFeatureSet|null} [fixedFeatures] FeatureSetEditionDefault fixedFeatures - */ - - /** - * Constructs a new FeatureSetEditionDefault. - * @memberof google.protobuf.FeatureSetDefaults - * @classdesc Represents a FeatureSetEditionDefault. - * @implements IFeatureSetEditionDefault - * @constructor - * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set - */ - function FeatureSetEditionDefault(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureSetEditionDefault edition. - * @member {google.protobuf.Edition} edition - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @instance - */ - FeatureSetEditionDefault.prototype.edition = 0; - - /** - * FeatureSetEditionDefault overridableFeatures. - * @member {google.protobuf.IFeatureSet|null|undefined} overridableFeatures - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @instance - */ - FeatureSetEditionDefault.prototype.overridableFeatures = null; - - /** - * FeatureSetEditionDefault fixedFeatures. - * @member {google.protobuf.IFeatureSet|null|undefined} fixedFeatures - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @instance - */ - FeatureSetEditionDefault.prototype.fixedFeatures = null; - - /** - * Creates a new FeatureSetEditionDefault instance using the specified properties. - * @function create - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set - * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance - */ - FeatureSetEditionDefault.create = function create(properties) { - return new FeatureSetEditionDefault(properties); - }; - - /** - * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSetEditionDefault.encode = function encode(message, writer, q) { - if (!writer) - writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); - if (message.overridableFeatures != null && Object.hasOwnProperty.call(message, "overridableFeatures")) - $root.google.protobuf.FeatureSet.encode(message.overridableFeatures, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); - if (message.fixedFeatures != null && Object.hasOwnProperty.call(message, "fixedFeatures")) - $root.google.protobuf.FeatureSet.encode(message.fixedFeatures, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); - return writer; - }; - - /** - * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSetEditionDefault.decode = function decode(reader, length, error, long) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); - while (reader.pos < end) { - let tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 3: { - message.edition = reader.int32(); - break; - } - case 4: { - message.overridableFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } - case 5: { - message.fixedFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32(), undefined, long + 1); - break; - } - default: - reader.skipType(tag & 7, long); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureSetEditionDefault message. - * @function verify - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureSetEditionDefault.verify = function verify(message, long) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; - if (message.edition != null && message.hasOwnProperty("edition")) - switch (message.edition) { - default: - return "edition: enum value expected"; - case 0: - case 900: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) { - let error = $root.google.protobuf.FeatureSet.verify(message.overridableFeatures, long + 1); - if (error) - return "overridableFeatures." + error; - } - if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) { - let error = $root.google.protobuf.FeatureSet.verify(message.fixedFeatures, long + 1); - if (error) - return "fixedFeatures." + error; - } - return null; - }; - - /** - * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault - */ - FeatureSetEditionDefault.fromObject = function fromObject(object, long) { - if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault) - return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); - let message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); - switch (object.edition) { - default: - if (typeof object.edition === "number") { - message.edition = object.edition; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.edition = 0; - break; - case "EDITION_LEGACY": - case 900: - message.edition = 900; - break; - case "EDITION_PROTO2": - case 998: - message.edition = 998; - break; - case "EDITION_PROTO3": - case 999: - message.edition = 999; - break; - case "EDITION_2023": - case 1000: - message.edition = 1000; - break; - case "EDITION_2024": - case 1001: - message.edition = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.edition = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.edition = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.edition = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.edition = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.edition = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.edition = 2147483647; - break; - } - if (object.overridableFeatures != null) { - if (typeof object.overridableFeatures !== "object") - throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridableFeatures: object expected"); - message.overridableFeatures = $root.google.protobuf.FeatureSet.fromObject(object.overridableFeatures, long + 1); - } - if (object.fixedFeatures != null) { - if (typeof object.fixedFeatures !== "object") - throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixedFeatures: object expected"); - message.fixedFeatures = $root.google.protobuf.FeatureSet.fromObject(object.fixedFeatures, long + 1); - } - return message; - }; - - /** - * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureSetEditionDefault.toObject = function toObject(message, options, q) { - if (!options) - options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); - let object = {}; - if (options.defaults) { - object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; - object.overridableFeatures = null; - object.fixedFeatures = null; - } - if (message.edition != null && message.hasOwnProperty("edition")) - object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; - if (message.overridableFeatures != null && message.hasOwnProperty("overridableFeatures")) - object.overridableFeatures = $root.google.protobuf.FeatureSet.toObject(message.overridableFeatures, options, q + 1); - if (message.fixedFeatures != null && message.hasOwnProperty("fixedFeatures")) - object.fixedFeatures = $root.google.protobuf.FeatureSet.toObject(message.fixedFeatures, options, q + 1); - return object; - }; - - /** - * Converts this FeatureSetEditionDefault to JSON. - * @function toJSON - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @instance - * @returns {Object.} JSON object - */ - FeatureSetEditionDefault.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureSetEditionDefault - * @function getTypeUrl - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"; - }; - - return FeatureSetEditionDefault; - })(); - - return FeatureSetDefaults; - })(); - protobuf.SourceCodeInfo = (function() { /** @@ -295700,7 +272428,7 @@ export const google = $root.google = (() => { this.location = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -295733,16 +272461,12 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encode = function encode(message, writer, q) { + SourceCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.location != null && message.location.length) for (let i = 0; i < message.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -295770,27 +272494,21 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decode = function decode(reader, length, error, long) { + SourceCodeInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.location && message.location.length)) message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32(), undefined, long + 1)); + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -295821,18 +272539,14 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceCodeInfo.verify = function verify(message, long) { + SourceCodeInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.location != null && message.hasOwnProperty("location")) { if (!Array.isArray(message.location)) return "location: array expected"; for (let i = 0; i < message.location.length; ++i) { - let error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i], long + 1); + let error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); if (error) return "location." + error; } @@ -295848,13 +272562,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo */ - SourceCodeInfo.fromObject = function fromObject(object, long) { + SourceCodeInfo.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.SourceCodeInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.SourceCodeInfo(); if (object.location) { if (!Array.isArray(object.location)) @@ -295863,7 +272573,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.location.length; ++i) { if (typeof object.location[i] !== "object") throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); - message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i], long + 1); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); } } return message; @@ -295878,20 +272588,16 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceCodeInfo.toObject = function toObject(message, options, q) { + SourceCodeInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.location = []; if (message.location && message.location.length) { object.location = []; for (let j = 0; j < message.location.length; ++j) - object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options, q + 1); + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); } return object; }; @@ -295949,7 +272655,7 @@ export const google = $root.google = (() => { this.leadingDetachedComments = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -296014,13 +272720,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Location.encode = function encode(message, writer, q) { + Location.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.path != null && message.path.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.path.length; ++i) @@ -296067,18 +272769,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Location.decode = function decode(reader, length, error, long) { + Location.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.path && message.path.length)) @@ -296117,7 +272813,7 @@ export const google = $root.google = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -296148,13 +272844,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Location.verify = function verify(message, long) { + Location.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.path != null && message.hasOwnProperty("path")) { if (!Array.isArray(message.path)) return "path: array expected"; @@ -296193,13 +272885,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.SourceCodeInfo.Location} Location */ - Location.fromObject = function fromObject(object, long) { + Location.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.SourceCodeInfo.Location(); if (object.path) { if (!Array.isArray(object.path)) @@ -296238,13 +272926,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Location.toObject = function toObject(message, options, q) { + Location.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.path = []; @@ -296330,7 +273014,7 @@ export const google = $root.google = (() => { this.annotation = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -296363,16 +273047,12 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encode = function encode(message, writer, q) { + GeneratedCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.annotation != null && message.annotation.length) for (let i = 0; i < message.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -296400,27 +273080,21 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decode = function decode(reader, length, error, long) { + GeneratedCodeInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.annotation && message.annotation.length)) message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32(), undefined, long + 1)); + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -296451,18 +273125,14 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GeneratedCodeInfo.verify = function verify(message, long) { + GeneratedCodeInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.annotation != null && message.hasOwnProperty("annotation")) { if (!Array.isArray(message.annotation)) return "annotation: array expected"; for (let i = 0; i < message.annotation.length; ++i) { - let error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i], long + 1); + let error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); if (error) return "annotation." + error; } @@ -296478,13 +273148,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo */ - GeneratedCodeInfo.fromObject = function fromObject(object, long) { + GeneratedCodeInfo.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.GeneratedCodeInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.GeneratedCodeInfo(); if (object.annotation) { if (!Array.isArray(object.annotation)) @@ -296493,7 +273159,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.annotation.length; ++i) { if (typeof object.annotation[i] !== "object") throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); - message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i], long + 1); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); } } return message; @@ -296508,20 +273174,16 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GeneratedCodeInfo.toObject = function toObject(message, options, q) { + GeneratedCodeInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.annotation = []; if (message.annotation && message.annotation.length) { object.annotation = []; for (let j = 0; j < message.annotation.length; ++j) - object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options, q + 1); + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); } return object; }; @@ -296562,7 +273224,6 @@ export const google = $root.google = (() => { * @property {string|null} [sourceFile] Annotation sourceFile * @property {number|null} [begin] Annotation begin * @property {number|null} [end] Annotation end - * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic */ /** @@ -296577,7 +273238,7 @@ export const google = $root.google = (() => { this.path = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -296613,14 +273274,6 @@ export const google = $root.google = (() => { */ Annotation.prototype.end = 0; - /** - * Annotation semantic. - * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.semantic = 0; - /** * Creates a new Annotation instance using the specified properties. * @function create @@ -296642,13 +273295,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Annotation.encode = function encode(message, writer, q) { + Annotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.path != null && message.path.length) { writer.uint32(/* id 1, wireType 2 =*/10).fork(); for (let i = 0; i < message.path.length; ++i) @@ -296661,8 +273310,6 @@ export const google = $root.google = (() => { writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); - if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); return writer; }; @@ -296690,18 +273337,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Annotation.decode = function decode(reader, length, error, long) { + Annotation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.path && message.path.length)) @@ -296726,12 +273367,8 @@ export const google = $root.google = (() => { message.end = reader.int32(); break; } - case 5: { - message.semantic = reader.int32(); - break; - } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -296762,13 +273399,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Annotation.verify = function verify(message, long) { + Annotation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.path != null && message.hasOwnProperty("path")) { if (!Array.isArray(message.path)) return "path: array expected"; @@ -296785,15 +273418,6 @@ export const google = $root.google = (() => { if (message.end != null && message.hasOwnProperty("end")) if (!$util.isInteger(message.end)) return "end: integer expected"; - if (message.semantic != null && message.hasOwnProperty("semantic")) - switch (message.semantic) { - default: - return "semantic: enum value expected"; - case 0: - case 1: - case 2: - break; - } return null; }; @@ -296805,13 +273429,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation */ - Annotation.fromObject = function fromObject(object, long) { + Annotation.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); if (object.path) { if (!Array.isArray(object.path)) @@ -296826,26 +273446,6 @@ export const google = $root.google = (() => { message.begin = object.begin | 0; if (object.end != null) message.end = object.end | 0; - switch (object.semantic) { - default: - if (typeof object.semantic === "number") { - message.semantic = object.semantic; - break; - } - break; - case "NONE": - case 0: - message.semantic = 0; - break; - case "SET": - case 1: - message.semantic = 1; - break; - case "ALIAS": - case 2: - message.semantic = 2; - break; - } return message; }; @@ -296858,13 +273458,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Annotation.toObject = function toObject(message, options, q) { + Annotation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.path = []; @@ -296872,7 +273468,6 @@ export const google = $root.google = (() => { object.sourceFile = ""; object.begin = 0; object.end = 0; - object.semantic = options.enums === String ? "NONE" : 0; } if (message.path && message.path.length) { object.path = []; @@ -296885,8 +273480,6 @@ export const google = $root.google = (() => { object.begin = message.begin; if (message.end != null && message.hasOwnProperty("end")) object.end = message.end; - if (message.semantic != null && message.hasOwnProperty("semantic")) - object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; return object; }; @@ -296916,44 +273509,12 @@ export const google = $root.google = (() => { return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; }; - /** - * Semantic enum. - * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic - * @enum {number} - * @property {number} NONE=0 NONE value - * @property {number} SET=1 SET value - * @property {number} ALIAS=2 ALIAS value - */ - Annotation.Semantic = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[1] = "SET"] = 1; - values[valuesById[2] = "ALIAS"] = 2; - return values; - })(); - return Annotation; })(); return GeneratedCodeInfo; })(); - /** - * SymbolVisibility enum. - * @name google.protobuf.SymbolVisibility - * @enum {number} - * @property {number} VISIBILITY_UNSET=0 VISIBILITY_UNSET value - * @property {number} VISIBILITY_LOCAL=1 VISIBILITY_LOCAL value - * @property {number} VISIBILITY_EXPORT=2 VISIBILITY_EXPORT value - */ - protobuf.SymbolVisibility = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VISIBILITY_UNSET"] = 0; - values[valuesById[1] = "VISIBILITY_LOCAL"] = 1; - values[valuesById[2] = "VISIBILITY_EXPORT"] = 2; - return values; - })(); - protobuf.Struct = (function() { /** @@ -296975,7 +273536,7 @@ export const google = $root.google = (() => { this.fields = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -297008,17 +273569,13 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Struct.encode = function encode(message, writer, q) { + Struct.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) for (let keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim().ldelim(); + $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } return writer; }; @@ -297047,18 +273604,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Struct.decode = function decode(reader, length, error, long) { + Struct.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value; while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (message.fields === $util.emptyObject) @@ -297073,20 +273624,18 @@ export const google = $root.google = (() => { key = reader.string(); break; case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32(), undefined, long + 1); + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; default: - reader.skipType(tag2 & 7, long); + reader.skipType(tag2 & 7); break; } } - if (key === "__proto__") - $util.makeProp(message.fields, key); message.fields[key] = value; break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -297117,19 +273666,15 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Struct.verify = function verify(message, long) { + Struct.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.fields != null && message.hasOwnProperty("fields")) { if (!$util.isObject(message.fields)) return "fields: object expected"; let key = Object.keys(message.fields); for (let i = 0; i < key.length; ++i) { - let error = $root.google.protobuf.Value.verify(message.fields[key[i]], long + 1); + let error = $root.google.protobuf.Value.verify(message.fields[key[i]]); if (error) return "fields." + error; } @@ -297145,24 +273690,18 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.Struct} Struct */ - Struct.fromObject = function fromObject(object, long) { + Struct.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.Struct) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.Struct(); if (object.fields) { if (typeof object.fields !== "object") throw TypeError(".google.protobuf.Struct.fields: object expected"); message.fields = {}; for (let keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) { - if (keys[i] === "__proto__") - $util.makeProp(message.fields, keys[i]); if (typeof object.fields[keys[i]] !== "object") throw TypeError(".google.protobuf.Struct.fields: object expected"); - message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]], long + 1); + message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]); } } return message; @@ -297177,24 +273716,17 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Struct.toObject = function toObject(message, options, q) { + Struct.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.objects || options.defaults) object.fields = {}; let keys2; if (message.fields && (keys2 = Object.keys(message.fields)).length) { object.fields = {}; - for (let j = 0; j < keys2.length; ++j) { - if (keys2[j] === "__proto__") - $util.makeProp(object.fields, keys2[j]); - object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options, q + 1); - } + for (let j = 0; j < keys2.length; ++j) + object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options); } return object; }; @@ -297253,7 +273785,7 @@ export const google = $root.google = (() => { function Value(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -297340,13 +273872,9 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encode = function encode(message, writer, q) { + Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue")) @@ -297356,9 +273884,9 @@ export const google = $root.google = (() => { if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue")) - $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue")) - $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -297386,18 +273914,12 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Value.decode = function decode(reader, length, error, long) { + Value.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.nullValue = reader.int32(); @@ -297416,15 +273938,15 @@ export const google = $root.google = (() => { break; } case 5: { - message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32(), undefined, long + 1); + message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } case 6: { - message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32(), undefined, long + 1); + message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -297455,13 +273977,9 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Value.verify = function verify(message, long) { + Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.nullValue != null && message.hasOwnProperty("nullValue")) { properties.kind = 1; @@ -297498,7 +274016,7 @@ export const google = $root.google = (() => { return "kind: multiple values"; properties.kind = 1; { - let error = $root.google.protobuf.Struct.verify(message.structValue, long + 1); + let error = $root.google.protobuf.Struct.verify(message.structValue); if (error) return "structValue." + error; } @@ -297508,7 +274026,7 @@ export const google = $root.google = (() => { return "kind: multiple values"; properties.kind = 1; { - let error = $root.google.protobuf.ListValue.verify(message.listValue, long + 1); + let error = $root.google.protobuf.ListValue.verify(message.listValue); if (error) return "listValue." + error; } @@ -297524,13 +274042,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.Value} Value */ - Value.fromObject = function fromObject(object, long) { + Value.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.Value) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.Value(); switch (object.nullValue) { default: @@ -297553,12 +274067,12 @@ export const google = $root.google = (() => { if (object.structValue != null) { if (typeof object.structValue !== "object") throw TypeError(".google.protobuf.Value.structValue: object expected"); - message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue, long + 1); + message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue); } if (object.listValue != null) { if (typeof object.listValue !== "object") throw TypeError(".google.protobuf.Value.listValue: object expected"); - message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue, long + 1); + message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue); } return message; }; @@ -297572,13 +274086,9 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Value.toObject = function toObject(message, options, q) { + Value.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (message.nullValue != null && message.hasOwnProperty("nullValue")) { object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] === undefined ? message.nullValue : $root.google.protobuf.NullValue[message.nullValue] : message.nullValue; @@ -297601,12 +274111,12 @@ export const google = $root.google = (() => { object.kind = "boolValue"; } if (message.structValue != null && message.hasOwnProperty("structValue")) { - object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options, q + 1); + object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options); if (options.oneofs) object.kind = "structValue"; } if (message.listValue != null && message.hasOwnProperty("listValue")) { - object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options, q + 1); + object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options); if (options.oneofs) object.kind = "listValue"; } @@ -297675,7 +274185,7 @@ export const google = $root.google = (() => { this.values = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -297708,16 +274218,12 @@ export const google = $root.google = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListValue.encode = function encode(message, writer, q) { + ListValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.values != null && message.values.length) for (let i = 0; i < message.values.length; ++i) - $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -297745,27 +274251,21 @@ export const google = $root.google = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListValue.decode = function decode(reader, length, error, long) { + ListValue.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.values && message.values.length)) message.values = []; - message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32(), undefined, long + 1)); + message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -297796,18 +274296,14 @@ export const google = $root.google = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListValue.verify = function verify(message, long) { + ListValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.values != null && message.hasOwnProperty("values")) { if (!Array.isArray(message.values)) return "values: array expected"; for (let i = 0; i < message.values.length; ++i) { - let error = $root.google.protobuf.Value.verify(message.values[i], long + 1); + let error = $root.google.protobuf.Value.verify(message.values[i]); if (error) return "values." + error; } @@ -297823,13 +274319,9 @@ export const google = $root.google = (() => { * @param {Object.} object Plain object * @returns {google.protobuf.ListValue} ListValue */ - ListValue.fromObject = function fromObject(object, long) { + ListValue.fromObject = function fromObject(object) { if (object instanceof $root.google.protobuf.ListValue) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.google.protobuf.ListValue(); if (object.values) { if (!Array.isArray(object.values)) @@ -297838,7 +274330,7 @@ export const google = $root.google = (() => { for (let i = 0; i < object.values.length; ++i) { if (typeof object.values[i] !== "object") throw TypeError(".google.protobuf.ListValue.values: object expected"); - message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i], long + 1); + message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]); } } return message; @@ -297853,20 +274345,16 @@ export const google = $root.google = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListValue.toObject = function toObject(message, options, q) { + ListValue.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.values = []; if (message.values && message.values.length) { object.values = []; for (let j = 0; j < message.values.length; ++j) - object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options, q + 1); + object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options); } return object; }; @@ -297967,7 +274455,7 @@ export const Router = $root.Router = (() => { function RouterResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -298016,13 +274504,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterResponse.encode = function encode(message, writer, q) { + RouterResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.responseCode != null && Object.hasOwnProperty.call(message, "responseCode")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.responseCode); if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) @@ -298056,18 +274540,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterResponse.decode = function decode(reader, length, error, long) { + RouterResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.responseCode = reader.int32(); @@ -298082,7 +274560,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -298113,13 +274591,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterResponse.verify = function verify(message, long) { + RouterResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.responseCode != null && message.hasOwnProperty("responseCode")) switch (message.responseCode) { default: @@ -298153,13 +274627,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterResponse} RouterResponse */ - RouterResponse.fromObject = function fromObject(object, long) { + RouterResponse.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterResponse(); switch (object.responseCode) { default: @@ -298228,13 +274698,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterResponse.toObject = function toObject(message, options, q) { + RouterResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.responseCode = options.enums === String ? "RRC_OK" : 0; @@ -298310,7 +274776,7 @@ export const Router = $root.Router = (() => { function RouterControllerMessage(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -298383,13 +274849,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterControllerMessage.encode = function encode(message, writer, q) { + RouterControllerMessage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); if (message.messageUid != null && Object.hasOwnProperty.call(message, "messageUid")) @@ -298429,18 +274891,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterControllerMessage.decode = function decode(reader, length, error, long) { + RouterControllerMessage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterControllerMessage(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.messageType = reader.int32(); @@ -298467,7 +274923,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -298498,13 +274954,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterControllerMessage.verify = function verify(message, long) { + RouterControllerMessage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.messageType != null && message.hasOwnProperty("messageType")) switch (message.messageType) { default: @@ -298546,13 +274998,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterControllerMessage} RouterControllerMessage */ - RouterControllerMessage.fromObject = function fromObject(object, long) { + RouterControllerMessage.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterControllerMessage) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterControllerMessage(); switch (object.messageType) { default: @@ -298629,13 +275077,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterControllerMessage.toObject = function toObject(message, options, q) { + RouterControllerMessage.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.messageType = options.enums === String ? "CMT_GENERAL" : 0; @@ -298738,7 +275182,7 @@ export const Router = $root.Router = (() => { function RouterUserAuth(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -298859,13 +275303,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterUserAuth.encode = function encode(message, writer, q) { + RouterUserAuth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) @@ -298917,18 +275357,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterUserAuth.decode = function decode(reader, length, error, long) { + RouterUserAuth.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterUserAuth(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.transmissionKey = reader.bytes(); @@ -298979,7 +275413,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -299010,13 +275444,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterUserAuth.verify = function verify(message, long) { + RouterUserAuth.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) if (!(message.transmissionKey && typeof message.transmissionKey.length === "number" || $util.isString(message.transmissionKey))) return "transmissionKey: buffer expected"; @@ -299064,13 +275494,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterUserAuth} RouterUserAuth */ - RouterUserAuth.fromObject = function fromObject(object, long) { + RouterUserAuth.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterUserAuth) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterUserAuth(); if (object.transmissionKey != null) if (typeof object.transmissionKey === "string") @@ -299086,7 +275512,7 @@ export const Router = $root.Router = (() => { message.userId = object.userId | 0; if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -299124,13 +275550,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterUserAuth.toObject = function toObject(message, options, q) { + RouterUserAuth.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -299150,9 +275572,9 @@ export const Router = $root.Router = (() => { object.userId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; object.deviceName = ""; if (options.bytes === String) object.deviceToken = ""; @@ -299175,9 +275597,7 @@ export const Router = $root.Router = (() => { if (message.userId != null && message.hasOwnProperty("userId")) object.userId = message.userId; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -299261,7 +275681,7 @@ export const Router = $root.Router = (() => { function RouterDeviceAuth(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -299390,13 +275810,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterDeviceAuth.encode = function encode(message, writer, q) { + RouterDeviceAuth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) @@ -299450,18 +275866,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterDeviceAuth.decode = function decode(reader, length, error, long) { + RouterDeviceAuth.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterDeviceAuth(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.clientId = reader.string(); @@ -299516,7 +275926,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -299547,13 +275957,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterDeviceAuth.verify = function verify(message, long) { + RouterDeviceAuth.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.clientId != null && message.hasOwnProperty("clientId")) if (!$util.isString(message.clientId)) return "clientId: string expected"; @@ -299604,13 +276010,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterDeviceAuth} RouterDeviceAuth */ - RouterDeviceAuth.fromObject = function fromObject(object, long) { + RouterDeviceAuth.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterDeviceAuth) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterDeviceAuth(); if (object.clientId != null) message.clientId = String(object.clientId); @@ -299625,7 +276027,7 @@ export const Router = $root.Router = (() => { message.enterpriseId = object.enterpriseId | 0; if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -299666,13 +276068,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterDeviceAuth.toObject = function toObject(message, options, q) { + RouterDeviceAuth.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.clientId = ""; @@ -299687,9 +276085,9 @@ export const Router = $root.Router = (() => { object.enterpriseId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; object.deviceName = ""; if (options.bytes === String) object.deviceToken = ""; @@ -299720,9 +276118,7 @@ export const Router = $root.Router = (() => { if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) object.enterpriseId = message.enterpriseId; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -299798,7 +276194,7 @@ export const Router = $root.Router = (() => { function RouterRecordRotation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -299863,13 +276259,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotation.encode = function encode(message, writer, q) { + RouterRecordRotation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) @@ -299907,18 +276299,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterRecordRotation.decode = function decode(reader, length, error, long) { + RouterRecordRotation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -299941,7 +276327,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -299972,13 +276358,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterRecordRotation.verify = function verify(message, long) { + RouterRecordRotation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -300005,13 +276387,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterRecordRotation} RouterRecordRotation */ - RouterRecordRotation.fromObject = function fromObject(object, long) { + RouterRecordRotation.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterRecordRotation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterRecordRotation(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -300047,13 +276425,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRecordRotation.toObject = function toObject(message, options, q) { + RouterRecordRotation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -300150,7 +276524,7 @@ export const Router = $root.Router = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -300191,13 +276565,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotationsRequest.encode = function encode(message, writer, q) { + RouterRecordRotationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); if (message.records != null && message.records.length) @@ -300230,18 +276600,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterRecordRotationsRequest.decode = function decode(reader, length, error, long) { + RouterRecordRotationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotationsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseId = reader.int32(); @@ -300254,7 +276618,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -300285,13 +276649,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterRecordRotationsRequest.verify = function verify(message, long) { + RouterRecordRotationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) if (!$util.isInteger(message.enterpriseId)) return "enterpriseId: integer expected"; @@ -300313,13 +276673,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterRecordRotationsRequest} RouterRecordRotationsRequest */ - RouterRecordRotationsRequest.fromObject = function fromObject(object, long) { + RouterRecordRotationsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterRecordRotationsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterRecordRotationsRequest(); if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; @@ -300345,13 +276701,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRecordRotationsRequest.toObject = function toObject(message, options, q) { + RouterRecordRotationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.records = []; @@ -300418,7 +276770,7 @@ export const Router = $root.Router = (() => { this.rotations = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -300459,16 +276811,12 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotationsResponse.encode = function encode(message, writer, q) { + RouterRecordRotationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.rotations != null && message.rotations.length) for (let i = 0; i < message.rotations.length; ++i) - $root.Router.RouterRecordRotation.encode(message.rotations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Router.RouterRecordRotation.encode(message.rotations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasMore); return writer; @@ -300498,23 +276846,17 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterRecordRotationsResponse.decode = function decode(reader, length, error, long) { + RouterRecordRotationsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotationsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.rotations && message.rotations.length)) message.rotations = []; - message.rotations.push($root.Router.RouterRecordRotation.decode(reader, reader.uint32(), undefined, long + 1)); + message.rotations.push($root.Router.RouterRecordRotation.decode(reader, reader.uint32())); break; } case 2: { @@ -300522,7 +276864,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -300553,18 +276895,14 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterRecordRotationsResponse.verify = function verify(message, long) { + RouterRecordRotationsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.rotations != null && message.hasOwnProperty("rotations")) { if (!Array.isArray(message.rotations)) return "rotations: array expected"; for (let i = 0; i < message.rotations.length; ++i) { - let error = $root.Router.RouterRecordRotation.verify(message.rotations[i], long + 1); + let error = $root.Router.RouterRecordRotation.verify(message.rotations[i]); if (error) return "rotations." + error; } @@ -300583,13 +276921,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterRecordRotationsResponse} RouterRecordRotationsResponse */ - RouterRecordRotationsResponse.fromObject = function fromObject(object, long) { + RouterRecordRotationsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterRecordRotationsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterRecordRotationsResponse(); if (object.rotations) { if (!Array.isArray(object.rotations)) @@ -300598,7 +276932,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.rotations.length; ++i) { if (typeof object.rotations[i] !== "object") throw TypeError(".Router.RouterRecordRotationsResponse.rotations: object expected"); - message.rotations[i] = $root.Router.RouterRecordRotation.fromObject(object.rotations[i], long + 1); + message.rotations[i] = $root.Router.RouterRecordRotation.fromObject(object.rotations[i]); } } if (object.hasMore != null) @@ -300615,13 +276949,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRecordRotationsResponse.toObject = function toObject(message, options, q) { + RouterRecordRotationsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.rotations = []; @@ -300630,7 +276960,7 @@ export const Router = $root.Router = (() => { if (message.rotations && message.rotations.length) { object.rotations = []; for (let j = 0; j < message.rotations.length; ++j) - object.rotations[j] = $root.Router.RouterRecordRotation.toObject(message.rotations[j], options, q + 1); + object.rotations[j] = $root.Router.RouterRecordRotation.toObject(message.rotations[j], options); } if (message.hasMore != null && message.hasOwnProperty("hasMore")) object.hasMore = message.hasMore; @@ -300712,7 +277042,7 @@ export const Router = $root.Router = (() => { function RouterRotationInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -300809,13 +277139,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRotationInfo.encode = function encode(message, writer, q) { + RouterRotationInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status); if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) @@ -300861,18 +277187,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterRotationInfo.decode = function decode(reader, length, error, long) { + RouterRotationInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRotationInfo(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.status = reader.int32(); @@ -300911,7 +277231,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -300942,13 +277262,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterRotationInfo.verify = function verify(message, long) { + RouterRotationInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.status != null && message.hasOwnProperty("status")) switch (message.status) { default: @@ -300994,13 +277310,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterRotationInfo} RouterRotationInfo */ - RouterRotationInfo.fromObject = function fromObject(object, long) { + RouterRotationInfo.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterRotationInfo) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterRotationInfo(); switch (object.status) { default: @@ -301038,7 +277350,7 @@ export const Router = $root.Router = (() => { message.resourceUid = object.resourceUid; if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -301070,13 +277382,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRotationInfo.toObject = function toObject(message, options, q) { + RouterRotationInfo.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.status = options.enums === String ? "RRS_ONLINE" : 0; @@ -301096,9 +277404,9 @@ export const Router = $root.Router = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if (options.bytes === String) object.controllerUid = ""; else { @@ -301118,9 +277426,7 @@ export const Router = $root.Router = (() => { if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) object.resourceUid = options.bytes === String ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUid) : message.resourceUid; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -301197,7 +277503,7 @@ export const Router = $root.Router = (() => { function RouterRecordRotationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -301300,7 +277606,12 @@ export const Router = $root.Router = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * RouterRecordRotationRequest _saasConfiguration. + * @member {"saasConfiguration"|undefined} _saasConfiguration + * @memberof Router.RouterRecordRotationRequest + * @instance + */ Object.defineProperty(RouterRecordRotationRequest.prototype, "_saasConfiguration", { get: $util.oneOfGetter($oneOfFields = ["saasConfiguration"]), set: $util.oneOfSetter($oneOfFields) @@ -301327,13 +277638,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordRotationRequest.encode = function encode(message, writer, q) { + RouterRecordRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) @@ -301385,18 +277692,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterRecordRotationRequest.decode = function decode(reader, length, error, long) { + RouterRecordRotationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordRotationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -301447,7 +277748,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -301478,13 +277779,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterRecordRotationRequest.verify = function verify(message, long) { + RouterRecordRotationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) @@ -301535,13 +277832,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterRecordRotationRequest} RouterRecordRotationRequest */ - RouterRecordRotationRequest.fromObject = function fromObject(object, long) { + RouterRecordRotationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterRecordRotationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterRecordRotationRequest(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -301550,7 +277843,7 @@ export const Router = $root.Router = (() => { message.recordUid = object.recordUid; if (object.revision != null) if ($util.Long) - message.revision = $util.Long.fromValue(object.revision, false); + (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; else if (typeof object.revision === "string") message.revision = parseInt(object.revision, 10); else if (typeof object.revision === "number") @@ -301571,7 +277864,7 @@ export const Router = $root.Router = (() => { message.schedule = String(object.schedule); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -301608,13 +277901,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRecordRotationRequest.toObject = function toObject(message, options, q) { + RouterRecordRotationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -301626,9 +277915,9 @@ export const Router = $root.Router = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.revision = options.longs === String ? "0" : 0; if (options.bytes === String) object.configurationUid = ""; else { @@ -301646,9 +277935,9 @@ export const Router = $root.Router = (() => { object.schedule = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (options.bytes === String) object.pwdComplexity = ""; else { @@ -301664,9 +277953,7 @@ export const Router = $root.Router = (() => { if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.revision = typeof message.revision === "number" ? BigInt(message.revision) : $util.Long.fromBits(message.revision.low >>> 0, message.revision.high >>> 0, false).toBigInt(); - else if (typeof message.revision === "number") + if (typeof message.revision === "number") object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; @@ -301677,9 +277964,7 @@ export const Router = $root.Router = (() => { if (message.schedule != null && message.hasOwnProperty("schedule")) object.schedule = message.schedule; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -301751,7 +278036,7 @@ export const Router = $root.Router = (() => { function UserRecordAccessRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -301792,13 +278077,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessRequest.encode = function encode(message, writer, q) { + UserRecordAccessRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -301830,18 +278111,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserRecordAccessRequest.decode = function decode(reader, length, error, long) { + UserRecordAccessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -301852,7 +278127,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -301883,13 +278158,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserRecordAccessRequest.verify = function verify(message, long) { + UserRecordAccessRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -301907,13 +278178,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.UserRecordAccessRequest} UserRecordAccessRequest */ - UserRecordAccessRequest.fromObject = function fromObject(object, long) { + UserRecordAccessRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.UserRecordAccessRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.UserRecordAccessRequest(); if (object.userId != null) message.userId = object.userId | 0; @@ -301934,13 +278201,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRecordAccessRequest.toObject = function toObject(message, options, q) { + UserRecordAccessRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -302031,7 +278294,7 @@ export const Router = $root.Router = (() => { function UserRecordAccessResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -302072,13 +278335,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessResponse.encode = function encode(message, writer, q) { + UserRecordAccessResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.accessLevel != null && Object.hasOwnProperty.call(message, "accessLevel")) @@ -302110,18 +278369,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserRecordAccessResponse.decode = function decode(reader, length, error, long) { + UserRecordAccessResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -302132,7 +278385,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -302163,13 +278416,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserRecordAccessResponse.verify = function verify(message, long) { + UserRecordAccessResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -302196,13 +278445,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.UserRecordAccessResponse} UserRecordAccessResponse */ - UserRecordAccessResponse.fromObject = function fromObject(object, long) { + UserRecordAccessResponse.fromObject = function fromObject(object) { if (object instanceof $root.Router.UserRecordAccessResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.UserRecordAccessResponse(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -302253,13 +278498,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRecordAccessResponse.toObject = function toObject(message, options, q) { + UserRecordAccessResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -302328,7 +278569,7 @@ export const Router = $root.Router = (() => { this.requests = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -302361,16 +278602,12 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessRequests.encode = function encode(message, writer, q) { + UserRecordAccessRequests.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.requests != null && message.requests.length) for (let i = 0; i < message.requests.length; ++i) - $root.Router.UserRecordAccessRequest.encode(message.requests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Router.UserRecordAccessRequest.encode(message.requests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -302398,27 +278635,21 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserRecordAccessRequests.decode = function decode(reader, length, error, long) { + UserRecordAccessRequests.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessRequests(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.requests && message.requests.length)) message.requests = []; - message.requests.push($root.Router.UserRecordAccessRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.requests.push($root.Router.UserRecordAccessRequest.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -302449,18 +278680,14 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserRecordAccessRequests.verify = function verify(message, long) { + UserRecordAccessRequests.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.requests != null && message.hasOwnProperty("requests")) { if (!Array.isArray(message.requests)) return "requests: array expected"; for (let i = 0; i < message.requests.length; ++i) { - let error = $root.Router.UserRecordAccessRequest.verify(message.requests[i], long + 1); + let error = $root.Router.UserRecordAccessRequest.verify(message.requests[i]); if (error) return "requests." + error; } @@ -302476,13 +278703,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.UserRecordAccessRequests} UserRecordAccessRequests */ - UserRecordAccessRequests.fromObject = function fromObject(object, long) { + UserRecordAccessRequests.fromObject = function fromObject(object) { if (object instanceof $root.Router.UserRecordAccessRequests) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.UserRecordAccessRequests(); if (object.requests) { if (!Array.isArray(object.requests)) @@ -302491,7 +278714,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.requests.length; ++i) { if (typeof object.requests[i] !== "object") throw TypeError(".Router.UserRecordAccessRequests.requests: object expected"); - message.requests[i] = $root.Router.UserRecordAccessRequest.fromObject(object.requests[i], long + 1); + message.requests[i] = $root.Router.UserRecordAccessRequest.fromObject(object.requests[i]); } } return message; @@ -302506,20 +278729,16 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRecordAccessRequests.toObject = function toObject(message, options, q) { + UserRecordAccessRequests.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.requests = []; if (message.requests && message.requests.length) { object.requests = []; for (let j = 0; j < message.requests.length; ++j) - object.requests[j] = $root.Router.UserRecordAccessRequest.toObject(message.requests[j], options, q + 1); + object.requests[j] = $root.Router.UserRecordAccessRequest.toObject(message.requests[j], options); } return object; }; @@ -302574,7 +278793,7 @@ export const Router = $root.Router = (() => { this.responses = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -302607,16 +278826,12 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserRecordAccessResponses.encode = function encode(message, writer, q) { + UserRecordAccessResponses.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.responses != null && message.responses.length) for (let i = 0; i < message.responses.length; ++i) - $root.Router.UserRecordAccessResponse.encode(message.responses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Router.UserRecordAccessResponse.encode(message.responses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -302644,27 +278859,21 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserRecordAccessResponses.decode = function decode(reader, length, error, long) { + UserRecordAccessResponses.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserRecordAccessResponses(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.responses && message.responses.length)) message.responses = []; - message.responses.push($root.Router.UserRecordAccessResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.responses.push($root.Router.UserRecordAccessResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -302695,18 +278904,14 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserRecordAccessResponses.verify = function verify(message, long) { + UserRecordAccessResponses.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.responses != null && message.hasOwnProperty("responses")) { if (!Array.isArray(message.responses)) return "responses: array expected"; for (let i = 0; i < message.responses.length; ++i) { - let error = $root.Router.UserRecordAccessResponse.verify(message.responses[i], long + 1); + let error = $root.Router.UserRecordAccessResponse.verify(message.responses[i]); if (error) return "responses." + error; } @@ -302722,13 +278927,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.UserRecordAccessResponses} UserRecordAccessResponses */ - UserRecordAccessResponses.fromObject = function fromObject(object, long) { + UserRecordAccessResponses.fromObject = function fromObject(object) { if (object instanceof $root.Router.UserRecordAccessResponses) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.UserRecordAccessResponses(); if (object.responses) { if (!Array.isArray(object.responses)) @@ -302737,7 +278938,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.responses.length; ++i) { if (typeof object.responses[i] !== "object") throw TypeError(".Router.UserRecordAccessResponses.responses: object expected"); - message.responses[i] = $root.Router.UserRecordAccessResponse.fromObject(object.responses[i], long + 1); + message.responses[i] = $root.Router.UserRecordAccessResponse.fromObject(object.responses[i]); } } return message; @@ -302752,20 +278953,16 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserRecordAccessResponses.toObject = function toObject(message, options, q) { + UserRecordAccessResponses.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.responses = []; if (message.responses && message.responses.length) { object.responses = []; for (let j = 0; j < message.responses.length; ++j) - object.responses[j] = $root.Router.UserRecordAccessResponse.toObject(message.responses[j], options, q + 1); + object.responses[j] = $root.Router.UserRecordAccessResponse.toObject(message.responses[j], options); } return object; }; @@ -302821,7 +279018,7 @@ export const Router = $root.Router = (() => { this.sharedFolderUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -302862,13 +279059,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserSharedFolderAccessRequest.encode = function encode(message, writer, q) { + UserSharedFolderAccessRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.sharedFolderUid != null && message.sharedFolderUid.length) @@ -302901,18 +279094,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserSharedFolderAccessRequest.decode = function decode(reader, length, error, long) { + UserSharedFolderAccessRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserSharedFolderAccessRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -302925,7 +279112,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -302956,13 +279143,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserSharedFolderAccessRequest.verify = function verify(message, long) { + UserSharedFolderAccessRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -302984,13 +279167,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.UserSharedFolderAccessRequest} UserSharedFolderAccessRequest */ - UserSharedFolderAccessRequest.fromObject = function fromObject(object, long) { + UserSharedFolderAccessRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.UserSharedFolderAccessRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.UserSharedFolderAccessRequest(); if (object.userId != null) message.userId = object.userId | 0; @@ -303016,13 +279195,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserSharedFolderAccessRequest.toObject = function toObject(message, options, q) { + UserSharedFolderAccessRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.sharedFolderUid = []; @@ -303088,7 +279263,7 @@ export const Router = $root.Router = (() => { function UserSharedFolderAccessResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -303129,13 +279304,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserSharedFolderAccessResponse.encode = function encode(message, writer, q) { + UserSharedFolderAccessResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); if (message.accessRoleType != null && Object.hasOwnProperty.call(message, "accessRoleType")) @@ -303167,18 +279338,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserSharedFolderAccessResponse.decode = function decode(reader, length, error, long) { + UserSharedFolderAccessResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserSharedFolderAccessResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.sharedFolderUid = reader.bytes(); @@ -303189,7 +279354,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -303220,13 +279385,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserSharedFolderAccessResponse.verify = function verify(message, long) { + UserSharedFolderAccessResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) return "sharedFolderUid: buffer expected"; @@ -303255,13 +279416,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.UserSharedFolderAccessResponse} UserSharedFolderAccessResponse */ - UserSharedFolderAccessResponse.fromObject = function fromObject(object, long) { + UserSharedFolderAccessResponse.fromObject = function fromObject(object) { if (object instanceof $root.Router.UserSharedFolderAccessResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.UserSharedFolderAccessResponse(); if (object.sharedFolderUid != null) if (typeof object.sharedFolderUid === "string") @@ -303320,13 +279477,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserSharedFolderAccessResponse.toObject = function toObject(message, options, q) { + UserSharedFolderAccessResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -303395,7 +279548,7 @@ export const Router = $root.Router = (() => { this.responses = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -303428,16 +279581,12 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UserSharedFolderAccessResponses.encode = function encode(message, writer, q) { + UserSharedFolderAccessResponses.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.responses != null && message.responses.length) for (let i = 0; i < message.responses.length; ++i) - $root.Router.UserSharedFolderAccessResponse.encode(message.responses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Router.UserSharedFolderAccessResponse.encode(message.responses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -303465,27 +279614,21 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UserSharedFolderAccessResponses.decode = function decode(reader, length, error, long) { + UserSharedFolderAccessResponses.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.UserSharedFolderAccessResponses(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.responses && message.responses.length)) message.responses = []; - message.responses.push($root.Router.UserSharedFolderAccessResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.responses.push($root.Router.UserSharedFolderAccessResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -303516,18 +279659,14 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UserSharedFolderAccessResponses.verify = function verify(message, long) { + UserSharedFolderAccessResponses.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.responses != null && message.hasOwnProperty("responses")) { if (!Array.isArray(message.responses)) return "responses: array expected"; for (let i = 0; i < message.responses.length; ++i) { - let error = $root.Router.UserSharedFolderAccessResponse.verify(message.responses[i], long + 1); + let error = $root.Router.UserSharedFolderAccessResponse.verify(message.responses[i]); if (error) return "responses." + error; } @@ -303543,13 +279682,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.UserSharedFolderAccessResponses} UserSharedFolderAccessResponses */ - UserSharedFolderAccessResponses.fromObject = function fromObject(object, long) { + UserSharedFolderAccessResponses.fromObject = function fromObject(object) { if (object instanceof $root.Router.UserSharedFolderAccessResponses) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.UserSharedFolderAccessResponses(); if (object.responses) { if (!Array.isArray(object.responses)) @@ -303558,7 +279693,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.responses.length; ++i) { if (typeof object.responses[i] !== "object") throw TypeError(".Router.UserSharedFolderAccessResponses.responses: object expected"); - message.responses[i] = $root.Router.UserSharedFolderAccessResponse.fromObject(object.responses[i], long + 1); + message.responses[i] = $root.Router.UserSharedFolderAccessResponse.fromObject(object.responses[i]); } } return message; @@ -303573,20 +279708,16 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UserSharedFolderAccessResponses.toObject = function toObject(message, options, q) { + UserSharedFolderAccessResponses.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.responses = []; if (message.responses && message.responses.length) { object.responses = []; for (let j = 0; j < message.responses.length; ++j) - object.responses[j] = $root.Router.UserSharedFolderAccessResponse.toObject(message.responses[j], options, q + 1); + object.responses[j] = $root.Router.UserSharedFolderAccessResponse.toObject(message.responses[j], options); } return object; }; @@ -303641,7 +279772,7 @@ export const Router = $root.Router = (() => { function RotationSchedule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -303682,13 +279813,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RotationSchedule.encode = function encode(message, writer, q) { + RotationSchedule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) @@ -303720,18 +279847,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RotationSchedule.decode = function decode(reader, length, error, long) { + RotationSchedule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RotationSchedule(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -303742,7 +279863,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -303773,13 +279894,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RotationSchedule.verify = function verify(message, long) { + RotationSchedule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -303797,13 +279914,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RotationSchedule} RotationSchedule */ - RotationSchedule.fromObject = function fromObject(object, long) { + RotationSchedule.fromObject = function fromObject(object) { if (object instanceof $root.Router.RotationSchedule) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RotationSchedule(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -303824,13 +279937,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RotationSchedule.toObject = function toObject(message, options, q) { + RotationSchedule.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -303918,7 +280027,7 @@ export const Router = $root.Router = (() => { this.schedules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -303975,18 +280084,14 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiCallbackRequest.encode = function encode(message, writer, q) { + ApiCallbackRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.resourceUid); if (message.schedules != null && message.schedules.length) for (let i = 0; i < message.schedules.length; ++i) - $root.Router.ApiCallbackSchedule.encode(message.schedules[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Router.ApiCallbackSchedule.encode(message.schedules[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.url != null && Object.hasOwnProperty.call(message, "url")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.url); if (message.serviceType != null && Object.hasOwnProperty.call(message, "serviceType")) @@ -304018,18 +280123,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApiCallbackRequest.decode = function decode(reader, length, error, long) { + ApiCallbackRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ApiCallbackRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.resourceUid = reader.bytes(); @@ -304038,7 +280137,7 @@ export const Router = $root.Router = (() => { case 2: { if (!(message.schedules && message.schedules.length)) message.schedules = []; - message.schedules.push($root.Router.ApiCallbackSchedule.decode(reader, reader.uint32(), undefined, long + 1)); + message.schedules.push($root.Router.ApiCallbackSchedule.decode(reader, reader.uint32())); break; } case 3: { @@ -304050,7 +280149,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -304081,13 +280180,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApiCallbackRequest.verify = function verify(message, long) { + ApiCallbackRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) if (!(message.resourceUid && typeof message.resourceUid.length === "number" || $util.isString(message.resourceUid))) return "resourceUid: buffer expected"; @@ -304095,7 +280190,7 @@ export const Router = $root.Router = (() => { if (!Array.isArray(message.schedules)) return "schedules: array expected"; for (let i = 0; i < message.schedules.length; ++i) { - let error = $root.Router.ApiCallbackSchedule.verify(message.schedules[i], long + 1); + let error = $root.Router.ApiCallbackSchedule.verify(message.schedules[i]); if (error) return "schedules." + error; } @@ -304123,13 +280218,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.ApiCallbackRequest} ApiCallbackRequest */ - ApiCallbackRequest.fromObject = function fromObject(object, long) { + ApiCallbackRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.ApiCallbackRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.ApiCallbackRequest(); if (object.resourceUid != null) if (typeof object.resourceUid === "string") @@ -304143,7 +280234,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.schedules.length; ++i) { if (typeof object.schedules[i] !== "object") throw TypeError(".Router.ApiCallbackRequest.schedules: object expected"); - message.schedules[i] = $root.Router.ApiCallbackSchedule.fromObject(object.schedules[i], long + 1); + message.schedules[i] = $root.Router.ApiCallbackSchedule.fromObject(object.schedules[i]); } } if (object.url != null) @@ -304180,13 +280271,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApiCallbackRequest.toObject = function toObject(message, options, q) { + ApiCallbackRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.schedules = []; @@ -304206,7 +280293,7 @@ export const Router = $root.Router = (() => { if (message.schedules && message.schedules.length) { object.schedules = []; for (let j = 0; j < message.schedules.length; ++j) - object.schedules[j] = $root.Router.ApiCallbackSchedule.toObject(message.schedules[j], options, q + 1); + object.schedules[j] = $root.Router.ApiCallbackSchedule.toObject(message.schedules[j], options); } if (message.url != null && message.hasOwnProperty("url")) object.url = message.url; @@ -304265,7 +280352,7 @@ export const Router = $root.Router = (() => { function ApiCallbackSchedule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -304306,13 +280393,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ApiCallbackSchedule.encode = function encode(message, writer, q) { + ApiCallbackSchedule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.schedule); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -304344,18 +280427,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ApiCallbackSchedule.decode = function decode(reader, length, error, long) { + ApiCallbackSchedule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ApiCallbackSchedule(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.schedule = reader.string(); @@ -304366,7 +280443,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -304397,13 +280474,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ApiCallbackSchedule.verify = function verify(message, long) { + ApiCallbackSchedule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.schedule != null && message.hasOwnProperty("schedule")) if (!$util.isString(message.schedule)) return "schedule: string expected"; @@ -304421,13 +280494,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.ApiCallbackSchedule} ApiCallbackSchedule */ - ApiCallbackSchedule.fromObject = function fromObject(object, long) { + ApiCallbackSchedule.fromObject = function fromObject(object) { if (object instanceof $root.Router.ApiCallbackSchedule) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.ApiCallbackSchedule(); if (object.schedule != null) message.schedule = String(object.schedule); @@ -304448,13 +280517,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ApiCallbackSchedule.toObject = function toObject(message, options, q) { + ApiCallbackSchedule.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.schedule = ""; @@ -304524,7 +280589,7 @@ export const Router = $root.Router = (() => { this.resourceUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -304565,13 +280630,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterScheduledActions.encode = function encode(message, writer, q) { + RouterScheduledActions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.schedule); if (message.resourceUids != null && message.resourceUids.length) @@ -304604,18 +280665,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterScheduledActions.decode = function decode(reader, length, error, long) { + RouterScheduledActions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterScheduledActions(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.schedule = reader.string(); @@ -304628,7 +280683,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -304659,13 +280714,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterScheduledActions.verify = function verify(message, long) { + RouterScheduledActions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.schedule != null && message.hasOwnProperty("schedule")) if (!$util.isString(message.schedule)) return "schedule: string expected"; @@ -304687,13 +280738,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterScheduledActions} RouterScheduledActions */ - RouterScheduledActions.fromObject = function fromObject(object, long) { + RouterScheduledActions.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterScheduledActions) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterScheduledActions(); if (object.schedule != null) message.schedule = String(object.schedule); @@ -304719,13 +280766,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterScheduledActions.toObject = function toObject(message, options, q) { + RouterScheduledActions.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.resourceUids = []; @@ -304791,7 +280834,7 @@ export const Router = $root.Router = (() => { this.rotationSchedules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -304824,16 +280867,12 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RouterRecordsRotationRequest.encode = function encode(message, writer, q) { + RouterRecordsRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.rotationSchedules != null && message.rotationSchedules.length) for (let i = 0; i < message.rotationSchedules.length; ++i) - $root.Router.RouterScheduledActions.encode(message.rotationSchedules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Router.RouterScheduledActions.encode(message.rotationSchedules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -304861,27 +280900,21 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RouterRecordsRotationRequest.decode = function decode(reader, length, error, long) { + RouterRecordsRotationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.RouterRecordsRotationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.rotationSchedules && message.rotationSchedules.length)) message.rotationSchedules = []; - message.rotationSchedules.push($root.Router.RouterScheduledActions.decode(reader, reader.uint32(), undefined, long + 1)); + message.rotationSchedules.push($root.Router.RouterScheduledActions.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -304912,18 +280945,14 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RouterRecordsRotationRequest.verify = function verify(message, long) { + RouterRecordsRotationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.rotationSchedules != null && message.hasOwnProperty("rotationSchedules")) { if (!Array.isArray(message.rotationSchedules)) return "rotationSchedules: array expected"; for (let i = 0; i < message.rotationSchedules.length; ++i) { - let error = $root.Router.RouterScheduledActions.verify(message.rotationSchedules[i], long + 1); + let error = $root.Router.RouterScheduledActions.verify(message.rotationSchedules[i]); if (error) return "rotationSchedules." + error; } @@ -304939,13 +280968,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.RouterRecordsRotationRequest} RouterRecordsRotationRequest */ - RouterRecordsRotationRequest.fromObject = function fromObject(object, long) { + RouterRecordsRotationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.RouterRecordsRotationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.RouterRecordsRotationRequest(); if (object.rotationSchedules) { if (!Array.isArray(object.rotationSchedules)) @@ -304954,7 +280979,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.rotationSchedules.length; ++i) { if (typeof object.rotationSchedules[i] !== "object") throw TypeError(".Router.RouterRecordsRotationRequest.rotationSchedules: object expected"); - message.rotationSchedules[i] = $root.Router.RouterScheduledActions.fromObject(object.rotationSchedules[i], long + 1); + message.rotationSchedules[i] = $root.Router.RouterScheduledActions.fromObject(object.rotationSchedules[i]); } } return message; @@ -304969,20 +280994,16 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RouterRecordsRotationRequest.toObject = function toObject(message, options, q) { + RouterRecordsRotationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.rotationSchedules = []; if (message.rotationSchedules && message.rotationSchedules.length) { object.rotationSchedules = []; for (let j = 0; j < message.rotationSchedules.length; ++j) - object.rotationSchedules[j] = $root.Router.RouterScheduledActions.toObject(message.rotationSchedules[j], options, q + 1); + object.rotationSchedules[j] = $root.Router.RouterScheduledActions.toObject(message.rotationSchedules[j], options); } return object; }; @@ -305040,7 +281061,7 @@ export const Router = $root.Router = (() => { function ConnectionParameters(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -305105,13 +281126,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionParameters.encode = function encode(message, writer, q) { + ConnectionParameters.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -305149,18 +281166,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionParameters.decode = function decode(reader, length, error, long) { + ConnectionParameters.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ConnectionParameters(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.connectionUid = reader.bytes(); @@ -305183,7 +281194,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -305214,13 +281225,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionParameters.verify = function verify(message, long) { + ConnectionParameters.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.connectionUid != null && message.hasOwnProperty("connectionUid")) if (!(message.connectionUid && typeof message.connectionUid.length === "number" || $util.isString(message.connectionUid))) return "connectionUid: buffer expected"; @@ -305247,13 +281254,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.ConnectionParameters} ConnectionParameters */ - ConnectionParameters.fromObject = function fromObject(object, long) { + ConnectionParameters.fromObject = function fromObject(object) { if (object instanceof $root.Router.ConnectionParameters) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.ConnectionParameters(); if (object.connectionUid != null) if (typeof object.connectionUid === "string") @@ -305289,13 +281292,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionParameters.toObject = function toObject(message, options, q) { + ConnectionParameters.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -305391,7 +281390,7 @@ export const Router = $root.Router = (() => { this.connections = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -305424,16 +281423,12 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateConnectionsRequest.encode = function encode(message, writer, q) { + ValidateConnectionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.connections != null && message.connections.length) for (let i = 0; i < message.connections.length; ++i) - $root.Router.ConnectionParameters.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Router.ConnectionParameters.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -305461,27 +281456,21 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateConnectionsRequest.decode = function decode(reader, length, error, long) { + ValidateConnectionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ValidateConnectionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.connections && message.connections.length)) message.connections = []; - message.connections.push($root.Router.ConnectionParameters.decode(reader, reader.uint32(), undefined, long + 1)); + message.connections.push($root.Router.ConnectionParameters.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -305512,18 +281501,14 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateConnectionsRequest.verify = function verify(message, long) { + ValidateConnectionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.connections != null && message.hasOwnProperty("connections")) { if (!Array.isArray(message.connections)) return "connections: array expected"; for (let i = 0; i < message.connections.length; ++i) { - let error = $root.Router.ConnectionParameters.verify(message.connections[i], long + 1); + let error = $root.Router.ConnectionParameters.verify(message.connections[i]); if (error) return "connections." + error; } @@ -305539,13 +281524,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.ValidateConnectionsRequest} ValidateConnectionsRequest */ - ValidateConnectionsRequest.fromObject = function fromObject(object, long) { + ValidateConnectionsRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.ValidateConnectionsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.ValidateConnectionsRequest(); if (object.connections) { if (!Array.isArray(object.connections)) @@ -305554,7 +281535,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.connections.length; ++i) { if (typeof object.connections[i] !== "object") throw TypeError(".Router.ValidateConnectionsRequest.connections: object expected"); - message.connections[i] = $root.Router.ConnectionParameters.fromObject(object.connections[i], long + 1); + message.connections[i] = $root.Router.ConnectionParameters.fromObject(object.connections[i]); } } return message; @@ -305569,20 +281550,16 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateConnectionsRequest.toObject = function toObject(message, options, q) { + ValidateConnectionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.connections = []; if (message.connections && message.connections.length) { object.connections = []; for (let j = 0; j < message.connections.length; ++j) - object.connections[j] = $root.Router.ConnectionParameters.toObject(message.connections[j], options, q + 1); + object.connections[j] = $root.Router.ConnectionParameters.toObject(message.connections[j], options); } return object; }; @@ -305637,7 +281614,7 @@ export const Router = $root.Router = (() => { function ConnectionValidationFailure(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -305678,13 +281655,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionValidationFailure.encode = function encode(message, writer, q) { + ConnectionValidationFailure.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) @@ -305716,18 +281689,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionValidationFailure.decode = function decode(reader, length, error, long) { + ConnectionValidationFailure.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ConnectionValidationFailure(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.connectionUid = reader.bytes(); @@ -305738,7 +281705,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -305769,13 +281736,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionValidationFailure.verify = function verify(message, long) { + ConnectionValidationFailure.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.connectionUid != null && message.hasOwnProperty("connectionUid")) if (!(message.connectionUid && typeof message.connectionUid.length === "number" || $util.isString(message.connectionUid))) return "connectionUid: buffer expected"; @@ -305793,13 +281756,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.ConnectionValidationFailure} ConnectionValidationFailure */ - ConnectionValidationFailure.fromObject = function fromObject(object, long) { + ConnectionValidationFailure.fromObject = function fromObject(object) { if (object instanceof $root.Router.ConnectionValidationFailure) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.ConnectionValidationFailure(); if (object.connectionUid != null) if (typeof object.connectionUid === "string") @@ -305820,13 +281779,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionValidationFailure.toObject = function toObject(message, options, q) { + ConnectionValidationFailure.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -305895,7 +281850,7 @@ export const Router = $root.Router = (() => { this.failedConnections = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -305928,16 +281883,12 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateConnectionsResponse.encode = function encode(message, writer, q) { + ValidateConnectionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.failedConnections != null && message.failedConnections.length) for (let i = 0; i < message.failedConnections.length; ++i) - $root.Router.ConnectionValidationFailure.encode(message.failedConnections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Router.ConnectionValidationFailure.encode(message.failedConnections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -305965,27 +281916,21 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateConnectionsResponse.decode = function decode(reader, length, error, long) { + ValidateConnectionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.ValidateConnectionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.failedConnections && message.failedConnections.length)) message.failedConnections = []; - message.failedConnections.push($root.Router.ConnectionValidationFailure.decode(reader, reader.uint32(), undefined, long + 1)); + message.failedConnections.push($root.Router.ConnectionValidationFailure.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -306016,18 +281961,14 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateConnectionsResponse.verify = function verify(message, long) { + ValidateConnectionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.failedConnections != null && message.hasOwnProperty("failedConnections")) { if (!Array.isArray(message.failedConnections)) return "failedConnections: array expected"; for (let i = 0; i < message.failedConnections.length; ++i) { - let error = $root.Router.ConnectionValidationFailure.verify(message.failedConnections[i], long + 1); + let error = $root.Router.ConnectionValidationFailure.verify(message.failedConnections[i]); if (error) return "failedConnections." + error; } @@ -306043,13 +281984,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.ValidateConnectionsResponse} ValidateConnectionsResponse */ - ValidateConnectionsResponse.fromObject = function fromObject(object, long) { + ValidateConnectionsResponse.fromObject = function fromObject(object) { if (object instanceof $root.Router.ValidateConnectionsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.ValidateConnectionsResponse(); if (object.failedConnections) { if (!Array.isArray(object.failedConnections)) @@ -306058,7 +281995,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.failedConnections.length; ++i) { if (typeof object.failedConnections[i] !== "object") throw TypeError(".Router.ValidateConnectionsResponse.failedConnections: object expected"); - message.failedConnections[i] = $root.Router.ConnectionValidationFailure.fromObject(object.failedConnections[i], long + 1); + message.failedConnections[i] = $root.Router.ConnectionValidationFailure.fromObject(object.failedConnections[i]); } } return message; @@ -306073,20 +282010,16 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateConnectionsResponse.toObject = function toObject(message, options, q) { + ValidateConnectionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.failedConnections = []; if (message.failedConnections && message.failedConnections.length) { object.failedConnections = []; for (let j = 0; j < message.failedConnections.length; ++j) - object.failedConnections[j] = $root.Router.ConnectionValidationFailure.toObject(message.failedConnections[j], options, q + 1); + object.failedConnections[j] = $root.Router.ConnectionValidationFailure.toObject(message.failedConnections[j], options); } return object; }; @@ -306140,7 +282073,7 @@ export const Router = $root.Router = (() => { function GetEnforcementRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -306173,13 +282106,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnforcementRequest.encode = function encode(message, writer, q) { + GetEnforcementRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); return writer; @@ -306209,25 +282138,19 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnforcementRequest.decode = function decode(reader, length, error, long) { + GetEnforcementRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.GetEnforcementRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseUserId = reader.int64(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -306258,13 +282181,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEnforcementRequest.verify = function verify(message, long) { + GetEnforcementRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) return "enterpriseUserId: integer|Long expected"; @@ -306279,17 +282198,13 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.GetEnforcementRequest} GetEnforcementRequest */ - GetEnforcementRequest.fromObject = function fromObject(object, long) { + GetEnforcementRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.GetEnforcementRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.GetEnforcementRequest(); if (object.enterpriseUserId != null) if ($util.Long) - message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId, false); + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; else if (typeof object.enterpriseUserId === "string") message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); else if (typeof object.enterpriseUserId === "number") @@ -306308,24 +282223,18 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnforcementRequest.toObject = function toObject(message, options, q) { + GetEnforcementRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseUserId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseUserId = options.longs === String ? "0" : 0; if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseUserId = typeof message.enterpriseUserId === "number" ? BigInt(message.enterpriseUserId) : $util.Long.fromBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseUserId === "number") + if (typeof message.enterpriseUserId === "number") object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; @@ -306382,7 +282291,7 @@ export const Router = $root.Router = (() => { function EnforcementType(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -306423,13 +282332,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnforcementType.encode = function encode(message, writer, q) { + EnforcementType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enforcementTypeId != null && Object.hasOwnProperty.call(message, "enforcementTypeId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enforcementTypeId); if (message.value != null && Object.hasOwnProperty.call(message, "value")) @@ -306461,18 +282366,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnforcementType.decode = function decode(reader, length, error, long) { + EnforcementType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.EnforcementType(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enforcementTypeId = reader.int32(); @@ -306483,7 +282382,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -306514,13 +282413,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnforcementType.verify = function verify(message, long) { + EnforcementType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enforcementTypeId != null && message.hasOwnProperty("enforcementTypeId")) if (!$util.isInteger(message.enforcementTypeId)) return "enforcementTypeId: integer expected"; @@ -306538,13 +282433,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.EnforcementType} EnforcementType */ - EnforcementType.fromObject = function fromObject(object, long) { + EnforcementType.fromObject = function fromObject(object) { if (object instanceof $root.Router.EnforcementType) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.EnforcementType(); if (object.enforcementTypeId != null) message.enforcementTypeId = object.enforcementTypeId | 0; @@ -306562,13 +282453,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnforcementType.toObject = function toObject(message, options, q) { + EnforcementType.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.enforcementTypeId = 0; @@ -306634,7 +282521,7 @@ export const Router = $root.Router = (() => { this.addOnIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -306683,16 +282570,12 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnforcementResponse.encode = function encode(message, writer, q) { + GetEnforcementResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enforcementTypes != null && message.enforcementTypes.length) for (let i = 0; i < message.enforcementTypes.length; ++i) - $root.Router.EnforcementType.encode(message.enforcementTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.Router.EnforcementType.encode(message.enforcementTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.addOnIds != null && message.addOnIds.length) { writer.uint32(/* id 2, wireType 2 =*/18).fork(); for (let i = 0; i < message.addOnIds.length; ++i) @@ -306728,23 +282611,17 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnforcementResponse.decode = function decode(reader, length, error, long) { + GetEnforcementResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.GetEnforcementResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.enforcementTypes && message.enforcementTypes.length)) message.enforcementTypes = []; - message.enforcementTypes.push($root.Router.EnforcementType.decode(reader, reader.uint32(), undefined, long + 1)); + message.enforcementTypes.push($root.Router.EnforcementType.decode(reader, reader.uint32())); break; } case 2: { @@ -306763,7 +282640,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -306794,18 +282671,14 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEnforcementResponse.verify = function verify(message, long) { + GetEnforcementResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enforcementTypes != null && message.hasOwnProperty("enforcementTypes")) { if (!Array.isArray(message.enforcementTypes)) return "enforcementTypes: array expected"; for (let i = 0; i < message.enforcementTypes.length; ++i) { - let error = $root.Router.EnforcementType.verify(message.enforcementTypes[i], long + 1); + let error = $root.Router.EnforcementType.verify(message.enforcementTypes[i]); if (error) return "enforcementTypes." + error; } @@ -306831,13 +282704,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.GetEnforcementResponse} GetEnforcementResponse */ - GetEnforcementResponse.fromObject = function fromObject(object, long) { + GetEnforcementResponse.fromObject = function fromObject(object) { if (object instanceof $root.Router.GetEnforcementResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.GetEnforcementResponse(); if (object.enforcementTypes) { if (!Array.isArray(object.enforcementTypes)) @@ -306846,7 +282715,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.enforcementTypes.length; ++i) { if (typeof object.enforcementTypes[i] !== "object") throw TypeError(".Router.GetEnforcementResponse.enforcementTypes: object expected"); - message.enforcementTypes[i] = $root.Router.EnforcementType.fromObject(object.enforcementTypes[i], long + 1); + message.enforcementTypes[i] = $root.Router.EnforcementType.fromObject(object.enforcementTypes[i]); } } if (object.addOnIds) { @@ -306870,13 +282739,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnforcementResponse.toObject = function toObject(message, options, q) { + GetEnforcementResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.enforcementTypes = []; @@ -306887,7 +282752,7 @@ export const Router = $root.Router = (() => { if (message.enforcementTypes && message.enforcementTypes.length) { object.enforcementTypes = []; for (let j = 0; j < message.enforcementTypes.length; ++j) - object.enforcementTypes[j] = $root.Router.EnforcementType.toObject(message.enforcementTypes[j], options, q + 1); + object.enforcementTypes[j] = $root.Router.EnforcementType.toObject(message.enforcementTypes[j], options); } if (message.addOnIds && message.addOnIds.length) { object.addOnIds = []; @@ -306950,7 +282815,7 @@ export const Router = $root.Router = (() => { function PEDMTOTPValidateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -306999,13 +282864,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PEDMTOTPValidateRequest.encode = function encode(message, writer, q) { + PEDMTOTPValidateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) @@ -307039,18 +282900,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PEDMTOTPValidateRequest.decode = function decode(reader, length, error, long) { + PEDMTOTPValidateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PEDMTOTPValidateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -307065,7 +282920,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -307096,13 +282951,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PEDMTOTPValidateRequest.verify = function verify(message, long) { + PEDMTOTPValidateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -307123,13 +282974,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.PEDMTOTPValidateRequest} PEDMTOTPValidateRequest */ - PEDMTOTPValidateRequest.fromObject = function fromObject(object, long) { + PEDMTOTPValidateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.PEDMTOTPValidateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.PEDMTOTPValidateRequest(); if (object.username != null) message.username = String(object.username); @@ -307149,13 +282996,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PEDMTOTPValidateRequest.toObject = function toObject(message, options, q) { + PEDMTOTPValidateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; @@ -307221,7 +283064,7 @@ export const Router = $root.Router = (() => { function GetPEDMAdminInfoResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -307262,13 +283105,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPEDMAdminInfoResponse.encode = function encode(message, writer, q) { + GetPEDMAdminInfoResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.isPedmAdmin != null && Object.hasOwnProperty.call(message, "isPedmAdmin")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isPedmAdmin); if (message.pedmAddonActive != null && Object.hasOwnProperty.call(message, "pedmAddonActive")) @@ -307300,18 +283139,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPEDMAdminInfoResponse.decode = function decode(reader, length, error, long) { + GetPEDMAdminInfoResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.GetPEDMAdminInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.isPedmAdmin = reader.bool(); @@ -307322,7 +283155,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -307353,13 +283186,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPEDMAdminInfoResponse.verify = function verify(message, long) { + GetPEDMAdminInfoResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.isPedmAdmin != null && message.hasOwnProperty("isPedmAdmin")) if (typeof message.isPedmAdmin !== "boolean") return "isPedmAdmin: boolean expected"; @@ -307377,13 +283206,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.GetPEDMAdminInfoResponse} GetPEDMAdminInfoResponse */ - GetPEDMAdminInfoResponse.fromObject = function fromObject(object, long) { + GetPEDMAdminInfoResponse.fromObject = function fromObject(object) { if (object instanceof $root.Router.GetPEDMAdminInfoResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.GetPEDMAdminInfoResponse(); if (object.isPedmAdmin != null) message.isPedmAdmin = Boolean(object.isPedmAdmin); @@ -307401,13 +283226,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPEDMAdminInfoResponse.toObject = function toObject(message, options, q) { + GetPEDMAdminInfoResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.isPedmAdmin = false; @@ -307469,7 +283290,7 @@ export const Router = $root.Router = (() => { function PAMNetworkSettings(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -307502,13 +283323,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMNetworkSettings.encode = function encode(message, writer, q) { + PAMNetworkSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.allowedSettings != null && Object.hasOwnProperty.call(message, "allowedSettings")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.allowedSettings); return writer; @@ -307538,25 +283355,19 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMNetworkSettings.decode = function decode(reader, length, error, long) { + PAMNetworkSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PAMNetworkSettings(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.allowedSettings = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -307587,13 +283398,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMNetworkSettings.verify = function verify(message, long) { + PAMNetworkSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.allowedSettings != null && message.hasOwnProperty("allowedSettings")) if (!(message.allowedSettings && typeof message.allowedSettings.length === "number" || $util.isString(message.allowedSettings))) return "allowedSettings: buffer expected"; @@ -307608,13 +283415,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.PAMNetworkSettings} PAMNetworkSettings */ - PAMNetworkSettings.fromObject = function fromObject(object, long) { + PAMNetworkSettings.fromObject = function fromObject(object) { if (object instanceof $root.Router.PAMNetworkSettings) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.PAMNetworkSettings(); if (object.allowedSettings != null) if (typeof object.allowedSettings === "string") @@ -307633,13 +283436,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMNetworkSettings.toObject = function toObject(message, options, q) { + PAMNetworkSettings.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -307708,7 +283507,7 @@ export const Router = $root.Router = (() => { this.rotations = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -307747,7 +283546,12 @@ export const Router = $root.Router = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * PAMNetworkConfigurationRequest _networkSettings. + * @member {"networkSettings"|undefined} _networkSettings + * @memberof Router.PAMNetworkConfigurationRequest + * @instance + */ Object.defineProperty(PAMNetworkConfigurationRequest.prototype, "_networkSettings", { get: $util.oneOfGetter($oneOfFields = ["networkSettings"]), set: $util.oneOfSetter($oneOfFields) @@ -307774,23 +283578,19 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMNetworkConfigurationRequest.encode = function encode(message, writer, q) { + PAMNetworkConfigurationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.networkSettings != null && Object.hasOwnProperty.call(message, "networkSettings")) - $root.Router.PAMNetworkSettings.encode(message.networkSettings, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.Router.PAMNetworkSettings.encode(message.networkSettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.resources != null && message.resources.length) for (let i = 0; i < message.resources.length; ++i) - $root.PAM.PAMResourceConfig.encode(message.resources[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.PAM.PAMResourceConfig.encode(message.resources[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.rotations != null && message.rotations.length) for (let i = 0; i < message.rotations.length; ++i) - $root.Router.RouterRecordRotationRequest.encode(message.rotations[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Router.RouterRecordRotationRequest.encode(message.rotations[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -307818,41 +283618,35 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMNetworkConfigurationRequest.decode = function decode(reader, length, error, long) { + PAMNetworkConfigurationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PAMNetworkConfigurationRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); break; } case 2: { - message.networkSettings = $root.Router.PAMNetworkSettings.decode(reader, reader.uint32(), undefined, long + 1); + message.networkSettings = $root.Router.PAMNetworkSettings.decode(reader, reader.uint32()); break; } case 3: { if (!(message.resources && message.resources.length)) message.resources = []; - message.resources.push($root.PAM.PAMResourceConfig.decode(reader, reader.uint32(), undefined, long + 1)); + message.resources.push($root.PAM.PAMResourceConfig.decode(reader, reader.uint32())); break; } case 4: { if (!(message.rotations && message.rotations.length)) message.rotations = []; - message.rotations.push($root.Router.RouterRecordRotationRequest.decode(reader, reader.uint32(), undefined, long + 1)); + message.rotations.push($root.Router.RouterRecordRotationRequest.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -307883,13 +283677,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMNetworkConfigurationRequest.verify = function verify(message, long) { + PAMNetworkConfigurationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) @@ -307897,7 +283687,7 @@ export const Router = $root.Router = (() => { if (message.networkSettings != null && message.hasOwnProperty("networkSettings")) { properties._networkSettings = 1; { - let error = $root.Router.PAMNetworkSettings.verify(message.networkSettings, long + 1); + let error = $root.Router.PAMNetworkSettings.verify(message.networkSettings); if (error) return "networkSettings." + error; } @@ -307906,7 +283696,7 @@ export const Router = $root.Router = (() => { if (!Array.isArray(message.resources)) return "resources: array expected"; for (let i = 0; i < message.resources.length; ++i) { - let error = $root.PAM.PAMResourceConfig.verify(message.resources[i], long + 1); + let error = $root.PAM.PAMResourceConfig.verify(message.resources[i]); if (error) return "resources." + error; } @@ -307915,7 +283705,7 @@ export const Router = $root.Router = (() => { if (!Array.isArray(message.rotations)) return "rotations: array expected"; for (let i = 0; i < message.rotations.length; ++i) { - let error = $root.Router.RouterRecordRotationRequest.verify(message.rotations[i], long + 1); + let error = $root.Router.RouterRecordRotationRequest.verify(message.rotations[i]); if (error) return "rotations." + error; } @@ -307931,13 +283721,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.PAMNetworkConfigurationRequest} PAMNetworkConfigurationRequest */ - PAMNetworkConfigurationRequest.fromObject = function fromObject(object, long) { + PAMNetworkConfigurationRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.PAMNetworkConfigurationRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.PAMNetworkConfigurationRequest(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -307947,7 +283733,7 @@ export const Router = $root.Router = (() => { if (object.networkSettings != null) { if (typeof object.networkSettings !== "object") throw TypeError(".Router.PAMNetworkConfigurationRequest.networkSettings: object expected"); - message.networkSettings = $root.Router.PAMNetworkSettings.fromObject(object.networkSettings, long + 1); + message.networkSettings = $root.Router.PAMNetworkSettings.fromObject(object.networkSettings); } if (object.resources) { if (!Array.isArray(object.resources)) @@ -307956,7 +283742,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.resources.length; ++i) { if (typeof object.resources[i] !== "object") throw TypeError(".Router.PAMNetworkConfigurationRequest.resources: object expected"); - message.resources[i] = $root.PAM.PAMResourceConfig.fromObject(object.resources[i], long + 1); + message.resources[i] = $root.PAM.PAMResourceConfig.fromObject(object.resources[i]); } } if (object.rotations) { @@ -307966,7 +283752,7 @@ export const Router = $root.Router = (() => { for (let i = 0; i < object.rotations.length; ++i) { if (typeof object.rotations[i] !== "object") throw TypeError(".Router.PAMNetworkConfigurationRequest.rotations: object expected"); - message.rotations[i] = $root.Router.RouterRecordRotationRequest.fromObject(object.rotations[i], long + 1); + message.rotations[i] = $root.Router.RouterRecordRotationRequest.fromObject(object.rotations[i]); } } return message; @@ -307981,13 +283767,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMNetworkConfigurationRequest.toObject = function toObject(message, options, q) { + PAMNetworkConfigurationRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.resources = []; @@ -308004,19 +283786,19 @@ export const Router = $root.Router = (() => { if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; if (message.networkSettings != null && message.hasOwnProperty("networkSettings")) { - object.networkSettings = $root.Router.PAMNetworkSettings.toObject(message.networkSettings, options, q + 1); + object.networkSettings = $root.Router.PAMNetworkSettings.toObject(message.networkSettings, options); if (options.oneofs) object._networkSettings = "networkSettings"; } if (message.resources && message.resources.length) { object.resources = []; for (let j = 0; j < message.resources.length; ++j) - object.resources[j] = $root.PAM.PAMResourceConfig.toObject(message.resources[j], options, q + 1); + object.resources[j] = $root.PAM.PAMResourceConfig.toObject(message.resources[j], options); } if (message.rotations && message.rotations.length) { object.rotations = []; for (let j = 0; j < message.rotations.length; ++j) - object.rotations[j] = $root.Router.RouterRecordRotationRequest.toObject(message.rotations[j], options, q + 1); + object.rotations[j] = $root.Router.RouterRecordRotationRequest.toObject(message.rotations[j], options); } return object; }; @@ -308072,7 +283854,7 @@ export const Router = $root.Router = (() => { function PAMDiscoveryRulesSetRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -308121,13 +283903,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMDiscoveryRulesSetRequest.encode = function encode(message, writer, q) { + PAMDiscoveryRulesSetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkUid); if (message.rules != null && Object.hasOwnProperty.call(message, "rules")) @@ -308161,18 +283939,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMDiscoveryRulesSetRequest.decode = function decode(reader, length, error, long) { + PAMDiscoveryRulesSetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.PAMDiscoveryRulesSetRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.networkUid = reader.bytes(); @@ -308187,7 +283959,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -308218,13 +283990,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMDiscoveryRulesSetRequest.verify = function verify(message, long) { + PAMDiscoveryRulesSetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.networkUid != null && message.hasOwnProperty("networkUid")) if (!(message.networkUid && typeof message.networkUid.length === "number" || $util.isString(message.networkUid))) return "networkUid: buffer expected"; @@ -308245,13 +284013,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.PAMDiscoveryRulesSetRequest} PAMDiscoveryRulesSetRequest */ - PAMDiscoveryRulesSetRequest.fromObject = function fromObject(object, long) { + PAMDiscoveryRulesSetRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.PAMDiscoveryRulesSetRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.PAMDiscoveryRulesSetRequest(); if (object.networkUid != null) if (typeof object.networkUid === "string") @@ -308280,13 +284044,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMDiscoveryRulesSetRequest.toObject = function toObject(message, options, q) { + PAMDiscoveryRulesSetRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -308371,7 +284131,7 @@ export const Router = $root.Router = (() => { function Router2FAValidateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -308420,13 +284180,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FAValidateRequest.encode = function encode(message, writer, q) { + Router2FAValidateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) @@ -308460,18 +284216,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Router2FAValidateRequest.decode = function decode(reader, length, error, long) { + Router2FAValidateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FAValidateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.transmissionKey = reader.bytes(); @@ -308486,7 +284236,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -308517,13 +284267,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Router2FAValidateRequest.verify = function verify(message, long) { + Router2FAValidateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) if (!(message.transmissionKey && typeof message.transmissionKey.length === "number" || $util.isString(message.transmissionKey))) return "transmissionKey: buffer expected"; @@ -308544,13 +284290,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.Router2FAValidateRequest} Router2FAValidateRequest */ - Router2FAValidateRequest.fromObject = function fromObject(object, long) { + Router2FAValidateRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.Router2FAValidateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.Router2FAValidateRequest(); if (object.transmissionKey != null) if (typeof object.transmissionKey === "string") @@ -308576,13 +284318,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Router2FAValidateRequest.toObject = function toObject(message, options, q) { + Router2FAValidateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -308661,7 +284399,7 @@ export const Router = $root.Router = (() => { function Router2FASendPushRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -308710,13 +284448,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FASendPushRequest.encode = function encode(message, writer, q) { + Router2FASendPushRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) @@ -308750,18 +284484,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Router2FASendPushRequest.decode = function decode(reader, length, error, long) { + Router2FASendPushRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FASendPushRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.transmissionKey = reader.bytes(); @@ -308776,7 +284504,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -308807,13 +284535,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Router2FASendPushRequest.verify = function verify(message, long) { + Router2FASendPushRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) if (!(message.transmissionKey && typeof message.transmissionKey.length === "number" || $util.isString(message.transmissionKey))) return "transmissionKey: buffer expected"; @@ -308844,13 +284568,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.Router2FASendPushRequest} Router2FASendPushRequest */ - Router2FASendPushRequest.fromObject = function fromObject(object, long) { + Router2FASendPushRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.Router2FASendPushRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.Router2FASendPushRequest(); if (object.transmissionKey != null) if (typeof object.transmissionKey === "string") @@ -308910,13 +284630,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Router2FASendPushRequest.toObject = function toObject(message, options, q) { + Router2FASendPushRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -308994,7 +284710,7 @@ export const Router = $root.Router = (() => { function Router2FAGetWebAuthnChallengeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -309035,13 +284751,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FAGetWebAuthnChallengeRequest.encode = function encode(message, writer, q) { + Router2FAGetWebAuthnChallengeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.transmissionKey); if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) @@ -309073,18 +284785,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Router2FAGetWebAuthnChallengeRequest.decode = function decode(reader, length, error, long) { + Router2FAGetWebAuthnChallengeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FAGetWebAuthnChallengeRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.transmissionKey = reader.bytes(); @@ -309095,7 +284801,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -309126,13 +284832,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Router2FAGetWebAuthnChallengeRequest.verify = function verify(message, long) { + Router2FAGetWebAuthnChallengeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) if (!(message.transmissionKey && typeof message.transmissionKey.length === "number" || $util.isString(message.transmissionKey))) return "transmissionKey: buffer expected"; @@ -309150,13 +284852,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.Router2FAGetWebAuthnChallengeRequest} Router2FAGetWebAuthnChallengeRequest */ - Router2FAGetWebAuthnChallengeRequest.fromObject = function fromObject(object, long) { + Router2FAGetWebAuthnChallengeRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.Router2FAGetWebAuthnChallengeRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.Router2FAGetWebAuthnChallengeRequest(); if (object.transmissionKey != null) if (typeof object.transmissionKey === "string") @@ -309180,13 +284878,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Router2FAGetWebAuthnChallengeRequest.toObject = function toObject(message, options, q) { + Router2FAGetWebAuthnChallengeRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -309262,7 +284956,7 @@ export const Router = $root.Router = (() => { this.capabilities = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -309303,13 +284997,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Router2FAGetWebAuthnChallengeResponse.encode = function encode(message, writer, q) { + Router2FAGetWebAuthnChallengeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.challenge); if (message.capabilities != null && message.capabilities.length) @@ -309342,18 +285032,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Router2FAGetWebAuthnChallengeResponse.decode = function decode(reader, length, error, long) { + Router2FAGetWebAuthnChallengeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.Router2FAGetWebAuthnChallengeResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.challenge = reader.string(); @@ -309366,7 +285050,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -309397,13 +285081,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Router2FAGetWebAuthnChallengeResponse.verify = function verify(message, long) { + Router2FAGetWebAuthnChallengeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.challenge != null && message.hasOwnProperty("challenge")) if (!$util.isString(message.challenge)) return "challenge: string expected"; @@ -309425,13 +285105,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.Router2FAGetWebAuthnChallengeResponse} Router2FAGetWebAuthnChallengeResponse */ - Router2FAGetWebAuthnChallengeResponse.fromObject = function fromObject(object, long) { + Router2FAGetWebAuthnChallengeResponse.fromObject = function fromObject(object) { if (object instanceof $root.Router.Router2FAGetWebAuthnChallengeResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.Router2FAGetWebAuthnChallengeResponse(); if (object.challenge != null) message.challenge = String(object.challenge); @@ -309454,13 +285130,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Router2FAGetWebAuthnChallengeResponse.toObject = function toObject(message, options, q) { + Router2FAGetWebAuthnChallengeResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.capabilities = []; @@ -309527,7 +285199,7 @@ export const Router = $root.Router = (() => { function CreateEphemeralSecretRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -309576,13 +285248,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEphemeralSecretRequest.encode = function encode(message, writer, q) { + CreateEphemeralSecretRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.encryptedSecret != null && Object.hasOwnProperty.call(message, "encryptedSecret")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSecret); if (message.secretKeyHash != null && Object.hasOwnProperty.call(message, "secretKeyHash")) @@ -309616,18 +285284,12 @@ export const Router = $root.Router = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEphemeralSecretRequest.decode = function decode(reader, length, error, long) { + CreateEphemeralSecretRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Router.CreateEphemeralSecretRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.encryptedSecret = reader.bytes(); @@ -309642,7 +285304,7 @@ export const Router = $root.Router = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -309673,13 +285335,9 @@ export const Router = $root.Router = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEphemeralSecretRequest.verify = function verify(message, long) { + CreateEphemeralSecretRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.encryptedSecret != null && message.hasOwnProperty("encryptedSecret")) if (!(message.encryptedSecret && typeof message.encryptedSecret.length === "number" || $util.isString(message.encryptedSecret))) return "encryptedSecret: buffer expected"; @@ -309700,13 +285358,9 @@ export const Router = $root.Router = (() => { * @param {Object.} object Plain object * @returns {Router.CreateEphemeralSecretRequest} CreateEphemeralSecretRequest */ - CreateEphemeralSecretRequest.fromObject = function fromObject(object, long) { + CreateEphemeralSecretRequest.fromObject = function fromObject(object) { if (object instanceof $root.Router.CreateEphemeralSecretRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.Router.CreateEphemeralSecretRequest(); if (object.encryptedSecret != null) if (typeof object.encryptedSecret === "string") @@ -309720,7 +285374,7 @@ export const Router = $root.Router = (() => { message.secretKeyHash = object.secretKeyHash; if (object.ttl != null) if ($util.Long) - message.ttl = $util.Long.fromValue(object.ttl, false); + (message.ttl = $util.Long.fromValue(object.ttl)).unsigned = false; else if (typeof object.ttl === "string") message.ttl = parseInt(object.ttl, 10); else if (typeof object.ttl === "number") @@ -309739,13 +285393,9 @@ export const Router = $root.Router = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEphemeralSecretRequest.toObject = function toObject(message, options, q) { + CreateEphemeralSecretRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -309764,18 +285414,16 @@ export const Router = $root.Router = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.ttl = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.ttl = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.ttl = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.ttl = options.longs === String ? "0" : 0; } if (message.encryptedSecret != null && message.hasOwnProperty("encryptedSecret")) object.encryptedSecret = options.bytes === String ? $util.base64.encode(message.encryptedSecret, 0, message.encryptedSecret.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSecret) : message.encryptedSecret; if (message.secretKeyHash != null && message.hasOwnProperty("secretKeyHash")) object.secretKeyHash = options.bytes === String ? $util.base64.encode(message.secretKeyHash, 0, message.secretKeyHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.secretKeyHash) : message.secretKeyHash; if (message.ttl != null && message.hasOwnProperty("ttl")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.ttl = typeof message.ttl === "number" ? BigInt(message.ttl) : $util.Long.fromBits(message.ttl.low >>> 0, message.ttl.high >>> 0, false).toBigInt(); - else if (typeof message.ttl === "number") + if (typeof message.ttl === "number") object.ttl = options.longs === String ? String(message.ttl) : message.ttl; else object.ttl = options.longs === String ? $util.Long.prototype.toString.call(message.ttl) : options.longs === Number ? new $util.LongBits(message.ttl.low >>> 0, message.ttl.high >>> 0).toNumber() : message.ttl; @@ -309847,7 +285495,7 @@ export const PAM = $root.PAM = (() => { function PAMRotationSchedule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -309912,13 +285560,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRotationSchedule.encode = function encode(message, writer, q) { + PAMRotationSchedule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) @@ -309956,18 +285600,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRotationSchedule.decode = function decode(reader, length, error, long) { + PAMRotationSchedule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRotationSchedule(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -309990,7 +285628,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -310021,13 +285659,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMRotationSchedule.verify = function verify(message, long) { + PAMRotationSchedule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) return "recordUid: buffer expected"; @@ -310054,13 +285688,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMRotationSchedule} PAMRotationSchedule */ - PAMRotationSchedule.fromObject = function fromObject(object, long) { + PAMRotationSchedule.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMRotationSchedule) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMRotationSchedule(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -310093,13 +285723,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRotationSchedule.toObject = function toObject(message, options, q) { + PAMRotationSchedule.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -310189,7 +285815,7 @@ export const PAM = $root.PAM = (() => { this.schedules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -310222,16 +285848,12 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRotationSchedulesResponse.encode = function encode(message, writer, q) { + PAMRotationSchedulesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.schedules != null && message.schedules.length) for (let i = 0; i < message.schedules.length; ++i) - $root.PAM.PAMRotationSchedule.encode(message.schedules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.PAM.PAMRotationSchedule.encode(message.schedules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -310259,27 +285881,21 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRotationSchedulesResponse.decode = function decode(reader, length, error, long) { + PAMRotationSchedulesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRotationSchedulesResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.schedules && message.schedules.length)) message.schedules = []; - message.schedules.push($root.PAM.PAMRotationSchedule.decode(reader, reader.uint32(), undefined, long + 1)); + message.schedules.push($root.PAM.PAMRotationSchedule.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -310310,18 +285926,14 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMRotationSchedulesResponse.verify = function verify(message, long) { + PAMRotationSchedulesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.schedules != null && message.hasOwnProperty("schedules")) { if (!Array.isArray(message.schedules)) return "schedules: array expected"; for (let i = 0; i < message.schedules.length; ++i) { - let error = $root.PAM.PAMRotationSchedule.verify(message.schedules[i], long + 1); + let error = $root.PAM.PAMRotationSchedule.verify(message.schedules[i]); if (error) return "schedules." + error; } @@ -310337,13 +285949,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMRotationSchedulesResponse} PAMRotationSchedulesResponse */ - PAMRotationSchedulesResponse.fromObject = function fromObject(object, long) { + PAMRotationSchedulesResponse.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMRotationSchedulesResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMRotationSchedulesResponse(); if (object.schedules) { if (!Array.isArray(object.schedules)) @@ -310352,7 +285960,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.schedules.length; ++i) { if (typeof object.schedules[i] !== "object") throw TypeError(".PAM.PAMRotationSchedulesResponse.schedules: object expected"); - message.schedules[i] = $root.PAM.PAMRotationSchedule.fromObject(object.schedules[i], long + 1); + message.schedules[i] = $root.PAM.PAMRotationSchedule.fromObject(object.schedules[i]); } } return message; @@ -310367,20 +285975,16 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRotationSchedulesResponse.toObject = function toObject(message, options, q) { + PAMRotationSchedulesResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.schedules = []; if (message.schedules && message.schedules.length) { object.schedules = []; for (let j = 0; j < message.schedules.length; ++j) - object.schedules[j] = $root.PAM.PAMRotationSchedule.toObject(message.schedules[j], options, q + 1); + object.schedules[j] = $root.PAM.PAMRotationSchedule.toObject(message.schedules[j], options); } return object; }; @@ -310439,7 +286043,7 @@ export const PAM = $root.PAM = (() => { this.connections = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -310504,13 +286108,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMOnlineController.encode = function encode(message, writer, q) { + PAMOnlineController.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); if (message.connectedOn != null && Object.hasOwnProperty.call(message, "connectedOn")) @@ -310521,7 +286121,7 @@ export const PAM = $root.PAM = (() => { writer.uint32(/* id 4, wireType 2 =*/34).string(message.version); if (message.connections != null && message.connections.length) for (let i = 0; i < message.connections.length; ++i) - $root.PAM.PAMWebRtcConnection.encode(message.connections[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.PAM.PAMWebRtcConnection.encode(message.connections[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -310549,18 +286149,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMOnlineController.decode = function decode(reader, length, error, long) { + PAMOnlineController.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMOnlineController(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.controllerUid = reader.bytes(); @@ -310581,11 +286175,11 @@ export const PAM = $root.PAM = (() => { case 5: { if (!(message.connections && message.connections.length)) message.connections = []; - message.connections.push($root.PAM.PAMWebRtcConnection.decode(reader, reader.uint32(), undefined, long + 1)); + message.connections.push($root.PAM.PAMWebRtcConnection.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -310616,13 +286210,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMOnlineController.verify = function verify(message, long) { + PAMOnlineController.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) return "controllerUid: buffer expected"; @@ -310639,7 +286229,7 @@ export const PAM = $root.PAM = (() => { if (!Array.isArray(message.connections)) return "connections: array expected"; for (let i = 0; i < message.connections.length; ++i) { - let error = $root.PAM.PAMWebRtcConnection.verify(message.connections[i], long + 1); + let error = $root.PAM.PAMWebRtcConnection.verify(message.connections[i]); if (error) return "connections." + error; } @@ -310655,13 +286245,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMOnlineController} PAMOnlineController */ - PAMOnlineController.fromObject = function fromObject(object, long) { + PAMOnlineController.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMOnlineController) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMOnlineController(); if (object.controllerUid != null) if (typeof object.controllerUid === "string") @@ -310670,7 +286256,7 @@ export const PAM = $root.PAM = (() => { message.controllerUid = object.controllerUid; if (object.connectedOn != null) if ($util.Long) - message.connectedOn = $util.Long.fromValue(object.connectedOn, false); + (message.connectedOn = $util.Long.fromValue(object.connectedOn)).unsigned = false; else if (typeof object.connectedOn === "string") message.connectedOn = parseInt(object.connectedOn, 10); else if (typeof object.connectedOn === "number") @@ -310688,7 +286274,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.connections.length; ++i) { if (typeof object.connections[i] !== "object") throw TypeError(".PAM.PAMOnlineController.connections: object expected"); - message.connections[i] = $root.PAM.PAMWebRtcConnection.fromObject(object.connections[i], long + 1); + message.connections[i] = $root.PAM.PAMWebRtcConnection.fromObject(object.connections[i]); } } return message; @@ -310703,13 +286289,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMOnlineController.toObject = function toObject(message, options, q) { + PAMOnlineController.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.connections = []; @@ -310723,18 +286305,16 @@ export const PAM = $root.PAM = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.connectedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.connectedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.connectedOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.connectedOn = options.longs === String ? "0" : 0; object.ipAddress = ""; object.version = ""; } if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; if (message.connectedOn != null && message.hasOwnProperty("connectedOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.connectedOn = typeof message.connectedOn === "number" ? BigInt(message.connectedOn) : $util.Long.fromBits(message.connectedOn.low >>> 0, message.connectedOn.high >>> 0, false).toBigInt(); - else if (typeof message.connectedOn === "number") + if (typeof message.connectedOn === "number") object.connectedOn = options.longs === String ? String(message.connectedOn) : message.connectedOn; else object.connectedOn = options.longs === String ? $util.Long.prototype.toString.call(message.connectedOn) : options.longs === Number ? new $util.LongBits(message.connectedOn.low >>> 0, message.connectedOn.high >>> 0).toNumber() : message.connectedOn; @@ -310745,7 +286325,7 @@ export const PAM = $root.PAM = (() => { if (message.connections && message.connections.length) { object.connections = []; for (let j = 0; j < message.connections.length; ++j) - object.connections[j] = $root.PAM.PAMWebRtcConnection.toObject(message.connections[j], options, q + 1); + object.connections[j] = $root.PAM.PAMWebRtcConnection.toObject(message.connections[j], options); } return object; }; @@ -310836,7 +286416,7 @@ export const PAM = $root.PAM = (() => { function PAMWebRtcConnection(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -310909,13 +286489,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMWebRtcConnection.encode = function encode(message, writer, q) { + PAMWebRtcConnection.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); if (message.type != null && Object.hasOwnProperty.call(message, "type")) @@ -310955,18 +286531,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMWebRtcConnection.decode = function decode(reader, length, error, long) { + PAMWebRtcConnection.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMWebRtcConnection(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.connectionUid = reader.bytes(); @@ -310993,7 +286563,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -311024,13 +286594,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMWebRtcConnection.verify = function verify(message, long) { + PAMWebRtcConnection.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.connectionUid != null && message.hasOwnProperty("connectionUid")) if (!(message.connectionUid && typeof message.connectionUid.length === "number" || $util.isString(message.connectionUid))) return "connectionUid: buffer expected"; @@ -311074,13 +286640,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMWebRtcConnection} PAMWebRtcConnection */ - PAMWebRtcConnection.fromObject = function fromObject(object, long) { + PAMWebRtcConnection.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMWebRtcConnection) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMWebRtcConnection(); if (object.connectionUid != null) if (typeof object.connectionUid === "string") @@ -311148,7 +286710,7 @@ export const PAM = $root.PAM = (() => { message.userName = String(object.userName); if (object.startedOn != null) if ($util.Long) - message.startedOn = $util.Long.fromValue(object.startedOn, false); + (message.startedOn = $util.Long.fromValue(object.startedOn)).unsigned = false; else if (typeof object.startedOn === "string") message.startedOn = parseInt(object.startedOn, 10); else if (typeof object.startedOn === "number") @@ -311172,13 +286734,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMWebRtcConnection.toObject = function toObject(message, options, q) { + PAMWebRtcConnection.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -311199,9 +286757,9 @@ export const PAM = $root.PAM = (() => { object.userName = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.startedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.startedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.startedOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.startedOn = options.longs === String ? "0" : 0; if (options.bytes === String) object.configurationUid = ""; else { @@ -311219,9 +286777,7 @@ export const PAM = $root.PAM = (() => { if (message.userName != null && message.hasOwnProperty("userName")) object.userName = message.userName; if (message.startedOn != null && message.hasOwnProperty("startedOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.startedOn = typeof message.startedOn === "number" ? BigInt(message.startedOn) : $util.Long.fromBits(message.startedOn.low >>> 0, message.startedOn.high >>> 0, false).toBigInt(); - else if (typeof message.startedOn === "number") + if (typeof message.startedOn === "number") object.startedOn = options.longs === String ? String(message.startedOn) : message.startedOn; else object.startedOn = options.longs === String ? $util.Long.prototype.toString.call(message.startedOn) : options.longs === Number ? new $util.LongBits(message.startedOn.low >>> 0, message.startedOn.high >>> 0).toNumber() : message.startedOn; @@ -311282,7 +286838,7 @@ export const PAM = $root.PAM = (() => { this.controllers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -311323,19 +286879,15 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMOnlineControllers.encode = function encode(message, writer, q) { + PAMOnlineControllers.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.deprecated != null && message.deprecated.length) for (let i = 0; i < message.deprecated.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.deprecated[i]); if (message.controllers != null && message.controllers.length) for (let i = 0; i < message.controllers.length; ++i) - $root.PAM.PAMOnlineController.encode(message.controllers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.PAM.PAMOnlineController.encode(message.controllers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -311363,18 +286915,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMOnlineControllers.decode = function decode(reader, length, error, long) { + PAMOnlineControllers.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMOnlineControllers(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.deprecated && message.deprecated.length)) @@ -311385,11 +286931,11 @@ export const PAM = $root.PAM = (() => { case 2: { if (!(message.controllers && message.controllers.length)) message.controllers = []; - message.controllers.push($root.PAM.PAMOnlineController.decode(reader, reader.uint32(), undefined, long + 1)); + message.controllers.push($root.PAM.PAMOnlineController.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -311420,13 +286966,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMOnlineControllers.verify = function verify(message, long) { + PAMOnlineControllers.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) { if (!Array.isArray(message.deprecated)) return "deprecated: array expected"; @@ -311438,7 +286980,7 @@ export const PAM = $root.PAM = (() => { if (!Array.isArray(message.controllers)) return "controllers: array expected"; for (let i = 0; i < message.controllers.length; ++i) { - let error = $root.PAM.PAMOnlineController.verify(message.controllers[i], long + 1); + let error = $root.PAM.PAMOnlineController.verify(message.controllers[i]); if (error) return "controllers." + error; } @@ -311454,13 +286996,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMOnlineControllers} PAMOnlineControllers */ - PAMOnlineControllers.fromObject = function fromObject(object, long) { + PAMOnlineControllers.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMOnlineControllers) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMOnlineControllers(); if (object.deprecated) { if (!Array.isArray(object.deprecated)) @@ -311479,7 +287017,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.controllers.length; ++i) { if (typeof object.controllers[i] !== "object") throw TypeError(".PAM.PAMOnlineControllers.controllers: object expected"); - message.controllers[i] = $root.PAM.PAMOnlineController.fromObject(object.controllers[i], long + 1); + message.controllers[i] = $root.PAM.PAMOnlineController.fromObject(object.controllers[i]); } } return message; @@ -311494,13 +287032,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMOnlineControllers.toObject = function toObject(message, options, q) { + PAMOnlineControllers.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.deprecated = []; @@ -311514,7 +287048,7 @@ export const PAM = $root.PAM = (() => { if (message.controllers && message.controllers.length) { object.controllers = []; for (let j = 0; j < message.controllers.length; ++j) - object.controllers[j] = $root.PAM.PAMOnlineController.toObject(message.controllers[j], options, q + 1); + object.controllers[j] = $root.PAM.PAMOnlineController.toObject(message.controllers[j], options); } return object; }; @@ -311569,7 +287103,7 @@ export const PAM = $root.PAM = (() => { function PAMRotateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -311610,13 +287144,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRotateRequest.encode = function encode(message, writer, q) { + PAMRotateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.requestUid != null && Object.hasOwnProperty.call(message, "requestUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.requestUid); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) @@ -311648,18 +287178,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRotateRequest.decode = function decode(reader, length, error, long) { + PAMRotateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRotateRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.requestUid = reader.bytes(); @@ -311670,7 +287194,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -311701,13 +287225,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMRotateRequest.verify = function verify(message, long) { + PAMRotateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.requestUid != null && message.hasOwnProperty("requestUid")) if (!(message.requestUid && typeof message.requestUid.length === "number" || $util.isString(message.requestUid))) return "requestUid: buffer expected"; @@ -311725,13 +287245,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMRotateRequest} PAMRotateRequest */ - PAMRotateRequest.fromObject = function fromObject(object, long) { + PAMRotateRequest.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMRotateRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMRotateRequest(); if (object.requestUid != null) if (typeof object.requestUid === "string") @@ -311755,13 +287271,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRotateRequest.toObject = function toObject(message, options, q) { + PAMRotateRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -311836,7 +287348,7 @@ export const PAM = $root.PAM = (() => { this.controllers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -311869,16 +287381,12 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMControllersResponse.encode = function encode(message, writer, q) { + PAMControllersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.controllers != null && message.controllers.length) for (let i = 0; i < message.controllers.length; ++i) - $root.PAM.PAMController.encode(message.controllers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.PAM.PAMController.encode(message.controllers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -311906,27 +287414,21 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMControllersResponse.decode = function decode(reader, length, error, long) { + PAMControllersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMControllersResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.controllers && message.controllers.length)) message.controllers = []; - message.controllers.push($root.PAM.PAMController.decode(reader, reader.uint32(), undefined, long + 1)); + message.controllers.push($root.PAM.PAMController.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -311957,18 +287459,14 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMControllersResponse.verify = function verify(message, long) { + PAMControllersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.controllers != null && message.hasOwnProperty("controllers")) { if (!Array.isArray(message.controllers)) return "controllers: array expected"; for (let i = 0; i < message.controllers.length; ++i) { - let error = $root.PAM.PAMController.verify(message.controllers[i], long + 1); + let error = $root.PAM.PAMController.verify(message.controllers[i]); if (error) return "controllers." + error; } @@ -311984,13 +287482,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMControllersResponse} PAMControllersResponse */ - PAMControllersResponse.fromObject = function fromObject(object, long) { + PAMControllersResponse.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMControllersResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMControllersResponse(); if (object.controllers) { if (!Array.isArray(object.controllers)) @@ -311999,7 +287493,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.controllers.length; ++i) { if (typeof object.controllers[i] !== "object") throw TypeError(".PAM.PAMControllersResponse.controllers: object expected"); - message.controllers[i] = $root.PAM.PAMController.fromObject(object.controllers[i], long + 1); + message.controllers[i] = $root.PAM.PAMController.fromObject(object.controllers[i]); } } return message; @@ -312014,20 +287508,16 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMControllersResponse.toObject = function toObject(message, options, q) { + PAMControllersResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.controllers = []; if (message.controllers && message.controllers.length) { object.controllers = []; for (let j = 0; j < message.controllers.length; ++j) - object.controllers[j] = $root.PAM.PAMController.toObject(message.controllers[j], options, q + 1); + object.controllers[j] = $root.PAM.PAMController.toObject(message.controllers[j], options); } return object; }; @@ -312082,7 +287572,7 @@ export const PAM = $root.PAM = (() => { function PAMRemoveController(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -312123,13 +287613,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRemoveController.encode = function encode(message, writer, q) { + PAMRemoveController.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); if (message.message != null && Object.hasOwnProperty.call(message, "message")) @@ -312161,18 +287647,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRemoveController.decode = function decode(reader, length, error, long) { + PAMRemoveController.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRemoveController(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.controllerUid = reader.bytes(); @@ -312183,7 +287663,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -312214,13 +287694,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMRemoveController.verify = function verify(message, long) { + PAMRemoveController.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) return "controllerUid: buffer expected"; @@ -312238,13 +287714,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMRemoveController} PAMRemoveController */ - PAMRemoveController.fromObject = function fromObject(object, long) { + PAMRemoveController.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMRemoveController) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMRemoveController(); if (object.controllerUid != null) if (typeof object.controllerUid === "string") @@ -312265,13 +287737,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRemoveController.toObject = function toObject(message, options, q) { + PAMRemoveController.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -312340,7 +287808,7 @@ export const PAM = $root.PAM = (() => { this.controllers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -312373,16 +287841,12 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRemoveControllerResponse.encode = function encode(message, writer, q) { + PAMRemoveControllerResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.controllers != null && message.controllers.length) for (let i = 0; i < message.controllers.length; ++i) - $root.PAM.PAMRemoveController.encode(message.controllers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.PAM.PAMRemoveController.encode(message.controllers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -312410,27 +287874,21 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRemoveControllerResponse.decode = function decode(reader, length, error, long) { + PAMRemoveControllerResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRemoveControllerResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.controllers && message.controllers.length)) message.controllers = []; - message.controllers.push($root.PAM.PAMRemoveController.decode(reader, reader.uint32(), undefined, long + 1)); + message.controllers.push($root.PAM.PAMRemoveController.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -312461,18 +287919,14 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMRemoveControllerResponse.verify = function verify(message, long) { + PAMRemoveControllerResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.controllers != null && message.hasOwnProperty("controllers")) { if (!Array.isArray(message.controllers)) return "controllers: array expected"; for (let i = 0; i < message.controllers.length; ++i) { - let error = $root.PAM.PAMRemoveController.verify(message.controllers[i], long + 1); + let error = $root.PAM.PAMRemoveController.verify(message.controllers[i]); if (error) return "controllers." + error; } @@ -312488,13 +287942,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMRemoveControllerResponse} PAMRemoveControllerResponse */ - PAMRemoveControllerResponse.fromObject = function fromObject(object, long) { + PAMRemoveControllerResponse.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMRemoveControllerResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMRemoveControllerResponse(); if (object.controllers) { if (!Array.isArray(object.controllers)) @@ -312503,7 +287953,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.controllers.length; ++i) { if (typeof object.controllers[i] !== "object") throw TypeError(".PAM.PAMRemoveControllerResponse.controllers: object expected"); - message.controllers[i] = $root.PAM.PAMRemoveController.fromObject(object.controllers[i], long + 1); + message.controllers[i] = $root.PAM.PAMRemoveController.fromObject(object.controllers[i]); } } return message; @@ -312518,20 +287968,16 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRemoveControllerResponse.toObject = function toObject(message, options, q) { + PAMRemoveControllerResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.controllers = []; if (message.controllers && message.controllers.length) { object.controllers = []; for (let j = 0; j < message.controllers.length; ++j) - object.controllers[j] = $root.PAM.PAMRemoveController.toObject(message.controllers[j], options, q + 1); + object.controllers[j] = $root.PAM.PAMRemoveController.toObject(message.controllers[j], options); } return object; }; @@ -312586,7 +288032,7 @@ export const PAM = $root.PAM = (() => { this.operations = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -312619,16 +288065,12 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMModifyRequest.encode = function encode(message, writer, q) { + PAMModifyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.operations != null && message.operations.length) for (let i = 0; i < message.operations.length; ++i) - $root.PAM.PAMDataOperation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.PAM.PAMDataOperation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -312656,27 +288098,21 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMModifyRequest.decode = function decode(reader, length, error, long) { + PAMModifyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMModifyRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.operations && message.operations.length)) message.operations = []; - message.operations.push($root.PAM.PAMDataOperation.decode(reader, reader.uint32(), undefined, long + 1)); + message.operations.push($root.PAM.PAMDataOperation.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -312707,18 +288143,14 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMModifyRequest.verify = function verify(message, long) { + PAMModifyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.operations != null && message.hasOwnProperty("operations")) { if (!Array.isArray(message.operations)) return "operations: array expected"; for (let i = 0; i < message.operations.length; ++i) { - let error = $root.PAM.PAMDataOperation.verify(message.operations[i], long + 1); + let error = $root.PAM.PAMDataOperation.verify(message.operations[i]); if (error) return "operations." + error; } @@ -312734,13 +288166,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMModifyRequest} PAMModifyRequest */ - PAMModifyRequest.fromObject = function fromObject(object, long) { + PAMModifyRequest.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMModifyRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMModifyRequest(); if (object.operations) { if (!Array.isArray(object.operations)) @@ -312749,7 +288177,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.operations.length; ++i) { if (typeof object.operations[i] !== "object") throw TypeError(".PAM.PAMModifyRequest.operations: object expected"); - message.operations[i] = $root.PAM.PAMDataOperation.fromObject(object.operations[i], long + 1); + message.operations[i] = $root.PAM.PAMDataOperation.fromObject(object.operations[i]); } } return message; @@ -312764,20 +288192,16 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMModifyRequest.toObject = function toObject(message, options, q) { + PAMModifyRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.operations = []; if (message.operations && message.operations.length) { object.operations = []; for (let j = 0; j < message.operations.length; ++j) - object.operations[j] = $root.PAM.PAMDataOperation.toObject(message.operations[j], options, q + 1); + object.operations[j] = $root.PAM.PAMDataOperation.toObject(message.operations[j], options); } return object; }; @@ -312833,7 +288257,7 @@ export const PAM = $root.PAM = (() => { function PAMDataOperation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -312882,19 +288306,15 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMDataOperation.encode = function encode(message, writer, q) { + PAMDataOperation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operationType); if (message.configuration != null && Object.hasOwnProperty.call(message, "configuration")) - $root.PAM.PAMConfigurationData.encode(message.configuration, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + $root.PAM.PAMConfigurationData.encode(message.configuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.element != null && Object.hasOwnProperty.call(message, "element")) - $root.PAM.PAMElementData.encode(message.element, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + $root.PAM.PAMElementData.encode(message.element, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -312922,33 +288342,27 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMDataOperation.decode = function decode(reader, length, error, long) { + PAMDataOperation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMDataOperation(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.operationType = reader.int32(); break; } case 2: { - message.configuration = $root.PAM.PAMConfigurationData.decode(reader, reader.uint32(), undefined, long + 1); + message.configuration = $root.PAM.PAMConfigurationData.decode(reader, reader.uint32()); break; } case 3: { - message.element = $root.PAM.PAMElementData.decode(reader, reader.uint32(), undefined, long + 1); + message.element = $root.PAM.PAMElementData.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -312979,13 +288393,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMDataOperation.verify = function verify(message, long) { + PAMDataOperation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.operationType != null && message.hasOwnProperty("operationType")) switch (message.operationType) { default: @@ -312997,12 +288407,12 @@ export const PAM = $root.PAM = (() => { break; } if (message.configuration != null && message.hasOwnProperty("configuration")) { - let error = $root.PAM.PAMConfigurationData.verify(message.configuration, long + 1); + let error = $root.PAM.PAMConfigurationData.verify(message.configuration); if (error) return "configuration." + error; } if (message.element != null && message.hasOwnProperty("element")) { - let error = $root.PAM.PAMElementData.verify(message.element, long + 1); + let error = $root.PAM.PAMElementData.verify(message.element); if (error) return "element." + error; } @@ -313017,13 +288427,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMDataOperation} PAMDataOperation */ - PAMDataOperation.fromObject = function fromObject(object, long) { + PAMDataOperation.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMDataOperation) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMDataOperation(); switch (object.operationType) { default: @@ -313052,12 +288458,12 @@ export const PAM = $root.PAM = (() => { if (object.configuration != null) { if (typeof object.configuration !== "object") throw TypeError(".PAM.PAMDataOperation.configuration: object expected"); - message.configuration = $root.PAM.PAMConfigurationData.fromObject(object.configuration, long + 1); + message.configuration = $root.PAM.PAMConfigurationData.fromObject(object.configuration); } if (object.element != null) { if (typeof object.element !== "object") throw TypeError(".PAM.PAMDataOperation.element: object expected"); - message.element = $root.PAM.PAMElementData.fromObject(object.element, long + 1); + message.element = $root.PAM.PAMElementData.fromObject(object.element); } return message; }; @@ -313071,13 +288477,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMDataOperation.toObject = function toObject(message, options, q) { + PAMDataOperation.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.operationType = options.enums === String ? "ADD" : 0; @@ -313087,9 +288489,9 @@ export const PAM = $root.PAM = (() => { if (message.operationType != null && message.hasOwnProperty("operationType")) object.operationType = options.enums === String ? $root.PAM.PAMOperationType[message.operationType] === undefined ? message.operationType : $root.PAM.PAMOperationType[message.operationType] : message.operationType; if (message.configuration != null && message.hasOwnProperty("configuration")) - object.configuration = $root.PAM.PAMConfigurationData.toObject(message.configuration, options, q + 1); + object.configuration = $root.PAM.PAMConfigurationData.toObject(message.configuration, options); if (message.element != null && message.hasOwnProperty("element")) - object.element = $root.PAM.PAMElementData.toObject(message.element, options, q + 1); + object.element = $root.PAM.PAMElementData.toObject(message.element, options); return object; }; @@ -313163,7 +288565,7 @@ export const PAM = $root.PAM = (() => { function PAMConfigurationData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -313220,13 +288622,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfigurationData.encode = function encode(message, writer, q) { + PAMConfigurationData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -313262,18 +288660,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMConfigurationData.decode = function decode(reader, length, error, long) { + PAMConfigurationData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfigurationData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.configurationUid = reader.bytes(); @@ -313292,7 +288684,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -313323,13 +288715,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMConfigurationData.verify = function verify(message, long) { + PAMConfigurationData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) return "configurationUid: buffer expected"; @@ -313353,13 +288741,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMConfigurationData} PAMConfigurationData */ - PAMConfigurationData.fromObject = function fromObject(object, long) { + PAMConfigurationData.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMConfigurationData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMConfigurationData(); if (object.configurationUid != null) if (typeof object.configurationUid === "string") @@ -313368,7 +288752,7 @@ export const PAM = $root.PAM = (() => { message.configurationUid = object.configurationUid; if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -313397,13 +288781,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMConfigurationData.toObject = function toObject(message, options, q) { + PAMConfigurationData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -313415,9 +288795,9 @@ export const PAM = $root.PAM = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if (options.bytes === String) object.controllerUid = ""; else { @@ -313436,9 +288816,7 @@ export const PAM = $root.PAM = (() => { if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -313500,7 +288878,7 @@ export const PAM = $root.PAM = (() => { function PAMElementData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -313549,13 +288927,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMElementData.encode = function encode(message, writer, q) { + PAMElementData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.elementUid != null && Object.hasOwnProperty.call(message, "elementUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.elementUid); if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) @@ -313589,18 +288963,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMElementData.decode = function decode(reader, length, error, long) { + PAMElementData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMElementData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.elementUid = reader.bytes(); @@ -313615,7 +288983,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -313646,13 +289014,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMElementData.verify = function verify(message, long) { + PAMElementData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.elementUid != null && message.hasOwnProperty("elementUid")) if (!(message.elementUid && typeof message.elementUid.length === "number" || $util.isString(message.elementUid))) return "elementUid: buffer expected"; @@ -313673,13 +289037,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMElementData} PAMElementData */ - PAMElementData.fromObject = function fromObject(object, long) { + PAMElementData.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMElementData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMElementData(); if (object.elementUid != null) if (typeof object.elementUid === "string") @@ -313708,13 +289068,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMElementData.toObject = function toObject(message, options, q) { + PAMElementData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -313817,7 +289173,7 @@ export const PAM = $root.PAM = (() => { function PAMElementOperationResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -313866,13 +289222,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMElementOperationResult.encode = function encode(message, writer, q) { + PAMElementOperationResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.elementUid != null && Object.hasOwnProperty.call(message, "elementUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.elementUid); if (message.result != null && Object.hasOwnProperty.call(message, "result")) @@ -313906,18 +289258,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMElementOperationResult.decode = function decode(reader, length, error, long) { + PAMElementOperationResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMElementOperationResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.elementUid = reader.bytes(); @@ -313932,7 +289278,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -313963,13 +289309,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMElementOperationResult.verify = function verify(message, long) { + PAMElementOperationResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.elementUid != null && message.hasOwnProperty("elementUid")) if (!(message.elementUid && typeof message.elementUid.length === "number" || $util.isString(message.elementUid))) return "elementUid: buffer expected"; @@ -313997,13 +289339,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMElementOperationResult} PAMElementOperationResult */ - PAMElementOperationResult.fromObject = function fromObject(object, long) { + PAMElementOperationResult.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMElementOperationResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMElementOperationResult(); if (object.elementUid != null) if (typeof object.elementUid === "string") @@ -314048,13 +289386,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMElementOperationResult.toObject = function toObject(message, options, q) { + PAMElementOperationResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -314126,7 +289460,7 @@ export const PAM = $root.PAM = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -314159,16 +289493,12 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMModifyResult.encode = function encode(message, writer, q) { + PAMModifyResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.PAM.PAMElementOperationResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.PAM.PAMElementOperationResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -314196,27 +289526,21 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMModifyResult.decode = function decode(reader, length, error, long) { + PAMModifyResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMModifyResult(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.results && message.results.length)) message.results = []; - message.results.push($root.PAM.PAMElementOperationResult.decode(reader, reader.uint32(), undefined, long + 1)); + message.results.push($root.PAM.PAMElementOperationResult.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -314247,18 +289571,14 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMModifyResult.verify = function verify(message, long) { + PAMModifyResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.results != null && message.hasOwnProperty("results")) { if (!Array.isArray(message.results)) return "results: array expected"; for (let i = 0; i < message.results.length; ++i) { - let error = $root.PAM.PAMElementOperationResult.verify(message.results[i], long + 1); + let error = $root.PAM.PAMElementOperationResult.verify(message.results[i]); if (error) return "results." + error; } @@ -314274,13 +289594,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMModifyResult} PAMModifyResult */ - PAMModifyResult.fromObject = function fromObject(object, long) { + PAMModifyResult.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMModifyResult) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMModifyResult(); if (object.results) { if (!Array.isArray(object.results)) @@ -314289,7 +289605,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.results.length; ++i) { if (typeof object.results[i] !== "object") throw TypeError(".PAM.PAMModifyResult.results: object expected"); - message.results[i] = $root.PAM.PAMElementOperationResult.fromObject(object.results[i], long + 1); + message.results[i] = $root.PAM.PAMElementOperationResult.fromObject(object.results[i]); } } return message; @@ -314304,20 +289620,16 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMModifyResult.toObject = function toObject(message, options, q) { + PAMModifyResult.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.results = []; if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.PAM.PAMElementOperationResult.toObject(message.results[j], options, q + 1); + object.results[j] = $root.PAM.PAMElementOperationResult.toObject(message.results[j], options); } return object; }; @@ -314376,7 +289688,7 @@ export const PAM = $root.PAM = (() => { this.children = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -314441,13 +289753,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMElement.encode = function encode(message, writer, q) { + PAMElement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.elementUid != null && Object.hasOwnProperty.call(message, "elementUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.elementUid); if (message.data != null && Object.hasOwnProperty.call(message, "data")) @@ -314458,7 +289766,7 @@ export const PAM = $root.PAM = (() => { writer.uint32(/* id 4, wireType 0 =*/32).int64(message.lastModified); if (message.children != null && message.children.length) for (let i = 0; i < message.children.length; ++i) - $root.PAM.PAMElement.encode(message.children[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.PAM.PAMElement.encode(message.children[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -314486,18 +289794,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMElement.decode = function decode(reader, length, error, long) { + PAMElement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMElement(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.elementUid = reader.bytes(); @@ -314518,11 +289820,11 @@ export const PAM = $root.PAM = (() => { case 5: { if (!(message.children && message.children.length)) message.children = []; - message.children.push($root.PAM.PAMElement.decode(reader, reader.uint32(), undefined, long + 1)); + message.children.push($root.PAM.PAMElement.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -314553,13 +289855,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMElement.verify = function verify(message, long) { + PAMElement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.elementUid != null && message.hasOwnProperty("elementUid")) if (!(message.elementUid && typeof message.elementUid.length === "number" || $util.isString(message.elementUid))) return "elementUid: buffer expected"; @@ -314576,7 +289874,7 @@ export const PAM = $root.PAM = (() => { if (!Array.isArray(message.children)) return "children: array expected"; for (let i = 0; i < message.children.length; ++i) { - let error = $root.PAM.PAMElement.verify(message.children[i], long + 1); + let error = $root.PAM.PAMElement.verify(message.children[i]); if (error) return "children." + error; } @@ -314592,13 +289890,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMElement} PAMElement */ - PAMElement.fromObject = function fromObject(object, long) { + PAMElement.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMElement) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMElement(); if (object.elementUid != null) if (typeof object.elementUid === "string") @@ -314612,7 +289906,7 @@ export const PAM = $root.PAM = (() => { message.data = object.data; if (object.created != null) if ($util.Long) - message.created = $util.Long.fromValue(object.created, false); + (message.created = $util.Long.fromValue(object.created)).unsigned = false; else if (typeof object.created === "string") message.created = parseInt(object.created, 10); else if (typeof object.created === "number") @@ -314621,7 +289915,7 @@ export const PAM = $root.PAM = (() => { message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); if (object.lastModified != null) if ($util.Long) - message.lastModified = $util.Long.fromValue(object.lastModified, false); + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; else if (typeof object.lastModified === "string") message.lastModified = parseInt(object.lastModified, 10); else if (typeof object.lastModified === "number") @@ -314635,7 +289929,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.children.length; ++i) { if (typeof object.children[i] !== "object") throw TypeError(".PAM.PAMElement.children: object expected"); - message.children[i] = $root.PAM.PAMElement.fromObject(object.children[i], long + 1); + message.children[i] = $root.PAM.PAMElement.fromObject(object.children[i]); } } return message; @@ -314650,13 +289944,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMElement.toObject = function toObject(message, options, q) { + PAMElement.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.children = []; @@ -314677,37 +289967,33 @@ export const PAM = $root.PAM = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.created = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.created = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastModified = options.longs === String ? "0" : 0; } if (message.elementUid != null && message.hasOwnProperty("elementUid")) object.elementUid = options.bytes === String ? $util.base64.encode(message.elementUid, 0, message.elementUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.elementUid) : message.elementUid; if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.created != null && message.hasOwnProperty("created")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.created = typeof message.created === "number" ? BigInt(message.created) : $util.Long.fromBits(message.created.low >>> 0, message.created.high >>> 0, false).toBigInt(); - else if (typeof message.created === "number") + if (typeof message.created === "number") object.created = options.longs === String ? String(message.created) : message.created; else object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastModified = typeof message.lastModified === "number" ? BigInt(message.lastModified) : $util.Long.fromBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0, false).toBigInt(); - else if (typeof message.lastModified === "number") + if (typeof message.lastModified === "number") object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; else object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; if (message.children && message.children.length) { object.children = []; for (let j = 0; j < message.children.length; ++j) - object.children[j] = $root.PAM.PAMElement.toObject(message.children[j], options, q + 1); + object.children[j] = $root.PAM.PAMElement.toObject(message.children[j], options); } return object; }; @@ -314761,7 +290047,7 @@ export const PAM = $root.PAM = (() => { function PAMGenericUidRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -314794,13 +290080,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMGenericUidRequest.encode = function encode(message, writer, q) { + PAMGenericUidRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); return writer; @@ -314830,25 +290112,19 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMGenericUidRequest.decode = function decode(reader, length, error, long) { + PAMGenericUidRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMGenericUidRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -314879,13 +290155,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMGenericUidRequest.verify = function verify(message, long) { + PAMGenericUidRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -314900,13 +290172,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMGenericUidRequest} PAMGenericUidRequest */ - PAMGenericUidRequest.fromObject = function fromObject(object, long) { + PAMGenericUidRequest.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMGenericUidRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMGenericUidRequest(); if (object.uid != null) if (typeof object.uid === "string") @@ -314925,13 +290193,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMGenericUidRequest.toObject = function toObject(message, options, q) { + PAMGenericUidRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -314996,7 +290260,7 @@ export const PAM = $root.PAM = (() => { this.uids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -315029,13 +290293,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMGenericUidsRequest.encode = function encode(message, writer, q) { + PAMGenericUidsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uids != null && message.uids.length) for (let i = 0; i < message.uids.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uids[i]); @@ -315066,18 +290326,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMGenericUidsRequest.decode = function decode(reader, length, error, long) { + PAMGenericUidsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMGenericUidsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.uids && message.uids.length)) @@ -315086,7 +290340,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -315117,13 +290371,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMGenericUidsRequest.verify = function verify(message, long) { + PAMGenericUidsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uids != null && message.hasOwnProperty("uids")) { if (!Array.isArray(message.uids)) return "uids: array expected"; @@ -315142,13 +290392,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMGenericUidsRequest} PAMGenericUidsRequest */ - PAMGenericUidsRequest.fromObject = function fromObject(object, long) { + PAMGenericUidsRequest.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMGenericUidsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMGenericUidsRequest(); if (object.uids) { if (!Array.isArray(object.uids)) @@ -315172,13 +290418,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMGenericUidsRequest.toObject = function toObject(message, options, q) { + PAMGenericUidsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uids = []; @@ -315246,7 +290488,7 @@ export const PAM = $root.PAM = (() => { this.children = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -315327,13 +290569,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfiguration.encode = function encode(message, writer, q) { + PAMConfiguration.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) @@ -315348,7 +290586,7 @@ export const PAM = $root.PAM = (() => { writer.uint32(/* id 6, wireType 0 =*/48).int64(message.lastModified); if (message.children != null && message.children.length) for (let i = 0; i < message.children.length; ++i) - $root.PAM.PAMElement.encode(message.children[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim(); + $root.PAM.PAMElement.encode(message.children[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -315376,18 +290614,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMConfiguration.decode = function decode(reader, length, error, long) { + PAMConfiguration.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfiguration(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.configurationUid = reader.bytes(); @@ -315416,11 +290648,11 @@ export const PAM = $root.PAM = (() => { case 7: { if (!(message.children && message.children.length)) message.children = []; - message.children.push($root.PAM.PAMElement.decode(reader, reader.uint32(), undefined, long + 1)); + message.children.push($root.PAM.PAMElement.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -315451,13 +290683,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMConfiguration.verify = function verify(message, long) { + PAMConfiguration.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) return "configurationUid: buffer expected"; @@ -315480,7 +290708,7 @@ export const PAM = $root.PAM = (() => { if (!Array.isArray(message.children)) return "children: array expected"; for (let i = 0; i < message.children.length; ++i) { - let error = $root.PAM.PAMElement.verify(message.children[i], long + 1); + let error = $root.PAM.PAMElement.verify(message.children[i]); if (error) return "children." + error; } @@ -315496,13 +290724,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMConfiguration} PAMConfiguration */ - PAMConfiguration.fromObject = function fromObject(object, long) { + PAMConfiguration.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMConfiguration) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMConfiguration(); if (object.configurationUid != null) if (typeof object.configurationUid === "string") @@ -315511,7 +290735,7 @@ export const PAM = $root.PAM = (() => { message.configurationUid = object.configurationUid; if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -315530,7 +290754,7 @@ export const PAM = $root.PAM = (() => { message.data = object.data; if (object.created != null) if ($util.Long) - message.created = $util.Long.fromValue(object.created, false); + (message.created = $util.Long.fromValue(object.created)).unsigned = false; else if (typeof object.created === "string") message.created = parseInt(object.created, 10); else if (typeof object.created === "number") @@ -315539,7 +290763,7 @@ export const PAM = $root.PAM = (() => { message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); if (object.lastModified != null) if ($util.Long) - message.lastModified = $util.Long.fromValue(object.lastModified, false); + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; else if (typeof object.lastModified === "string") message.lastModified = parseInt(object.lastModified, 10); else if (typeof object.lastModified === "number") @@ -315553,7 +290777,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.children.length; ++i) { if (typeof object.children[i] !== "object") throw TypeError(".PAM.PAMConfiguration.children: object expected"); - message.children[i] = $root.PAM.PAMElement.fromObject(object.children[i], long + 1); + message.children[i] = $root.PAM.PAMElement.fromObject(object.children[i]); } } return message; @@ -315568,13 +290792,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMConfiguration.toObject = function toObject(message, options, q) { + PAMConfiguration.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.children = []; @@ -315588,9 +290808,9 @@ export const PAM = $root.PAM = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if (options.bytes === String) object.controllerUid = ""; else { @@ -315607,21 +290827,19 @@ export const PAM = $root.PAM = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.created = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.created = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastModified = options.longs === String ? "0" : 0; } if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; @@ -315630,23 +290848,19 @@ export const PAM = $root.PAM = (() => { if (message.data != null && message.hasOwnProperty("data")) object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.created != null && message.hasOwnProperty("created")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.created = typeof message.created === "number" ? BigInt(message.created) : $util.Long.fromBits(message.created.low >>> 0, message.created.high >>> 0, false).toBigInt(); - else if (typeof message.created === "number") + if (typeof message.created === "number") object.created = options.longs === String ? String(message.created) : message.created; else object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastModified = typeof message.lastModified === "number" ? BigInt(message.lastModified) : $util.Long.fromBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0, false).toBigInt(); - else if (typeof message.lastModified === "number") + if (typeof message.lastModified === "number") object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; else object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; if (message.children && message.children.length) { object.children = []; for (let j = 0; j < message.children.length; ++j) - object.children[j] = $root.PAM.PAMElement.toObject(message.children[j], options, q + 1); + object.children[j] = $root.PAM.PAMElement.toObject(message.children[j], options); } return object; }; @@ -315701,7 +290915,7 @@ export const PAM = $root.PAM = (() => { this.configurations = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -315734,16 +290948,12 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfigurations.encode = function encode(message, writer, q) { + PAMConfigurations.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.configurations != null && message.configurations.length) for (let i = 0; i < message.configurations.length; ++i) - $root.PAM.PAMConfiguration.encode(message.configurations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.PAM.PAMConfiguration.encode(message.configurations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -315771,27 +290981,21 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMConfigurations.decode = function decode(reader, length, error, long) { + PAMConfigurations.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfigurations(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.configurations && message.configurations.length)) message.configurations = []; - message.configurations.push($root.PAM.PAMConfiguration.decode(reader, reader.uint32(), undefined, long + 1)); + message.configurations.push($root.PAM.PAMConfiguration.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -315822,18 +291026,14 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMConfigurations.verify = function verify(message, long) { + PAMConfigurations.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.configurations != null && message.hasOwnProperty("configurations")) { if (!Array.isArray(message.configurations)) return "configurations: array expected"; for (let i = 0; i < message.configurations.length; ++i) { - let error = $root.PAM.PAMConfiguration.verify(message.configurations[i], long + 1); + let error = $root.PAM.PAMConfiguration.verify(message.configurations[i]); if (error) return "configurations." + error; } @@ -315849,13 +291049,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMConfigurations} PAMConfigurations */ - PAMConfigurations.fromObject = function fromObject(object, long) { + PAMConfigurations.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMConfigurations) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMConfigurations(); if (object.configurations) { if (!Array.isArray(object.configurations)) @@ -315864,7 +291060,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.configurations.length; ++i) { if (typeof object.configurations[i] !== "object") throw TypeError(".PAM.PAMConfigurations.configurations: object expected"); - message.configurations[i] = $root.PAM.PAMConfiguration.fromObject(object.configurations[i], long + 1); + message.configurations[i] = $root.PAM.PAMConfiguration.fromObject(object.configurations[i]); } } return message; @@ -315879,20 +291075,16 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMConfigurations.toObject = function toObject(message, options, q) { + PAMConfigurations.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.configurations = []; if (message.configurations && message.configurations.length) { object.configurations = []; for (let j = 0; j < message.configurations.length; ++j) - object.configurations[j] = $root.PAM.PAMConfiguration.toObject(message.configurations[j], options, q + 1); + object.configurations[j] = $root.PAM.PAMConfiguration.toObject(message.configurations[j], options); } return object; }; @@ -315955,7 +291147,7 @@ export const PAM = $root.PAM = (() => { function PAMController(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -316060,13 +291252,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMController.encode = function encode(message, writer, q) { + PAMController.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); if (message.controllerName != null && Object.hasOwnProperty.call(message, "controllerName")) @@ -316114,18 +291302,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMController.decode = function decode(reader, length, error, long) { + PAMController.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMController(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.controllerUid = reader.bytes(); @@ -316168,7 +291350,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -316199,13 +291381,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMController.verify = function verify(message, long) { + PAMController.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) return "controllerUid: buffer expected"; @@ -316255,13 +291433,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMController} PAMController */ - PAMController.fromObject = function fromObject(object, long) { + PAMController.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMController) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMController(); if (object.controllerUid != null) if (typeof object.controllerUid === "string") @@ -316276,7 +291450,7 @@ export const PAM = $root.PAM = (() => { message.deviceName = String(object.deviceName); if (object.nodeId != null) if ($util.Long) - message.nodeId = $util.Long.fromValue(object.nodeId, false); + (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; else if (typeof object.nodeId === "string") message.nodeId = parseInt(object.nodeId, 10); else if (typeof object.nodeId === "number") @@ -316285,7 +291459,7 @@ export const PAM = $root.PAM = (() => { message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); if (object.created != null) if ($util.Long) - message.created = $util.Long.fromValue(object.created, false); + (message.created = $util.Long.fromValue(object.created)).unsigned = false; else if (typeof object.created === "string") message.created = parseInt(object.created, 10); else if (typeof object.created === "number") @@ -316294,7 +291468,7 @@ export const PAM = $root.PAM = (() => { message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); if (object.lastModified != null) if ($util.Long) - message.lastModified = $util.Long.fromValue(object.lastModified, false); + (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; else if (typeof object.lastModified === "string") message.lastModified = parseInt(object.lastModified, 10); else if (typeof object.lastModified === "number") @@ -316348,13 +291522,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMController.toObject = function toObject(message, options, q) { + PAMController.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -316369,19 +291539,19 @@ export const PAM = $root.PAM = (() => { object.deviceName = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.nodeId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.nodeId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.created = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.created = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.lastModified = options.longs === String ? "0" : 0; if (options.bytes === String) object.applicationUid = ""; else { @@ -316401,23 +291571,17 @@ export const PAM = $root.PAM = (() => { if (message.deviceName != null && message.hasOwnProperty("deviceName")) object.deviceName = message.deviceName; if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.nodeId = typeof message.nodeId === "number" ? BigInt(message.nodeId) : $util.Long.fromBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0, false).toBigInt(); - else if (typeof message.nodeId === "number") + if (typeof message.nodeId === "number") object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; if (message.created != null && message.hasOwnProperty("created")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.created = typeof message.created === "number" ? BigInt(message.created) : $util.Long.fromBits(message.created.low >>> 0, message.created.high >>> 0, false).toBigInt(); - else if (typeof message.created === "number") + if (typeof message.created === "number") object.created = options.longs === String ? String(message.created) : message.created; else object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.lastModified = typeof message.lastModified === "number" ? BigInt(message.lastModified) : $util.Long.fromBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0, false).toBigInt(); - else if (typeof message.lastModified === "number") + if (typeof message.lastModified === "number") object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; else object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; @@ -316480,7 +291644,7 @@ export const PAM = $root.PAM = (() => { function PAMSetMaxInstanceCountRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -316521,13 +291685,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMSetMaxInstanceCountRequest.encode = function encode(message, writer, q) { + PAMSetMaxInstanceCountRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.controllerUid); if (message.maxInstanceCount != null && Object.hasOwnProperty.call(message, "maxInstanceCount")) @@ -316559,18 +291719,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMSetMaxInstanceCountRequest.decode = function decode(reader, length, error, long) { + PAMSetMaxInstanceCountRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMSetMaxInstanceCountRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.controllerUid = reader.bytes(); @@ -316581,7 +291735,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -316612,13 +291766,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMSetMaxInstanceCountRequest.verify = function verify(message, long) { + PAMSetMaxInstanceCountRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) return "controllerUid: buffer expected"; @@ -316636,13 +291786,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMSetMaxInstanceCountRequest} PAMSetMaxInstanceCountRequest */ - PAMSetMaxInstanceCountRequest.fromObject = function fromObject(object, long) { + PAMSetMaxInstanceCountRequest.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMSetMaxInstanceCountRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMSetMaxInstanceCountRequest(); if (object.controllerUid != null) if (typeof object.controllerUid === "string") @@ -316663,13 +291809,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMSetMaxInstanceCountRequest.toObject = function toObject(message, options, q) { + PAMSetMaxInstanceCountRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -316765,7 +291907,7 @@ export const PAM = $root.PAM = (() => { function ControllerResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -316798,13 +291940,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ControllerResponse.encode = function encode(message, writer, q) { + ControllerResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.payload); return writer; @@ -316834,25 +291972,19 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ControllerResponse.decode = function decode(reader, length, error, long) { + ControllerResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.ControllerResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.payload = reader.string(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -316883,13 +292015,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ControllerResponse.verify = function verify(message, long) { + ControllerResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.payload != null && message.hasOwnProperty("payload")) if (!$util.isString(message.payload)) return "payload: string expected"; @@ -316904,13 +292032,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.ControllerResponse} ControllerResponse */ - ControllerResponse.fromObject = function fromObject(object, long) { + ControllerResponse.fromObject = function fromObject(object) { if (object instanceof $root.PAM.ControllerResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.ControllerResponse(); if (object.payload != null) message.payload = String(object.payload); @@ -316926,13 +292050,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ControllerResponse.toObject = function toObject(message, options, q) { + ControllerResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) object.payload = ""; @@ -316991,7 +292111,7 @@ export const PAM = $root.PAM = (() => { function PAMConfigurationController(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -317032,13 +292152,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMConfigurationController.encode = function encode(message, writer, q) { + PAMConfigurationController.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) @@ -317070,18 +292186,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMConfigurationController.decode = function decode(reader, length, error, long) { + PAMConfigurationController.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMConfigurationController(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.configurationUid = reader.bytes(); @@ -317092,7 +292202,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -317123,13 +292233,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMConfigurationController.verify = function verify(message, long) { + PAMConfigurationController.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) return "configurationUid: buffer expected"; @@ -317147,13 +292253,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMConfigurationController} PAMConfigurationController */ - PAMConfigurationController.fromObject = function fromObject(object, long) { + PAMConfigurationController.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMConfigurationController) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMConfigurationController(); if (object.configurationUid != null) if (typeof object.configurationUid === "string") @@ -317177,13 +292279,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMConfigurationController.toObject = function toObject(message, options, q) { + PAMConfigurationController.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -317262,7 +292360,7 @@ export const PAM = $root.PAM = (() => { this.recordLinks = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -317327,13 +292425,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConfigurationAddRequest.encode = function encode(message, writer, q) { + ConfigurationAddRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.configurationUid); if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) @@ -317342,9 +292436,9 @@ export const PAM = $root.PAM = (() => { writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); if (message.recordLinks != null && message.recordLinks.length) for (let i = 0; i < message.recordLinks.length; ++i) - $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim(); + $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -317372,18 +292466,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConfigurationAddRequest.decode = function decode(reader, length, error, long) { + ConfigurationAddRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.ConfigurationAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.configurationUid = reader.bytes(); @@ -317400,15 +292488,15 @@ export const PAM = $root.PAM = (() => { case 4: { if (!(message.recordLinks && message.recordLinks.length)) message.recordLinks = []; - message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32())); break; } case 5: { - message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32(), undefined, long + 1); + message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -317439,13 +292527,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConfigurationAddRequest.verify = function verify(message, long) { + ConfigurationAddRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) return "configurationUid: buffer expected"; @@ -317459,13 +292543,13 @@ export const PAM = $root.PAM = (() => { if (!Array.isArray(message.recordLinks)) return "recordLinks: array expected"; for (let i = 0; i < message.recordLinks.length; ++i) { - let error = $root.Records.RecordLink.verify(message.recordLinks[i], long + 1); + let error = $root.Records.RecordLink.verify(message.recordLinks[i]); if (error) return "recordLinks." + error; } } if (message.audit != null && message.hasOwnProperty("audit")) { - let error = $root.Records.RecordAudit.verify(message.audit, long + 1); + let error = $root.Records.RecordAudit.verify(message.audit); if (error) return "audit." + error; } @@ -317480,13 +292564,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.ConfigurationAddRequest} ConfigurationAddRequest */ - ConfigurationAddRequest.fromObject = function fromObject(object, long) { + ConfigurationAddRequest.fromObject = function fromObject(object) { if (object instanceof $root.PAM.ConfigurationAddRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.ConfigurationAddRequest(); if (object.configurationUid != null) if (typeof object.configurationUid === "string") @@ -317510,13 +292590,13 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.recordLinks.length; ++i) { if (typeof object.recordLinks[i] !== "object") throw TypeError(".PAM.ConfigurationAddRequest.recordLinks: object expected"); - message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i], long + 1); + message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i]); } } if (object.audit != null) { if (typeof object.audit !== "object") throw TypeError(".PAM.ConfigurationAddRequest.audit: object expected"); - message.audit = $root.Records.RecordAudit.fromObject(object.audit, long + 1); + message.audit = $root.Records.RecordAudit.fromObject(object.audit); } return message; }; @@ -317530,13 +292610,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConfigurationAddRequest.toObject = function toObject(message, options, q) { + ConfigurationAddRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordLinks = []; @@ -317573,10 +292649,10 @@ export const PAM = $root.PAM = (() => { if (message.recordLinks && message.recordLinks.length) { object.recordLinks = []; for (let j = 0; j < message.recordLinks.length; ++j) - object.recordLinks[j] = $root.Records.RecordLink.toObject(message.recordLinks[j], options, q + 1); + object.recordLinks[j] = $root.Records.RecordLink.toObject(message.recordLinks[j], options); } if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = $root.Records.RecordAudit.toObject(message.audit, options, q + 1); + object.audit = $root.Records.RecordAudit.toObject(message.audit, options); return object; }; @@ -317631,7 +292707,7 @@ export const PAM = $root.PAM = (() => { function RelayAccessCreds(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -317680,13 +292756,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayAccessCreds.encode = function encode(message, writer, q) { + RelayAccessCreds.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); if (message.password != null && Object.hasOwnProperty.call(message, "password")) @@ -317720,18 +292792,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayAccessCreds.decode = function decode(reader, length, error, long) { + RelayAccessCreds.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.RelayAccessCreds(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.username = reader.string(); @@ -317746,7 +292812,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -317777,13 +292843,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayAccessCreds.verify = function verify(message, long) { + RelayAccessCreds.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.username != null && message.hasOwnProperty("username")) if (!$util.isString(message.username)) return "username: string expected"; @@ -317804,13 +292866,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.RelayAccessCreds} RelayAccessCreds */ - RelayAccessCreds.fromObject = function fromObject(object, long) { + RelayAccessCreds.fromObject = function fromObject(object) { if (object instanceof $root.PAM.RelayAccessCreds) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.RelayAccessCreds(); if (object.username != null) message.username = String(object.username); @@ -317818,7 +292876,7 @@ export const PAM = $root.PAM = (() => { message.password = String(object.password); if (object.serverTime != null) if ($util.Long) - message.serverTime = $util.Long.fromValue(object.serverTime, false); + (message.serverTime = $util.Long.fromValue(object.serverTime)).unsigned = false; else if (typeof object.serverTime === "string") message.serverTime = parseInt(object.serverTime, 10); else if (typeof object.serverTime === "number") @@ -317837,31 +292895,25 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayAccessCreds.toObject = function toObject(message, options, q) { + RelayAccessCreds.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.username = ""; object.password = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.serverTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.serverTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.serverTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.serverTime = options.longs === String ? "0" : 0; } if (message.username != null && message.hasOwnProperty("username")) object.username = message.username; if (message.password != null && message.hasOwnProperty("password")) object.password = message.password; if (message.serverTime != null && message.hasOwnProperty("serverTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.serverTime = typeof message.serverTime === "number" ? BigInt(message.serverTime) : $util.Long.fromBits(message.serverTime.low >>> 0, message.serverTime.high >>> 0, false).toBigInt(); - else if (typeof message.serverTime === "number") + if (typeof message.serverTime === "number") object.serverTime = options.longs === String ? String(message.serverTime) : message.serverTime; else object.serverTime = options.longs === String ? $util.Long.prototype.toString.call(message.serverTime) : options.longs === Number ? new $util.LongBits(message.serverTime.low >>> 0, message.serverTime.high >>> 0).toNumber() : message.serverTime; @@ -317966,7 +293018,7 @@ export const PAM = $root.PAM = (() => { this.closeReasons = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -318037,13 +293089,23 @@ export const PAM = $root.PAM = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * PAMRecordingsRequest _rangeStart. + * @member {"rangeStart"|undefined} _rangeStart + * @memberof PAM.PAMRecordingsRequest + * @instance + */ Object.defineProperty(PAMRecordingsRequest.prototype, "_rangeStart", { get: $util.oneOfGetter($oneOfFields = ["rangeStart"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMRecordingsRequest _rangeEnd. + * @member {"rangeEnd"|undefined} _rangeEnd + * @memberof PAM.PAMRecordingsRequest + * @instance + */ Object.defineProperty(PAMRecordingsRequest.prototype, "_rangeEnd", { get: $util.oneOfGetter($oneOfFields = ["rangeEnd"]), set: $util.oneOfSetter($oneOfFields) @@ -318070,13 +293132,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRecordingsRequest.encode = function encode(message, writer, q) { + PAMRecordingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) @@ -318133,18 +293191,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRecordingsRequest.decode = function decode(reader, length, error, long) { + PAMRecordingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRecordingsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -318202,7 +293254,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -318233,13 +293285,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMRecordingsRequest.verify = function verify(message, long) { + PAMRecordingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) @@ -318311,13 +293359,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMRecordingsRequest} PAMRecordingsRequest */ - PAMRecordingsRequest.fromObject = function fromObject(object, long) { + PAMRecordingsRequest.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMRecordingsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMRecordingsRequest(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -318328,7 +293372,7 @@ export const PAM = $root.PAM = (() => { message.maxCount = object.maxCount | 0; if (object.rangeStart != null) if ($util.Long) - message.rangeStart = $util.Long.fromValue(object.rangeStart, false); + (message.rangeStart = $util.Long.fromValue(object.rangeStart)).unsigned = false; else if (typeof object.rangeStart === "string") message.rangeStart = parseInt(object.rangeStart, 10); else if (typeof object.rangeStart === "number") @@ -318337,7 +293381,7 @@ export const PAM = $root.PAM = (() => { message.rangeStart = new $util.LongBits(object.rangeStart.low >>> 0, object.rangeStart.high >>> 0).toNumber(); if (object.rangeEnd != null) if ($util.Long) - message.rangeEnd = $util.Long.fromValue(object.rangeEnd, false); + (message.rangeEnd = $util.Long.fromValue(object.rangeEnd)).unsigned = false; else if (typeof object.rangeEnd === "string") message.rangeEnd = parseInt(object.rangeEnd, 10); else if (typeof object.rangeEnd === "number") @@ -318432,13 +293476,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRecordingsRequest.toObject = function toObject(message, options, q) { + PAMRecordingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.types = []; @@ -318461,9 +293501,7 @@ export const PAM = $root.PAM = (() => { if (message.maxCount != null && message.hasOwnProperty("maxCount")) object.maxCount = message.maxCount; if (message.rangeStart != null && message.hasOwnProperty("rangeStart")) { - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.rangeStart = typeof message.rangeStart === "number" ? BigInt(message.rangeStart) : $util.Long.fromBits(message.rangeStart.low >>> 0, message.rangeStart.high >>> 0, false).toBigInt(); - else if (typeof message.rangeStart === "number") + if (typeof message.rangeStart === "number") object.rangeStart = options.longs === String ? String(message.rangeStart) : message.rangeStart; else object.rangeStart = options.longs === String ? $util.Long.prototype.toString.call(message.rangeStart) : options.longs === Number ? new $util.LongBits(message.rangeStart.low >>> 0, message.rangeStart.high >>> 0).toNumber() : message.rangeStart; @@ -318471,9 +293509,7 @@ export const PAM = $root.PAM = (() => { object._rangeStart = "rangeStart"; } if (message.rangeEnd != null && message.hasOwnProperty("rangeEnd")) { - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.rangeEnd = typeof message.rangeEnd === "number" ? BigInt(message.rangeEnd) : $util.Long.fromBits(message.rangeEnd.low >>> 0, message.rangeEnd.high >>> 0, false).toBigInt(); - else if (typeof message.rangeEnd === "number") + if (typeof message.rangeEnd === "number") object.rangeEnd = options.longs === String ? String(message.rangeEnd) : message.rangeEnd; else object.rangeEnd = options.longs === String ? $util.Long.prototype.toString.call(message.rangeEnd) : options.longs === Number ? new $util.LongBits(message.rangeEnd.low >>> 0, message.rangeEnd.high >>> 0).toNumber() : message.rangeEnd; @@ -318564,7 +293600,7 @@ export const PAM = $root.PAM = (() => { function PAMRecording(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -318693,13 +293729,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRecording.encode = function encode(message, writer, q) { + PAMRecording.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.connectionUid != null && Object.hasOwnProperty.call(message, "connectionUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.connectionUid); if (message.recordingType != null && Object.hasOwnProperty.call(message, "recordingType")) @@ -318753,18 +293785,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRecording.decode = function decode(reader, length, error, long) { + PAMRecording.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRecording(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.connectionUid = reader.bytes(); @@ -318819,7 +293845,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -318850,13 +293876,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMRecording.verify = function verify(message, long) { + PAMRecording.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.connectionUid != null && message.hasOwnProperty("connectionUid")) if (!(message.connectionUid && typeof message.connectionUid.length === "number" || $util.isString(message.connectionUid))) return "connectionUid: buffer expected"; @@ -318922,13 +293944,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMRecording} PAMRecording */ - PAMRecording.fromObject = function fromObject(object, long) { + PAMRecording.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMRecording) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMRecording(); if (object.connectionUid != null) if (typeof object.connectionUid === "string") @@ -318968,7 +293986,7 @@ export const PAM = $root.PAM = (() => { message.userName = String(object.userName); if (object.startedOn != null) if ($util.Long) - message.startedOn = $util.Long.fromValue(object.startedOn, false); + (message.startedOn = $util.Long.fromValue(object.startedOn)).unsigned = false; else if (typeof object.startedOn === "string") message.startedOn = parseInt(object.startedOn, 10); else if (typeof object.startedOn === "number") @@ -318979,7 +293997,7 @@ export const PAM = $root.PAM = (() => { message.length = object.length | 0; if (object.fileSize != null) if ($util.Long) - message.fileSize = $util.Long.fromValue(object.fileSize, false); + (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; else if (typeof object.fileSize === "string") message.fileSize = parseInt(object.fileSize, 10); else if (typeof object.fileSize === "number") @@ -318988,7 +294006,7 @@ export const PAM = $root.PAM = (() => { message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); if (object.createdOn != null) if ($util.Long) - message.createdOn = $util.Long.fromValue(object.createdOn, false); + (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; else if (typeof object.createdOn === "string") message.createdOn = parseInt(object.createdOn, 10); else if (typeof object.createdOn === "number") @@ -319046,13 +294064,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRecording.toObject = function toObject(message, options, q) { + PAMRecording.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -319073,20 +294087,20 @@ export const PAM = $root.PAM = (() => { object.userName = ""; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.startedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.startedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.startedOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.startedOn = options.longs === String ? "0" : 0; object.length = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.fileSize = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.fileSize = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.createdOn = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.createdOn = options.longs === String ? "0" : 0; object.protocol = ""; object.closeReason = 0; object.recordingDuration = 0; @@ -319108,25 +294122,19 @@ export const PAM = $root.PAM = (() => { if (message.userName != null && message.hasOwnProperty("userName")) object.userName = message.userName; if (message.startedOn != null && message.hasOwnProperty("startedOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.startedOn = typeof message.startedOn === "number" ? BigInt(message.startedOn) : $util.Long.fromBits(message.startedOn.low >>> 0, message.startedOn.high >>> 0, false).toBigInt(); - else if (typeof message.startedOn === "number") + if (typeof message.startedOn === "number") object.startedOn = options.longs === String ? String(message.startedOn) : message.startedOn; else object.startedOn = options.longs === String ? $util.Long.prototype.toString.call(message.startedOn) : options.longs === Number ? new $util.LongBits(message.startedOn.low >>> 0, message.startedOn.high >>> 0).toNumber() : message.startedOn; if (message.length != null && message.hasOwnProperty("length")) object.length = message.length; if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.fileSize = typeof message.fileSize === "number" ? BigInt(message.fileSize) : $util.Long.fromBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0, false).toBigInt(); - else if (typeof message.fileSize === "number") + if (typeof message.fileSize === "number") object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; else object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.createdOn = typeof message.createdOn === "number" ? BigInt(message.createdOn) : $util.Long.fromBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0, false).toBigInt(); - else if (typeof message.createdOn === "number") + if (typeof message.createdOn === "number") object.createdOn = options.longs === String ? String(message.createdOn) : message.createdOn; else object.createdOn = options.longs === String ? $util.Long.prototype.toString.call(message.createdOn) : options.longs === Number ? new $util.LongBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0).toNumber() : message.createdOn; @@ -319194,7 +294202,7 @@ export const PAM = $root.PAM = (() => { this.recordings = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -319235,16 +294243,12 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMRecordingsResponse.encode = function encode(message, writer, q) { + PAMRecordingsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordings != null && message.recordings.length) for (let i = 0; i < message.recordings.length; ++i) - $root.PAM.PAMRecording.encode(message.recordings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.PAM.PAMRecording.encode(message.recordings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasMore); return writer; @@ -319274,23 +294278,17 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMRecordingsResponse.decode = function decode(reader, length, error, long) { + PAMRecordingsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMRecordingsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.recordings && message.recordings.length)) message.recordings = []; - message.recordings.push($root.PAM.PAMRecording.decode(reader, reader.uint32(), undefined, long + 1)); + message.recordings.push($root.PAM.PAMRecording.decode(reader, reader.uint32())); break; } case 2: { @@ -319298,7 +294296,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -319329,18 +294327,14 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMRecordingsResponse.verify = function verify(message, long) { + PAMRecordingsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.recordings != null && message.hasOwnProperty("recordings")) { if (!Array.isArray(message.recordings)) return "recordings: array expected"; for (let i = 0; i < message.recordings.length; ++i) { - let error = $root.PAM.PAMRecording.verify(message.recordings[i], long + 1); + let error = $root.PAM.PAMRecording.verify(message.recordings[i]); if (error) return "recordings." + error; } @@ -319359,13 +294353,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMRecordingsResponse} PAMRecordingsResponse */ - PAMRecordingsResponse.fromObject = function fromObject(object, long) { + PAMRecordingsResponse.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMRecordingsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMRecordingsResponse(); if (object.recordings) { if (!Array.isArray(object.recordings)) @@ -319374,7 +294364,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.recordings.length; ++i) { if (typeof object.recordings[i] !== "object") throw TypeError(".PAM.PAMRecordingsResponse.recordings: object expected"); - message.recordings[i] = $root.PAM.PAMRecording.fromObject(object.recordings[i], long + 1); + message.recordings[i] = $root.PAM.PAMRecording.fromObject(object.recordings[i]); } } if (object.hasMore != null) @@ -319391,13 +294381,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMRecordingsResponse.toObject = function toObject(message, options, q) { + PAMRecordingsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.recordings = []; @@ -319406,7 +294392,7 @@ export const PAM = $root.PAM = (() => { if (message.recordings && message.recordings.length) { object.recordings = []; for (let j = 0; j < message.recordings.length; ++j) - object.recordings[j] = $root.PAM.PAMRecording.toObject(message.recordings[j], options, q + 1); + object.recordings[j] = $root.PAM.PAMRecording.toObject(message.recordings[j], options); } if (message.hasMore != null && message.hasOwnProperty("hasMore")) object.hasMore = message.hasMore; @@ -319463,7 +294449,7 @@ export const PAM = $root.PAM = (() => { function PAMData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -319504,13 +294490,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMData.encode = function encode(message, writer, q) { + PAMData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.vertex != null && Object.hasOwnProperty.call(message, "vertex")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.vertex); if (message.content != null && Object.hasOwnProperty.call(message, "content")) @@ -319542,18 +294524,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMData.decode = function decode(reader, length, error, long) { + PAMData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMData(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.vertex = reader.bytes(); @@ -319564,7 +294540,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -319595,13 +294571,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMData.verify = function verify(message, long) { + PAMData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.vertex != null && message.hasOwnProperty("vertex")) if (!(message.vertex && typeof message.vertex.length === "number" || $util.isString(message.vertex))) return "vertex: buffer expected"; @@ -319619,13 +294591,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMData} PAMData */ - PAMData.fromObject = function fromObject(object, long) { + PAMData.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMData) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMData(); if (object.vertex != null) if (typeof object.vertex === "string") @@ -319649,13 +294617,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMData.toObject = function toObject(message, options, q) { + PAMData.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if (options.bytes === String) @@ -319730,7 +294694,7 @@ export const PAM = $root.PAM = (() => { this.uids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -319763,13 +294727,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UidList.encode = function encode(message, writer, q) { + UidList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uids != null && message.uids.length) for (let i = 0; i < message.uids.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uids[i]); @@ -319800,18 +294760,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UidList.decode = function decode(reader, length, error, long) { + UidList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.UidList(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.uids && message.uids.length)) @@ -319820,7 +294774,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -319851,13 +294805,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UidList.verify = function verify(message, long) { + UidList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uids != null && message.hasOwnProperty("uids")) { if (!Array.isArray(message.uids)) return "uids: array expected"; @@ -319876,13 +294826,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.UidList} UidList */ - UidList.fromObject = function fromObject(object, long) { + UidList.fromObject = function fromObject(object) { if (object instanceof $root.PAM.UidList) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.UidList(); if (object.uids) { if (!Array.isArray(object.uids)) @@ -319906,13 +294852,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UidList.toObject = function toObject(message, options, q) { + UidList.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uids = []; @@ -319981,7 +294923,7 @@ export const PAM = $root.PAM = (() => { function PAMResourceConfig(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -320060,49 +295002,89 @@ export const PAM = $root.PAM = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * PAMResourceConfig _networkUid. + * @member {"networkUid"|undefined} _networkUid + * @memberof PAM.PAMResourceConfig + * @instance + */ Object.defineProperty(PAMResourceConfig.prototype, "_networkUid", { get: $util.oneOfGetter($oneOfFields = ["networkUid"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMResourceConfig _adminUid. + * @member {"adminUid"|undefined} _adminUid + * @memberof PAM.PAMResourceConfig + * @instance + */ Object.defineProperty(PAMResourceConfig.prototype, "_adminUid", { get: $util.oneOfGetter($oneOfFields = ["adminUid"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMResourceConfig _meta. + * @member {"meta"|undefined} _meta + * @memberof PAM.PAMResourceConfig + * @instance + */ Object.defineProperty(PAMResourceConfig.prototype, "_meta", { get: $util.oneOfGetter($oneOfFields = ["meta"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMResourceConfig _connectionSettings. + * @member {"connectionSettings"|undefined} _connectionSettings + * @memberof PAM.PAMResourceConfig + * @instance + */ Object.defineProperty(PAMResourceConfig.prototype, "_connectionSettings", { get: $util.oneOfGetter($oneOfFields = ["connectionSettings"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMResourceConfig _connectUsers. + * @member {"connectUsers"|undefined} _connectUsers + * @memberof PAM.PAMResourceConfig + * @instance + */ Object.defineProperty(PAMResourceConfig.prototype, "_connectUsers", { get: $util.oneOfGetter($oneOfFields = ["connectUsers"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMResourceConfig _domainUid. + * @member {"domainUid"|undefined} _domainUid + * @memberof PAM.PAMResourceConfig + * @instance + */ Object.defineProperty(PAMResourceConfig.prototype, "_domainUid", { get: $util.oneOfGetter($oneOfFields = ["domainUid"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMResourceConfig _jitSettings. + * @member {"jitSettings"|undefined} _jitSettings + * @memberof PAM.PAMResourceConfig + * @instance + */ Object.defineProperty(PAMResourceConfig.prototype, "_jitSettings", { get: $util.oneOfGetter($oneOfFields = ["jitSettings"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMResourceConfig _keeperAiSettings. + * @member {"keeperAiSettings"|undefined} _keeperAiSettings + * @memberof PAM.PAMResourceConfig + * @instance + */ Object.defineProperty(PAMResourceConfig.prototype, "_keeperAiSettings", { get: $util.oneOfGetter($oneOfFields = ["keeperAiSettings"]), set: $util.oneOfSetter($oneOfFields) @@ -320129,13 +295111,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMResourceConfig.encode = function encode(message, writer, q) { + PAMResourceConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) @@ -320147,7 +295125,7 @@ export const PAM = $root.PAM = (() => { if (message.connectionSettings != null && Object.hasOwnProperty.call(message, "connectionSettings")) writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.connectionSettings); if (message.connectUsers != null && Object.hasOwnProperty.call(message, "connectUsers")) - $root.PAM.UidList.encode(message.connectUsers, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.PAM.UidList.encode(message.connectUsers, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.domainUid != null && Object.hasOwnProperty.call(message, "domainUid")) writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.domainUid); if (message.jitSettings != null && Object.hasOwnProperty.call(message, "jitSettings")) @@ -320181,18 +295159,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMResourceConfig.decode = function decode(reader, length, error, long) { + PAMResourceConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMResourceConfig(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.recordUid = reader.bytes(); @@ -320215,7 +295187,7 @@ export const PAM = $root.PAM = (() => { break; } case 6: { - message.connectUsers = $root.PAM.UidList.decode(reader, reader.uint32(), undefined, long + 1); + message.connectUsers = $root.PAM.UidList.decode(reader, reader.uint32()); break; } case 7: { @@ -320231,7 +295203,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -320262,13 +295234,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMResourceConfig.verify = function verify(message, long) { + PAMResourceConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.recordUid != null && message.hasOwnProperty("recordUid")) if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) @@ -320296,7 +295264,7 @@ export const PAM = $root.PAM = (() => { if (message.connectUsers != null && message.hasOwnProperty("connectUsers")) { properties._connectUsers = 1; { - let error = $root.PAM.UidList.verify(message.connectUsers, long + 1); + let error = $root.PAM.UidList.verify(message.connectUsers); if (error) return "connectUsers." + error; } @@ -320327,13 +295295,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMResourceConfig} PAMResourceConfig */ - PAMResourceConfig.fromObject = function fromObject(object, long) { + PAMResourceConfig.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMResourceConfig) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMResourceConfig(); if (object.recordUid != null) if (typeof object.recordUid === "string") @@ -320363,7 +295327,7 @@ export const PAM = $root.PAM = (() => { if (object.connectUsers != null) { if (typeof object.connectUsers !== "object") throw TypeError(".PAM.PAMResourceConfig.connectUsers: object expected"); - message.connectUsers = $root.PAM.UidList.fromObject(object.connectUsers, long + 1); + message.connectUsers = $root.PAM.UidList.fromObject(object.connectUsers); } if (object.domainUid != null) if (typeof object.domainUid === "string") @@ -320392,13 +295356,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMResourceConfig.toObject = function toObject(message, options, q) { + PAMResourceConfig.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -320431,7 +295391,7 @@ export const PAM = $root.PAM = (() => { object._connectionSettings = "connectionSettings"; } if (message.connectUsers != null && message.hasOwnProperty("connectUsers")) { - object.connectUsers = $root.PAM.UidList.toObject(message.connectUsers, options, q + 1); + object.connectUsers = $root.PAM.UidList.toObject(message.connectUsers, options); if (options.oneofs) object._connectUsers = "connectUsers"; } @@ -320502,7 +295462,7 @@ export const PAM = $root.PAM = (() => { function PAMUniversalSyncFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -320535,13 +295495,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMUniversalSyncFolder.encode = function encode(message, writer, q) { + PAMUniversalSyncFolder.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); return writer; @@ -320571,25 +295527,19 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMUniversalSyncFolder.decode = function decode(reader, length, error, long) { + PAMUniversalSyncFolder.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMUniversalSyncFolder(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.bytes(); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -320620,13 +295570,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMUniversalSyncFolder.verify = function verify(message, long) { + PAMUniversalSyncFolder.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) return "uid: buffer expected"; @@ -320641,13 +295587,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMUniversalSyncFolder} PAMUniversalSyncFolder */ - PAMUniversalSyncFolder.fromObject = function fromObject(object, long) { + PAMUniversalSyncFolder.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMUniversalSyncFolder) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMUniversalSyncFolder(); if (object.uid != null) if (typeof object.uid === "string") @@ -320666,13 +295608,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMUniversalSyncFolder.toObject = function toObject(message, options, q) { + PAMUniversalSyncFolder.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) if (options.bytes === String) @@ -320742,7 +295680,7 @@ export const PAM = $root.PAM = (() => { this.folders = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -320797,25 +295735,45 @@ export const PAM = $root.PAM = (() => { // OneOf field names bound to virtual getters and setters let $oneOfFields; - // Virtual OneOf for proto3 optional field + /** + * PAMUniversalSyncConfig _enabled. + * @member {"enabled"|undefined} _enabled + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ Object.defineProperty(PAMUniversalSyncConfig.prototype, "_enabled", { get: $util.oneOfGetter($oneOfFields = ["enabled"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMUniversalSyncConfig _dryRunEnabled. + * @member {"dryRunEnabled"|undefined} _dryRunEnabled + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ Object.defineProperty(PAMUniversalSyncConfig.prototype, "_dryRunEnabled", { get: $util.oneOfGetter($oneOfFields = ["dryRunEnabled"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMUniversalSyncConfig _syncIdentity. + * @member {"syncIdentity"|undefined} _syncIdentity + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ Object.defineProperty(PAMUniversalSyncConfig.prototype, "_syncIdentity", { get: $util.oneOfGetter($oneOfFields = ["syncIdentity"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field + /** + * PAMUniversalSyncConfig _vaultName. + * @member {"vaultName"|undefined} _vaultName + * @memberof PAM.PAMUniversalSyncConfig + * @instance + */ Object.defineProperty(PAMUniversalSyncConfig.prototype, "_vaultName", { get: $util.oneOfGetter($oneOfFields = ["vaultName"]), set: $util.oneOfSetter($oneOfFields) @@ -320842,13 +295800,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PAMUniversalSyncConfig.encode = function encode(message, writer, q) { + PAMUniversalSyncConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.networkUid != null && Object.hasOwnProperty.call(message, "networkUid")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.networkUid); if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) @@ -320857,7 +295811,7 @@ export const PAM = $root.PAM = (() => { writer.uint32(/* id 3, wireType 0 =*/24).bool(message.dryRunEnabled); if (message.folders != null && message.folders.length) for (let i = 0; i < message.folders.length; ++i) - $root.PAM.PAMUniversalSyncFolder.encode(message.folders[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim(); + $root.PAM.PAMUniversalSyncFolder.encode(message.folders[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.syncIdentity != null && Object.hasOwnProperty.call(message, "syncIdentity")) writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.syncIdentity); if (message.vaultName != null && Object.hasOwnProperty.call(message, "vaultName")) @@ -320889,18 +295843,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PAMUniversalSyncConfig.decode = function decode(reader, length, error, long) { + PAMUniversalSyncConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PAMUniversalSyncConfig(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.networkUid = reader.bytes(); @@ -320917,7 +295865,7 @@ export const PAM = $root.PAM = (() => { case 4: { if (!(message.folders && message.folders.length)) message.folders = []; - message.folders.push($root.PAM.PAMUniversalSyncFolder.decode(reader, reader.uint32(), undefined, long + 1)); + message.folders.push($root.PAM.PAMUniversalSyncFolder.decode(reader, reader.uint32())); break; } case 5: { @@ -320929,7 +295877,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -320960,13 +295908,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PAMUniversalSyncConfig.verify = function verify(message, long) { + PAMUniversalSyncConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; let properties = {}; if (message.networkUid != null && message.hasOwnProperty("networkUid")) if (!(message.networkUid && typeof message.networkUid.length === "number" || $util.isString(message.networkUid))) @@ -320985,7 +295929,7 @@ export const PAM = $root.PAM = (() => { if (!Array.isArray(message.folders)) return "folders: array expected"; for (let i = 0; i < message.folders.length; ++i) { - let error = $root.PAM.PAMUniversalSyncFolder.verify(message.folders[i], long + 1); + let error = $root.PAM.PAMUniversalSyncFolder.verify(message.folders[i]); if (error) return "folders." + error; } @@ -321011,13 +295955,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PAMUniversalSyncConfig} PAMUniversalSyncConfig */ - PAMUniversalSyncConfig.fromObject = function fromObject(object, long) { + PAMUniversalSyncConfig.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PAMUniversalSyncConfig) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PAMUniversalSyncConfig(); if (object.networkUid != null) if (typeof object.networkUid === "string") @@ -321035,7 +295975,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.folders.length; ++i) { if (typeof object.folders[i] !== "object") throw TypeError(".PAM.PAMUniversalSyncConfig.folders: object expected"); - message.folders[i] = $root.PAM.PAMUniversalSyncFolder.fromObject(object.folders[i], long + 1); + message.folders[i] = $root.PAM.PAMUniversalSyncFolder.fromObject(object.folders[i]); } } if (object.syncIdentity != null) @@ -321060,13 +296000,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PAMUniversalSyncConfig.toObject = function toObject(message, options, q) { + PAMUniversalSyncConfig.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.folders = []; @@ -321093,7 +296029,7 @@ export const PAM = $root.PAM = (() => { if (message.folders && message.folders.length) { object.folders = []; for (let j = 0; j < message.folders.length; ++j) - object.folders[j] = $root.PAM.PAMUniversalSyncFolder.toObject(message.folders[j], options, q + 1); + object.folders[j] = $root.PAM.PAMUniversalSyncFolder.toObject(message.folders[j], options); } if (message.syncIdentity != null && message.hasOwnProperty("syncIdentity")) { object.syncIdentity = options.bytes === String ? $util.base64.encode(message.syncIdentity, 0, message.syncIdentity.length) : options.bytes === Array ? Array.prototype.slice.call(message.syncIdentity) : message.syncIdentity; @@ -321158,7 +296094,7 @@ export const PAM = $root.PAM = (() => { function NhiMetricsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -321199,13 +296135,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NhiMetricsRequest.encode = function encode(message, writer, q) { + NhiMetricsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.startTime); if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) @@ -321237,18 +296169,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NhiMetricsRequest.decode = function decode(reader, length, error, long) { + NhiMetricsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.NhiMetricsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.startTime = reader.int64(); @@ -321259,7 +296185,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -321290,13 +296216,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NhiMetricsRequest.verify = function verify(message, long) { + NhiMetricsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.startTime != null && message.hasOwnProperty("startTime")) if (!$util.isInteger(message.startTime) && !(message.startTime && $util.isInteger(message.startTime.low) && $util.isInteger(message.startTime.high))) return "startTime: integer|Long expected"; @@ -321314,17 +296236,13 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.NhiMetricsRequest} NhiMetricsRequest */ - NhiMetricsRequest.fromObject = function fromObject(object, long) { + NhiMetricsRequest.fromObject = function fromObject(object) { if (object instanceof $root.PAM.NhiMetricsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.NhiMetricsRequest(); if (object.startTime != null) if ($util.Long) - message.startTime = $util.Long.fromValue(object.startTime, false); + (message.startTime = $util.Long.fromValue(object.startTime)).unsigned = false; else if (typeof object.startTime === "string") message.startTime = parseInt(object.startTime, 10); else if (typeof object.startTime === "number") @@ -321333,7 +296251,7 @@ export const PAM = $root.PAM = (() => { message.startTime = new $util.LongBits(object.startTime.low >>> 0, object.startTime.high >>> 0).toNumber(); if (object.endTime != null) if ($util.Long) - message.endTime = $util.Long.fromValue(object.endTime, false); + (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false; else if (typeof object.endTime === "string") message.endTime = parseInt(object.endTime, 10); else if (typeof object.endTime === "number") @@ -321352,37 +296270,29 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NhiMetricsRequest.toObject = function toObject(message, options, q) { + NhiMetricsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.startTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.startTime = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.endTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.endTime = options.longs === String ? "0" : 0; } if (message.startTime != null && message.hasOwnProperty("startTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.startTime = typeof message.startTime === "number" ? BigInt(message.startTime) : $util.Long.fromBits(message.startTime.low >>> 0, message.startTime.high >>> 0, false).toBigInt(); - else if (typeof message.startTime === "number") + if (typeof message.startTime === "number") object.startTime = options.longs === String ? String(message.startTime) : message.startTime; else object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime; if (message.endTime != null && message.hasOwnProperty("endTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.endTime = typeof message.endTime === "number" ? BigInt(message.endTime) : $util.Long.fromBits(message.endTime.low >>> 0, message.endTime.high >>> 0, false).toBigInt(); - else if (typeof message.endTime === "number") + if (typeof message.endTime === "number") object.endTime = options.longs === String ? String(message.endTime) : message.endTime; else object.endTime = options.longs === String ? $util.Long.prototype.toString.call(message.endTime) : options.longs === Number ? new $util.LongBits(message.endTime.low >>> 0, message.endTime.high >>> 0).toNumber() : message.endTime; @@ -321446,7 +296356,7 @@ export const PAM = $root.PAM = (() => { function PamUsageByUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -321543,13 +296453,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PamUsageByUser.encode = function encode(message, writer, q) { + PamUsageByUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.recordRotationScheduledOk != null && Object.hasOwnProperty.call(message, "recordRotationScheduledOk")) @@ -321595,18 +296501,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PamUsageByUser.decode = function decode(reader, length, error, long) { + PamUsageByUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.PamUsageByUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -321645,7 +296545,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -321676,13 +296576,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PamUsageByUser.verify = function verify(message, long) { + PamUsageByUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -321721,13 +296617,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.PamUsageByUser} PamUsageByUser */ - PamUsageByUser.fromObject = function fromObject(object, long) { + PamUsageByUser.fromObject = function fromObject(object) { if (object instanceof $root.PAM.PamUsageByUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.PamUsageByUser(); if (object.userId != null) message.userId = object.userId | 0; @@ -321759,13 +296651,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PamUsageByUser.toObject = function toObject(message, options, q) { + PamUsageByUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -321852,7 +296740,7 @@ export const PAM = $root.PAM = (() => { function NhiUsageByUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -321917,13 +296805,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NhiUsageByUser.encode = function encode(message, writer, q) { + NhiUsageByUser.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); if (message.rotations != null && Object.hasOwnProperty.call(message, "rotations")) @@ -321961,18 +296845,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NhiUsageByUser.decode = function decode(reader, length, error, long) { + NhiUsageByUser.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.NhiUsageByUser(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.userId = reader.int32(); @@ -321995,7 +296873,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -322026,13 +296904,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NhiUsageByUser.verify = function verify(message, long) { + NhiUsageByUser.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.userId != null && message.hasOwnProperty("userId")) if (!$util.isInteger(message.userId)) return "userId: integer expected"; @@ -322059,13 +296933,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.NhiUsageByUser} NhiUsageByUser */ - NhiUsageByUser.fromObject = function fromObject(object, long) { + NhiUsageByUser.fromObject = function fromObject(object) { if (object instanceof $root.PAM.NhiUsageByUser) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.NhiUsageByUser(); if (object.userId != null) message.userId = object.userId | 0; @@ -322089,13 +296959,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NhiUsageByUser.toObject = function toObject(message, options, q) { + NhiUsageByUser.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.userId = 0; @@ -322176,7 +297042,7 @@ export const PAM = $root.PAM = (() => { this.usageByUser = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -322273,13 +297139,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NhiMetricsResponse.encode = function encode(message, writer, q) { + NhiMetricsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseId); if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) @@ -322292,14 +297154,14 @@ export const PAM = $root.PAM = (() => { writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pamGatewayOnline); if (message.pamUsageByUser != null && message.pamUsageByUser.length) for (let i = 0; i < message.pamUsageByUser.length; ++i) - $root.PAM.PamUsageByUser.encode(message.pamUsageByUser[i], writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim(); + $root.PAM.PamUsageByUser.encode(message.pamUsageByUser[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.nhiCount != null && Object.hasOwnProperty.call(message, "nhiCount")) writer.uint32(/* id 7, wireType 0 =*/56).int32(message.nhiCount); if (message.ksmNhiCount != null && Object.hasOwnProperty.call(message, "ksmNhiCount")) writer.uint32(/* id 8, wireType 0 =*/64).int32(message.ksmNhiCount); if (message.usageByUser != null && message.usageByUser.length) for (let i = 0; i < message.usageByUser.length; ++i) - $root.PAM.NhiUsageByUser.encode(message.usageByUser[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim(); + $root.PAM.NhiUsageByUser.encode(message.usageByUser[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; @@ -322327,18 +297189,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NhiMetricsResponse.decode = function decode(reader, length, error, long) { + NhiMetricsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.NhiMetricsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.enterpriseId = reader.int64(); @@ -322363,7 +297219,7 @@ export const PAM = $root.PAM = (() => { case 6: { if (!(message.pamUsageByUser && message.pamUsageByUser.length)) message.pamUsageByUser = []; - message.pamUsageByUser.push($root.PAM.PamUsageByUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.pamUsageByUser.push($root.PAM.PamUsageByUser.decode(reader, reader.uint32())); break; } case 7: { @@ -322377,11 +297233,11 @@ export const PAM = $root.PAM = (() => { case 9: { if (!(message.usageByUser && message.usageByUser.length)) message.usageByUser = []; - message.usageByUser.push($root.PAM.NhiUsageByUser.decode(reader, reader.uint32(), undefined, long + 1)); + message.usageByUser.push($root.PAM.NhiUsageByUser.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -322412,13 +297268,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NhiMetricsResponse.verify = function verify(message, long) { + NhiMetricsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) if (!$util.isInteger(message.enterpriseId) && !(message.enterpriseId && $util.isInteger(message.enterpriseId.low) && $util.isInteger(message.enterpriseId.high))) return "enterpriseId: integer|Long expected"; @@ -322438,7 +297290,7 @@ export const PAM = $root.PAM = (() => { if (!Array.isArray(message.pamUsageByUser)) return "pamUsageByUser: array expected"; for (let i = 0; i < message.pamUsageByUser.length; ++i) { - let error = $root.PAM.PamUsageByUser.verify(message.pamUsageByUser[i], long + 1); + let error = $root.PAM.PamUsageByUser.verify(message.pamUsageByUser[i]); if (error) return "pamUsageByUser." + error; } @@ -322453,7 +297305,7 @@ export const PAM = $root.PAM = (() => { if (!Array.isArray(message.usageByUser)) return "usageByUser: array expected"; for (let i = 0; i < message.usageByUser.length; ++i) { - let error = $root.PAM.NhiUsageByUser.verify(message.usageByUser[i], long + 1); + let error = $root.PAM.NhiUsageByUser.verify(message.usageByUser[i]); if (error) return "usageByUser." + error; } @@ -322469,17 +297321,13 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.NhiMetricsResponse} NhiMetricsResponse */ - NhiMetricsResponse.fromObject = function fromObject(object, long) { + NhiMetricsResponse.fromObject = function fromObject(object) { if (object instanceof $root.PAM.NhiMetricsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.NhiMetricsResponse(); if (object.enterpriseId != null) if ($util.Long) - message.enterpriseId = $util.Long.fromValue(object.enterpriseId, false); + (message.enterpriseId = $util.Long.fromValue(object.enterpriseId)).unsigned = false; else if (typeof object.enterpriseId === "string") message.enterpriseId = parseInt(object.enterpriseId, 10); else if (typeof object.enterpriseId === "number") @@ -322488,7 +297336,7 @@ export const PAM = $root.PAM = (() => { message.enterpriseId = new $util.LongBits(object.enterpriseId.low >>> 0, object.enterpriseId.high >>> 0).toNumber(); if (object.startTime != null) if ($util.Long) - message.startTime = $util.Long.fromValue(object.startTime, false); + (message.startTime = $util.Long.fromValue(object.startTime)).unsigned = false; else if (typeof object.startTime === "string") message.startTime = parseInt(object.startTime, 10); else if (typeof object.startTime === "number") @@ -322497,7 +297345,7 @@ export const PAM = $root.PAM = (() => { message.startTime = new $util.LongBits(object.startTime.low >>> 0, object.startTime.high >>> 0).toNumber(); if (object.endTime != null) if ($util.Long) - message.endTime = $util.Long.fromValue(object.endTime, false); + (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false; else if (typeof object.endTime === "string") message.endTime = parseInt(object.endTime, 10); else if (typeof object.endTime === "number") @@ -322515,7 +297363,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.pamUsageByUser.length; ++i) { if (typeof object.pamUsageByUser[i] !== "object") throw TypeError(".PAM.NhiMetricsResponse.pamUsageByUser: object expected"); - message.pamUsageByUser[i] = $root.PAM.PamUsageByUser.fromObject(object.pamUsageByUser[i], long + 1); + message.pamUsageByUser[i] = $root.PAM.PamUsageByUser.fromObject(object.pamUsageByUser[i]); } } if (object.nhiCount != null) @@ -322529,7 +297377,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.usageByUser.length; ++i) { if (typeof object.usageByUser[i] !== "object") throw TypeError(".PAM.NhiMetricsResponse.usageByUser: object expected"); - message.usageByUser[i] = $root.PAM.NhiUsageByUser.fromObject(object.usageByUser[i], long + 1); + message.usageByUser[i] = $root.PAM.NhiUsageByUser.fromObject(object.usageByUser[i]); } } return message; @@ -322544,13 +297392,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NhiMetricsResponse.toObject = function toObject(message, options, q) { + NhiMetricsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) { object.pamUsageByUser = []; @@ -322559,42 +297403,36 @@ export const PAM = $root.PAM = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.enterpriseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.enterpriseId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.enterpriseId = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.startTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.startTime = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.endTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.endTime = options.longs === String ? "0" : 0; object.uniqueKsmDevices = 0; object.pamGatewayOnline = 0; object.nhiCount = 0; object.ksmNhiCount = 0; } if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.enterpriseId = typeof message.enterpriseId === "number" ? BigInt(message.enterpriseId) : $util.Long.fromBits(message.enterpriseId.low >>> 0, message.enterpriseId.high >>> 0, false).toBigInt(); - else if (typeof message.enterpriseId === "number") + if (typeof message.enterpriseId === "number") object.enterpriseId = options.longs === String ? String(message.enterpriseId) : message.enterpriseId; else object.enterpriseId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseId) : options.longs === Number ? new $util.LongBits(message.enterpriseId.low >>> 0, message.enterpriseId.high >>> 0).toNumber() : message.enterpriseId; if (message.startTime != null && message.hasOwnProperty("startTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.startTime = typeof message.startTime === "number" ? BigInt(message.startTime) : $util.Long.fromBits(message.startTime.low >>> 0, message.startTime.high >>> 0, false).toBigInt(); - else if (typeof message.startTime === "number") + if (typeof message.startTime === "number") object.startTime = options.longs === String ? String(message.startTime) : message.startTime; else object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime; if (message.endTime != null && message.hasOwnProperty("endTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.endTime = typeof message.endTime === "number" ? BigInt(message.endTime) : $util.Long.fromBits(message.endTime.low >>> 0, message.endTime.high >>> 0, false).toBigInt(); - else if (typeof message.endTime === "number") + if (typeof message.endTime === "number") object.endTime = options.longs === String ? String(message.endTime) : message.endTime; else object.endTime = options.longs === String ? $util.Long.prototype.toString.call(message.endTime) : options.longs === Number ? new $util.LongBits(message.endTime.low >>> 0, message.endTime.high >>> 0).toNumber() : message.endTime; @@ -322605,7 +297443,7 @@ export const PAM = $root.PAM = (() => { if (message.pamUsageByUser && message.pamUsageByUser.length) { object.pamUsageByUser = []; for (let j = 0; j < message.pamUsageByUser.length; ++j) - object.pamUsageByUser[j] = $root.PAM.PamUsageByUser.toObject(message.pamUsageByUser[j], options, q + 1); + object.pamUsageByUser[j] = $root.PAM.PamUsageByUser.toObject(message.pamUsageByUser[j], options); } if (message.nhiCount != null && message.hasOwnProperty("nhiCount")) object.nhiCount = message.nhiCount; @@ -322614,7 +297452,7 @@ export const PAM = $root.PAM = (() => { if (message.usageByUser && message.usageByUser.length) { object.usageByUser = []; for (let j = 0; j < message.usageByUser.length; ++j) - object.usageByUser[j] = $root.PAM.NhiUsageByUser.toObject(message.usageByUser[j], options, q + 1); + object.usageByUser[j] = $root.PAM.NhiUsageByUser.toObject(message.usageByUser[j], options); } return object; }; @@ -322669,7 +297507,7 @@ export const PAM = $root.PAM = (() => { this.responses = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -322702,16 +297540,12 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NhiBulkMetricsResponse.encode = function encode(message, writer, q) { + NhiBulkMetricsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.responses != null && message.responses.length) for (let i = 0; i < message.responses.length; ++i) - $root.PAM.NhiMetricsResponse.encode(message.responses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.PAM.NhiMetricsResponse.encode(message.responses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -322739,27 +297573,21 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NhiBulkMetricsResponse.decode = function decode(reader, length, error, long) { + NhiBulkMetricsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.NhiBulkMetricsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.responses && message.responses.length)) message.responses = []; - message.responses.push($root.PAM.NhiMetricsResponse.decode(reader, reader.uint32(), undefined, long + 1)); + message.responses.push($root.PAM.NhiMetricsResponse.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -322790,18 +297618,14 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NhiBulkMetricsResponse.verify = function verify(message, long) { + NhiBulkMetricsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.responses != null && message.hasOwnProperty("responses")) { if (!Array.isArray(message.responses)) return "responses: array expected"; for (let i = 0; i < message.responses.length; ++i) { - let error = $root.PAM.NhiMetricsResponse.verify(message.responses[i], long + 1); + let error = $root.PAM.NhiMetricsResponse.verify(message.responses[i]); if (error) return "responses." + error; } @@ -322817,13 +297641,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.NhiBulkMetricsResponse} NhiBulkMetricsResponse */ - NhiBulkMetricsResponse.fromObject = function fromObject(object, long) { + NhiBulkMetricsResponse.fromObject = function fromObject(object) { if (object instanceof $root.PAM.NhiBulkMetricsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.NhiBulkMetricsResponse(); if (object.responses) { if (!Array.isArray(object.responses)) @@ -322832,7 +297652,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.responses.length; ++i) { if (typeof object.responses[i] !== "object") throw TypeError(".PAM.NhiBulkMetricsResponse.responses: object expected"); - message.responses[i] = $root.PAM.NhiMetricsResponse.fromObject(object.responses[i], long + 1); + message.responses[i] = $root.PAM.NhiMetricsResponse.fromObject(object.responses[i]); } } return message; @@ -322847,20 +297667,16 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NhiBulkMetricsResponse.toObject = function toObject(message, options, q) { + NhiBulkMetricsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.responses = []; if (message.responses && message.responses.length) { object.responses = []; for (let j = 0; j < message.responses.length; ++j) - object.responses[j] = $root.PAM.NhiMetricsResponse.toObject(message.responses[j], options, q + 1); + object.responses[j] = $root.PAM.NhiMetricsResponse.toObject(message.responses[j], options); } return object; }; @@ -322936,7 +297752,7 @@ export const PAM = $root.PAM = (() => { function NhiUidEntry(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -322985,13 +297801,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NhiUidEntry.encode = function encode(message, writer, q) { + NhiUidEntry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.uid); if (message.category != null && Object.hasOwnProperty.call(message, "category")) @@ -323025,18 +297837,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NhiUidEntry.decode = function decode(reader, length, error, long) { + NhiUidEntry.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.NhiUidEntry(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.uid = reader.string(); @@ -323051,7 +297857,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -323082,13 +297888,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NhiUidEntry.verify = function verify(message, long) { + NhiUidEntry.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uid != null && message.hasOwnProperty("uid")) if (!$util.isString(message.uid)) return "uid: string expected"; @@ -323117,13 +297919,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.NhiUidEntry} NhiUidEntry */ - NhiUidEntry.fromObject = function fromObject(object, long) { + NhiUidEntry.fromObject = function fromObject(object) { if (object instanceof $root.PAM.NhiUidEntry) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.NhiUidEntry(); if (object.uid != null) message.uid = String(object.uid); @@ -323169,13 +297967,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NhiUidEntry.toObject = function toObject(message, options, q) { + NhiUidEntry.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { object.uid = ""; @@ -323241,7 +298035,7 @@ export const PAM = $root.PAM = (() => { function GetNhiUidsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -323282,13 +298076,9 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNhiUidsRequest.encode = function encode(message, writer, q) { + GetNhiUidsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.startTime); if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) @@ -323320,18 +298110,12 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNhiUidsRequest.decode = function decode(reader, length, error, long) { + GetNhiUidsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.GetNhiUidsRequest(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { message.startTime = reader.int64(); @@ -323342,7 +298126,7 @@ export const PAM = $root.PAM = (() => { break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -323373,13 +298157,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNhiUidsRequest.verify = function verify(message, long) { + GetNhiUidsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.startTime != null && message.hasOwnProperty("startTime")) if (!$util.isInteger(message.startTime) && !(message.startTime && $util.isInteger(message.startTime.low) && $util.isInteger(message.startTime.high))) return "startTime: integer|Long expected"; @@ -323397,17 +298177,13 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.GetNhiUidsRequest} GetNhiUidsRequest */ - GetNhiUidsRequest.fromObject = function fromObject(object, long) { + GetNhiUidsRequest.fromObject = function fromObject(object) { if (object instanceof $root.PAM.GetNhiUidsRequest) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.GetNhiUidsRequest(); if (object.startTime != null) if ($util.Long) - message.startTime = $util.Long.fromValue(object.startTime, false); + (message.startTime = $util.Long.fromValue(object.startTime)).unsigned = false; else if (typeof object.startTime === "string") message.startTime = parseInt(object.startTime, 10); else if (typeof object.startTime === "number") @@ -323416,7 +298192,7 @@ export const PAM = $root.PAM = (() => { message.startTime = new $util.LongBits(object.startTime.low >>> 0, object.startTime.high >>> 0).toNumber(); if (object.endTime != null) if ($util.Long) - message.endTime = $util.Long.fromValue(object.endTime, false); + (message.endTime = $util.Long.fromValue(object.endTime)).unsigned = false; else if (typeof object.endTime === "string") message.endTime = parseInt(object.endTime, 10); else if (typeof object.endTime === "number") @@ -323435,37 +298211,29 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNhiUidsRequest.toObject = function toObject(message, options, q) { + GetNhiUidsRequest.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.startTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.startTime = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + object.endTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.endTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + object.endTime = options.longs === String ? "0" : 0; } if (message.startTime != null && message.hasOwnProperty("startTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.startTime = typeof message.startTime === "number" ? BigInt(message.startTime) : $util.Long.fromBits(message.startTime.low >>> 0, message.startTime.high >>> 0, false).toBigInt(); - else if (typeof message.startTime === "number") + if (typeof message.startTime === "number") object.startTime = options.longs === String ? String(message.startTime) : message.startTime; else object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime; if (message.endTime != null && message.hasOwnProperty("endTime")) - if (typeof BigInt !== "undefined" && options.longs === BigInt) - object.endTime = typeof message.endTime === "number" ? BigInt(message.endTime) : $util.Long.fromBits(message.endTime.low >>> 0, message.endTime.high >>> 0, false).toBigInt(); - else if (typeof message.endTime === "number") + if (typeof message.endTime === "number") object.endTime = options.longs === String ? String(message.endTime) : message.endTime; else object.endTime = options.longs === String ? $util.Long.prototype.toString.call(message.endTime) : options.longs === Number ? new $util.LongBits(message.endTime.low >>> 0, message.endTime.high >>> 0).toNumber() : message.endTime; @@ -323522,7 +298290,7 @@ export const PAM = $root.PAM = (() => { this.uids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null && keys[i] !== "__proto__") + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } @@ -323555,16 +298323,12 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNhiUidsResponse.encode = function encode(message, writer, q) { + GetNhiUidsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); if (message.uids != null && message.uids.length) for (let i = 0; i < message.uids.length; ++i) - $root.PAM.NhiUidEntry.encode(message.uids[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + $root.PAM.NhiUidEntry.encode(message.uids[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -323592,27 +298356,21 @@ export const PAM = $root.PAM = (() => { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNhiUidsResponse.decode = function decode(reader, length, error, long) { + GetNhiUidsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - if (long === undefined) - long = 0; - if (long > $Reader.recursionLimit) - throw Error("maximum nesting depth exceeded"); let end = length === undefined ? reader.len : reader.pos + length, message = new $root.PAM.GetNhiUidsResponse(); while (reader.pos < end) { let tag = reader.uint32(); - if (tag === error) - break; switch (tag >>> 3) { case 1: { if (!(message.uids && message.uids.length)) message.uids = []; - message.uids.push($root.PAM.NhiUidEntry.decode(reader, reader.uint32(), undefined, long + 1)); + message.uids.push($root.PAM.NhiUidEntry.decode(reader, reader.uint32())); break; } default: - reader.skipType(tag & 7, long); + reader.skipType(tag & 7); break; } } @@ -323643,18 +298401,14 @@ export const PAM = $root.PAM = (() => { * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNhiUidsResponse.verify = function verify(message, long) { + GetNhiUidsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - return "maximum nesting depth exceeded"; if (message.uids != null && message.hasOwnProperty("uids")) { if (!Array.isArray(message.uids)) return "uids: array expected"; for (let i = 0; i < message.uids.length; ++i) { - let error = $root.PAM.NhiUidEntry.verify(message.uids[i], long + 1); + let error = $root.PAM.NhiUidEntry.verify(message.uids[i]); if (error) return "uids." + error; } @@ -323670,13 +298424,9 @@ export const PAM = $root.PAM = (() => { * @param {Object.} object Plain object * @returns {PAM.GetNhiUidsResponse} GetNhiUidsResponse */ - GetNhiUidsResponse.fromObject = function fromObject(object, long) { + GetNhiUidsResponse.fromObject = function fromObject(object) { if (object instanceof $root.PAM.GetNhiUidsResponse) return object; - if (long === undefined) - long = 0; - if (long > $util.recursionLimit) - throw Error("maximum nesting depth exceeded"); let message = new $root.PAM.GetNhiUidsResponse(); if (object.uids) { if (!Array.isArray(object.uids)) @@ -323685,7 +298435,7 @@ export const PAM = $root.PAM = (() => { for (let i = 0; i < object.uids.length; ++i) { if (typeof object.uids[i] !== "object") throw TypeError(".PAM.GetNhiUidsResponse.uids: object expected"); - message.uids[i] = $root.PAM.NhiUidEntry.fromObject(object.uids[i], long + 1); + message.uids[i] = $root.PAM.NhiUidEntry.fromObject(object.uids[i]); } } return message; @@ -323700,20 +298450,16 @@ export const PAM = $root.PAM = (() => { * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNhiUidsResponse.toObject = function toObject(message, options, q) { + GetNhiUidsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - if (q === undefined) - q = 0; - if (q > $util.recursionLimit) - throw Error("max depth exceeded"); let object = {}; if (options.arrays || options.defaults) object.uids = []; if (message.uids && message.uids.length) { object.uids = []; for (let j = 0; j < message.uids.length; ++j) - object.uids[j] = $root.PAM.NhiUidEntry.toObject(message.uids[j], options, q + 1); + object.uids[j] = $root.PAM.NhiUidEntry.toObject(message.uids[j], options); } return object; }; diff --git a/keeperapi/src/restMessages.ts b/keeperapi/src/restMessages.ts index eb991ea..12e2614 100644 --- a/keeperapi/src/restMessages.ts +++ b/keeperapi/src/restMessages.ts @@ -17,6 +17,7 @@ import { Vault, Tokens, NotificationCenter, + record, } from './proto' // generated protobuf has all properties optional and nullable, while this is not an issue for KeeperApp, this type fixes it @@ -942,3 +943,13 @@ export const pamGetLeafsMessage = ( export const pamGetOnlineControllersMessage = (): RestOutMessage => createOutMessage('api/user/get_controllers', PAM.PAMOnlineControllers) + +export const keeperDriveRecordsAdd = ( + data: record.v3.IRecordsAddRequest +): RestMessage => + createMessage(data, '/vault/records/v3/add', record.v3.RecordsAddRequest, Records.RecordsModifyResponse) + +export const keeperDriveRecordsUpdate = ( + data: Records.IRecordsUpdateRequest +): RestMessage => + createMessage(data, '/vault/records/v3/update', Records.RecordsUpdateRequest, Records.RecordsModifyResponse) From e564ad8d3ca34259ca3834c22a726164f8182f2b Mon Sep 17 00:00:00 2001 From: Hoseong Lee <154545063+hleekeeper@users.noreply.github.com> Date: Tue, 21 Apr 2026 16:08:43 -0500 Subject: [PATCH 02/10] BE-6875 Support ingesting Keeper Drive records (#126) * Added isNil and toOptional * Added syncDown module * Support ingesting Keeper Drive records * fixed the broken unit tests * added a safety check * update --- .../src/__tests__/SyncDownResponseBuilder.ts | 1 + keeperapi/src/browser/index.ts | 1 + keeperapi/src/node/index.ts | 1 + keeperapi/src/syncDown/index.ts | 2 + keeperapi/src/syncDown/types.ts | 39 ++++ keeperapi/src/syncDown/utils.ts | 3 + keeperapi/src/utils.ts | 8 + keeperapi/src/vault.ts | 218 ++++++++++++++++-- 8 files changed, 250 insertions(+), 23 deletions(-) create mode 100644 keeperapi/src/syncDown/index.ts create mode 100644 keeperapi/src/syncDown/types.ts create mode 100644 keeperapi/src/syncDown/utils.ts diff --git a/keeperapi/src/__tests__/SyncDownResponseBuilder.ts b/keeperapi/src/__tests__/SyncDownResponseBuilder.ts index aee3cbb..aa40cfb 100644 --- a/keeperapi/src/__tests__/SyncDownResponseBuilder.ts +++ b/keeperapi/src/__tests__/SyncDownResponseBuilder.ts @@ -78,6 +78,7 @@ export class SyncDownResponseBuilder { removedSharedFolders: [], removedUsers: [], recordRotations: [], + keeperDriveData: {}, } } diff --git a/keeperapi/src/browser/index.ts b/keeperapi/src/browser/index.ts index 5f53829..0dbbbd9 100644 --- a/keeperapi/src/browser/index.ts +++ b/keeperapi/src/browser/index.ts @@ -13,6 +13,7 @@ export * from '../proto' export * from '../cryptoWorker' export * from '../qrc' export * from '../pam' +export * from '../syncDown' import { connectPlatform } from '../platform' import { browserPlatform } from './platform' diff --git a/keeperapi/src/node/index.ts b/keeperapi/src/node/index.ts index ce28b68..ea42189 100644 --- a/keeperapi/src/node/index.ts +++ b/keeperapi/src/node/index.ts @@ -13,6 +13,7 @@ export * from '../proto' export * from '../cryptoWorker' export * from '../qrc' export * from '../pam' +export * from '../syncDown' import { connectPlatform } from '../platform' import { nodePlatform } from './platform' diff --git a/keeperapi/src/syncDown/index.ts b/keeperapi/src/syncDown/index.ts new file mode 100644 index 0000000..ce4acb5 --- /dev/null +++ b/keeperapi/src/syncDown/index.ts @@ -0,0 +1,2 @@ +export * from './types' +export * from './utils' diff --git a/keeperapi/src/syncDown/types.ts b/keeperapi/src/syncDown/types.ts new file mode 100644 index 0000000..2682b40 --- /dev/null +++ b/keeperapi/src/syncDown/types.ts @@ -0,0 +1,39 @@ +import { Folder, common } from '../proto' + +export type DKdFolderRecord = { + kind: 'keeper_drive_folder_record' + folderUid: string + recordUid: string +} + +export type DKdRecordAccess = { + kind: 'keeper_drive_record_access' + accessUid: string + accessTypeUid: string + accessType: Folder.AccessType + recordUid: string + accessRoleType: Folder.AccessRoleType + owner?: boolean + inherited?: boolean + hidden?: boolean + deniedAccess?: boolean + canEdit?: boolean + canView?: boolean + canListAccess?: boolean + canUpdateAccess?: boolean + canDelete?: boolean + canChangeOwnership?: boolean + canRequestAccess?: boolean + canApproveAccess?: boolean + dateCreated?: number + lastModified?: number + tlaProperties?: common.tla.ITLAProperties +} + +export type DKdRecordSharingState = { + kind: 'keeper_drive_record_sharing_state' + recordUid: string + isDirectlyShared?: boolean + isIndirectlyShared?: boolean + isShared?: boolean +} diff --git a/keeperapi/src/syncDown/utils.ts b/keeperapi/src/syncDown/utils.ts new file mode 100644 index 0000000..cdfeb8e --- /dev/null +++ b/keeperapi/src/syncDown/utils.ts @@ -0,0 +1,3 @@ +export const createKdRecordAccessCompositeKey = (actorUid: string, recordUid: string) => `${actorUid}:${recordUid}` + +export const createKdFolderAccessCompositeKey = (actorUid: string, folderUid: string) => `${folderUid}:${actorUid}` diff --git a/keeperapi/src/utils.ts b/keeperapi/src/utils.ts index 19719f2..e0b4e4a 100644 --- a/keeperapi/src/utils.ts +++ b/keeperapi/src/utils.ts @@ -243,3 +243,11 @@ export function resolvablePromise(): { promise: Promise; resolve: () => vo resolve: resolver, } } + +export const isNil = (value: T | null | undefined): value is null | undefined => { + return value == null +} + +export const toOptional = (value: T | null | undefined): T | undefined => { + return value ?? undefined +} diff --git a/keeperapi/src/vault.ts b/keeperapi/src/vault.ts index f744ff4..974f39b 100644 --- a/keeperapi/src/vault.ts +++ b/keeperapi/src/vault.ts @@ -1,8 +1,8 @@ import { Auth } from './auth' import { NN, syncDownMessage } from './restMessages' import { CryptoWorkerOptions, EncryptionType, KeyStorage, platform } from './platform' -import { Records, Tokens, Vault } from './proto' -import { formatTimeDiff, webSafe64FromBytes } from './utils' +import { Folder, record, Records, Tokens, Vault } from './proto' +import { formatTimeDiff, isNil, toOptional, webSafe64FromBytes } from './utils' import { logger } from './log' import CacheStatus = Vault.CacheStatus import RecordKeyType = Records.RecordKeyType @@ -26,6 +26,8 @@ import IProfile = Vault.IProfile import IBreachWatchRecord = Vault.IBreachWatchRecord import IBreachWatchSecurityData = Vault.IBreachWatchSecurityData import type { UnwrapKeyMap } from './platform' +import { DKdFolderRecord, DKdRecordAccess, DKdRecordSharingState } from './syncDown/types' +import { createKdRecordAccessCompositeKey } from './syncDown' export type VaultStorage = KeyStorage & { put(data: VaultStorageData): Promise @@ -57,27 +59,11 @@ export type VaultStorageData = | DSecurityScoreData | DUser | DRecordRotation + | DKdFolderRecord + | DKdRecordAccess + | DKdRecordSharingState -export type VaultStorageKind = - | 'profilePic' - | 'record' - | 'metadata' - | 'non_shared_data' - | 'team' - | 'shared_folder' - | 'shared_folder_user' - | 'shared_folder_team' - | 'shared_folder_record' - | 'shared_folder_folder' - | 'user_folder' - | 'profile' - | 'continuationToken' - | 'reused_passwords' - | 'bw_record' - | 'bw_security_data' - | 'security_score_data' - | 'user' - | 'record_rotation' +export type VaultStorageKind = VaultStorageData['kind'] export type VaultStorageResult = | (T extends 'continuationToken' ? DContinuationToken : T extends 'record' ? DRecord : never) @@ -115,6 +101,7 @@ export type DRecord = { clientModifiedTime: number extra?: any udata?: Udata + isKeeperDriveData?: boolean } export type DRecordMetadata = { @@ -331,26 +318,33 @@ const getDependencies = async (folderUid: string, storage: VaultStorage, results } } -const mapKeyType = (keyType: Records.RecordKeyType): { keyId: string; encryptionType: EncryptionType } | null => { +const mapKeyType = ( + keyType: Records.RecordKeyType | Folder.EncryptedKeyType +): { keyId: string; encryptionType: EncryptionType } | null => { let keyId: string let encryptionType: EncryptionType switch (keyType) { case RecordKeyType.NO_KEY: + case Folder.EncryptedKeyType.no_key: return null case RecordKeyType.ENCRYPTED_BY_DATA_KEY: + case Folder.EncryptedKeyType.encrypted_by_data_key: keyId = 'data' encryptionType = 'cbc' break case RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM: + case Folder.EncryptedKeyType.encrypted_by_data_key_gcm: keyId = 'data' encryptionType = 'gcm' break // RSA TAGGED - might have to fallback to ecc or force ecc - dont make a change here, rely on keeperapp to provide the correct keyType case RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY: + case Folder.EncryptedKeyType.encrypted_by_public_key: keyId = 'pk_rsa' encryptionType = 'rsa' break case RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY_ECC: + case Folder.EncryptedKeyType.encrypted_by_public_key_ecc: keyId = 'pk_ecc' encryptionType = 'ecc' break @@ -1058,6 +1052,171 @@ const processSecurityScoreData = async (securityScoreDataList: Vault.ISecuritySc } } +// Keeper Drive Processors Start + +const processKdRecordAccess = async (storage: VaultStorage, kdRecordAccesses?: Folder.IRecordAccessData[] | null) => { + if (!kdRecordAccesses) return + for (const recordAccess of kdRecordAccesses) { + if ( + !recordAccess.recordUid || + !recordAccess.accessTypeUid || + isNil(recordAccess.accessType) || + isNil(recordAccess.accessRoleType) + ) + continue + const recordUid = webSafe64FromBytes(recordAccess.recordUid) + const accessTypeUid = webSafe64FromBytes(recordAccess.accessTypeUid) + await storage.put({ + kind: 'keeper_drive_record_access', + accessUid: createKdRecordAccessCompositeKey(accessTypeUid, recordUid), + accessTypeUid, + accessType: recordAccess.accessType, + recordUid, + accessRoleType: recordAccess.accessRoleType, + owner: toOptional(recordAccess.owner), + inherited: toOptional(recordAccess.inherited), + hidden: toOptional(recordAccess.hidden), + deniedAccess: toOptional(recordAccess.deniedAccess), + canEdit: toOptional(recordAccess.canEdit), + canView: toOptional(recordAccess.canView), + canListAccess: toOptional(recordAccess.canListAccess), + canUpdateAccess: toOptional(recordAccess.canUpdateAccess), + canDelete: toOptional(recordAccess.canDelete), + canChangeOwnership: toOptional(recordAccess.canChangeOwnership), + canRequestAccess: toOptional(recordAccess.canRequestAccess), + canApproveAccess: toOptional(recordAccess.canApproveAccess), + dateCreated: toOptional(recordAccess.dateCreated), + lastModified: toOptional(recordAccess.lastModified), + tlaProperties: toOptional(recordAccess.tlaProperties), + }) + } +} + +const processKdFolderRecords = async ( + storage: VaultStorage, + dependencies: Dependencies, + kdFolderRecords?: Folder.IFolderRecord[] | null +) => { + if (!kdFolderRecords) return + const recordKeyMap: UnwrapKeyMap = {} + for (const folderRecord of kdFolderRecords) { + if ( + !folderRecord.folderUid || + !folderRecord.recordMetadata || + !folderRecord.recordMetadata.recordUid || + !folderRecord.recordMetadata.encryptedRecordKey || + isNil(folderRecord.recordMetadata.encryptedRecordKeyType) || + isNil(folderRecord.folderKeyEncryptionType) + ) + continue + const folderUid = webSafe64FromBytes(folderRecord.folderUid) + const recordUid = webSafe64FromBytes(folderRecord.recordMetadata.recordUid) + const keyInfo = mapKeyType(folderRecord.recordMetadata.encryptedRecordKeyType) + if (!keyInfo) continue + recordKeyMap[recordUid] = { + data: folderRecord.recordMetadata.encryptedRecordKey, + dataId: recordUid, + keyId: + folderRecord.folderKeyEncryptionType === Folder.FolderKeyEncryptionType.ENCRYPTED_BY_PARENT_KEY + ? folderUid + : keyInfo.keyId, + encryptionType: keyInfo?.encryptionType, + unwrappedType: 'aes', + } + if (folderUid) { + addDependencies(dependencies, folderUid, recordUid, 'record') + await storage.put({ + kind: 'keeper_drive_folder_record', + folderUid, + recordUid, + }) + } + } + await platform.unwrapKeys(recordKeyMap, storage) +} + +const processKdRecordSharingStates = async ( + storage: VaultStorage, + kdRecordSharingStates?: record.v3.sharing.IRecordSharingState[] | null +) => { + if (!kdRecordSharingStates) return + for (const sharingState of kdRecordSharingStates) { + if (!sharingState.recordUid) continue + await storage.put({ + kind: 'keeper_drive_record_sharing_state', + recordUid: webSafe64FromBytes(sharingState.recordUid), + isDirectlyShared: toOptional(sharingState.isDirectlyShared), + isIndirectlyShared: toOptional(sharingState.isIndirectlyShared), + isShared: toOptional(sharingState.isShared), + }) + } +} + +const processKdRecords = async ( + storage: VaultStorage, + kdRecordData?: Folder.IRecordData[] | null, + kdRecords?: Vault.IDriveRecord[] | null +) => { + if (!kdRecordData || !kdRecords) return + const kdRecordMap: { + [key in string]: Vault.IDriveRecord + } = {} + for (const record of kdRecords) { + if (!record.recordUid || !record.revision) continue + kdRecordMap[webSafe64FromBytes(record.recordUid)] = record + } + for (const record of kdRecordData) { + if (!record.recordUid || !record.data) continue + const recordUid = webSafe64FromBytes(record.recordUid) + const metadata = kdRecordMap[recordUid] || {} + if (!metadata.version) continue + try { + const decryptedData = await platform.decrypt(record.data, recordUid, 'gcm', storage) + const recordData = JSON.parse(platform.bytesToString(decryptedData)) + await storage.put({ + kind: 'record', + uid: recordUid, + data: recordData, + version: metadata.version, + revision: metadata.revision as number, + shared: !!metadata.shared, + clientModifiedTime: metadata.clientModifiedTime as number, + isKeeperDriveData: true, + }) + } catch (err: any) { + console.error(`[kd] record ${recordUid} cannot be decrypted: ${err.message}`) + } + } +} + +const processKdRemovedFolderRecords = ( + removedDependencies: RemovedDependencies, + keeperDriveRemovedFolderRecords?: Records.IFolderRecordKey[] | null +) => { + if (!keeperDriveRemovedFolderRecords) return + for (const folderRecord of keeperDriveRemovedFolderRecords) { + if (!folderRecord.recordUid || !folderRecord.folderUid) continue + const recordUid = webSafe64FromBytes(folderRecord.recordUid) + const folderUid = webSafe64FromBytes(folderRecord.folderUid) + addRemovedDependencies(removedDependencies, folderUid, recordUid) + } +} + +const processKdRevokedRecordAccesses = async ( + storage: VaultStorage, + kdRevokedAccesses?: record.v3.sharing.IRevokedAccess[] | null +) => { + if (!kdRevokedAccesses) return + for (const revokedAccess of kdRevokedAccesses) { + if (!revokedAccess.actorUid || !revokedAccess.recordUid) continue + const actorUid = webSafe64FromBytes(revokedAccess.actorUid) + const recordUid = webSafe64FromBytes(revokedAccess.recordUid) + await storage.delete('keeper_drive_record_access', createKdRecordAccessCompositeKey(actorUid, recordUid)) + } +} + +// Keeper Drive Processors End + export type SyncLogFormat = '!' | 'raw' | 'obj' | 'str' | 'cnt' | 'cnt_t' const logProtobuf = (data: any, format: SyncLogFormat, seqNo: number, counts: any) => { @@ -1221,6 +1380,7 @@ export const syncDown = async (options: SyncDownOptions): Promise => } result.pageCount += 1 networkTime += requestTime + const keeperDriveData = resp.keeperDriveData ?? {} const dependencies = {} await processUsers(resp.users, storage) @@ -1267,6 +1427,14 @@ export const syncDown = async (options: SyncDownOptions): Promise => await processSecurityScoreData(resp.securityScoreData, storage) + await processKdRecordAccess(storage, keeperDriveData.recordAccesses) + + await processKdFolderRecords(storage, dependencies, keeperDriveData.folderRecords) + + await processKdRecords(storage, keeperDriveData.recordData, keeperDriveData.records) + + await processKdRecordSharingStates(storage, keeperDriveData.recordSharingStates) + await storage.addDependencies(dependencies) const removedDependencies = {} @@ -1325,6 +1493,10 @@ export const syncDown = async (options: SyncDownOptions): Promise => await storage.delete('user', user) } + processKdRemovedFolderRecords(removedDependencies, keeperDriveData.removedFolderRecords) + + await processKdRevokedRecordAccesses(storage, keeperDriveData.revokedRecordAccesses) + await storage.removeDependencies(removedDependencies) continuationToken = resp.continuationToken || undefined From 200a04ccc0ca231af60c8b8e4ae012ba25f00c8a Mon Sep 17 00:00:00 2001 From: Hoseong Lee <154545063+hleekeeper@users.noreply.github.com> Date: Wed, 22 Apr 2026 15:25:06 -0500 Subject: [PATCH 03/10] BE-6875 Support ingesting Keeper Drive folders (#128) * Added types DKdFolder, DKdFolderAccess, and DKdFolderSharingState * Added a method mapTeamKeyType * Ingest the Keeper Drive folder data * addressed a comment --- keeperapi/src/syncDown/types.ts | 34 ++++++ keeperapi/src/syncDown/utils.ts | 27 +++++ keeperapi/src/vault.ts | 196 +++++++++++++++++++++++++++++++- 3 files changed, 255 insertions(+), 2 deletions(-) diff --git a/keeperapi/src/syncDown/types.ts b/keeperapi/src/syncDown/types.ts index 2682b40..e96c54d 100644 --- a/keeperapi/src/syncDown/types.ts +++ b/keeperapi/src/syncDown/types.ts @@ -1,5 +1,39 @@ import { Folder, common } from '../proto' +export type DKdFolder = { + kind: 'keeper_drive_folder' + uid: string + data: { + name: string + } + parentUid?: string + ownerInfo: { + accountUid?: string + username?: string + } + lastModified?: number + type?: Folder.FolderUsageType + inheritUserPermissions?: Folder.SetBooleanValue +} + +export type DKdFolderAccess = { + kind: 'keeper_drive_folder_access' + uid: string + accessTypeUid: string + accessType: Folder.AccessType + accessRoleType: Folder.AccessRoleType + permission: Folder.IFolderPermissions + inherited?: boolean + hidden?: boolean +} + +export type DKdFolderSharingState = { + kind: 'keeper_drive_folder_sharing_state' + folderUid: string + count?: number + shared?: boolean +} + export type DKdFolderRecord = { kind: 'keeper_drive_folder_record' folderUid: string diff --git a/keeperapi/src/syncDown/utils.ts b/keeperapi/src/syncDown/utils.ts index cdfeb8e..62cc8d9 100644 --- a/keeperapi/src/syncDown/utils.ts +++ b/keeperapi/src/syncDown/utils.ts @@ -1,3 +1,30 @@ +import { Folder } from '../proto' +import { EncryptionType } from '../platform' + export const createKdRecordAccessCompositeKey = (actorUid: string, recordUid: string) => `${actorUid}:${recordUid}` export const createKdFolderAccessCompositeKey = (actorUid: string, folderUid: string) => `${folderUid}:${actorUid}` + +export const mapTeamKeyType = (keyType: Folder.EncryptedKeyType, teamUid: string) => { + let keyId: string + let encryptionType: EncryptionType + const unwrappedType = 'aes' + switch (keyType) { + case Folder.EncryptedKeyType.encrypted_by_data_key: + keyId = teamUid + encryptionType = 'cbc' + break + case Folder.EncryptedKeyType.encrypted_by_public_key: + keyId = `${teamUid}_priv` + encryptionType = 'rsa' + break + case Folder.EncryptedKeyType.encrypted_by_public_key_ecc: + keyId = `${teamUid}_ecc` + encryptionType = 'ecc' + break + default: + console.error('Unknown key type: ' + keyType) + return null + } + return { keyId, encryptionType, unwrappedType } +} diff --git a/keeperapi/src/vault.ts b/keeperapi/src/vault.ts index 974f39b..07adbeb 100644 --- a/keeperapi/src/vault.ts +++ b/keeperapi/src/vault.ts @@ -26,8 +26,16 @@ import IProfile = Vault.IProfile import IBreachWatchRecord = Vault.IBreachWatchRecord import IBreachWatchSecurityData = Vault.IBreachWatchSecurityData import type { UnwrapKeyMap } from './platform' -import { DKdFolderRecord, DKdRecordAccess, DKdRecordSharingState } from './syncDown/types' -import { createKdRecordAccessCompositeKey } from './syncDown' +import { + createKdRecordAccessCompositeKey, + DKdFolderRecord, + DKdRecordAccess, + DKdRecordSharingState, + DKdFolder, + DKdFolderAccess, + DKdFolderSharingState, + mapTeamKeyType, +} from './syncDown' export type VaultStorage = KeyStorage & { put(data: VaultStorageData): Promise @@ -62,6 +70,9 @@ export type VaultStorageData = | DKdFolderRecord | DKdRecordAccess | DKdRecordSharingState + | DKdFolder + | DKdFolderSharingState + | DKdFolderAccess export type VaultStorageKind = VaultStorageData['kind'] @@ -1054,6 +1065,175 @@ const processSecurityScoreData = async (securityScoreDataList: Vault.ISecuritySc // Keeper Drive Processors Start +const processKdRevokedFolderAccesses = async ( + storage: VaultStorage, + keeperDriveRevokedFolderAccesses?: Folder.IRevokedAccess[] | null +) => { + if (!keeperDriveRevokedFolderAccesses) return + for (const revokedAccess of keeperDriveRevokedFolderAccesses) { + if (!revokedAccess.actorUid || !revokedAccess.folderUid) continue + const actorUid = webSafe64FromBytes(revokedAccess.actorUid) + const folderUid = webSafe64FromBytes(revokedAccess.folderUid) + await storage.delete('keeper_drive_folder_access', `${folderUid}:${actorUid}`) + } +} + +const processKdRemovedFolders = async ( + storage: VaultStorage, + keeperDriveRemovedFolders?: Folder.IFolderRemoved[] | null +) => { + if (!keeperDriveRemovedFolders) return + for (const removedFolder of keeperDriveRemovedFolders) { + if (!removedFolder.folderUid) continue + const folderUid = webSafe64FromBytes(removedFolder.folderUid) + await storage.delete('keeper_drive_folder', folderUid) + } +} + +const processKdFolderKeys = async (storage: VaultStorage, folderKeys?: Folder.IFolderKey[] | null) => { + if (!folderKeys) return + const encryptedByDataKeyMap: UnwrapKeyMap = {} + const encryptedByParentKeyMap: UnwrapKeyMap = {} + const encryptedByDataKey = folderKeys.filter( + (key) => key.encryptedBy === Folder.FolderKeyEncryptionType.ENCRYPTED_BY_USER_KEY + ) + const encryptedByParentKey = folderKeys.filter( + (key) => key.encryptedBy === Folder.FolderKeyEncryptionType.ENCRYPTED_BY_PARENT_KEY + ) + for (const key of encryptedByDataKey) { + if (!key.folderUid || !key.folderKey || !key.parentUid || isNil(key.encryptedBy)) continue + const folderUid = webSafe64FromBytes(key.folderUid) + const parentUid = webSafe64FromBytes(key.parentUid) + encryptedByDataKeyMap[folderUid] = { + data: key.folderKey, + dataId: folderUid, + keyId: 'data', + encryptionType: 'gcm', + unwrappedType: 'aes', + } + } + await platform.unwrapKeys(encryptedByDataKeyMap, storage) + for (const key of encryptedByParentKey) { + if (!key.folderUid || !key.folderKey || !key.parentUid || isNil(key.encryptedBy)) continue + const folderUid = webSafe64FromBytes(key.folderUid) + const parentUid = webSafe64FromBytes(key.parentUid) + encryptedByParentKeyMap[folderUid] = { + data: key.folderKey, + dataId: folderUid, + keyId: parentUid, + encryptionType: 'gcm', + unwrappedType: 'aes', + } + } + await platform.unwrapKeys(encryptedByParentKeyMap, storage) +} + +const processKdFolderAccesses = async ( + storage: VaultStorage, + keeperDriveFolderAccesses?: Folder.IFolderAccessData[] | null +) => { + if (!keeperDriveFolderAccesses) return + const folderKeyMap: UnwrapKeyMap = {} + for (const folderAccess of keeperDriveFolderAccesses) { + const folderUid = webSafe64FromBytes(folderAccess.folderUid!) + if ( + !folderAccess.folderUid || + !folderAccess.accessTypeUid || + !folderAccess.accessRoleType || + !folderAccess.accessType || + !folderAccess.permissions + ) + continue + const accessTypeUid = webSafe64FromBytes(folderAccess.accessTypeUid) + const permission = folderAccess.permissions + // for child folders, they're only encrypted by their parent folder key + if ( + folderAccess.folderKey && + folderAccess.folderKey.encryptedKey && + !isNil(folderAccess.folderKey.encryptedKeyType) + ) { + const keyInfo = + folderAccess.accessType === Folder.AccessType.AT_USER + ? mapKeyType(folderAccess.folderKey.encryptedKeyType) + : folderAccess.accessType === Folder.AccessType.AT_TEAM + ? mapTeamKeyType(folderAccess.folderKey.encryptedKeyType, accessTypeUid) + : null + if (!keyInfo) continue + folderKeyMap[folderUid] = { + data: folderAccess.folderKey.encryptedKey, + dataId: folderUid, + keyId: keyInfo.keyId, + encryptionType: keyInfo.encryptionType, + unwrappedType: 'aes', + } + } + await storage.put({ + kind: 'keeper_drive_folder_access', + uid: folderUid, + accessTypeUid, + accessType: folderAccess.accessType, + accessRoleType: folderAccess.accessRoleType, + permission, + }) + } + await platform.unwrapKeys(folderKeyMap, storage) +} + +const processKdFolderSharingState = async ( + storage: VaultStorage, + keeperDriveFolderSharingStates?: Vault.IFolderSharingState[] | null +) => { + if (!keeperDriveFolderSharingStates) return + for (const folderSharingState of keeperDriveFolderSharingStates) { + if (!folderSharingState.folderUid) continue + await storage.put({ + kind: 'keeper_drive_folder_sharing_state', + folderUid: webSafe64FromBytes(folderSharingState.folderUid), + shared: toOptional(folderSharingState.shared), + count: toOptional(folderSharingState.count), + }) + } +} + +const processKdFolders = async (storage: VaultStorage, keeperDriveFolders?: Folder.IFolderData[] | null) => { + if (!keeperDriveFolders) return + for (const folder of keeperDriveFolders || []) { + if ( + !folder.folderUid || + !folder.folderKey || + !folder.data || + !folder.ownerInfo || + folder.type !== Folder.FolderUsageType.UT_NORMAL + ) + continue + const folderUid = webSafe64FromBytes(folder.folderUid) + const parentUid = + folder.parentUid && folder.parentUid.length > 0 ? webSafe64FromBytes(folder.parentUid) : undefined + try { + const folderData = JSON.parse( + platform.bytesToString(await platform.decrypt(folder.data, folderUid, 'gcm', storage)) + ) + await storage.put({ + kind: 'keeper_drive_folder', + uid: folderUid, + data: folderData, + parentUid, + ownerInfo: { + accountUid: folder.ownerInfo.accountUid + ? webSafe64FromBytes(folder.ownerInfo.accountUid) + : undefined, + username: toOptional(folder.ownerInfo.username), + }, + lastModified: toOptional(folder.lastModified), + type: toOptional(folder.type), + inheritUserPermissions: toOptional(folder.inheritUserPermissions), + }) + } catch (err: any) { + console.error(`[ks] folder ${folderUid} cannot be decrypted (${err.message})`) + } + } +} + const processKdRecordAccess = async (storage: VaultStorage, kdRecordAccesses?: Folder.IRecordAccessData[] | null) => { if (!kdRecordAccesses) return for (const recordAccess of kdRecordAccesses) { @@ -1427,6 +1607,14 @@ export const syncDown = async (options: SyncDownOptions): Promise => await processSecurityScoreData(resp.securityScoreData, storage) + await processKdFolderAccesses(storage, keeperDriveData.folderAccesses) + + await processKdFolderKeys(storage, keeperDriveData.folderKeys) + + await processKdFolders(storage, keeperDriveData.folders) + + await processKdFolderSharingState(storage, keeperDriveData.folderSharingState) + await processKdRecordAccess(storage, keeperDriveData.recordAccesses) await processKdFolderRecords(storage, dependencies, keeperDriveData.folderRecords) @@ -1493,6 +1681,10 @@ export const syncDown = async (options: SyncDownOptions): Promise => await storage.delete('user', user) } + await processKdRevokedFolderAccesses(storage, keeperDriveData.revokedFolderAccesses) + + await processKdRemovedFolders(storage, keeperDriveData.removedFolders) + processKdRemovedFolderRecords(removedDependencies, keeperDriveData.removedFolderRecords) await processKdRevokedRecordAccesses(storage, keeperDriveData.revokedRecordAccesses) From dd859fb0c1f54b6fbf1a0be4c20603ccde0e8958 Mon Sep 17 00:00:00 2001 From: Hoseong Lee <154545063+hleekeeper@users.noreply.github.com> Date: Thu, 23 Apr 2026 11:04:15 -0500 Subject: [PATCH 04/10] Ingest keeper drive record links data (#129) --- keeperapi/src/syncDown/types.ts | 6 ++++++ keeperapi/src/vault.ts | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/keeperapi/src/syncDown/types.ts b/keeperapi/src/syncDown/types.ts index e96c54d..962f4a9 100644 --- a/keeperapi/src/syncDown/types.ts +++ b/keeperapi/src/syncDown/types.ts @@ -71,3 +71,9 @@ export type DKdRecordSharingState = { isIndirectlyShared?: boolean isShared?: boolean } + +export type DKdRecordLink = { + kind: 'keeper_drive_record_link' + parentRecordUid: string + childRecordUid: string +} diff --git a/keeperapi/src/vault.ts b/keeperapi/src/vault.ts index 07adbeb..451ade8 100644 --- a/keeperapi/src/vault.ts +++ b/keeperapi/src/vault.ts @@ -35,6 +35,7 @@ import { DKdFolderAccess, DKdFolderSharingState, mapTeamKeyType, + DKdRecordLink, } from './syncDown' export type VaultStorage = KeyStorage & { @@ -73,6 +74,7 @@ export type VaultStorageData = | DKdFolder | DKdFolderSharingState | DKdFolderAccess + | DKdRecordLink export type VaultStorageKind = VaultStorageData['kind'] @@ -1065,6 +1067,28 @@ const processSecurityScoreData = async (securityScoreDataList: Vault.ISecuritySc // Keeper Drive Processors Start +const processKdRecordLinks = async (storage: VaultStorage, keeperDriveRecordLinks?: Vault.IRecordLink[] | null) => { + if (!keeperDriveRecordLinks) return + for (const link of keeperDriveRecordLinks) { + if (!link.childRecordUid || !link.parentRecordUid || !link.recordKey) continue + const childRecordUid = webSafe64FromBytes(link.childRecordUid) + const parentRecordUid = webSafe64FromBytes(link.parentRecordUid) + + try { + await platform.unwrapKey(link.recordKey, childRecordUid, parentRecordUid, 'gcm', 'aes', storage, true) + await storage.put({ + kind: 'keeper_drive_record_link', + childRecordUid, + parentRecordUid, + }) + } catch (e: any) { + console.error( + `[ks] The record link for ${childRecordUid} cannot be decrypted by ${parentRecordUid} (${e.message})` + ) + } + } +} + const processKdRevokedFolderAccesses = async ( storage: VaultStorage, keeperDriveRevokedFolderAccesses?: Folder.IRevokedAccess[] | null @@ -1619,6 +1643,8 @@ export const syncDown = async (options: SyncDownOptions): Promise => await processKdFolderRecords(storage, dependencies, keeperDriveData.folderRecords) + await processKdRecordLinks(storage, keeperDriveData.recordLinks) + await processKdRecords(storage, keeperDriveData.recordData, keeperDriveData.records) await processKdRecordSharingStates(storage, keeperDriveData.recordSharingStates) From 3789dfba692a4fea946bf94137599d95c7221167 Mon Sep 17 00:00:00 2001 From: Hoseong Lee <154545063+hleekeeper@users.noreply.github.com> Date: Mon, 27 Apr 2026 17:34:39 -0500 Subject: [PATCH 05/10] BE-6875 Added another optional param to the storage.delete function (#130) * Added another optional param to the storage.delete function * updated the code format --- .../src/__tests__/syncDown/utils.test.ts | 13 +++++++++++++ keeperapi/src/vault.ts | 19 ++++++++++++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 keeperapi/src/__tests__/syncDown/utils.test.ts diff --git a/keeperapi/src/__tests__/syncDown/utils.test.ts b/keeperapi/src/__tests__/syncDown/utils.test.ts new file mode 100644 index 0000000..5529606 --- /dev/null +++ b/keeperapi/src/__tests__/syncDown/utils.test.ts @@ -0,0 +1,13 @@ +import { createKdRecordAccessCompositeKey, createKdFolderAccessCompositeKey } from '../../syncDown' + +describe('createKdRecordAccessCompositeKey', () => { + it('produces actorUid:recordUid format', () => { + expect(createKdRecordAccessCompositeKey('actor1', 'record1')).toBe('actor1:record1') + }) +}) + +describe('createKdFolderAccessCompositeKey', () => { + it('produces folderUid:actorUid format', () => { + expect(createKdFolderAccessCompositeKey('actor1', 'folder1')).toBe('folder1:actor1') + }) +}) diff --git a/keeperapi/src/vault.ts b/keeperapi/src/vault.ts index 451ade8..7038b8f 100644 --- a/keeperapi/src/vault.ts +++ b/keeperapi/src/vault.ts @@ -36,8 +36,13 @@ import { DKdFolderSharingState, mapTeamKeyType, DKdRecordLink, + createKdFolderAccessCompositeKey, } from './syncDown' +export type VaultStorageDeleteOption = + | { kind: 'keeper_drive_record_access'; actorUid: string; recordUid: string } + | { kind: 'keeper_drive_folder_access'; folderUid: string; actorUid: string } + export type VaultStorage = KeyStorage & { put(data: VaultStorageData): Promise getDependencies(uid: string): Promise @@ -45,7 +50,7 @@ export type VaultStorage = KeyStorage & { removeDependencies(dependencies: RemovedDependencies): Promise clear(): Promise get(kind: T, uid?: string): Promise> - delete(kind: VaultStorageKind, uid: string | Uint8Array): Promise + delete(kind: VaultStorageKind, uid: string | Uint8Array, option?: VaultStorageDeleteOption): Promise } export type VaultStorageData = @@ -1098,7 +1103,11 @@ const processKdRevokedFolderAccesses = async ( if (!revokedAccess.actorUid || !revokedAccess.folderUid) continue const actorUid = webSafe64FromBytes(revokedAccess.actorUid) const folderUid = webSafe64FromBytes(revokedAccess.folderUid) - await storage.delete('keeper_drive_folder_access', `${folderUid}:${actorUid}`) + await storage.delete('keeper_drive_folder_access', createKdFolderAccessCompositeKey(actorUid, folderUid), { + kind: 'keeper_drive_folder_access', + actorUid, + folderUid, + }) } } @@ -1415,7 +1424,11 @@ const processKdRevokedRecordAccesses = async ( if (!revokedAccess.actorUid || !revokedAccess.recordUid) continue const actorUid = webSafe64FromBytes(revokedAccess.actorUid) const recordUid = webSafe64FromBytes(revokedAccess.recordUid) - await storage.delete('keeper_drive_record_access', createKdRecordAccessCompositeKey(actorUid, recordUid)) + await storage.delete('keeper_drive_record_access', createKdRecordAccessCompositeKey(actorUid, recordUid), { + kind: 'keeper_drive_record_access', + actorUid, + recordUid, + }) } } From 5cb881fe9d1139d158ca841788fa624f33b85216 Mon Sep 17 00:00:00 2001 From: Hoseong Lee <154545063+hleekeeper@users.noreply.github.com> Date: Thu, 30 Apr 2026 14:16:02 -0500 Subject: [PATCH 06/10] Handle removing the kd record links (#133) --- keeperapi/src/vault.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/keeperapi/src/vault.ts b/keeperapi/src/vault.ts index 7038b8f..df190b0 100644 --- a/keeperapi/src/vault.ts +++ b/keeperapi/src/vault.ts @@ -1072,6 +1072,19 @@ const processSecurityScoreData = async (securityScoreDataList: Vault.ISecuritySc // Keeper Drive Processors Start +const processKdRemovedRecordLinks = async ( + removedDependencies: RemovedDependencies, + keeperDriveRemovedRecordLinks?: Vault.IRecordLink[] | null +) => { + if (!keeperDriveRemovedRecordLinks) return + for (const link of keeperDriveRemovedRecordLinks) { + if (!link.childRecordUid || !link.parentRecordUid) continue + const childRecordUid = webSafe64FromBytes(link.childRecordUid) + const parentRecordUid = webSafe64FromBytes(link.parentRecordUid) + addRemovedDependencies(removedDependencies, parentRecordUid, childRecordUid) + } +} + const processKdRecordLinks = async (storage: VaultStorage, keeperDriveRecordLinks?: Vault.IRecordLink[] | null) => { if (!keeperDriveRecordLinks) return for (const link of keeperDriveRecordLinks) { @@ -1720,14 +1733,16 @@ export const syncDown = async (options: SyncDownOptions): Promise => await storage.delete('user', user) } - await processKdRevokedFolderAccesses(storage, keeperDriveData.revokedFolderAccesses) - await processKdRemovedFolders(storage, keeperDriveData.removedFolders) + await processKdRevokedFolderAccesses(storage, keeperDriveData.revokedFolderAccesses) + processKdRemovedFolderRecords(removedDependencies, keeperDriveData.removedFolderRecords) await processKdRevokedRecordAccesses(storage, keeperDriveData.revokedRecordAccesses) + await processKdRemovedRecordLinks(removedDependencies, keeperDriveData.removedRecordLinks) + await storage.removeDependencies(removedDependencies) continuationToken = resp.continuationToken || undefined From 5d7722413c0b8080f47cf42d660a7fc88acc16fc Mon Sep 17 00:00:00 2001 From: Hoseong Lee <154545063+hleekeeper@users.noreply.github.com> Date: Fri, 1 May 2026 16:18:42 -0500 Subject: [PATCH 07/10] Added the accessUid to the DKdFolderAccess type (#134) --- keeperapi/src/syncDown/types.ts | 1 + keeperapi/src/vault.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/keeperapi/src/syncDown/types.ts b/keeperapi/src/syncDown/types.ts index 962f4a9..4e8cfe7 100644 --- a/keeperapi/src/syncDown/types.ts +++ b/keeperapi/src/syncDown/types.ts @@ -18,6 +18,7 @@ export type DKdFolder = { export type DKdFolderAccess = { kind: 'keeper_drive_folder_access' + accessUid: string uid: string accessTypeUid: string accessType: Folder.AccessType diff --git a/keeperapi/src/vault.ts b/keeperapi/src/vault.ts index df190b0..cc2b0f0 100644 --- a/keeperapi/src/vault.ts +++ b/keeperapi/src/vault.ts @@ -1215,6 +1215,7 @@ const processKdFolderAccesses = async ( } await storage.put({ kind: 'keeper_drive_folder_access', + accessUid: createKdFolderAccessCompositeKey(accessTypeUid, folderUid), uid: folderUid, accessTypeUid, accessType: folderAccess.accessType, From 43720fbfa96cde5af9cd875873809b4f6d83be95 Mon Sep 17 00:00:00 2001 From: Hoseong Lee <154545063+hleekeeper@users.noreply.github.com> Date: Wed, 6 May 2026 16:43:21 -0500 Subject: [PATCH 08/10] BE-6875 Additional changes to ingest KD folder data (#135) * minor change uid -> folderUid in the DKdFolderAccesst type * A removed dependency can now explicitly specify parentKind and childKind --- keeperapi/src/syncDown/types.ts | 2 +- keeperapi/src/vault.ts | 23 ++++++++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/keeperapi/src/syncDown/types.ts b/keeperapi/src/syncDown/types.ts index 4e8cfe7..00fc7ca 100644 --- a/keeperapi/src/syncDown/types.ts +++ b/keeperapi/src/syncDown/types.ts @@ -19,7 +19,7 @@ export type DKdFolder = { export type DKdFolderAccess = { kind: 'keeper_drive_folder_access' accessUid: string - uid: string + folderUid: string accessTypeUid: string accessType: Folder.AccessType accessRoleType: Folder.AccessRoleType diff --git a/keeperapi/src/vault.ts b/keeperapi/src/vault.ts index cc2b0f0..02850b6 100644 --- a/keeperapi/src/vault.ts +++ b/keeperapi/src/vault.ts @@ -290,9 +290,14 @@ export type Dependency = { parentUid: string uid: string } +export type RemovedDependency = { + parentKind: VaultStorageKind + childKind: VaultStorageKind + childUid: string +} export type DependencyMap = Record export type Dependencies = Record> -export type RemovedDependencies = Record | '*'> +export type RemovedDependencies = Record | '*'> const addDependencies = (dependencies: Dependencies, parentUid: string, childUid: string, kind: VaultStorageKind) => { let children = dependencies[parentUid] @@ -307,13 +312,17 @@ const addDependencies = (dependencies: Dependencies, parentUid: string, childUid }) } -const addRemovedDependencies = (dependencies: RemovedDependencies, parentUid: string, childUid: string) => { +const addRemovedDependencies = ( + dependencies: RemovedDependencies, + parentUid: string, + childUid: string | RemovedDependency +) => { let children = dependencies[parentUid] if (children === '*') { return } if (!children) { - children = new Set() + children = new Set() dependencies[parentUid] = children } children.add(childUid) @@ -1216,7 +1225,7 @@ const processKdFolderAccesses = async ( await storage.put({ kind: 'keeper_drive_folder_access', accessUid: createKdFolderAccessCompositeKey(accessTypeUid, folderUid), - uid: folderUid, + folderUid, accessTypeUid, accessType: folderAccess.accessType, accessRoleType: folderAccess.accessRoleType, @@ -1425,7 +1434,11 @@ const processKdRemovedFolderRecords = ( if (!folderRecord.recordUid || !folderRecord.folderUid) continue const recordUid = webSafe64FromBytes(folderRecord.recordUid) const folderUid = webSafe64FromBytes(folderRecord.folderUid) - addRemovedDependencies(removedDependencies, folderUid, recordUid) + addRemovedDependencies(removedDependencies, folderUid, { + parentKind: 'keeper_drive_folder', + childKind: 'record', + childUid: recordUid, + }) } } From 4cd17b77c189fbf3342e6101ec784861b15d5998 Mon Sep 17 00:00:00 2001 From: Hoseong Lee <154545063+hleekeeper@users.noreply.github.com> Date: Wed, 20 May 2026 16:10:26 -0500 Subject: [PATCH 09/10] ingest non-shared-data for keeper drive items (#147) --- keeperapi/src/vault.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/keeperapi/src/vault.ts b/keeperapi/src/vault.ts index 02850b6..2043e61 100644 --- a/keeperapi/src/vault.ts +++ b/keeperapi/src/vault.ts @@ -772,7 +772,8 @@ const processRecords = async (records: IRecord[], storage: VaultStorage) => { } } -const processNonSharedData = async (nonSharedData: INonSharedData[], storage: VaultStorage) => { +const processNonSharedData = async (storage: VaultStorage, nonSharedData?: Vault.INonSharedData[] | null) => { + if (!nonSharedData) return for (const nsData of nonSharedData as NN[]) { const recUid = webSafe64FromBytes(nsData.recordUid) try { @@ -1655,7 +1656,7 @@ export const syncDown = async (options: SyncDownOptions): Promise => await processRecordRotations(resp.recordRotations, storage) - await processNonSharedData(resp.nonSharedData, storage) + await processNonSharedData(storage, resp.nonSharedData) await processSharedFolderFolders(resp.sharedFolderFolders, storage, dependencies) @@ -1687,6 +1688,8 @@ export const syncDown = async (options: SyncDownOptions): Promise => await processKdRecords(storage, keeperDriveData.recordData, keeperDriveData.records) + await processNonSharedData(storage, keeperDriveData.nonSharedData) + await processKdRecordSharingStates(storage, keeperDriveData.recordSharingStates) await storage.addDependencies(dependencies) From 7735e175ea487a43714a49b4132171441ae3c3ae Mon Sep 17 00:00:00 2001 From: Hoseong Lee <154545063+hleekeeper@users.noreply.github.com> Date: Fri, 29 May 2026 11:57:43 -0500 Subject: [PATCH 10/10] Ingest the securityScoreData, securitData, and breachWatchRecords from the keeperDriveData (#150) Updated the getCounts to count the data in the keeperDriveData --- keeperapi/src/vault.ts | 50 ++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/keeperapi/src/vault.ts b/keeperapi/src/vault.ts index 2043e61..7ea8b9b 100644 --- a/keeperapi/src/vault.ts +++ b/keeperapi/src/vault.ts @@ -91,7 +91,9 @@ type MappedCounts = { [Property in keyof Type]: number } -type SyncResponseCounts = MappedCounts +type SyncResponseCounts = Partial< + MappedCounts & Vault.IKeeperDriveData> +> export type SyncResult = { started: Date @@ -1010,7 +1012,8 @@ const processMetadata = async (recordMetaData: IRecordMetaData[], storage: Vault await platform.unwrapKeys(recordKeys, storage) } -const processBreachWatchRecords = async (bwRecords: IBreachWatchRecord[], storage: VaultStorage) => { +const processBreachWatchRecords = async (storage: VaultStorage, bwRecords?: IBreachWatchRecord[] | null) => { + if (!bwRecords) return for (const bwRecord of bwRecords as NN[]) { if (!bwRecord.recordUid) continue @@ -1038,7 +1041,11 @@ const processBreachWatchRecords = async (bwRecords: IBreachWatchRecord[], storag } } -const processBreachWatchSecurityData = async (securityData: IBreachWatchSecurityData[], storage: VaultStorage) => { +const processBreachWatchSecurityData = async ( + storage: VaultStorage, + securityData?: IBreachWatchSecurityData[] | null +) => { + if (!securityData) return for (const bwSecurityData of securityData as NN[]) { const uid = webSafe64FromBytes(bwSecurityData.recordUid) @@ -1054,7 +1061,11 @@ const processBreachWatchSecurityData = async (securityData: IBreachWatchSecurity } } -const processSecurityScoreData = async (securityScoreDataList: Vault.ISecurityScoreData[], storage: VaultStorage) => { +const processSecurityScoreData = async ( + storage: VaultStorage, + securityScoreDataList?: Vault.ISecurityScoreData[] | null +) => { + if (!securityScoreDataList) return for (const securityScoreData of securityScoreDataList) { if (!securityScoreData.recordUid || typeof securityScoreData.revision !== 'number') continue @@ -1491,15 +1502,20 @@ const logProtobuf = (data: any, format: SyncLogFormat, seqNo: number, counts: an } const getCounts = (obj: Vault.ISyncDownResponse): SyncResponseCounts => { - const results = {} - for (const prop in obj) { - if (['continuationToken', 'constructor'].includes(prop)) { - continue - } - if (obj[prop]?.length) { - results[prop] = obj[prop].length + const results: Record = {} + const collect = (source: any) => { + if (!source) return + for (const prop in source) { + if (['continuationToken', 'constructor', 'keeperDriveData'].includes(prop)) { + continue + } + if (source[prop]?.length) { + results[prop] = (results[prop] || 0) + source[prop].length + } } } + collect(obj) + collect(obj.keeperDriveData) return results } @@ -1666,11 +1682,11 @@ export const syncDown = async (options: SyncDownOptions): Promise => await processProfilePic(resp.profilePic, storage) - await processBreachWatchRecords(resp.breachWatchRecords, storage) + await processBreachWatchRecords(storage, resp.breachWatchRecords) - await processBreachWatchSecurityData(resp.breachWatchSecurityData, storage) + await processBreachWatchSecurityData(storage, resp.breachWatchSecurityData) - await processSecurityScoreData(resp.securityScoreData, storage) + await processSecurityScoreData(storage, resp.securityScoreData) await processKdFolderAccesses(storage, keeperDriveData.folderAccesses) @@ -1692,6 +1708,12 @@ export const syncDown = async (options: SyncDownOptions): Promise => await processKdRecordSharingStates(storage, keeperDriveData.recordSharingStates) + await processBreachWatchRecords(storage, keeperDriveData.breachWatchRecords) + + await processBreachWatchSecurityData(storage, keeperDriveData.breachWatchSecurityData) + + await processSecurityScoreData(storage, keeperDriveData.securityScoreData) + await storage.addDependencies(dependencies) const removedDependencies = {}